diff options
author | Nasreddine Bouafif <n.bouafif@owlient.eu> | 2010-02-15 16:29:55 +0300 |
---|---|---|
committer | Nasreddine Bouafif <n.bouafif@owlient.eu> | 2010-02-15 16:29:55 +0300 |
commit | a72e8e3eb8103ff7380746ad9d772d73041265cc (patch) | |
tree | 5018f2fcbefd349fdc8ffbacc140b6705f0b836b /php_redis.h | |
parent | 57c2a84a4cd979f0a27e82cfd3423715de47e649 (diff) | |
parent | 0346e2e78a2d1e0abf541e6fb295b3f379d32c36 (diff) |
Merge branch 'master' of git@github.com:owlient/phpredis
Diffstat (limited to 'php_redis.h')
-rwxr-xr-x | php_redis.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/php_redis.h b/php_redis.h index 7c67c3f4..70fb9971 100755 --- a/php_redis.h +++ b/php_redis.h @@ -12,15 +12,15 @@ | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Author: Alfonso Jimenez <yo@alfonsojimenez.com> | + | Original author: Alfonso Jimenez <yo@alfonsojimenez.com> | + | Maintainer: Nicolas Favre-Felix <n.favre-felix@owlient.eu> | + | Maintainer: Nasreddine Bouafif <n.bouafif@owlient.eu> | +----------------------------------------------------------------------+ */ #ifndef PHP_REDIS_H #define PHP_REDIS_H -extern zend_module_entry redis_module_entry; - PHP_METHOD(Redis, __construct); PHP_METHOD(Redis, connect); PHP_METHOD(Redis, close); @@ -132,9 +132,9 @@ typedef struct RedisSock_ { /* {{{ internal function protos */ -void -add_constant_long(zend_class_entry *ce, char *name, int value); +void add_constant_long(zend_class_entry *ce, char *name, int value); +PHPAPI void redis_check_eof(RedisSock *redis_sock TSRMLS_DC); PHPAPI RedisSock* redis_sock_create(char *host, int host_len, unsigned short port, long timeout); PHPAPI int redis_sock_connect(RedisSock *redis_sock TSRMLS_DC); PHPAPI int redis_sock_disconnect(RedisSock *redis_sock TSRMLS_DC); @@ -156,17 +156,20 @@ PHPAPI void generic_sort_cmd(INTERNAL_FUNCTION_PARAMETERS, char *sort, int use_a PHPAPI void generic_empty_cmd(INTERNAL_FUNCTION_PARAMETERS, char *cmd, int cmd_len TSRMLS_DC); PHPAPI void generic_empty_long_cmd(INTERNAL_FUNCTION_PARAMETERS, char *cmd, int cmd_len TSRMLS_DC); - - /* }}} */ +ZEND_BEGIN_MODULE_GLOBALS(redis) +ZEND_END_MODULE_GLOBALS(redis) + + /* #ifdef ZTS #define REDIS_G(v) TSRMG(redis_globals_id, zend_redis_globals *, v) #else #define REDIS_G(v) (redis_globals.v) #endif +*/ -#define PHP_REDIS_VERSION "0.1.0" +#define PHP_REDIS_VERSION "0.1" #endif |