diff options
author | antirez <antirez@gmail.com> | 2019-10-22 13:26:29 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2019-10-23 18:39:53 +0200 |
commit | cf52e0ad446638fd4ae64e035c52001a98b1e415 (patch) | |
tree | d3cc39380c2126ccf78af5321ce2e5760b1635c6 /src/redismodule.h | |
parent | 94c50314f18eeb987c458091dd60843d95308426 (diff) | |
download | redis-cf52e0ad446638fd4ae64e035c52001a98b1e415.tar.gz |
Module hooks: fixes and an example module.
Diffstat (limited to 'src/redismodule.h')
-rw-r--r-- | src/redismodule.h | 3 |
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. */ |