X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-json_post;a=blobdiff_plain;f=php_json_post.h;fp=php_json_post.h;h=e797385b6cca2b5dd6d1d10e247a21c1ef175742;hp=0000000000000000000000000000000000000000;hb=3964b8f0cd83ef3ba5de9d0b2e5e395f95404a8c;hpb=5c72938056611ccba2a36bc2332e21c69855ae96 diff --git a/php_json_post.h b/php_json_post.h new file mode 100644 index 0000000..e797385 --- /dev/null +++ b/php_json_post.h @@ -0,0 +1,54 @@ +/* + +--------------------------------------------------------------------+ + | PECL :: json_post | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted provided that the conditions mentioned | + | in the accompanying LICENSE file are met. | + +--------------------------------------------------------------------+ + | Copyright (c) 2015, Michael Wallner | + +--------------------------------------------------------------------+ +*/ + +#ifndef PHP_JSON_POST_H +#define PHP_JSON_POST_H + +extern zend_module_entry json_post_module_entry; +#define phpext_json_post_ptr &json_post_module_entry + +#define PHP_JSON_POST_VERSION "1.0.0" + +#ifdef PHP_WIN32 +# define PHP_JSON_POST_API __declspec(dllexport) +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_JSON_POST_API extern __attribute__ ((visibility("default"))) +#else +# define PHP_JSON_POST_API extern +#endif + +#ifdef ZTS +# include "TSRM.h" +#endif + +ZEND_BEGIN_MODULE_GLOBALS(json_post) + long flags; +ZEND_END_MODULE_GLOBALS(json_post) + +ZEND_EXTERN_MODULE_GLOBALS(json_post); + +#ifdef ZTS +# define JSON_POST_G(v) TSRMG(json_post_globals_id, zend_json_post_globals *, v) +#else +# define JSON_POST_G(v) (json_post_globals.v) +#endif + +#endif /* PHP_JSON_POST_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 + */