projects
/
invirt/packages/python-afs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a comment explaining the ubik_client struct.
[invirt/packages/python-afs.git]
/
afs
/
_pts.pyx
diff --git
a/afs/_pts.pyx
b/afs/_pts.pyx
index
49ee9b6
..
43a0f03
100644
(file)
--- a/
afs/_pts.pyx
+++ b/
afs/_pts.pyx
@@
-1,24
+1,16
@@
-cdef extern from "afs/stds.h":
- ctypedef long afs_int32
-
-cdef extern from "ubik.h":
- enum:
- MAXSERVERS
-
- struct ubik_client:
- pass
-
-cdef extern from "rx/rx.h":
- int rx_Init(int port)
+cimport afs as a
cdef class PTS:
cdef class PTS:
- cdef ubik_client * client
+ cdef a.ubik_client * client
def __cinit__(self):
def __cinit__(self):
- cdef afs_int32 code
+ cdef a.afs_int32 code
self.client = NULL
self.client = NULL
- code = rx_Init(0)
+ code = a.rx_Init(0)
if code != 0:
raise Exception(str(code))
if code != 0:
raise Exception(str(code))
+
+ def __dealloc__(self):
+ a.rx_Finalize()