excel.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. #endif