excel.h 1.1 KB

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