summaryrefslogtreecommitdiff
path: root/src/redismodule.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-10-22 13:26:29 +0200
committerantirez <antirez@gmail.com>2019-10-23 18:39:53 +0200
commitcf52e0ad446638fd4ae64e035c52001a98b1e415 (patch)
treed3cc39380c2126ccf78af5321ce2e5760b1635c6 /src/redismodule.h
parent94c50314f18eeb987c458091dd60843d95308426 (diff)
downloadredis-cf52e0ad446638fd4ae64e035c52001a98b1e415.tar.gz
Module hooks: fixes and an example module.
Diffstat (limited to 'src/redismodule.h')
-rw-r--r--src/redismodule.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/redismodule.h b/src/redismodule.h
index 02cfa9586..9f7cc7e72 100644
--- a/src/redismodule.h
+++ b/src/redismodule.h
@@ -178,7 +178,7 @@ typedef struct RedisModuleEvent {
} RedisModuleEvent;
struct RedisModuleCtx;
-typedef int (*RedisModuleEventCallback)(struct RedisModuleCtx *ctx, RedisModuleEvent eid, uint64_t subevent, void *data);
+typedef void (*RedisModuleEventCallback)(struct RedisModuleCtx *ctx, RedisModuleEvent eid, uint64_t subevent, void *data);
static RedisModuleEvent
RedisModuleEvent_ReplicationRoleChanged = {
@@ -299,6 +299,7 @@ typedef struct RedisModuleTypeMethods {
typedef struct RedisModuleClientInfo {
uint64_t version; /* Version of this structure for ABI compat. */
uint64_t flags; /* REDISMODULE_CLIENTINFO_FLAG_* */
+ uint64_t id; /* Client ID. */
char addr[46]; /* IPv4 or IPv6 address. */
uint16_t port; /* TCP port. */
uint16_t db; /* Selected DB. */