ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/pystatgrab/_statgrab.pyx
(Generate patch)

Comparing projects/pystatgrab/_statgrab.pyx (file contents):
Revision 1.14 by tdb, Sun May 30 16:41:03 2004 UTC vs.
Revision 1.16 by tdb, Sat Jul 30 10:49:42 2005 UTC

# Line 1 | Line 1
1   #
2   # i-scream pystatgrab
3 < # http://www.i-scream.org
3 > # http://www.i-scream.org/pystatgrab/
4   # Copyright (C) 2000-2004 i-scream
5   #
6   # This program is free software; you can redistribute it and/or
# Line 62 | Line 62 | cdef extern from "statgrab.h":
62          SG_ERROR_XSW_VER_MISMATCH
63  
64      cdef extern void sg_set_error(sg_error code, char *arg)
65 +    cdef extern void sg_set_error_with_errno(sg_error code, char *arg)
66      cdef extern sg_error sg_get_error()
67      cdef extern char *sg_get_error_arg()
68 +    cdef extern int sg_get_error_errno()
69      cdef extern char *sg_str_error(sg_error code)
70  
71      ctypedef struct sg_host_info:
# Line 172 | Line 174 | cdef extern from "statgrab.h":
174      ctypedef struct sg_network_iface_stats:
175          char *interface_name
176          int speed
177 <        sg_iface_duplex dup
177 >        sg_iface_duplex duplex
178          int up
179  
180      cdef extern sg_network_iface_stats *sg_get_network_iface_stats(int *entries)
# Line 295 | Line 297 | def py_sg_drop_privileges():
297   def py_sg_set_error(code, arg):
298      sg_set_error(code, arg)
299  
300 + def py_sg_set_error_with_errno(code, arg):
301 +    sg_set_error_with_errno(code, arg)
302 +
303   def py_sg_get_error():
304      cdef sg_error s
305      s = sg_get_error()
# Line 304 | Line 309 | def py_sg_get_error_arg():
309      s = sg_get_error_arg()
310      return s
311  
312 + def py_sg_get_error_errno():
313 +    s = sg_get_error_errno()
314 +    return s
315 +
316   def py_sg_str_error(code):
317      s = sg_str_error(code)
318      return s
# Line 537 | Line 546 | def py_sg_get_network_iface_stats():
546          list.append(Result(
547              {'interface_name': s.interface_name,
548               'speed': s.speed,
549 <             'dup': s.dup,
549 >             'duplex': s.duplex,
550               'up' : s.up,
551              }
552          ))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines