sc,
sec)
+ code = ubik_ClientInit(serverconns, &self.client)
+ if code != 0:
+ raise Exception("Failed to initialize ubik connection to Protection server: %s" % error_message(code))
+
code = rxs_Release(sc)
def __dealloc__(self):
+ ubik_ClientDestroy(self.client)
rx_Finalize()
char *aservice,
afsconf_cell *acellInfo)
-cdef extern from "ubik.h":
- enum:
- MAXSERVERS
-
- # ubik_client is an opaque struct, so we don't care about its members
- struct ubik_client:
- pass
-
cdef extern from "rx/rxkad.h":
ctypedef char rxkad_level
enum:
PRSRV
+cdef extern from "ubik.h":
+ enum:
+ MAXSERVERS
+
+ # ubik_client is an opaque struct, so we don't care about its members
+ struct ubik_client:
+ pass
+
+ int ubik_ClientInit(rx_connection **serverconns,
+ ubik_client **aclient)
+ afs_int32 ubik_ClientDestroy(ubik_client *aclient)
+
cdef extern from "afs/com_err.h":
char * error_message(int)