diff options
author | Maximilian Szengel <gnunet@maxsz.de> | 2012-02-29 08:59:39 +0000 |
---|---|---|
committer | Maximilian Szengel <gnunet@maxsz.de> | 2012-02-29 08:59:39 +0000 |
commit | d8b052b2dd8e0242239b14bdd06854bff21cb3d0 (patch) | |
tree | 2e9c740f97f6f81c5cc7794d495e0fa6c188c0e3 /src/include/gnunet_arm_service.h | |
parent | fe1e67e9cab9d7bad0211c654ec90f1ef15b7c97 (diff) | |
download | gnunet-d8b052b2dd8e0242239b14bdd06854bff21cb3d0.tar.gz gnunet-d8b052b2dd8e0242239b14bdd06854bff21cb3d0.zip |
Adding arm list/info feature.
Diffstat (limited to 'src/include/gnunet_arm_service.h')
-rw-r--r-- | src/include/gnunet_arm_service.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/gnunet_arm_service.h b/src/include/gnunet_arm_service.h index af1c8cd94..42d42a0cd 100644 --- a/src/include/gnunet_arm_service.h +++ b/src/include/gnunet_arm_service.h | |||
@@ -111,6 +111,19 @@ enum GNUNET_ARM_ProcessStatus | |||
111 | typedef void (*GNUNET_ARM_Callback) (void *cls, | 111 | typedef void (*GNUNET_ARM_Callback) (void *cls, |
112 | enum GNUNET_ARM_ProcessStatus result); | 112 | enum GNUNET_ARM_ProcessStatus result); |
113 | 113 | ||
114 | /** | ||
115 | * Callback function invoked when list operation is complete. | ||
116 | * | ||
117 | * @param cls closure | ||
118 | * @param result outcome of the operation (GNUNET_YES if successful) | ||
119 | * @param count number of strings in the list | ||
120 | * @param list list of running services | ||
121 | */ | ||
122 | typedef void (*GNUNET_ARM_List_Callback) (void *cls, | ||
123 | int result, | ||
124 | uint16_t count, | ||
125 | const char **list); | ||
126 | |||
114 | 127 | ||
115 | /** | 128 | /** |
116 | * Handle for interacting with ARM. | 129 | * Handle for interacting with ARM. |
@@ -183,6 +196,18 @@ GNUNET_ARM_stop_service (struct GNUNET_ARM_Handle *h, const char *service_name, | |||
183 | GNUNET_ARM_Callback cb, void *cb_cls); | 196 | GNUNET_ARM_Callback cb, void *cb_cls); |
184 | 197 | ||
185 | 198 | ||
199 | /** | ||
200 | * List all running services. | ||
201 | * | ||
202 | * @param h handle to ARM | ||
203 | * @param timeout how long to wait before failing for good | ||
204 | * @param cb callback to invoke when service is ready | ||
205 | * @param cb_cls closure for callback | ||
206 | */ | ||
207 | void | ||
208 | GNUNET_ARM_list_running_services (struct GNUNET_ARM_Handle *h, | ||
209 | struct GNUNET_TIME_Relative timeout, | ||
210 | GNUNET_ARM_List_Callback cb, void *cb_cls); | ||
186 | 211 | ||
187 | #if 0 /* keep Emacsens' auto-indent happy */ | 212 | #if 0 /* keep Emacsens' auto-indent happy */ |
188 | { | 213 | { |