| 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 |
| 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: |
| 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() |
| 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): |