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.49 by ats, Thu Apr 8 13:44:44 2004 UTC vs.
Revision 1.55 by tdb, Wed Jul 13 09:31:54 2005 UTC

# Line 21 | Line 21
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 */
# Line 60 | Line 63 | typedef enum {
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 {
# Line 192 | Line 198 | typedef enum {
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  
# Line 263 | Line 272 | sg_process_count *sg_get_process_count();
272   #include <statgrab_deprecated.h>
273   #endif
274  
275 + #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines