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.18 by ats, Wed Sep 14 18:15:44 2005 UTC vs.
Revision 1.20 by tdb, Fri Jul 13 22:26:19 2007 UTC

# Line 27 | Line 27 | ctypedef int gid_t
27  
28   cdef extern from "statgrab.h":
29      cdef extern int sg_init()
30 +    cdef extern int sg_shutdown()
31 +    cdef extern int sg_snapshot()
32      cdef extern int sg_drop_privileges()
33  
34      ctypedef enum sg_error:
# Line 291 | Line 293 | class StatgrabException(Exception):
293  
294   def py_sg_init():
295      if sg_init() == 0:
296 +        return True
297 +    else:
298 +        return False
299 +
300 + def py_sg_shutdown():
301 +    if sg_shutdown() == 0:
302 +        return True
303 +    else:
304 +        return False
305 +
306 + def py_sg_snapshot():
307 +    if sg_snapshot() == 0:
308          return True
309      else:
310          return False

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines