| 1 |
|
/* |
| 2 |
< |
* i-scream central monitoring system |
| 2 |
> |
* i-scream libstatgrab |
| 3 |
|
* http://www.i-scream.org |
| 4 |
|
* Copyright (C) 2000-2004 i-scream |
| 5 |
|
* |
| 32 |
|
int sg_init(void); |
| 33 |
|
int sg_drop_privileges(void); |
| 34 |
|
|
| 35 |
+ |
typedef enum { |
| 36 |
+ |
SG_ERROR_NONE = 0, |
| 37 |
+ |
SG_ERROR_MALLOC_FAILED |
| 38 |
+ |
} sg_error; |
| 39 |
+ |
|
| 40 |
+ |
void sg_set_error(sg_error code, const char *arg); |
| 41 |
+ |
sg_error sg_get_error(); |
| 42 |
+ |
const char *sg_str_error(sg_error code); |
| 43 |
+ |
|
| 44 |
|
typedef struct { |
| 45 |
|
char *os_name; |
| 46 |
|
char *os_release; |
| 213 |
|
} sg_process_count; |
| 214 |
|
|
| 215 |
|
sg_process_count *sg_get_process_count(); |
| 216 |
+ |
|
| 217 |
+ |
#ifdef SG_ENABLE_DEPRECATED |
| 218 |
+ |
#include <statgrab_deprecated.h> |
| 219 |
+ |
#endif |
| 220 |
|
|