From bb3475e8eb379ee18f3d8f37caa8040b852a6213 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sat, 23 Mar 2024 01:21:46 +0100 Subject: all: rename redis -> redict symbols and comments Signed-off-by: Anna (navi) Figueiredo Gomes --- async_private.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'async_private.h') diff --git a/async_private.h b/async_private.h index 855ae96..c5a7e21 100644 --- a/async_private.h +++ b/async_private.h @@ -11,8 +11,8 @@ * */ -#ifndef __HIREDIS_ASYNC_PRIVATE_H -#define __HIREDIS_ASYNC_PRIVATE_H +#ifndef __HIREDICT_ASYNC_PRIVATE_H +#define __HIREDICT_ASYNC_PRIVATE_H #define _EL_ADD_READ(ctx) \ do { \ @@ -35,23 +35,23 @@ ctx->ev.cleanup = NULL; \ } while(0) -static inline void refreshTimeout(redisAsyncContext *ctx) { - #define REDIS_TIMER_ISSET(tvp) \ +static inline void refreshTimeout(redictAsyncContext *ctx) { + #define REDICT_TIMER_ISSET(tvp) \ (tvp && ((tvp)->tv_sec || (tvp)->tv_usec)) - #define REDIS_EL_TIMER(ac, tvp) \ - if ((ac)->ev.scheduleTimer && REDIS_TIMER_ISSET(tvp)) { \ + #define REDICT_EL_TIMER(ac, tvp) \ + if ((ac)->ev.scheduleTimer && REDICT_TIMER_ISSET(tvp)) { \ (ac)->ev.scheduleTimer((ac)->ev.data, *(tvp)); \ } - if (ctx->c.flags & REDIS_CONNECTED) { - REDIS_EL_TIMER(ctx, ctx->c.command_timeout); + if (ctx->c.flags & REDICT_CONNECTED) { + REDICT_EL_TIMER(ctx, ctx->c.command_timeout); } else { - REDIS_EL_TIMER(ctx, ctx->c.connect_timeout); + REDICT_EL_TIMER(ctx, ctx->c.connect_timeout); } } -void __redisAsyncDisconnect(redisAsyncContext *ac); -void redisProcessCallbacks(redisAsyncContext *ac); +void __redictAsyncDisconnect(redictAsyncContext *ac); +void redictProcessCallbacks(redictAsyncContext *ac); -#endif /* __HIREDIS_ASYNC_PRIVATE_H */ +#endif /* __HIREDICT_ASYNC_PRIVATE_H */ -- cgit v1.2.3