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.48 by ats, Thu Apr 8 13:16:05 2004 UTC vs.
Revision 1.54 by tdb, Mon Nov 1 18:30:17 2004 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 151 | Line 157 | typedef struct {
157  
158   sg_fs_stats *sg_get_fs_stats(int *entries);
159  
160 + int sg_fs_compare_device_name(const void *va, const void *vb);
161 + int sg_fs_compare_mnt_point(const void *va, const void *vb);
162 +
163   typedef struct {
164          char *disk_name;
165          long long read_bytes;
# Line 161 | Line 170 | typedef struct {
170   sg_disk_io_stats *sg_get_disk_io_stats(int *entries);
171   sg_disk_io_stats *sg_get_disk_io_stats_diff(int *entries);
172  
173 + int sg_disk_io_compare_name(const void *va, const void *vb);
174 +
175   typedef struct {
176          char *interface_name;
177          long long tx;
# Line 176 | Line 187 | typedef struct {
187   sg_network_io_stats *sg_get_network_io_stats(int *entries);
188   sg_network_io_stats *sg_get_network_io_stats_diff(int *entries);
189  
190 + int sg_network_io_compare_name(const void *va, const void *vb);
191 +
192   typedef enum {
193          SG_IFACE_DUPLEX_FULL,
194          SG_IFACE_DUPLEX_HALF,
# Line 191 | Line 204 | typedef struct {
204  
205   sg_network_iface_stats *sg_get_network_iface_stats(int *entries);
206  
207 + int sg_network_iface_compare_name(const void *va, const void *vb);
208 +
209   typedef struct {
210          long long pages_pagein;
211          long long pages_pageout;
# Line 231 | Line 246 | typedef struct {
246  
247   sg_process_stats *sg_get_process_stats(int *entries);
248  
249 + int sg_process_compare_name(const void *va, const void *vb);
250   int sg_process_compare_pid(const void *va, const void *vb);
251   int sg_process_compare_uid(const void *va, const void *vb);
252   int sg_process_compare_gid(const void *va, const void *vb);
# Line 253 | Line 269 | sg_process_count *sg_get_process_count();
269   #include <statgrab_deprecated.h>
270   #endif
271  
272 + #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines