disconnect -> disconnect_and_free rename
authorLRN <lrn1986@gmail.com>
Wed, 20 Mar 2013 18:50:12 +0000 (18:50 +0000)
committerLRN <lrn1986@gmail.com>
Wed, 20 Mar 2013 18:50:12 +0000 (18:50 +0000)
src/arm/arm_api.c
src/arm/gnunet-arm.c
src/arm/test_arm_api.c
src/arm/test_exponential_backoff.c
src/arm/test_gnunet_service_arm.c
src/include/gnunet_arm_service.h
src/regex/gnunet-regex-profiler.c

index d434ff3af27b5e7af86030833a84ada15ce4d426..18b4d220c1c8b87f56c179887e057ae7ee9f47f1 100644 (file)
@@ -451,7 +451,7 @@ GNUNET_ARM_connect (struct GNUNET_ARM_Handle *h,
  * @param h the handle that was being used
  */
 void
-GNUNET_ARM_disconnect (struct GNUNET_ARM_Handle *handle)
+GNUNET_ARM_disconnect_and_free (struct GNUNET_ARM_Handle *handle)
 {
   LOG (GNUNET_ERROR_TYPE_DEBUG, "Disconnecting from ARM service\n");
   if (NULL != handle->cth)
@@ -783,7 +783,7 @@ GNUNET_ARM_request_service_start (struct GNUNET_ARM_Handle *h,
  * Stopping arm itself will not invalidate its handle, and
  * ARM API will try to restore connection to the ARM service,
  * even if ARM connection was lost because you asked for ARM to be stopped.
- * Call GNUNET_ARM_disconnect () to free the handle and prevent
+ * Call GNUNET_ARM_disconnect_and_free () to free the handle and prevent
  * further connection attempts.
  *
  * @param h handle to ARM
index f1a4cc4bbf3598afc18a9f3da654b98c09342dae..095d60e36ac5b514fba039475dc95ee2870de65f 100644 (file)
@@ -178,7 +178,7 @@ delete_files ()
 static void
 shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
-  GNUNET_ARM_disconnect (h);
+  GNUNET_ARM_disconnect_and_free (h);
   GNUNET_ARM_monitor_disconnect (m);
   h = NULL;
   m = NULL;
index 5cb7cdafdc3cdb119b99ab353460092d2be3ae3e..865f3dfa0197feeb30872939bc2a66857523c8f5 100644 (file)
@@ -114,7 +114,7 @@ resolver_start_cb (void *cls, struct GNUNET_ARM_Handle *h, enum GNUNET_ARM_Reque
 static void
 trigger_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
-  GNUNET_ARM_disconnect ((struct GNUNET_ARM_Handle *) cls);
+  GNUNET_ARM_disconnect_and_free ((struct GNUNET_ARM_Handle *) cls);
 }
 
 
index 8a0dba1171e33e762e90b1331a283b2f62c78441..5613794c333e432c3f79c2d469d7c15f8b9652d8 100644 (file)
@@ -279,7 +279,7 @@ kill_task (void *cbData, const struct GNUNET_SCHEDULER_TaskContext *tc)
 static void
 trigger_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
-  GNUNET_ARM_disconnect (arm);
+  GNUNET_ARM_disconnect_and_free (arm);
   GNUNET_ARM_monitor_disconnect (mon);
 }
 
index a641f10c51924bb222d170ec38a45014cf8b277e..50f01e9327a8d9626a29940ac2d98d9b0d97f362 100644 (file)
@@ -49,7 +49,7 @@ static struct GNUNET_ARM_Handle *arm;
 static void
 trigger_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
-  GNUNET_ARM_disconnect (arm);
+  GNUNET_ARM_disconnect_and_free (arm);
   arm = NULL;
 }
 
index be46831a416c99a91949565a420c3288a88c10d5..4d0f083f7cf055fada8da6b912b4e92bcfc47282 100644 (file)
@@ -249,7 +249,7 @@ GNUNET_ARM_connect (struct GNUNET_ARM_Handle *h,
  * @param h the handle that was being used
  */
 void
-GNUNET_ARM_disconnect (struct GNUNET_ARM_Handle *h);
+GNUNET_ARM_disconnect_and_free (struct GNUNET_ARM_Handle *h);
 
 
 /**
@@ -271,7 +271,7 @@ GNUNET_ARM_request_service_list (struct GNUNET_ARM_Handle *h,
  * Stopping arm itself will not invalidate its handle, and
  * ARM API will try to restore connection to the ARM service,
  * even if ARM connection was lost because you asked for ARM to be stopped.
- * Call GNUNET_ARM_disconnect () to free the handle and prevent
+ * Call GNUNET_ARM_disconnect_and_free () to free the handle and prevent
  * further connection attempts.
  *
  * @param h handle to ARM
index a3b970887214fbad6a9bda3d7f7a669a58647932..057ab7056477cef133db84ef59ad6f108f405bc3 100644 (file)
@@ -1028,7 +1028,7 @@ arm_da (void *cls, void *op_result)
 
   if (NULL != peer->arm_handle)
   {
-    GNUNET_ARM_disconnect (peer->arm_handle);
+    GNUNET_ARM_disconnect_and_free (peer->arm_handle);
     peer->arm_handle = NULL;
   }
 }