mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
doc: Convert documentation to Doxygen
Automated conversion based on a few regexes.
This commit is contained in:
61
xmlmodule.c
61
xmlmodule.c
@@ -42,18 +42,17 @@ static int xmlModulePlatformSymbol(void *handle, const char *name, void **result
|
||||
************************************************************************/
|
||||
|
||||
/**
|
||||
* xmlModuleOpen:
|
||||
* @name: the module name
|
||||
* @options: a set of xmlModuleOption
|
||||
* @param name the module name
|
||||
* @param options a set of xmlModuleOption
|
||||
*
|
||||
* 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 cannot guarantee that
|
||||
* guaranteed with `name` using ASCII. We cannot 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.
|
||||
*
|
||||
* Returns a handle for the module or NULL in case of error
|
||||
* @returns a handle for the module or NULL in case of error
|
||||
*/
|
||||
xmlModulePtr
|
||||
xmlModuleOpen(const char *name, int options ATTRIBUTE_UNUSED)
|
||||
@@ -78,18 +77,17 @@ xmlModuleOpen(const char *name, int options ATTRIBUTE_UNUSED)
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlModuleSymbol:
|
||||
* @module: the module
|
||||
* @name: the name of the symbol
|
||||
* @symbol: the resulting symbol address
|
||||
* @param module the module
|
||||
* @param name the name of the symbol
|
||||
* @param symbol the resulting symbol address
|
||||
*
|
||||
* 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 cannot guarantee that
|
||||
* guaranteed with `name` using ASCII. We cannot guarantee that
|
||||
* an UTF-8 string would work, which is why name is a const char *
|
||||
* and not a const xmlChar * .
|
||||
*
|
||||
* Returns 0 if the symbol was found, or -1 in case of error
|
||||
* @returns 0 if the symbol was found, or -1 in case of error
|
||||
*/
|
||||
int
|
||||
xmlModuleSymbol(xmlModulePtr module, const char *name, void **symbol)
|
||||
@@ -108,13 +106,12 @@ xmlModuleSymbol(xmlModulePtr module, const char *name, void **symbol)
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlModuleClose:
|
||||
* @module: the module handle
|
||||
* @param module the module handle
|
||||
*
|
||||
* The close operations unload the associated module and free the
|
||||
* data associated to the module.
|
||||
*
|
||||
* Returns 0 in case of success, -1 in case of argument error and -2
|
||||
* @returns 0 in case of success, -1 in case of argument error and -2
|
||||
* if the module could not be closed/unloaded.
|
||||
*/
|
||||
int
|
||||
@@ -135,14 +132,13 @@ xmlModuleClose(xmlModulePtr module)
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlModuleFree:
|
||||
* @module: the module handle
|
||||
* @param module the module handle
|
||||
*
|
||||
* The free operations free the data associated to the module
|
||||
* but does not unload the associated shared library which may still
|
||||
* be in use.
|
||||
*
|
||||
* Returns 0 in case of success, -1 in case of argument error
|
||||
* @returns 0 in case of success, -1 in case of argument error
|
||||
*/
|
||||
int
|
||||
xmlModuleFree(xmlModulePtr module)
|
||||
@@ -164,10 +160,9 @@ xmlModuleFree(xmlModulePtr module)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* xmlModulePlatformOpen:
|
||||
* @name: path to the module
|
||||
* @param name path to the module
|
||||
*
|
||||
* returns a handle on success, and zero on error.
|
||||
* @returns a handle on success, and zero on error.
|
||||
*/
|
||||
|
||||
static void *
|
||||
@@ -177,10 +172,9 @@ xmlModulePlatformOpen(const char *name)
|
||||
}
|
||||
|
||||
/*
|
||||
* xmlModulePlatformClose:
|
||||
* @handle: handle to the module
|
||||
* @param handle handle to the module
|
||||
*
|
||||
* returns 0 on success, and non-zero on error.
|
||||
* @returns 0 on success, and non-zero on error.
|
||||
*/
|
||||
|
||||
static int
|
||||
@@ -190,9 +184,8 @@ xmlModulePlatformClose(void *handle)
|
||||
}
|
||||
|
||||
/*
|
||||
* xmlModulePlatformSymbol:
|
||||
* http://www.opengroup.org/onlinepubs/009695399/functions/dlsym.html
|
||||
* returns 0 on success and the loaded symbol in result, and -1 on error.
|
||||
* @returns 0 on success and the loaded symbol in result, and -1 on error.
|
||||
*/
|
||||
|
||||
static int
|
||||
@@ -210,8 +203,7 @@ xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
|
||||
#ifdef HAVE_SHLLOAD /* HAVE_SHLLOAD */
|
||||
#include <dl.h>
|
||||
/*
|
||||
* xmlModulePlatformOpen:
|
||||
* returns a handle on success, and zero on error.
|
||||
* @returns a handle on success, and zero on error.
|
||||
*/
|
||||
|
||||
static void *
|
||||
@@ -221,8 +213,7 @@ xmlModulePlatformOpen(const char *name)
|
||||
}
|
||||
|
||||
/*
|
||||
* xmlModulePlatformClose:
|
||||
* returns 0 on success, and non-zero on error.
|
||||
* @returns 0 on success, and non-zero on error.
|
||||
*/
|
||||
|
||||
static int
|
||||
@@ -232,9 +223,8 @@ xmlModulePlatformClose(void *handle)
|
||||
}
|
||||
|
||||
/*
|
||||
* xmlModulePlatformSymbol:
|
||||
* http://docs.hp.com/en/B2355-90683/shl_load.3X.html
|
||||
* returns 0 on success and the loaded symbol in result, and -1 on error.
|
||||
* @returns 0 on success and the loaded symbol in result, and -1 on error.
|
||||
*/
|
||||
|
||||
static int
|
||||
@@ -256,8 +246,7 @@ xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
|
||||
#include <windows.h>
|
||||
|
||||
/*
|
||||
* xmlModulePlatformOpen:
|
||||
* returns a handle on success, and zero on error.
|
||||
* @returns a handle on success, and zero on error.
|
||||
*/
|
||||
|
||||
static void *
|
||||
@@ -267,8 +256,7 @@ xmlModulePlatformOpen(const char *name)
|
||||
}
|
||||
|
||||
/*
|
||||
* xmlModulePlatformClose:
|
||||
* returns 0 on success, and non-zero on error.
|
||||
* @returns 0 on success, and non-zero on error.
|
||||
*/
|
||||
|
||||
static int
|
||||
@@ -281,9 +269,8 @@ xmlModulePlatformClose(void *handle)
|
||||
}
|
||||
|
||||
/*
|
||||
* xmlModulePlatformSymbol:
|
||||
* http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getprocaddress.asp
|
||||
* returns 0 on success and the loaded symbol in result, and -1 on error.
|
||||
* @returns 0 on success and the loaded symbol in result, and -1 on error.
|
||||
*/
|
||||
|
||||
static int
|
||||
|
Reference in New Issue
Block a user