mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-08 17:42:14 +03:00
Oops seems I forgot to commit the xpointer.[ch] files, Daniel.
This commit is contained in:
48
include/libxml/xpointer.h
Normal file
48
include/libxml/xpointer.h
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* xpointer.h : API to handle XML Pointers
|
||||||
|
*
|
||||||
|
* World Wide Web Consortium Working Draft 03-March-1998
|
||||||
|
* http://www.w3.org/TR/1998/WD-xptr-19980303
|
||||||
|
*
|
||||||
|
* See Copyright for the status of this software.
|
||||||
|
*
|
||||||
|
* Daniel.Veillard@w3.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __XML_XPTR_H__
|
||||||
|
#define __XML_XPTR_H__
|
||||||
|
|
||||||
|
#include <libxml/tree.h>
|
||||||
|
#include <libxml/xpath.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* A Location Set
|
||||||
|
*/
|
||||||
|
typedef struct _xmlLocationSet xmlLocationSet;
|
||||||
|
typedef xmlLocationSet *xmlLocationSetPtr;
|
||||||
|
struct _xmlLocationSet {
|
||||||
|
int locNr; /* number of locations in the set */
|
||||||
|
int locMax; /* size of the array as allocated */
|
||||||
|
xmlXPathObjectPtr *locTab;/* array of locations */
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Functions
|
||||||
|
*/
|
||||||
|
xmlXPathContextPtr xmlXPtrNewContext (xmlDocPtr doc,
|
||||||
|
xmlNodePtr here,
|
||||||
|
xmlNodePtr origin);
|
||||||
|
xmlXPathObjectPtr xmlXPtrEval (const xmlChar *str,
|
||||||
|
xmlXPathContextPtr ctx);
|
||||||
|
void xmlXPtrRangeToFunction (xmlXPathParserContextPtr ctxt,
|
||||||
|
int nargs);
|
||||||
|
void xmlXPtrFreeLocationSet (xmlLocationSetPtr obj);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#endif /* __XML_XPTR_H__ */
|
1461
xpointer.c
Normal file
1461
xpointer.c
Normal file
File diff suppressed because it is too large
Load Diff
48
xpointer.h
Normal file
48
xpointer.h
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* xpointer.h : API to handle XML Pointers
|
||||||
|
*
|
||||||
|
* World Wide Web Consortium Working Draft 03-March-1998
|
||||||
|
* http://www.w3.org/TR/1998/WD-xptr-19980303
|
||||||
|
*
|
||||||
|
* See Copyright for the status of this software.
|
||||||
|
*
|
||||||
|
* Daniel.Veillard@w3.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __XML_XPTR_H__
|
||||||
|
#define __XML_XPTR_H__
|
||||||
|
|
||||||
|
#include <libxml/tree.h>
|
||||||
|
#include <libxml/xpath.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* A Location Set
|
||||||
|
*/
|
||||||
|
typedef struct _xmlLocationSet xmlLocationSet;
|
||||||
|
typedef xmlLocationSet *xmlLocationSetPtr;
|
||||||
|
struct _xmlLocationSet {
|
||||||
|
int locNr; /* number of locations in the set */
|
||||||
|
int locMax; /* size of the array as allocated */
|
||||||
|
xmlXPathObjectPtr *locTab;/* array of locations */
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Functions
|
||||||
|
*/
|
||||||
|
xmlXPathContextPtr xmlXPtrNewContext (xmlDocPtr doc,
|
||||||
|
xmlNodePtr here,
|
||||||
|
xmlNodePtr origin);
|
||||||
|
xmlXPathObjectPtr xmlXPtrEval (const xmlChar *str,
|
||||||
|
xmlXPathContextPtr ctx);
|
||||||
|
void xmlXPtrRangeToFunction (xmlXPathParserContextPtr ctxt,
|
||||||
|
int nargs);
|
||||||
|
void xmlXPtrFreeLocationSet (xmlLocationSetPtr obj);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#endif /* __XML_XPTR_H__ */
|
Reference in New Issue
Block a user