--- projects/libstatgrab/src/libstatgrab/statgrab.h 2004/04/05 15:40:15 1.33 +++ projects/libstatgrab/src/libstatgrab/statgrab.h 2004/04/07 09:44:08 1.38 @@ -1,5 +1,5 @@ /* - * i-scream central monitoring system + * i-scream libstatgrab * http://www.i-scream.org * Copyright (C) 2000-2004 i-scream * @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA * - * $Id: statgrab.h,v 1.33 2004/04/05 15:40:15 ats Exp $ + * $Id: statgrab.h,v 1.38 2004/04/07 09:44:08 tdb Exp $ */ #include @@ -32,6 +32,15 @@ int sg_init(void); int sg_drop_privileges(void); +typedef enum { + SG_ERROR_NONE = 0, + SG_ERROR_MALLOC_FAILED +} sg_error; + +void sg_set_error(sg_error code, const char *arg); +sg_error sg_get_error(); +const char *sg_str_error(sg_error code); + typedef struct { char *os_name; char *os_release; @@ -204,4 +213,8 @@ typedef struct { } sg_process_count; sg_process_count *sg_get_process_count(); + +#ifdef SG_ENABLE_DEPRECATED +#include +#endif