summaryrefslogtreecommitdiff
path: root/async.h
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-01 09:52:17 +0100
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-01 09:52:17 +0100
commit437eea80fce125b800142bd00ab701000f78e57e (patch)
tree5102793d6b95cfa4b0f13db9537a320f1169ebf8 /async.h
parent4e3bd7893d4e59ca23b629cc9084e9c61d5edf25 (diff)
Make error ptr accessible from async context
Diffstat (limited to 'async.h')
-rw-r--r--async.h3
1 files changed, 3 insertions, 0 deletions
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);