Пример #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()
Пример #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_'],
                                    )
Пример #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()
Пример #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_'],
     )