| 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 */ |
| 67 |
|
} sg_error; |
| 68 |
|
|
| 69 |
|
void sg_set_error(sg_error code, const char *arg); |
| 70 |
+ |
void sg_set_error_with_errno(sg_error code, const char *arg, int use_errno); |
| 71 |
|
sg_error sg_get_error(); |
| 72 |
|
const char *sg_get_error_arg(); |
| 73 |
+ |
const char *sg_get_error_strerror(); |
| 74 |
|
const char *sg_str_error(sg_error code); |
| 75 |
|
|
| 76 |
|
typedef struct { |
| 268 |
|
#include <statgrab_deprecated.h> |
| 269 |
|
#endif |
| 270 |
|
|
| 271 |
+ |
#endif |