aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-08 22:52:12 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-08 22:52:12 +0000
commit20bdb602303bf3b36ab046111c97b78ae7641178 (patch)
tree5e757e12ce44856db14d8f3a5f7e5da8683a06c3 /src
parent071a9f2926579424c918c347811dcf629d276c1b (diff)
downloadgnunet-20bdb602303bf3b36ab046111c97b78ae7641178.tar.gz
gnunet-20bdb602303bf3b36ab046111c97b78ae7641178.zip
-rename enum MeshOption to GNUNET_MESH_ChannelOption to ensure we use GNUNET_MESH_ prefix as we should
Diffstat (limited to 'src')
-rw-r--r--src/conversation/gnunet-service-conversation.c2
-rw-r--r--src/exit/gnunet-daemon-exit.c2
-rw-r--r--src/fs/gnunet-service-fs_mesh_server.c2
-rw-r--r--src/include/gnunet_mesh_service.h8
-rw-r--r--src/mesh/gnunet-mesh.c2
-rw-r--r--src/mesh/mesh_api.c6
-rw-r--r--src/mesh/test_mesh_local.c2
-rw-r--r--src/mesh/test_mesh_single.c2
-rw-r--r--src/mesh/test_mesh_small.c4
-rw-r--r--src/scalarproduct/gnunet-service-scalarproduct.c2
-rw-r--r--src/set/gnunet-service-set.c2
11 files changed, 17 insertions, 17 deletions
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c
index 8ffea5144..df8d4e9f2 100644
--- a/src/conversation/gnunet-service-conversation.c
+++ b/src/conversation/gnunet-service-conversation.c
@@ -1295,7 +1295,7 @@ static void *
1295inbound_channel (void *cls, 1295inbound_channel (void *cls,
1296 struct GNUNET_MESH_Channel *channel, 1296 struct GNUNET_MESH_Channel *channel,
1297 const struct GNUNET_PeerIdentity *initiator, 1297 const struct GNUNET_PeerIdentity *initiator,
1298 uint32_t port, enum MeshOption options) 1298 uint32_t port, enum GNUNET_MESH_ChannelOption options)
1299{ 1299{
1300 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 1300 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
1301 _("Received incoming channel on port %u\n"), 1301 _("Received incoming channel on port %u\n"),
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c
index 3bdac2d51..fb1e5ae38 100644
--- a/src/exit/gnunet-daemon-exit.c
+++ b/src/exit/gnunet-daemon-exit.c
@@ -3015,7 +3015,7 @@ static void *
3015new_channel (void *cls, 3015new_channel (void *cls,
3016 struct GNUNET_MESH_Channel *channel, 3016 struct GNUNET_MESH_Channel *channel,
3017 const struct GNUNET_PeerIdentity *initiator, 3017 const struct GNUNET_PeerIdentity *initiator,
3018 uint32_t port, enum MeshOption options) 3018 uint32_t port, enum GNUNET_MESH_ChannelOption options)
3019{ 3019{
3020 struct ChannelState *s = GNUNET_new (struct ChannelState); 3020 struct ChannelState *s = GNUNET_new (struct ChannelState);
3021 3021
diff --git a/src/fs/gnunet-service-fs_mesh_server.c b/src/fs/gnunet-service-fs_mesh_server.c
index fe2d43135..e157c40e6 100644
--- a/src/fs/gnunet-service-fs_mesh_server.c
+++ b/src/fs/gnunet-service-fs_mesh_server.c
@@ -465,7 +465,7 @@ static void *
465accept_cb (void *cls, 465accept_cb (void *cls,
466 struct GNUNET_MESH_Channel *channel, 466 struct GNUNET_MESH_Channel *channel,
467 const struct GNUNET_PeerIdentity *initiator, 467 const struct GNUNET_PeerIdentity *initiator,
468 uint32_t port, enum MeshOption options) 468 uint32_t port, enum GNUNET_MESH_ChannelOption options)
469{ 469{
470 struct MeshClient *sc; 470 struct MeshClient *sc;
471 471
diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h
index e82d71bc1..785197471 100644
--- a/src/include/gnunet_mesh_service.h
+++ b/src/include/gnunet_mesh_service.h
@@ -59,7 +59,7 @@ struct GNUNET_MESH_Channel;
59 * Channel options. 59 * Channel options.
60 * Second line indicates filed in the MeshChannelInfo union carrying the answer. 60 * Second line indicates filed in the MeshChannelInfo union carrying the answer.
61 */ 61 */
62enum MeshOption 62enum GNUNET_MESH_ChannelOption
63{ 63{
64 /** 64 /**
65 * Default options: unreliable, default buffering, not out of order. 65 * Default options: unreliable, default buffering, not out of order.
@@ -166,7 +166,7 @@ typedef void *(GNUNET_MESH_InboundChannelNotificationHandler) (void *cls,
166 GNUNET_PeerIdentity 166 GNUNET_PeerIdentity
167 * initiator, 167 * initiator,
168 uint32_t port, 168 uint32_t port,
169 enum MeshOption 169 enum GNUNET_MESH_ChannelOption
170 options); 170 options);
171 171
172 172
@@ -249,7 +249,7 @@ GNUNET_MESH_channel_create (struct GNUNET_MESH_Handle *h,
249 void *channel_ctx, 249 void *channel_ctx,
250 const struct GNUNET_PeerIdentity *peer, 250 const struct GNUNET_PeerIdentity *peer,
251 uint32_t port, 251 uint32_t port,
252 enum MeshOption options); 252 enum GNUNET_MESH_ChannelOption options);
253 253
254 254
255/** 255/**
@@ -293,7 +293,7 @@ union GNUNET_MESH_ChannelInfo
293 */ 293 */
294const union GNUNET_MESH_ChannelInfo * 294const union GNUNET_MESH_ChannelInfo *
295GNUNET_MESH_channel_get_info (struct GNUNET_MESH_Channel *channel, 295GNUNET_MESH_channel_get_info (struct GNUNET_MESH_Channel *channel,
296 enum MeshOption option, ...); 296 enum GNUNET_MESH_ChannelOption option, ...);
297 297
298 298
299/** 299/**
diff --git a/src/mesh/gnunet-mesh.c b/src/mesh/gnunet-mesh.c
index 226440537..b349cf500 100644
--- a/src/mesh/gnunet-mesh.c
+++ b/src/mesh/gnunet-mesh.c
@@ -254,7 +254,7 @@ static void *
254channel_incoming (void *cls, 254channel_incoming (void *cls,
255 struct GNUNET_MESH_Channel * channel, 255 struct GNUNET_MESH_Channel * channel,
256 const struct GNUNET_PeerIdentity * initiator, 256 const struct GNUNET_PeerIdentity * initiator,
257 uint32_t port, enum MeshOption options) 257 uint32_t port, enum GNUNET_MESH_ChannelOption options)
258{ 258{
259 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 259 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
260 "Incoming channel %p on port %u\n", 260 "Incoming channel %p on port %u\n",
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c
index 46dfe546f..d1f134659 100644
--- a/src/mesh/mesh_api.c
+++ b/src/mesh/mesh_api.c
@@ -279,7 +279,7 @@ struct GNUNET_MESH_Channel
279 /** 279 /**
280 * Channel options: reliability, etc. 280 * Channel options: reliability, etc.
281 */ 281 */
282 enum MeshOption options; 282 enum GNUNET_MESH_ChannelOption options;
283 283
284 /** 284 /**
285 * Are we allowed to send to the service? 285 * Are we allowed to send to the service?
@@ -1382,7 +1382,7 @@ GNUNET_MESH_channel_create (struct GNUNET_MESH_Handle *h,
1382 void *channel_ctx, 1382 void *channel_ctx,
1383 const struct GNUNET_PeerIdentity *peer, 1383 const struct GNUNET_PeerIdentity *peer,
1384 uint32_t port, 1384 uint32_t port,
1385 enum MeshOption options) 1385 enum GNUNET_MESH_ChannelOption options)
1386{ 1386{
1387 struct GNUNET_MESH_Channel *ch; 1387 struct GNUNET_MESH_Channel *ch;
1388 struct GNUNET_MESH_ChannelMessage msg; 1388 struct GNUNET_MESH_ChannelMessage msg;
@@ -1457,7 +1457,7 @@ GNUNET_MESH_channel_destroy (struct GNUNET_MESH_Channel *channel)
1457 */ 1457 */
1458const union GNUNET_MESH_ChannelInfo * 1458const union GNUNET_MESH_ChannelInfo *
1459GNUNET_MESH_channel_get_info (struct GNUNET_MESH_Channel *channel, 1459GNUNET_MESH_channel_get_info (struct GNUNET_MESH_Channel *channel,
1460 enum MeshOption option, ...) 1460 enum GNUNET_MESH_ChannelOption option, ...)
1461{ 1461{
1462 static int bool_flag; 1462 static int bool_flag;
1463 const union GNUNET_MESH_ChannelInfo *ret; 1463 const union GNUNET_MESH_ChannelInfo *ret;
diff --git a/src/mesh/test_mesh_local.c b/src/mesh/test_mesh_local.c
index 35a16b0d9..14520aa28 100644
--- a/src/mesh/test_mesh_local.c
+++ b/src/mesh/test_mesh_local.c
@@ -148,7 +148,7 @@ data_callback (void *cls, struct GNUNET_MESH_Channel *channel,
148static void * 148static void *
149inbound_channel (void *cls, struct GNUNET_MESH_Channel *channel, 149inbound_channel (void *cls, struct GNUNET_MESH_Channel *channel,
150 const struct GNUNET_PeerIdentity *initiator, 150 const struct GNUNET_PeerIdentity *initiator,
151 uint32_t port, enum MeshOption options) 151 uint32_t port, enum GNUNET_MESH_ChannelOption options)
152{ 152{
153 long id = (long) cls; 153 long id = (long) cls;
154 154
diff --git a/src/mesh/test_mesh_single.c b/src/mesh/test_mesh_single.c
index 689139b82..b40efa92b 100644
--- a/src/mesh/test_mesh_single.c
+++ b/src/mesh/test_mesh_single.c
@@ -169,7 +169,7 @@ data_callback (void *cls, struct GNUNET_MESH_Channel *channel,
169static void * 169static void *
170inbound_channel (void *cls, struct GNUNET_MESH_Channel *channel, 170inbound_channel (void *cls, struct GNUNET_MESH_Channel *channel,
171 const struct GNUNET_PeerIdentity *initiator, 171 const struct GNUNET_PeerIdentity *initiator,
172 uint32_t port, enum MeshOption options) 172 uint32_t port, enum GNUNET_MESH_ChannelOption options)
173{ 173{
174 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 174 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
175 "received incoming channel on port %u\n", 175 "received incoming channel on port %u\n",
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c
index e63e343cf..f686a01f5 100644
--- a/src/mesh/test_mesh_small.c
+++ b/src/mesh/test_mesh_small.c
@@ -543,7 +543,7 @@ static struct GNUNET_MESH_MessageHandler handlers[] = {
543static void * 543static void *
544incoming_channel (void *cls, struct GNUNET_MESH_Channel *channel, 544incoming_channel (void *cls, struct GNUNET_MESH_Channel *channel,
545 const struct GNUNET_PeerIdentity *initiator, 545 const struct GNUNET_PeerIdentity *initiator,
546 uint32_t port, enum MeshOption options) 546 uint32_t port, enum GNUNET_MESH_ChannelOption options)
547{ 547{
548 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 548 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
549 "Incoming channel from %s to peer %d\n", 549 "Incoming channel from %s to peer %d\n",
@@ -630,7 +630,7 @@ channel_cleaner (void *cls, const struct GNUNET_MESH_Channel *channel,
630static void 630static void
631do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 631do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
632{ 632{
633 enum MeshOption flags; 633 enum GNUNET_MESH_ChannelOption flags;
634 634
635 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test_task\n"); 635 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test_task\n");
636 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "add peer 2\n"); 636 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "add peer 2\n");
diff --git a/src/scalarproduct/gnunet-service-scalarproduct.c b/src/scalarproduct/gnunet-service-scalarproduct.c
index d6b0deeac..ad788bb57 100644
--- a/src/scalarproduct/gnunet-service-scalarproduct.c
+++ b/src/scalarproduct/gnunet-service-scalarproduct.c
@@ -1852,7 +1852,7 @@ static void *
1852channel_incoming_handler (void *cls, 1852channel_incoming_handler (void *cls,
1853 struct GNUNET_MESH_Channel *channel, 1853 struct GNUNET_MESH_Channel *channel,
1854 const struct GNUNET_PeerIdentity *initiator, 1854 const struct GNUNET_PeerIdentity *initiator,
1855 uint32_t port, enum MeshOption options) 1855 uint32_t port, enum GNUNET_MESH_ChannelOption options)
1856{ 1856{
1857 struct ServiceSession * c = GNUNET_new (struct ServiceSession); 1857 struct ServiceSession * c = GNUNET_new (struct ServiceSession);
1858 1858
diff --git a/src/set/gnunet-service-set.c b/src/set/gnunet-service-set.c
index e5dec36c3..cf03b06aa 100644
--- a/src/set/gnunet-service-set.c
+++ b/src/set/gnunet-service-set.c
@@ -1208,7 +1208,7 @@ static void *
1208channel_new_cb (void *cls, 1208channel_new_cb (void *cls,
1209 struct GNUNET_MESH_Channel *channel, 1209 struct GNUNET_MESH_Channel *channel,
1210 const struct GNUNET_PeerIdentity *initiator, 1210 const struct GNUNET_PeerIdentity *initiator,
1211 uint32_t port, enum MeshOption options) 1211 uint32_t port, enum GNUNET_MESH_ChannelOption options)
1212{ 1212{
1213 struct Operation *incoming; 1213 struct Operation *incoming;
1214 static const struct SetVT incoming_vt = { 1214 static const struct SetVT incoming_vt = {