aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testbed_logger_service.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-05-08 15:03:32 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-05-08 15:03:32 +0000
commit07ec41e414c2e47df842b83acc481c257ce4de15 (patch)
treeec542749bcde8b20426b98ae5c2428f6c158b271 /src/include/gnunet_testbed_logger_service.h
parentd572acdffc00a8e70912558d99af608a00dc8cdd (diff)
downloadgnunet-07ec41e414c2e47df842b83acc481c257ce4de15.tar.gz
gnunet-07ec41e414c2e47df842b83acc481c257ce4de15.zip
- have a timeout for cases where flushing takes too long
Diffstat (limited to 'src/include/gnunet_testbed_logger_service.h')
-rw-r--r--src/include/gnunet_testbed_logger_service.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/gnunet_testbed_logger_service.h b/src/include/gnunet_testbed_logger_service.h
index 7359727b2..95783ea37 100644
--- a/src/include/gnunet_testbed_logger_service.h
+++ b/src/include/gnunet_testbed_logger_service.h
@@ -91,17 +91,21 @@ GNUNET_TESTBED_LOGGER_write (struct GNUNET_TESTBED_LOGGER_Handle *h,
91 * Flush the buffered data to the logger service 91 * Flush the buffered data to the logger service
92 * 92 *
93 * @param h the logger handle 93 * @param h the logger handle
94 * @param timeout how long to wait before calling the flust completion callback
94 * @param cb the callback to call after the data is flushed 95 * @param cb the callback to call after the data is flushed
95 * @param cb_cls the closure for the above callback 96 * @param cb_cls the closure for the above callback
96 */ 97 */
97void 98void
98GNUNET_TESTBED_LOGGER_flush (struct GNUNET_TESTBED_LOGGER_Handle *h, 99GNUNET_TESTBED_LOGGER_flush (struct GNUNET_TESTBED_LOGGER_Handle *h,
100 struct GNUNET_TIME_Relative timeout,
99 GNUNET_TESTBED_LOGGER_FlushCompletion cb, 101 GNUNET_TESTBED_LOGGER_FlushCompletion cb,
100 void *cb_cls); 102 void *cb_cls);
101 103
102 104
103/** 105/**
104 * Cancel notification upon flush. 106 * Cancel notification upon flush. Should only be used when the flush
107 * completion callback given to GNUNET_TESTBED_LOGGER_flush() is not already
108 * called.
105 * 109 *
106 * @param h the logger handle 110 * @param h the logger handle
107 */ 111 */