diff options
author | Nicolas Favre-Felix <n.favre-felix@owlient.eu> | 2009-11-30 18:18:20 +0300 |
---|---|---|
committer | Nicolas Favre-Felix <n.favre-felix@owlient.eu> | 2009-11-30 18:18:20 +0300 |
commit | afa81c1fed7c2813e3c9f35cd82578f35bfd8653 (patch) | |
tree | 3ecdd49c6df524a64d8b9ab1c3c8b4f01369edd9 /php_redis.h | |
parent | 76f8c17ba83e0e242b4bd03402e7f2e2a9231694 (diff) |
Added fancy return values for type().
Diffstat (limited to 'php_redis.h')
-rwxr-xr-x | php_redis.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/php_redis.h b/php_redis.h index 017a25e5..af1e6043 100755 --- a/php_redis.h +++ b/php_redis.h @@ -117,7 +117,17 @@ typedef struct RedisSock_ { #define REDIS_SOCK_STATUS_UNKNOWN 2 #define REDIS_SOCK_STATUS_CONNECTED 3 +/* properties */ +#define REDIS_NOT_FOUND 0 +#define REDIS_STRING 1 +#define REDIS_SET 2 +#define REDIS_LIST 3 + + /* {{{ internal function protos */ +void +add_constant_long(zend_class_entry *ce, char *name, int value); + 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); |