parameters: (self, library, functions)
docstring: Class constructor.
  
          @library   - Library name (e.g., 'magic' for libmagic), or a list of names.
          @functions - A dictionary of function names and their return types (e.g., {'magic_buffer' : str})
  
          Returns None.
docstring_summary: Class constructor.
docstring_tokens: Class constructor .
function: def __init__(self, library, functions):
          '''
          Class constructor.
  
          @library   - Library name (e.g., 'magic' for libmagic), or a list of names.
          @functions - A dictionary of function names and their return types (e.g., {'magic_buffer' : str})
  
          Returns None.
          '''
          self.settings = binwalk.core.settings.Settings()
          self.library = ctypes.cdll.LoadLibrary(self.find_library(library))
          if not self.library:
              raise Exception("Failed to load library '%s'" % library)
  
          for function in functions:    
              f = FunctionHandler(self.library, function)
              setattr(self, function.name, f.run)
function_tokens: def __init__ ( self , library , functions ) : self . settings = binwalk . core . settings . Settings ( ) self . library = ctypes . cdll . LoadLibrary ( self . find_library ( library ) ) if not self . library : raise Exception ( "Failed to load library '%s'" % library ) for function in functions : f = FunctionHandler ( self . library , function ) setattr ( self , function . name , f . run )