Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2015-10-01 07:39:01 +0300
committermichael-grunder <michael.grunder@gmail.com>2015-10-01 07:39:01 +0300
commitedd777a6b4202580975447abfc95870572795e36 (patch)
treef1177234dbfdabb0795c34c550fd823fff2b3b25 /library.h
parent05e38d590143d044f18c63c5a581c645abd9d4b1 (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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/library.h b/library.h
index 0d79f785..b868ca33 100644
--- a/library.h
+++ b/library.h
@@ -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, ...);