summaryrefslogtreecommitdiff
path: root/async_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'async_private.h')
-rw-r--r--async_private.h24
1 files changed, 12 insertions, 12 deletions
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 */