From 437eea80fce125b800142bd00ab701000f78e57e Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Mon, 1 Nov 2010 09:52:17 +0100 Subject: Make error ptr accessible from async context --- async.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'async.h') diff --git a/async.h b/async.h index 1678240..3f29c10 100644 --- a/async.h +++ b/async.h @@ -54,6 +54,9 @@ typedef struct redisAsyncContext { /* Hold the regular context, so it can be realloc'ed. */ redisContext c; + /* Hold a reference to the error object so it can be used directly. */ + char *error; + /* Called when the library expects to start reading/writing. * The supplied functions should be idempotent. */ void (*evAddRead)(void *privdata); -- cgit v1.2.3