helper exception callback lesser parameters
authorSree Harsha Totakura <totakura@in.tum.de>
Tue, 17 Jul 2012 19:09:02 +0000 (19:09 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Tue, 17 Jul 2012 19:09:02 +0000 (19:09 +0000)
src/include/gnunet_helper_lib.h
src/testbed/test_testbed_api_hosts.c
src/testbed/testbed_api.c
src/testbed/testbed_api_hosts.c
src/util/helper.c

index 2756cdf4edf9946624e6af1cb0eadc292058f62d..12a4d3fe18dd14cd2cf16ae84cd87a6647f79a86 100644 (file)
@@ -42,12 +42,8 @@ struct GNUNET_HELPER_Handle;
  * when the helper process is stoped using GNUNET_HELPER_stop()
  *
  * @param cls the closure from GNUNET_HELPER_start()
- * @param h the handle representing the helper process. This handle is invalid
- *          in this callback. It is only presented for reference. No operations
- *          can be performed using it.
  */
-typedef void (*GNUNET_HELPER_ExceptionCallback) (void *cls,
-                                                const struct GNUNET_HELPER_Handle *h);
+typedef void (*GNUNET_HELPER_ExceptionCallback) (void *cls);
 
 
 /**
index add3a1e0259e7a0b53fb64d43f14f9127112def0..54e2461c7eb642fd7a8dc7ea7d93bbbac4590788 100644 (file)
@@ -72,12 +72,9 @@ do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
  * when the helper process is stoped using GNUNET_HELPER_stop()
  *
  * @param cls the closure from GNUNET_HELPER_start()
- * @param h the handle representing the helper process. This handle is invalid
- *          in this callback. It is only presented for reference. No operations
- *          can be performed using it.
  */
 static void 
-exp_cb (void *cls, const struct GNUNET_HELPER_Handle *h)
+exp_cb (void *cls)
 {
   status = GNUNET_SYSERR;
   GNUNET_SCHEDULER_cancel (shutdown_id);
index 7c443600347e6a457f48f7a23c542b197be0cc47..aa410e01097954039be34983afc019a7c2c18328 100644 (file)
@@ -447,12 +447,9 @@ struct GNUNET_TESTBED_ControllerProc
  * when the helper process is stoped using GNUNET_HELPER_stop()
  *
  * @param cls the closure from GNUNET_HELPER_start()
- * @param h the handle representing the helper process. This handle is invalid
- *          in this callback. It is only presented for reference. No operations
- *          can be performed using it.
  */
 static void 
-controller_exp_cb (void *cls, const struct GNUNET_HELPER_Handle *h)
+controller_exp_cb (void *cls)
 {
   struct GNUNET_TESTBED_ControllerProc *cproc = cls;
 
index 5fe525b9e8db73b4a0048e4191697c32eabedf1b..f88da52b87d21d93303b93a9792f3ed5a5159908 100644 (file)
@@ -357,18 +357,15 @@ clear_msg (void *cls, int result)
  * when the helper process is stoped using GNUNET_HELPER_stop()
  *
  * @param cls the closure from GNUNET_HELPER_start()
- * @param h the handle representing the helper process. This handle is invalid
- *          in this callback. It is only presented for reference. No operations
- *          can be performed using it.
  */
 static void 
-helper_exp_cb (void *cls, const struct GNUNET_HELPER_Handle *h)
+helper_exp_cb (void *cls)
 {
   struct GNUNET_TESTBED_HelperHandle *handle = cls;
 
   handle->is_stopped = GNUNET_YES;
   GNUNET_TESTBED_host_stop_ (handle);
-  handle->exp_cb (handle->exp_cb_cls, h);
+  handle->exp_cb (handle->exp_cb_cls);
 }
 
 
index 3fe3705b1f917941a54dabd105caaeba8b705758..82b94aa2fb472be465c0aadacf4ab96113052f73 100644 (file)
@@ -256,7 +256,7 @@ helper_read (void *cls,
                STRERROR (errno));
     if (NULL != h->exp_cb)
     {
-      h->exp_cb (h->cb_cls, h);
+      h->exp_cb (h->cb_cls);
       GNUNET_HELPER_stop (h);
       return;
     }
@@ -275,7 +275,7 @@ helper_read (void *cls,
                h->binary_name);
     if (NULL != h->exp_cb)
     {
-      h->exp_cb (h->cb_cls, h);
+      h->exp_cb (h->cb_cls);
       GNUNET_HELPER_stop (h);
       return;
     }
@@ -300,7 +300,7 @@ helper_read (void *cls,
                h->binary_name);
     if (NULL != h->exp_cb)
     {
-      h->exp_cb (h->cb_cls, h);
+      h->exp_cb (h->cb_cls);
       GNUNET_HELPER_stop (h);
       return;
     }