summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorViktor Söderqvist <viktor.soderqvist@est.tech>2022-06-26 13:34:59 +0200
committerGitHub <noreply@github.com>2022-06-26 14:34:59 +0300
commit6272ca609e67d1f35dda50a82027d7401892e383 (patch)
treef584684b145807e3c5f0da6f0f3293e2b65ee461 /src/server.h
parentd96cf3639a371574c212d87c70e5a80214fc721f (diff)
downloadredis-6272ca609e67d1f35dda50a82027d7401892e383.tar.gz
Add RM_SetClientNameById and RM_GetClientNameById (#10839)
Adding Module APIs to let the module read and set the client name of an arbitrary connection.
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h
index abaa5f046..6beae765b 100644
--- a/src/server.h
+++ b/src/server.h
@@ -2498,6 +2498,7 @@ char *getClientPeerId(client *client);
char *getClientSockName(client *client);
sds catClientInfoString(sds s, client *client);
sds getAllClientsInfoString(int type);
+int clientSetName(client *c, robj *name);
void rewriteClientCommandVector(client *c, int argc, ...);
void rewriteClientCommandArgument(client *c, int i, robj *newval);
void replaceClientCommandVector(client *c, int argc, robj **argv);