CCAux  2.8.3.0
CCAux API reference
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Smart.h
Go to the documentation of this file.
1 /************************************************
2 *
3 * CROSSCONTROL AUX API
4 *
5 * Smart.h
6 *
7 * Version 2.8.3.0, 2016-04-06
8 *
9 * (c) maximatecc 2013
10 *
11 
12  * File description: Get S.M.A.R.T. data and information from the
13  * secondary storage device (CF/SD/HDD) where the OS is installed.
14  *
15  ************************************************/
16 
17 #ifndef CC_SMART_H_
18 #define CC_SMART_H_
19 
20 #include "CCAuxErrors.h"
21 #include "CCPlatform.h"
22 #include <time.h>
23 
24 #ifdef __cplusplus
25 namespace CrossControl
26 {
27 #endif
28 
29  typedef void* SMARTHANDLE;
30 
44  EXTERN_C
45  CCAUXDLL_API
47  CCAUXDLL_CALLING_CONV
48  GetSmart(void);
49 
60  EXTERN_C
61  CCAUXDLL_API
62  void
63  CCAUXDLL_CALLING_CONV
65 
78  EXTERN_C
79  CCAUXDLL_API
80  eErr
81  CCAUXDLL_CALLING_CONV
82  Smart_getRemainingLifeTime (SMARTHANDLE, unsigned char* lifetimepercent);
83 
98  EXTERN_C
99  CCAUXDLL_API
100  eErr
101  CCAUXDLL_CALLING_CONV
102  Smart_getRemainingLifeTime2 (SMARTHANDLE, unsigned char* lifetimepercent);
103 
119  EXTERN_C
120  CCAUXDLL_API
121  eErr
122  CCAUXDLL_CALLING_CONV
123  Smart_getDeviceSerial (SMARTHANDLE, char* buff, int len);
124 
142  EXTERN_C
143  CCAUXDLL_API
144  eErr
145  CCAUXDLL_CALLING_CONV
146  Smart_getDeviceSerial2 (SMARTHANDLE, char* buff, int len);
147 
164  EXTERN_C
165  CCAUXDLL_API
166  eErr
167  CCAUXDLL_CALLING_CONV
168  Smart_getInitialTime (SMARTHANDLE, time_t* time);
169 
189  EXTERN_C
190  CCAUXDLL_API
191  eErr
192  CCAUXDLL_CALLING_CONV
193  Smart_getInitialTime2 (SMARTHANDLE, time_t* time);
194 
195 #ifdef __cplusplus
196 }
197 #endif
198 
199 #endif /* CC_SMART_H_ */
200