summaryrefslogtreecommitdiffstats
path: root/server/reds.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/reds.h')
-rw-r--r--server/reds.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/reds.h b/server/reds.h
index 547c33cb..b974edad 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -28,7 +28,7 @@
#define __visible__ __attribute__ ((visibility ("default")))
-typedef struct RedsStreamContext {
+typedef struct RedsStream {
void *ctx;
int socket;
@@ -45,8 +45,8 @@ typedef struct RedsStreamContext {
int (*cb_read)(void *, void *, int);
int (*cb_writev)(void *, const struct iovec *vector, int count);
- int (*cb_free)(struct RedsStreamContext *);
-} RedsStreamContext;
+ int (*cb_free)(struct RedsStream *);
+} RedsStream;
typedef struct Channel {
struct Channel *next;
@@ -56,7 +56,7 @@ typedef struct Channel {
uint32_t *common_caps;
int num_caps;
uint32_t *caps;
- void (*link)(struct Channel *, RedsStreamContext *peer, int migration, int num_common_caps,
+ void (*link)(struct Channel *, RedsStream *peer, int migration, int num_common_caps,
uint32_t *common_caps, int num_caps, uint32_t *caps);
void (*shutdown)(struct Channel *);
void (*migrate)(struct Channel *);