CCAux  2.7.2.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.7.2.0, 2014-08-25
8 *
9 * (c) maximatecc 2013
10 *
11 * File description: Get S.M.A.R.T. data and information from the
12 * secondary storage device (CF/SD/HDD) where the OS is installed.
13 *
14 ************************************************/
15 
16 #ifndef CC_SMART_H_
17 #define CC_SMART_H_
18 
19 #include "CCAuxErrors.h"
20 #include "CCPlatform.h"
21 #include <time.h>
22 
23 #ifdef __cplusplus
24 namespace CrossControl
25 {
26 #endif
27 
28  // Handle type. In C++ language the interface type is used.
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 
104 
120  EXTERN_C
121  CCAUXDLL_API
122  eErr
123  CCAUXDLL_CALLING_CONV
124  Smart_getDeviceSerial (SMARTHANDLE, char* buff, int len);
125 
143  EXTERN_C
144  CCAUXDLL_API
145  eErr
146  CCAUXDLL_CALLING_CONV
147  Smart_getDeviceSerial2 (SMARTHANDLE, char* buff, int len);
148 
165  EXTERN_C
166  CCAUXDLL_API
167  eErr
168  CCAUXDLL_CALLING_CONV
169  Smart_getInitialTime (SMARTHANDLE, time_t* time);
170 
190  EXTERN_C
191  CCAUXDLL_API
192  eErr
193  CCAUXDLL_CALLING_CONV
194  Smart_getInitialTime2 (SMARTHANDLE, time_t* time);
195 
196 #ifdef __cplusplus
197 }
198 #endif
199 
200 #endif /* CC_SMART_H_ */
201