1 /*
2 * "$Id: mxml-private.h 408 2010-09-19 05:26:46Z mike $"
3 *
4 * Private definitions for Mini-XML, a small XML-like file parsing library.
5 *
6 * Copyright 2003-2010 by Michael R Sweet.
7 *
8 * These coded instructions, statements, and computer programs are the
9 * property of Michael R Sweet and are protected by Federal copyright
10 * law. Distribution and use rights are outlined in the file "COPYING"
11 * which should have been included with this file. If this file is
12 * missing or damaged, see the license at:
13 *
14 * http://www.minixml.org/
15 */
17 /*
18 * Include necessary headers...
19 */
21 #include "config.h"
22 #include "mxml.h"
25 /*
26 * Global, per-thread data...
27 */
29 typedef struct _mxml_global_s
30 {
31 void (*error_cb)(const char *);
32 int num_entity_cbs;
33 int (*entity_cbs[100])(const char *name);
34 int wrap;
35 mxml_custom_load_cb_t custom_load_cb;
36 mxml_custom_save_cb_t custom_save_cb;
37 } _mxml_global_t;
40 /*
41 * Functions...
42 */
44 extern _mxml_global_t *_mxml_global(void);
45 extern int _mxml_entity_cb(const char *name);
48 /*
49 * End of "$Id: mxml-private.h 408 2010-09-19 05:26:46Z mike $".
50 */