ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/statgrab.h
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/statgrab.h (file contents):
Revision 1.57 by tdb, Sat Sep 24 13:29:22 2005 UTC vs.
Revision 1.59 by tdb, Sun Oct 3 18:35:58 2010 UTC

# Line 24 | Line 24
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 */
# Line 75 | Line 79 | typedef enum {
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);
# Line 236 | Line 242 | typedef struct {
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,
# Line 296 | Line 303 | sg_process_count *sg_get_process_count();
303  
304   #ifdef SG_ENABLE_DEPRECATED
305   #include <statgrab_deprecated.h>
306 + #endif
307 +
308 + #ifdef __cplusplus
309 + }
310   #endif
311  
312   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines