excel.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Vtiful Extension |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 2017-2017 The Viest |
  6. +----------------------------------------------------------------------+
  7. | http://www.vtiful.com |
  8. +----------------------------------------------------------------------+
  9. | Author: viest <[email protected]> |
  10. +----------------------------------------------------------------------+
  11. */
  12. #ifndef VTIFUL_EXCEL_H
  13. #define VTIFUL_EXCEL_H
  14. #include "xlsxwriter.h"
  15. typedef struct {
  16. lxw_workbook *workbook;
  17. lxw_worksheet *worksheet;
  18. } excel_resource_t;
  19. #define V_EXCEL_HANDLE "handle"
  20. #define V_EXCEL_FIL "fileName"
  21. #define V_EXCEL_COF "config"
  22. #define V_EXCEL_PAT "path"
  23. extern zend_class_entry *vtiful_excel_ce;
  24. VTIFUL_STARTUP_FUNCTION(excel);
  25. excel_resource_t * zval_get_resource(zval *handle);
  26. #endif