diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-06-13 16:30:48 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-06-13 16:30:48 +0000 |
commit | a8c5598ba43fcd61a5a340f14a3bab1613adbe7c (patch) | |
tree | 1af703dc3561f4d17ab919c666d22fd94ff3d5b9 /src/testbed/testbed_api_hosts.h | |
parent | b658d1469d6bdaf5930867151130903d221fae37 (diff) | |
download | gnunet-a8c5598ba43fcd61a5a340f14a3bab1613adbe7c.tar.gz gnunet-a8c5598ba43fcd61a5a340f14a3bab1613adbe7c.zip |
-Helper handle wrapper
Diffstat (limited to 'src/testbed/testbed_api_hosts.h')
-rw-r--r-- | src/testbed/testbed_api_hosts.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/testbed/testbed_api_hosts.h b/src/testbed/testbed_api_hosts.h index 835866653..0c36da0ee 100644 --- a/src/testbed/testbed_api_hosts.h +++ b/src/testbed/testbed_api_hosts.h | |||
@@ -85,6 +85,12 @@ GNUNET_TESTBED_host_get_id_ (const struct GNUNET_TESTBED_Host *host); | |||
85 | 85 | ||
86 | 86 | ||
87 | /** | 87 | /** |
88 | * Opaque wrapper around GNUNET_HELPER_Handle | ||
89 | */ | ||
90 | struct GNUNET_TESTBED_HelperHandle; | ||
91 | |||
92 | |||
93 | /** | ||
88 | * Run a given helper process at the given host. Communication | 94 | * Run a given helper process at the given host. Communication |
89 | * with the helper will be via GNUnet messages on stdin/stdout. | 95 | * with the helper will be via GNUnet messages on stdin/stdout. |
90 | * Runs the process via 'ssh' at the specified host, or locally. | 96 | * Runs the process via 'ssh' at the specified host, or locally. |
@@ -96,10 +102,19 @@ GNUNET_TESTBED_host_get_id_ (const struct GNUNET_TESTBED_Host *host); | |||
96 | * @param cb_cls closure for cb | 102 | * @param cb_cls closure for cb |
97 | * @return handle to terminate the command, NULL on error | 103 | * @return handle to terminate the command, NULL on error |
98 | */ | 104 | */ |
99 | struct GNUNET_HELPER_Handle * | 105 | struct GNUNET_TESTBED_HelperHandle * |
100 | GNUNET_TESTBED_host_run_ (struct GNUNET_TESTBED_Host *host, | 106 | GNUNET_TESTBED_host_run_ (struct GNUNET_TESTBED_Host *host, |
101 | char *const binary_argv[], | 107 | char *const binary_argv[], |
102 | GNUNET_SERVER_MessageTokenizerCallback cb, void *cb_cls); | 108 | GNUNET_SERVER_MessageTokenizerCallback cb, void *cb_cls); |
103 | 109 | ||
110 | |||
111 | /** | ||
112 | * Stops a helper in the HelperHandle using GNUNET_HELPER_stop | ||
113 | * | ||
114 | * @param handle the handle returned from GNUNET_TESTBED_host_start_ | ||
115 | */ | ||
116 | void | ||
117 | GNUNET_TESTBED_host_stop_ (struct GNUNET_TESTBED_HelperHandle *handle); | ||
118 | |||
104 | #endif | 119 | #endif |
105 | /* end of testbed_api_hosts.h */ | 120 | /* end of testbed_api_hosts.h */ |