diff options
author | michael-grunder <michael.grunder@gmail.com> | 2015-10-01 07:39:01 +0300 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2015-10-01 07:39:01 +0300 |
commit | edd777a6b4202580975447abfc95870572795e36 (patch) | |
tree | f1177234dbfdabb0795c34c550fd823fff2b3b25 /library.h | |
parent | 05e38d590143d044f18c63c5a581c645abd9d4b1 (diff) |
Initial support for geo commands
This commit adds initial support for the new GEO commands.
Presently the more complicated GEORADIUS[BYMEMBER] command
doesn't do much post-processing of the response, but will
probably be modified in the future to return it in a more
php friendly way.
Diffstat (limited to 'library.h')
-rw-r--r-- | library.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,6 +1,12 @@ #ifndef REDIS_LIBRARY_H #define REDIS_LIBRARY_H +#define REDIS_CMD_APPEND_SSTR_STATIC(sstr, str) \ + redis_cmd_append_sstr(sstr, str, sizeof(str)-1); + +#define REDIS_CMD_INIT_SSTR_STATIC(sstr, argc, keyword) \ + redis_cmd_init_sstr(sstr, argc, keyword, sizeof(keyword)-1); + void add_constant_long(zend_class_entry *ce, char *name, int value); int integer_length(int i); int redis_cmd_format(char **ret, char *format, ...); |