summaryrefslogtreecommitdiff
path: root/server/dispatcher.h
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-11-07 13:27:54 +0200
committerAlon Levy <alevy@redhat.com>2011-11-08 14:59:51 +0200
commitfff04e867c02eb5c3582f17810c1a092ce240fc6 (patch)
tree2a3e8037e6505472037690222d1f072fcbc788ce /server/dispatcher.h
parent776bdd6c95715dcd8e609dc3ff647d0ad73fd339 (diff)
introduce DISPATCHER_{NONE,ACK,ASYNC}
Diffstat (limited to 'server/dispatcher.h')
-rw-r--r--server/dispatcher.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/server/dispatcher.h b/server/dispatcher.h
index 04e6b46..95b6bfc 100644
--- a/server/dispatcher.h
+++ b/server/dispatcher.h
@@ -45,13 +45,22 @@ void dispatcher_send_message(Dispatcher *dispatcher, uint32_t message_type,
void dispatcher_init(Dispatcher *dispatcher, size_t max_message_type,
void *opaque);
+enum {
+ DISPATCHER_NONE = 0,
+ DISPATCHER_ACK,
+ DISPATCHER_ASYNC
+};
+
/*
* dispatcher_register_handler
- * @dispatcher: dispatcher
+ * @dispatcher: dispatcher
* @messsage_type: message type
* @handler: message handler
* @size: message size. Each type has a fixed associated size.
- * @ack: send an ack. This is per message type - you can't send the
+ * @ack: One of DISPATCHER_NONE, DISPATCHER_ACK, DISPATCHER_ASYNC.
+ * DISPATCHER_NONE - only send the message
+ * DISPATCHER_ACK - send an ack after the message
+ * DISPATCHER_ASYNC - call send an ack. This is per message type - you can't send the
* same message type with and without. Register two different
* messages if that is what you want.
*/