mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-14 07:45:31 +00:00
89a9742c0e
Update copyrights and web site addresses. New logo image following msweet.org template.
44 lines
975 B
C
44 lines
975 B
C
/*
|
|
* Private definitions for Mini-XML, a small XML file parsing library.
|
|
*
|
|
* Copyright 2003-2017 by Michael R Sweet.
|
|
*
|
|
* These coded instructions, statements, and computer programs are the
|
|
* property of Michael R Sweet and 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:
|
|
*
|
|
* https://michaelrsweet.github.io/mxml
|
|
*/
|
|
|
|
/*
|
|
* Include necessary headers...
|
|
*/
|
|
|
|
#include "config.h"
|
|
#include "mxml.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);
|