aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-08-11 12:46:05 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-08-11 12:46:05 +0000
commit526fd6adbac1b3ef92edf457e035d6388921fd26 (patch)
tree901c213ad31ae8eb560b70810b7965b637ec0019 /src/testbed/testbed_api.h
parent74e48d9e8b28918255d1fc113809d854ed7020e6 (diff)
downloadgnunet-526fd6adbac1b3ef92edf457e035d6388921fd26.tar.gz
gnunet-526fd6adbac1b3ef92edf457e035d6388921fd26.zip
api forward operation message
Diffstat (limited to 'src/testbed/testbed_api.h')
-rw-r--r--src/testbed/testbed_api.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/testbed/testbed_api.h b/src/testbed/testbed_api.h
index c5520a8c1..d12d9aa96 100644
--- a/src/testbed/testbed_api.h
+++ b/src/testbed/testbed_api.h
@@ -63,6 +63,11 @@ enum OperationType
63 */ 63 */
64 OP_OVERLAY_CONNECT, 64 OP_OVERLAY_CONNECT,
65 65
66 /**
67 * Forwarded operation
68 */
69 OP_FORWARDED
70
66 }; 71 };
67 72
68 73
@@ -349,4 +354,25 @@ GNUNET_TESTBED_create_helper_init_msg_ (const char *cname,
349 GNUNET_CONFIGURATION_Handle *cfg); 354 GNUNET_CONFIGURATION_Handle *cfg);
350 355
351 356
357/**
358 * Sends the given message as an operation. The given callback is called when a
359 * reply for the operation is available
360 *
361 * @param controller the controller to which the message has to be sent
362 * @param operation_id the operation id of the message
363 * @param msg the message to send
364 * @param cc the callback to call when reply is available
365 * @param cc_cls the closure for the above callback
366 * @return the operation context which can be used to cancel the forwarded
367 * operation
368 */
369struct OperationContext *
370GNUNET_TESTBED_forward_operation_msg_ (struct GNUNET_TESTBED_Controller
371 * controller,
372 uint64_t operation_id,
373 const struct GNUNET_MessageHeader *msg,
374 GNUNET_CLIENT_MessageHandler cc,
375 void *cc_cls);
376
352#endif 377#endif
378/* end of testbed_api.h */