1 /* libxml2 - Library for parsing XML documents 2 * Copyright (C) 2006-2019 Free Software Foundation, Inc. 3 * 4 * This file is not part of the GNU gettext program, but is used with 5 * GNU gettext. 6 * 7 * The original copyright notice is as follows: 8 */ 9 10 /* 11 * Copyright (C) 1998-2012 Daniel Veillard. All Rights Reserved. 12 * 13 * Permission is hereby granted, free of charge, to any person obtaining a copy 14 * of this software and associated documentation files (the "Software"), to deal 15 * in the Software without restriction, including without limitation the rights 16 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 17 * copies of the Software, and to permit persons to whom the Software is fur- 18 * nished to do so, subject to the following conditions: 19 * 20 * The above copyright notice and this permission notice shall be included in 21 * all copies or substantial portions of the Software. 22 * 23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 24 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT- 25 * NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 26 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 27 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 28 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 29 * THE SOFTWARE. 30 * 31 * Author: Joel W. Reed 32 */ 33 34 /* 35 * Summary: dynamic module loading 36 * Description: basic API for dynamic module loading, used by 37 * libexslt added in 2.6.17 38 */ 39 40 #ifndef __XML_MODULE_H__ 41 #define __XML_MODULE_H__ 42 43 #include <libxml/xmlversion.h> 44 45 #ifdef LIBXML_MODULES_ENABLED 46 47 #ifdef __cplusplus 48 extern "C" { 49 #endif 50 51 /** 52 * xmlModulePtr: 53 * 54 * A handle to a dynamically loaded module 55 */ 56 typedef struct _xmlModule xmlModule; 57 typedef xmlModule *xmlModulePtr; 58 59 /** 60 * xmlModuleOption: 61 * 62 * enumeration of options that can be passed down to xmlModuleOpen() 63 */ 64 typedef enum { 65 XML_MODULE_LAZY = 1, /* lazy binding */ 66 XML_MODULE_LOCAL= 2 /* local binding */ 67 } xmlModuleOption; 68 69 XMLPUBFUN xmlModulePtr XMLCALL xmlModuleOpen (const char *filename, 70 int options); 71 72 XMLPUBFUN int XMLCALL xmlModuleSymbol (xmlModulePtr module, 73 const char* name, 74 void **result); 75 76 XMLPUBFUN int XMLCALL xmlModuleClose (xmlModulePtr module); 77 78 XMLPUBFUN int XMLCALL xmlModuleFree (xmlModulePtr module); 79 80 #ifdef __cplusplus 81 } 82 #endif 83 84 #endif /* LIBXML_MODULES_ENABLED */ 85 86 #endif /*__XML_MODULE_H__ */ 87