diff options
Diffstat (limited to 'ext/json/php_json.h')
-rw-r--r-- | ext/json/php_json.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/ext/json/php_json.h b/ext/json/php_json.h new file mode 100644 index 0000000000..b9f6321ca3 --- /dev/null +++ b/ext/json/php_json.h @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2005 Omar Kilani <omar@rmilk.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public (LGPL) + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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. See the GNU + * Lesser General Public License for more details: http://www.gnu.org/ + * + */ + +/* $Id$ */ + +#ifndef PHP_JSON_H +#define PHP_JSON_H + +#define PHP_JSON_VERSION "1.1.0" + +extern zend_module_entry json_module_entry; +#define phpext_json_ptr &json_module_entry + +#ifdef PHP_WIN32 +#define PHP_JSON_API __declspec(dllexport) +#else +#define PHP_JSON_API +#endif + +#ifdef ZTS +#include "TSRM.h" +#endif + +PHP_MINIT_FUNCTION(json); +PHP_MSHUTDOWN_FUNCTION(json); +PHP_RINIT_FUNCTION(json); +PHP_RSHUTDOWN_FUNCTION(json); +PHP_MINFO_FUNCTION(json); + +PHP_FUNCTION(json_encode); +PHP_FUNCTION(json_decode); + +#ifdef ZTS +#define JSON_G(v) TSRMG(json_globals_id, zend_json_globals *, v) +#else +#define JSON_G(v) (json_globals.v) +#endif + +#endif /* PHP_JSON_H */ + + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */ |