mxml-private.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * "$Id: mxml-private.h 451 2014-01-04 21:50:06Z msweet $"
  3. *
  4. * Private definitions for Mini-XML, a small XML-like file parsing library.
  5. *
  6. * Copyright 2003-2014 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.msweet.org/projects.php/Mini-XML
  15. */
  16. /*
  17. * Include necessary headers...
  18. */
  19. #include "config.h"
  20. #include "mxml.h"
  21. /*
  22. * Global, per-thread data...
  23. */
  24. typedef struct _mxml_global_s
  25. {
  26. void (*error_cb)(const char *);
  27. int num_entity_cbs;
  28. int (*entity_cbs[100])(const char *name);
  29. int wrap;
  30. mxml_custom_load_cb_t custom_load_cb;
  31. mxml_custom_save_cb_t custom_save_cb;
  32. } _mxml_global_t;
  33. /*
  34. * Functions...
  35. */
  36. extern _mxml_global_t *_mxml_global(void);
  37. extern int _mxml_entity_cb(const char *name);
  38. /*
  39. * End of "$Id: mxml-private.h 451 2014-01-04 21:50:06Z msweet $".
  40. */