custom.h 914 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * libxlsxwriter
  3. *
  4. * Copyright 2014-2018, John McNamara, [email protected]. See LICENSE.txt.
  5. *
  6. * custom - A libxlsxwriter library for creating Excel custom property files.
  7. *
  8. */
  9. #ifndef __LXW_CUSTOM_H__
  10. #define __LXW_CUSTOM_H__
  11. #include <stdint.h>
  12. #include "common.h"
  13. /*
  14. * Struct to represent a custom property file object.
  15. */
  16. typedef struct lxw_custom {
  17. FILE *file;
  18. struct lxw_custom_properties *custom_properties;
  19. uint32_t pid;
  20. } lxw_custom;
  21. /* *INDENT-OFF* */
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* *INDENT-ON* */
  26. lxw_custom *lxw_custom_new();
  27. void lxw_custom_free(lxw_custom *custom);
  28. void lxw_custom_assemble_xml_file(lxw_custom *self);
  29. /* Declarations required for unit testing. */
  30. #ifdef TESTING
  31. STATIC void _custom_xml_declaration(lxw_custom *self);
  32. #endif /* TESTING */
  33. /* *INDENT-OFF* */
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. /* *INDENT-ON* */
  38. #endif /* __LXW_CUSTOM_H__ */