[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r3671 - GNUnet/src/util/error
From: |
durner |
Subject: |
[GNUnet-SVN] r3671 - GNUnet/src/util/error |
Date: |
Wed, 8 Nov 2006 11:27:09 -0800 (PST) |
Author: durner
Date: 2006-11-08 11:27:06 -0800 (Wed, 08 Nov 2006)
New Revision: 3671
Modified:
GNUnet/src/util/error/error.c
Log:
support GE_CONFIRM for multiplexers
Modified: GNUnet/src/util/error/error.c
===================================================================
--- GNUnet/src/util/error/error.c 2006-11-08 19:17:34 UTC (rev 3670)
+++ GNUnet/src/util/error/error.c 2006-11-08 19:27:06 UTC (rev 3671)
@@ -277,6 +277,16 @@
pair->c2->handler(pair->c1->cls, kind, date, msg);
}
+static void multi_confirm(void * ctx) {
+ CPair * pair = ctx;
+
+ if (pair->c1->confirm)
+ pair->c1->confirm(pair->c1->cls);
+
+ if (pair->c2->confirm)
+ pair->c2->confirm(pair->c2->cls);
+}
+
static void pairdestruct(void * ctx) {
CPair * pair = ctx;
@@ -310,6 +320,7 @@
ret->handler = &multiplexer;
ret->mask = ctx1->mask | ctx2->mask;
ret->destruct = &pairdestruct;
+ ret->confirm = &multi_confirm;
return ret;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r3671 - GNUnet/src/util/error,
durner <=