  
    
    
    
    
    
    
    
  
  
    
      
        
          
libxml2-xmlmemory.html            
Prev          
        
        
          
general.html            
Up          
        
        
          
index.html            
Home          
        
        
          
libxml2-xmlreader.html            
Next          
        
        
libxml2 Reference Manual      
    
    
      
xmlmodule    
    
xmlmodule - dynamic module loading
    
basic API for dynamic module loading, used by libexslt added in 2.6.17 
    
Author(s): Joel W. Reed 
    
      
Synopsis
      
typedef struct _xmlModule #xmlModulexmlModule ;
typedef 
libxml2-xmlmodule.html#xmlModulexmlModule  * #xmlModulePtrxmlModulePtr ;
typedef enum 
#xmlModuleOptionxmlModuleOption ;
int	
#xmlModuleFreexmlModuleFree 			( libxml2-xmlmodule.html#xmlModulePtrxmlModulePtr  module);
int	
#xmlModuleSymbolxmlModuleSymbol 			( libxml2-xmlmodule.html#xmlModulePtrxmlModulePtr  module, 					 const char * name, 					 void ** symbol);
libxml2-xmlmodule.html#xmlModulePtrxmlModulePtr 	#xmlModuleOpenxmlModuleOpen 		(const char * name, 					 int options);
int	
#xmlModuleClosexmlModuleClose 			( libxml2-xmlmodule.html#xmlModulePtrxmlModulePtr  module);
    
    
      
Description
    
    
      
Details
      
        
Structure xmlModule
struct _xmlModule {
The content of this structure is not made public by the API.
} xmlModule;
        
        
Enum xmlModuleOption
enum #xmlModuleOptionxmlModuleOption  {
    
XML_MODULE_LAZY  = 1 /* lazy binding */
    
XML_MODULE_LOCAL  = 2 /*  local binding */
};
        
        
Typedef xmlModulePtr
libxml2-xmlmodule.html#xmlModulexmlModule  * xmlModulePtr;
A handle to a dynamically loaded module
        
        
xmlModuleClose ()
int	xmlModuleClose			( libxml2-xmlmodule.html#xmlModulePtrxmlModulePtr  module)The close operations unload the associated module and free the data associated to the module.
module: the module handle Returns: 0 in case of success, -1 in case of argument error and -2 if the module could not be closed/unloaded.         
        
xmlModuleFree ()
int	xmlModuleFree			( libxml2-xmlmodule.html#xmlModulePtrxmlModulePtr  module)The free operations free the data associated to the module but does not unload the associated shared library which may still be in use.
module: the module handle Returns: 0 in case of success, -1 in case of argument error         
        
xmlModuleOpen ()
libxml2-xmlmodule.html#xmlModulePtrxmlModulePtr 	xmlModuleOpen		(const char * name, 					 int options)Opens a module/shared library given its name or path TODO: options are not yet implemented.
name: the module name options: a set of libxml2-xmlmodule.html#xmlModuleOptionxmlModuleOption Returns: a handle for the module or NULL in case of error         
        
xmlModuleSymbol ()
int	xmlModuleSymbol			( libxml2-xmlmodule.html#xmlModulePtrxmlModulePtr  module, 					 const char * name, 					 void ** symbol)Lookup for a symbol address in the given module
module: the module name: the name of the symbol symbol: the resulting symbol address Returns: 0 if the symbol was found, or -1 in case of error         
      
    
  
