aboutsummaryrefslogtreecommitdiff
path: root/src/arm/test_arm_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-04-14 20:45:25 +0000
committerChristian Grothoff <christian@grothoff.org>2013-04-14 20:45:25 +0000
commit08676aaa5b76a0723c8c60ee510aec3652e50774 (patch)
tree0c1ccb9bd806733aba38f76c79499cb0f3cec048 /src/arm/test_arm_api.c
parentce52e258a28a17f5c319549fda1b5fbb8f6169a7 (diff)
downloadgnunet-08676aaa5b76a0723c8c60ee510aec3652e50774.tar.gz
gnunet-08676aaa5b76a0723c8c60ee510aec3652e50774.zip
-remove unnecessary arguments from ARM callbacks
Diffstat (limited to 'src/arm/test_arm_api.c')
-rw-r--r--src/arm/test_arm_api.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/arm/test_arm_api.c b/src/arm/test_arm_api.c
index 0b4baa3f8..eb769e2ac 100644
--- a/src/arm/test_arm_api.c
+++ b/src/arm/test_arm_api.c
@@ -47,7 +47,10 @@ static int ok = 1;
47static int phase = 0; 47static int phase = 0;
48 48
49static void 49static void
50arm_stop_cb (void *cls, struct GNUNET_ARM_Handle *h, enum GNUNET_ARM_RequestStatus status, const char *servicename, enum GNUNET_ARM_Result result) 50arm_stop_cb (void *cls,
51 enum GNUNET_ARM_RequestStatus status,
52 const char *servicename,
53 enum GNUNET_ARM_Result result)
51{ 54{
52 /* (6), a stop request should be sent to ARM successfully */ 55 /* (6), a stop request should be sent to ARM successfully */
53 /* ARM should report that it is stopping */ 56 /* ARM should report that it is stopping */
@@ -58,8 +61,11 @@ arm_stop_cb (void *cls, struct GNUNET_ARM_Handle *h, enum GNUNET_ARM_RequestStat
58 LOG ("Sent 'STOP' request for arm to ARM %s\n", (status == GNUNET_ARM_REQUEST_SENT_OK) ? "successfully" : "unsuccessfully"); 61 LOG ("Sent 'STOP' request for arm to ARM %s\n", (status == GNUNET_ARM_REQUEST_SENT_OK) ? "successfully" : "unsuccessfully");
59} 62}
60 63
64
61static void 65static void
62resolver_stop_cb (void *cls, struct GNUNET_ARM_Handle *h, enum GNUNET_ARM_RequestStatus status, const char *servicename, enum GNUNET_ARM_Result result) 66resolver_stop_cb (void *cls,
67 enum GNUNET_ARM_RequestStatus status,
68 const char *servicename, enum GNUNET_ARM_Result result)
63{ 69{
64 /* (5), a stop request should be sent to ARM successfully. 70 /* (5), a stop request should be sent to ARM successfully.
65 * ARM should report that resolver is stopped. 71 * ARM should report that resolver is stopped.
@@ -77,6 +83,7 @@ resolver_stop_cb (void *cls, struct GNUNET_ARM_Handle *h, enum GNUNET_ARM_Reques
77#endif 83#endif
78} 84}
79 85
86
80static void 87static void
81dns_notify (void *cls, const struct sockaddr *addr, socklen_t addrlen) 88dns_notify (void *cls, const struct sockaddr *addr, socklen_t addrlen)
82{ 89{
@@ -99,8 +106,12 @@ dns_notify (void *cls, const struct sockaddr *addr, socklen_t addrlen)
99 ok = 0; 106 ok = 0;
100} 107}
101 108
109
102static void 110static void
103resolver_start_cb (void *cls, struct GNUNET_ARM_Handle *h, enum GNUNET_ARM_RequestStatus status, const char *servicename, enum GNUNET_ARM_Result result) 111resolver_start_cb (void *cls,
112 enum GNUNET_ARM_RequestStatus status,
113 const char *servicename,
114 enum GNUNET_ARM_Result result)
104{ 115{
105 /* (2), the start request for resolver should be sent successfully 116 /* (2), the start request for resolver should be sent successfully
106 * ARM should report that resolver service is starting. 117 * ARM should report that resolver service is starting.
@@ -113,6 +124,7 @@ resolver_start_cb (void *cls, struct GNUNET_ARM_Handle *h, enum GNUNET_ARM_Reque
113 GNUNET_RESOLVER_ip_get ("localhost", AF_INET, TIMEOUT, &dns_notify, NULL); 124 GNUNET_RESOLVER_ip_get ("localhost", AF_INET, TIMEOUT, &dns_notify, NULL);
114} 125}
115 126
127
116static void 128static void
117trigger_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 129trigger_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
118{ 130{
@@ -122,7 +134,6 @@ trigger_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
122 134
123static void 135static void
124arm_conn (void *cls, 136arm_conn (void *cls,
125 struct GNUNET_ARM_Handle *arm,
126 int connected) 137 int connected)
127{ 138{
128 if (GNUNET_SYSERR == connected) 139 if (GNUNET_SYSERR == connected)
@@ -157,7 +168,6 @@ arm_conn (void *cls,
157 168
158static void 169static void
159arm_start_cb (void *cls, 170arm_start_cb (void *cls,
160 struct GNUNET_ARM_Handle *h,
161 enum GNUNET_ARM_RequestStatus status, 171 enum GNUNET_ARM_RequestStatus status,
162 const char *servicename, 172 const char *servicename,
163 enum GNUNET_ARM_Result result) 173 enum GNUNET_ARM_Result result)