Example #1
0
 def __init__(self, handle=None):
     super(self.__class__, self).__init__(ffi, lib,
                                          handle=handle,
                                          match=ffi.typeof(
                                              lib.flux_sec_create).result,
                                          prefixes=['flux_sec_'],
                                          destructor=lib.flux_sec_destroy,)
     if handle is None:
         self.handle = lib.flux_sec_create()
Example #2
0
 def __init__(self, handle=None):
   if handle is None:
     self.external = False
     handle = lib.flux_sec_create(type_id)
   else:
     self.external = True
   super(self.__class__, self).__init__(ffi, lib, 
                                    handle=handle,
                                    match=ffi.typeof(lib.flux_sec_create).result,
                                    prefixes=['flux_sec_'],
                                    )
Example #3
0
 def __init__(self, handle=None):
     super(self.__class__, self).__init__(
         ffi,
         lib,
         handle=handle,
         match=ffi.typeof(lib.flux_sec_create).result,
         prefixes=['flux_sec_'],
         destructor=lib.flux_sec_destroy,
     )
     if handle is None:
         self.handle = lib.flux_sec_create()
Example #4
0
 def __init__(self, handle=None):
     if handle is None:
         self.external = False
         handle = lib.flux_sec_create(type_id)
     else:
         self.external = True
     super(self.__class__, self).__init__(
         ffi,
         lib,
         handle=handle,
         match=ffi.typeof(lib.flux_sec_create).result,
         prefixes=['flux_sec_'],
     )