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.15 by tdb, Tue Aug 24 20:43:47 2004 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 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 302 | Line 307 | def py_sg_get_error():
307  
308   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):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines