php_xxtea.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /***********************************************************************
  2. Copyright 2006-2007 Ma Bingyao
  3. These sources is free software. Redistributions of source code must
  4. retain the above copyright notice. Redistributions in binary form
  5. must reproduce the above copyright notice. You can redistribute it
  6. freely. You can use it with any free or commercial software.
  7. These sources is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY. Without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. You may contact the author by:
  11. e-mail: andot@coolcode.cn
  12. *************************************************************************/
  13. #ifndef PHP_XXTEA_H
  14. #define PHP_XXTEA_H
  15. #ifdef HAVE_CONFIG_H
  16. #include "config.h"
  17. #endif
  18. #if HAVE_XXTEA
  19. extern zend_module_entry xxtea_module_entry;
  20. #define phpext_xxtea_ptr &xxtea_module_entry
  21. #define XXTEA_MODULE_NAME "xxtea"
  22. #define XXTEA_BUILD_DATE __DATE__ " " __TIME__
  23. #define XXTEA_VERSION "1.0.3"
  24. #define XXTEA_AUTHOR "Ma Bingyao"
  25. #define XXTEA_HOMEPAGE "http://www.coolcode.cn/?p=209"
  26. ZEND_MINIT_FUNCTION(xxtea);
  27. ZEND_MSHUTDOWN_FUNCTION(xxtea);
  28. ZEND_MINFO_FUNCTION(xxtea);
  29. /* declaration of functions to be exported */
  30. ZEND_FUNCTION(xxtea_encrypt);
  31. ZEND_FUNCTION(xxtea_decrypt);
  32. ZEND_FUNCTION(xxtea_info);
  33. #else /* if HAVE_XXTEA */
  34. #define phpext_xxtea_ptr NULL
  35. #endif
  36. #endif /* ifndef PHP_XXTEA_H */