~burner/xsb/debianized-xsb

« back to all changes in this revision

Viewing changes to packages/xpath/cc/libxml/pattern.h

  • Committer: Michael R. Head
  • Date: 2006-09-06 22:11:55 UTC
  • Revision ID: burner@n23-20060906221155-7e398d23438a7ee4
Add the files from the 3.0.1 release package

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Summary: pattern expression handling
 
3
 * Description: allows to compile and test pattern expressions for nodes
 
4
 *              either in a tree or based on a parser state.
 
5
 *
 
6
 * Copy: See Copyright for the status of this software.
 
7
 *
 
8
 * Author: Daniel Veillard
 
9
 */
 
10
 
 
11
#ifndef __XML_PATTERN_H__
 
12
#define __XML_PATTERN_H__
 
13
 
 
14
#include <libxml/xmlversion.h>
 
15
#include <libxml/tree.h>
 
16
#include <libxml/dict.h>
 
17
 
 
18
#ifdef LIBXML_PATTERN_ENABLED
 
19
 
 
20
#ifdef __cplusplus
 
21
extern "C" {
 
22
#endif
 
23
 
 
24
/**
 
25
 * xmlPattern:
 
26
 *
 
27
 * A compiled (XPath based) pattern to select nodes
 
28
 */
 
29
typedef struct _xmlPattern xmlPattern;
 
30
typedef xmlPattern *xmlPatternPtr;
 
31
 
 
32
XMLPUBFUN void XMLCALL
 
33
                        xmlFreePattern          (xmlPatternPtr comp);
 
34
 
 
35
XMLPUBFUN void XMLCALL
 
36
                        xmlFreePatternList      (xmlPatternPtr comp);
 
37
 
 
38
XMLPUBFUN xmlPatternPtr XMLCALL
 
39
                        xmlPatterncompile       (const xmlChar *pattern,
 
40
                                                 xmlDict *dict,
 
41
                                                 int flags,
 
42
                                                 const xmlChar **namespaces);
 
43
XMLPUBFUN int XMLCALL
 
44
                        xmlPatternMatch         (xmlPatternPtr comp,
 
45
                                                 xmlNodePtr node);
 
46
 
 
47
#ifdef __cplusplus
 
48
}
 
49
#endif
 
50
 
 
51
#endif /* LIBXML_PATTERN_ENABLED */
 
52
 
 
53
#endif /* __XML_PATTERN_H__ */