forked from pivasoftware/microxml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mxml-private.h
45 lines (36 loc) · 1 KB
/
mxml-private.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Private definitions for microxml, a micro XML-like file parsing library.
*
* Copyright 2003-2010 by Michael R Sweet.
* Copyright 2011-2012 by Luka Perkov.
*
* These coded instructions, statements, and computer programs are the
* property of Michael R Sweet and Luka Perkov. They are protected by
* Federal copyright law. Distribution and use rights are outlined in
* the file "COPYING" which should have been included with this file.
* If this file is missing or damaged, see the license at:
*
* http://www.minixml.org/
*/
/*
* Include necessary headers...
*/
#include "config.h"
#include "microxml.h"
/*
* Global, per-thread data...
*/
typedef struct _mxml_global_s
{
void (*error_cb)(const char *);
int num_entity_cbs;
int (*entity_cbs[100])(const char *name);
int wrap;
mxml_custom_load_cb_t custom_load_cb;
mxml_custom_save_cb_t custom_save_cb;
} _mxml_global_t;
/*
* Functions...
*/
extern _mxml_global_t *_mxml_global(void);
extern int _mxml_entity_cb(const char *name);