You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.5 KiB
C
50 lines
1.5 KiB
C
/***********************************************************************
|
|
|
|
Copyright 2006-2007 Ma Bingyao
|
|
|
|
These sources is free software. Redistributions of source code must
|
|
retain the above copyright notice. Redistributions in binary form
|
|
must reproduce the above copyright notice. You can redistribute it
|
|
freely. You can use it with any free or commercial software.
|
|
|
|
These sources is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY. Without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
You may contact the author by:
|
|
e-mail: andot@coolcode.cn
|
|
|
|
*************************************************************************/
|
|
|
|
#ifndef PHP_XXTEA_H
|
|
#define PHP_XXTEA_H
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#if HAVE_XXTEA
|
|
extern zend_module_entry xxtea_module_entry;
|
|
#define phpext_xxtea_ptr &xxtea_module_entry
|
|
|
|
#define XXTEA_MODULE_NAME "xxtea"
|
|
#define XXTEA_BUILD_DATE __DATE__ " " __TIME__
|
|
#define XXTEA_VERSION "1.0.3"
|
|
#define XXTEA_AUTHOR "Ma Bingyao"
|
|
#define XXTEA_HOMEPAGE "http://www.coolcode.cn/?p=209"
|
|
|
|
ZEND_MINIT_FUNCTION(xxtea);
|
|
ZEND_MSHUTDOWN_FUNCTION(xxtea);
|
|
ZEND_MINFO_FUNCTION(xxtea);
|
|
|
|
/* declaration of functions to be exported */
|
|
ZEND_FUNCTION(xxtea_encrypt);
|
|
ZEND_FUNCTION(xxtea_decrypt);
|
|
ZEND_FUNCTION(xxtea_info);
|
|
|
|
#else /* if HAVE_XXTEA */
|
|
#define phpext_xxtea_ptr NULL
|
|
#endif
|
|
|
|
#endif /* ifndef PHP_XXTEA_H */
|