| 1 | |
| 2 | #ifndef __EXSLT_H__ |
| 3 | #define __EXSLT_H__ |
| 4 | |
| 5 | #include <libxml/tree.h> |
| 6 | #include <libxml/xpath.h> |
| 7 | #include "exsltexports.h" |
| 8 | #include <libexslt/exsltconfig.h> |
| 9 | |
| 10 | #ifdef __cplusplus |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | EXSLTPUBVAR const char *exsltLibraryVersion; |
| 15 | EXSLTPUBVAR const int exsltLibexsltVersion; |
| 16 | EXSLTPUBVAR const int exsltLibxsltVersion; |
| 17 | EXSLTPUBVAR const int exsltLibxmlVersion; |
| 18 | |
| 19 | /** |
| 20 | * EXSLT_COMMON_NAMESPACE: |
| 21 | * |
| 22 | * Namespace for EXSLT common functions |
| 23 | */ |
| 24 | #define EXSLT_COMMON_NAMESPACE ((const xmlChar *) "http://exslt.org/common") |
| 25 | /** |
| 26 | * EXSLT_CRYPTO_NAMESPACE: |
| 27 | * |
| 28 | * Namespace for EXSLT crypto functions |
| 29 | */ |
| 30 | #define EXSLT_CRYPTO_NAMESPACE ((const xmlChar *) "http://exslt.org/crypto") |
| 31 | /** |
| 32 | * EXSLT_MATH_NAMESPACE: |
| 33 | * |
| 34 | * Namespace for EXSLT math functions |
| 35 | */ |
| 36 | #define EXSLT_MATH_NAMESPACE ((const xmlChar *) "http://exslt.org/math") |
| 37 | /** |
| 38 | * EXSLT_SETS_NAMESPACE: |
| 39 | * |
| 40 | * Namespace for EXSLT set functions |
| 41 | */ |
| 42 | #define EXSLT_SETS_NAMESPACE ((const xmlChar *) "http://exslt.org/sets") |
| 43 | /** |
| 44 | * EXSLT_FUNCTIONS_NAMESPACE: |
| 45 | * |
| 46 | * Namespace for EXSLT functions extension functions |
| 47 | */ |
| 48 | #define EXSLT_FUNCTIONS_NAMESPACE ((const xmlChar *) "http://exslt.org/functions") |
| 49 | /** |
| 50 | * EXSLT_STRINGS_NAMESPACE: |
| 51 | * |
| 52 | * Namespace for EXSLT strings functions |
| 53 | */ |
| 54 | #define EXSLT_STRINGS_NAMESPACE ((const xmlChar *) "http://exslt.org/strings") |
| 55 | /** |
| 56 | * EXSLT_DATE_NAMESPACE: |
| 57 | * |
| 58 | * Namespace for EXSLT date functions |
| 59 | */ |
| 60 | #define EXSLT_DATE_NAMESPACE ((const xmlChar *) "http://exslt.org/dates-and-times") |
| 61 | /** |
| 62 | * EXSLT_DYNAMIC_NAMESPACE: |
| 63 | * |
| 64 | * Namespace for EXSLT dynamic functions |
| 65 | */ |
| 66 | #define EXSLT_DYNAMIC_NAMESPACE ((const xmlChar *) "http://exslt.org/dynamic") |
| 67 | |
| 68 | /** |
| 69 | * SAXON_NAMESPACE: |
| 70 | * |
| 71 | * Namespace for SAXON extensions functions |
| 72 | */ |
| 73 | #define SAXON_NAMESPACE ((const xmlChar *) "http://icl.com/saxon") |
| 74 | |
| 75 | EXSLTPUBFUN void EXSLTCALL exsltCommonRegister (void); |
| 76 | #ifdef EXSLT_CRYPTO_ENABLED |
| 77 | EXSLTPUBFUN void EXSLTCALL exsltCryptoRegister (void); |
| 78 | #endif |
| 79 | EXSLTPUBFUN void EXSLTCALL exsltMathRegister (void); |
| 80 | EXSLTPUBFUN void EXSLTCALL exsltSetsRegister (void); |
| 81 | EXSLTPUBFUN void EXSLTCALL exsltFuncRegister (void); |
| 82 | EXSLTPUBFUN void EXSLTCALL exsltStrRegister (void); |
| 83 | EXSLTPUBFUN void EXSLTCALL exsltDateRegister (void); |
| 84 | EXSLTPUBFUN void EXSLTCALL exsltSaxonRegister (void); |
| 85 | EXSLTPUBFUN void EXSLTCALL exsltDynRegister(void); |
| 86 | |
| 87 | EXSLTPUBFUN void EXSLTCALL exsltRegisterAll (void); |
| 88 | |
| 89 | EXSLTPUBFUN int EXSLTCALL exsltDateXpathCtxtRegister (xmlXPathContextPtr ctxt, |
| 90 | const xmlChar *prefix); |
| 91 | EXSLTPUBFUN int EXSLTCALL exsltMathXpathCtxtRegister (xmlXPathContextPtr ctxt, |
| 92 | const xmlChar *prefix); |
| 93 | EXSLTPUBFUN int EXSLTCALL exsltSetsXpathCtxtRegister (xmlXPathContextPtr ctxt, |
| 94 | const xmlChar *prefix); |
| 95 | EXSLTPUBFUN int EXSLTCALL exsltStrXpathCtxtRegister (xmlXPathContextPtr ctxt, |
| 96 | const xmlChar *prefix); |
| 97 | |
| 98 | #ifdef __cplusplus |
| 99 | } |
| 100 | #endif |
| 101 | #endif /* __EXSLT_H__ */ |
| 102 | |
| 103 | |