| 21 |
|
* $Id$ |
| 22 |
|
*/ |
| 23 |
|
|
| 24 |
+ |
#ifndef STATGRAB_H |
| 25 |
+ |
#define STATGRAB_H |
| 26 |
+ |
|
| 27 |
|
#include <sys/types.h> |
| 28 |
|
|
| 29 |
|
/* FIXME typedefs for 32/64-bit types */ |
| 63 |
|
SG_ERROR_SYSCTLNAMETOMIB, |
| 64 |
|
SG_ERROR_UNAME, |
| 65 |
|
SG_ERROR_UNSUPPORTED, |
| 66 |
< |
SG_ERROR_XSW_VER_MISMATCH |
| 66 |
> |
SG_ERROR_XSW_VER_MISMATCH, |
| 67 |
> |
SG_ERROR_PSTAT |
| 68 |
|
} sg_error; |
| 69 |
|
|
| 70 |
|
void sg_set_error(sg_error code, const char *arg); |
| 71 |
+ |
void sg_set_error_with_errno(sg_error code, const char *arg); |
| 72 |
|
sg_error sg_get_error(); |
| 73 |
|
const char *sg_get_error_arg(); |
| 74 |
+ |
int sg_get_error_errno(); |
| 75 |
|
const char *sg_str_error(sg_error code); |
| 76 |
|
|
| 77 |
|
typedef struct { |
| 198 |
|
typedef struct { |
| 199 |
|
char *interface_name; |
| 200 |
|
int speed; /* In megabits/sec */ |
| 201 |
+ |
sg_iface_duplex duplex; |
| 202 |
+ |
#ifdef SG_ENABLE_DEPRECATED |
| 203 |
|
sg_iface_duplex dup; |
| 204 |
+ |
#endif |
| 205 |
|
int up; |
| 206 |
|
} sg_network_iface_stats; |
| 207 |
|
|
| 272 |
|
#include <statgrab_deprecated.h> |
| 273 |
|
#endif |
| 274 |
|
|
| 275 |
+ |
#endif |