root / logic / trunk / src / mxml / mxml-private.h @ 73
History | View | Annotate | Download (1.2 KB)
1 | 49 | Janez1 | /*
|
---|---|---|---|
2 | * "$Id: mxml-private.h 309 2007-09-21 04:46:02Z mike $"
|
||
3 | *
|
||
4 | * Private definitions for Mini-XML, a small XML-like file parsing library.
|
||
5 | *
|
||
6 | * Copyright 2007 by Michael Sweet.
|
||
7 | *
|
||
8 | * This program is free software; you can redistribute it and/or
|
||
9 | * modify it under the terms of the GNU Library General Public
|
||
10 | * License as published by the Free Software Foundation; either
|
||
11 | * version 2, or (at your option) any later version.
|
||
12 | *
|
||
13 | * This program is distributed in the hope that it will be useful,
|
||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
16 | * GNU General Public License for more details.
|
||
17 | */
|
||
18 | |||
19 | /*
|
||
20 | * Include necessary headers...
|
||
21 | */
|
||
22 | |||
23 | #include "config.h" |
||
24 | #include "mxml.h" |
||
25 | |||
26 | |||
27 | /*
|
||
28 | * Global, per-thread data...
|
||
29 | */
|
||
30 | |||
31 | typedef struct _mxml_global_s |
||
32 | { |
||
33 | void (*error_cb)(const char *); |
||
34 | int num_entity_cbs;
|
||
35 | int (*entity_cbs[100])(const char *name); |
||
36 | int wrap;
|
||
37 | mxml_custom_load_cb_t custom_load_cb; |
||
38 | mxml_custom_save_cb_t custom_save_cb; |
||
39 | } _mxml_global_t; |
||
40 | |||
41 | |||
42 | /*
|
||
43 | * Functions...
|
||
44 | */
|
||
45 | |||
46 | extern _mxml_global_t *_mxml_global(void); |
||
47 | extern int _mxml_entity_cb(const char *name); |
||
48 | |||
49 | |||
50 | /*
|
||
51 | * End of "$Id: mxml-private.h 309 2007-09-21 04:46:02Z mike $".
|
||
52 | */ |