summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorOran Agra <oran@redislabs.com>2019-11-03 15:02:25 +0200
committerOran Agra <oran@redislabs.com>2019-11-03 15:02:25 +0200
commit4d580438b0ce8b3e02213a01f892a34f36cde144 (patch)
treed72a3172eb7dbc32c650e0827b26a69e01554220 /src/util.h
parentfdaea2a7a7eed1499f46bb98552f8d8bb8dc7e9d (diff)
downloadredis-4d580438b0ce8b3e02213a01f892a34f36cde144.tar.gz
Add module api for looking into INFO fields
- Add RM_GetServerInfo and friends - Add auto memory for new opaque struct - Add tests for new APIs other minor fixes: - add const in various char pointers - requested_section in modulesCollectInfo was actually not sds but char* - extract new string2d out of getDoubleFromObject for code reuse Add module API for
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index b6c01aa59..ab1d71f6c 100644
--- a/src/util.h
+++ b/src/util.h
@@ -48,6 +48,7 @@ int ll2string(char *s, size_t len, long long value);
int string2ll(const char *s, size_t slen, long long *value);
int string2l(const char *s, size_t slen, long *value);
int string2ld(const char *s, size_t slen, long double *dp);
+int string2d(const char *s, size_t slen, double *dp);
int d2string(char *buf, size_t len, double value);
int ld2string(char *buf, size_t len, long double value, int humanfriendly);
sds getAbsolutePath(char *filename);