core.h 841 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * libxlsxwriter
  3. *
  4. * Copyright 2014-2018, John McNamara, [email protected]. See LICENSE.txt.
  5. *
  6. * core - A libxlsxwriter library for creating Excel XLSX core files.
  7. *
  8. */
  9. #ifndef __LXW_CORE_H__
  10. #define __LXW_CORE_H__
  11. #include <stdint.h>
  12. #include "workbook.h"
  13. #include "common.h"
  14. /*
  15. * Struct to represent a core.
  16. */
  17. typedef struct lxw_core {
  18. FILE *file;
  19. lxw_doc_properties *properties;
  20. } lxw_core;
  21. /* *INDENT-OFF* */
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* *INDENT-ON* */
  26. lxw_core *lxw_core_new();
  27. void lxw_core_free(lxw_core *core);
  28. void lxw_core_assemble_xml_file(lxw_core *self);
  29. /* Declarations required for unit testing. */
  30. #ifdef TESTING
  31. STATIC void _core_xml_declaration(lxw_core *self);
  32. #endif /* TESTING */
  33. /* *INDENT-OFF* */
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. /* *INDENT-ON* */
  38. #endif /* __LXW_CORE_H__ */