diff options
author | Florian Dold <florian.dold@gmail.com> | 2013-05-22 10:29:15 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2013-05-22 10:29:15 +0000 |
commit | 4289fca5aeefd0652ae60bc16f90ed911c7e1c60 (patch) | |
tree | da266c48ada44f11ce88a38833960b0eb08c1c5d /src/include/gnunet_stream_lib.h | |
parent | 3418f171c455980c99ac6363a74116243bddede6 (diff) | |
download | gnunet-4289fca5aeefd0652ae60bc16f90ed911c7e1c60.tar.gz gnunet-4289fca5aeefd0652ae60bc16f90ed911c7e1c60.zip |
- moved MQ to util
- MQ support for stream
- set api
- starting to use set for consensus
Diffstat (limited to 'src/include/gnunet_stream_lib.h')
-rw-r--r-- | src/include/gnunet_stream_lib.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/gnunet_stream_lib.h b/src/include/gnunet_stream_lib.h index 056695ba3..ece60c033 100644 --- a/src/include/gnunet_stream_lib.h +++ b/src/include/gnunet_stream_lib.h | |||
@@ -395,6 +395,21 @@ void | |||
395 | GNUNET_STREAM_read_cancel (struct GNUNET_STREAM_ReadHandle *rh); | 395 | GNUNET_STREAM_read_cancel (struct GNUNET_STREAM_ReadHandle *rh); |
396 | 396 | ||
397 | 397 | ||
398 | /** | ||
399 | * Create a message queue for a stream socket. | ||
400 | * | ||
401 | * @param socket the socket to read/write in the message queue | ||
402 | * @param msg_handlers message handler array | ||
403 | * @param error_handler callback for errors | ||
404 | * @return the message queue for the socket | ||
405 | */ | ||
406 | struct GNUNET_MQ_MessageQueue * | ||
407 | GNUNET_STREAM_mq_create (struct GNUNET_STREAM_Socket *socket, | ||
408 | const struct GNUNET_MQ_Handler *msg_handlers, | ||
409 | GNUNET_MQ_ErrorHandler error_handler, | ||
410 | void *cls); | ||
411 | |||
412 | |||
398 | #if 0 | 413 | #if 0 |
399 | { | 414 | { |
400 | #endif | 415 | #endif |