Blame doc/html/libxml-xmlmodule.html

Packit Service a31ea6
Packit Service a31ea6
Packit Service a31ea6
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="SHORTCUT ICON" href="/favicon.ico" /><style type="text/css">
Packit Service a31ea6
TD {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em}
Packit Service a31ea6
H1 {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
H2 {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
H3 {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
A:link, A:visited, A:active { text-decoration: underline }
Packit Service a31ea6
</style><style type="text/css">
Packit Service a31ea6
      div.deprecated pre.programlisting {border-style: double;border-color:red}
Packit Service a31ea6
      pre.programlisting {border-style: double;background: #EECFA1}
Packit Service a31ea6
    </style><title>Module xmlmodule from libxml2</title></head><body bgcolor="#8b7765" text="#000000" link="#a06060" vlink="#000000">
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Module xmlmodule from libxml2

<center>API Menu</center>
<form action="../search.php" enctype="application/x-www-form-urlencoded" method="get"><input name="query" type="text" size="20" value="" /><input name="submit" type="submit" value="Search ..." /></form>
<center>API Indexes</center>
<center>Related links</center>

basic API for dynamic module loading, used by libexslt added in 2.6.17

Table of Contents

Structure xmlModule
struct _xmlModule
Packit Service a31ea6
The content of this structure is not made public by the API.
Packit Service a31ea6
Enum xmlModuleOption
Packit Service a31ea6
Typedef xmlModule * xmlModulePtr
Packit Service a31ea6
int	xmlModuleClose			(xmlModulePtr module)
Packit Service a31ea6
int	xmlModuleFree			(xmlModulePtr module)
Packit Service a31ea6
xmlModulePtr	xmlModuleOpen		(const char * name, 
int options)
Packit Service a31ea6
int	xmlModuleSymbol			(xmlModulePtr module, 
const char * name,
void ** symbol)
Packit Service a31ea6

Description

Packit Service a31ea6

Structure xmlModule

Structure xmlModule
struct _xmlModule {
Packit Service a31ea6
The content of this structure is not made public by the API.
Packit Service a31ea6
}

Enum xmlModuleOption

Enum xmlModuleOption {
Packit Service a31ea6
    XML_MODULE_LAZY = 1 : lazy binding
Packit Service a31ea6
    XML_MODULE_LOCAL = 2 : local binding
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
      A handle to a dynamically loaded module
Packit Service a31ea6
    

Function: xmlModuleClose

int	xmlModuleClose			(xmlModulePtr module)
Packit Service a31ea6

The close operations unload the associated module and free the data associated to the module.

Packit Service a31ea6
<tt>module</tt>:the module handle
<tt>Returns</tt>:0 in case of success, -1 in case of argument error and -2 if the module could not be closed/unloaded.

Function: xmlModuleFree

int	xmlModuleFree			(xmlModulePtr module)
Packit Service a31ea6

The free operations free the data associated to the module but does not unload the associated shared library which may still be in use.

Packit Service a31ea6
<tt>module</tt>:the module handle
<tt>Returns</tt>:0 in case of success, -1 in case of argument error

Function: xmlModuleOpen

xmlModulePtr	xmlModuleOpen		(const char * name, 
int options)
Packit Service a31ea6

Opens a module/shared library given its name or path NOTE: that due to portability issues, behaviour can only be guaranteed with @name using ASCII. We canot guarantee that an UTF-8 string would work, which is why name is a const char * and not a const xmlChar * . TODO: options are not yet implemented.

Packit Service a31ea6
<tt>name</tt>:the module name
<tt>options</tt>:a set of xmlModuleOption
<tt>Returns</tt>:a handle for the module or NULL in case of error

Function: xmlModuleSymbol

int	xmlModuleSymbol			(xmlModulePtr module, 
const char * name,
void ** symbol)
Packit Service a31ea6

Lookup for a symbol address in the given module NOTE: that due to portability issues, behaviour can only be guaranteed with @name using ASCII. We canot guarantee that an UTF-8 string would work, which is why name is a const char * and not a const xmlChar * .

Packit Service a31ea6
<tt>module</tt>:the module
<tt>name</tt>:the name of the symbol
<tt>symbol</tt>:the resulting symbol address
<tt>Returns</tt>:0 if the symbol was found, or -1 in case of error

Daniel Veillard

</body></html>