24 |
|
#ifndef STATGRAB_H |
25 |
|
#define STATGRAB_H |
26 |
|
|
27 |
+ |
#ifdef __cplusplus |
28 |
+ |
extern "C" { |
29 |
+ |
#endif |
30 |
+ |
|
31 |
|
#include <sys/types.h> |
32 |
|
|
33 |
|
/* FIXME typedefs for 32/64-bit types */ |
79 |
|
SG_ERROR_SYSCTLNAMETOMIB, |
80 |
|
SG_ERROR_UNAME, |
81 |
|
SG_ERROR_UNSUPPORTED, |
82 |
< |
SG_ERROR_XSW_VER_MISMATCH |
82 |
> |
SG_ERROR_XSW_VER_MISMATCH, |
83 |
> |
SG_ERROR_GETMSG, |
84 |
> |
SG_ERROR_PUTMSG |
85 |
|
} sg_error; |
86 |
|
|
87 |
|
void sg_set_error(sg_error code, const char *arg); |
242 |
|
sg_page_stats *sg_get_page_stats(); |
243 |
|
sg_page_stats *sg_get_page_stats_diff(); |
244 |
|
|
245 |
+ |
/* Recommend to add SG_PROCESS_STATE_IDLE */ |
246 |
|
typedef enum { |
247 |
|
SG_PROCESS_STATE_RUNNING, |
248 |
|
SG_PROCESS_STATE_SLEEPING, |
303 |
|
|
304 |
|
#ifdef SG_ENABLE_DEPRECATED |
305 |
|
#include <statgrab_deprecated.h> |
306 |
+ |
#endif |
307 |
+ |
|
308 |
+ |
#ifdef __cplusplus |
309 |
+ |
} |
310 |
|
#endif |
311 |
|
|
312 |
|
#endif |