aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-03-25 12:21:50 +0000
committerChristian Grothoff <christian@grothoff.org>2013-03-25 12:21:50 +0000
commitea69f50952d863c6e7250bc92559a3dca27ce97b (patch)
tree6dfa1aa9279518b44588bf23b6b11532e2da8bea /src/transport
parent654ebcd8d7fe00a0ecde4871b1fc79e4030aa201 (diff)
downloadgnunet-ea69f50952d863c6e7250bc92559a3dca27ce97b.tar.gz
gnunet-ea69f50952d863c6e7250bc92559a3dca27ce97b.zip
-const
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-service-transport.c24
-rw-r--r--src/transport/gnunet-service-transport.h22
2 files changed, 25 insertions, 21 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index 54342bfde..a9ad57df1 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -394,16 +394,18 @@ plugin_env_address_to_type (void *cls,
394 return GNUNET_ATS_address_get_type(GST_ats, addr, addrlen); 394 return GNUNET_ATS_address_get_type(GST_ats, addr, addrlen);
395} 395}
396 396
397
397void 398void
398GST_update_ats_metrics (struct GNUNET_PeerIdentity *peer, 399GST_update_ats_metrics (const struct GNUNET_PeerIdentity *peer,
399 struct GNUNET_HELLO_Address *address, 400 const struct GNUNET_HELLO_Address *address,
400 struct Session *session, 401 struct Session *session,
401 struct GNUNET_ATS_Information *ats, 402 const struct GNUNET_ATS_Information *ats,
402 uint32_t ats_count) 403 uint32_t ats_count)
403{ 404{
404 GNUNET_ATS_address_update (GST_ats, address, session, ats, ats_count); 405 GNUNET_ATS_address_update (GST_ats, address, session, ats, ats_count);
405} 406}
406 407
408
407/** 409/**
408 * Function that will be called to figure if an address is an loopback, 410 * Function that will be called to figure if an address is an loopback,
409 * LAN, WAN etc. address 411 * LAN, WAN etc. address
@@ -418,12 +420,12 @@ GST_update_ats_metrics (struct GNUNET_PeerIdentity *peer,
418 */ 420 */
419static void 421static void
420plugin_env_update_metrics (void *cls, 422plugin_env_update_metrics (void *cls,
421 struct GNUNET_PeerIdentity *peer, 423 const struct GNUNET_PeerIdentity *peer,
422 const void *address, 424 const void *address,
423 uint16_t address_len, 425 uint16_t address_len,
424 struct Session *session, 426 struct Session *session,
425 struct GNUNET_ATS_Information *ats, 427 const struct GNUNET_ATS_Information *ats,
426 uint32_t ats_count) 428 uint32_t ats_count)
427{ 429{
428 struct GNUNET_HELLO_Address haddress; 430 struct GNUNET_HELLO_Address haddress;
429 const char *plugin_name = cls; 431 const char *plugin_name = cls;
diff --git a/src/transport/gnunet-service-transport.h b/src/transport/gnunet-service-transport.h
index b944da730..5e3a25031 100644
--- a/src/transport/gnunet-service-transport.h
+++ b/src/transport/gnunet-service-transport.h
@@ -89,18 +89,20 @@ extern struct GNUNET_ATS_SchedulingHandle *GST_ats;
89 * (plugins that do not support this, can ignore the return value) 89 * (plugins that do not support this, can ignore the return value)
90 */ 90 */
91struct GNUNET_TIME_Relative 91struct GNUNET_TIME_Relative
92GST_receive_callback (void *cls, const struct GNUNET_PeerIdentity *peer, 92GST_receive_callback (void *cls,
93 const struct GNUNET_MessageHeader *message, 93 const struct GNUNET_PeerIdentity *peer,
94 struct Session *session, 94 const struct GNUNET_MessageHeader *message,
95 const char *sender_address, 95 struct Session *session,
96 uint16_t sender_address_len); 96 const char *sender_address,
97 uint16_t sender_address_len);
98
97 99
98void 100void
99GST_update_ats_metrics (struct GNUNET_PeerIdentity *peer, 101GST_update_ats_metrics (const struct GNUNET_PeerIdentity *peer,
100 struct GNUNET_HELLO_Address *address, 102 const struct GNUNET_HELLO_Address *address,
101 struct Session *session, 103 struct Session *session,
102 struct GNUNET_ATS_Information *ats, 104 const struct GNUNET_ATS_Information *ats,
103 uint32_t ats_count); 105 uint32_t ats_count);
104 106
105#endif 107#endif
106/* end of file gnunet-service-transport_plugins.h */ 108/* end of file gnunet-service-transport_plugins.h */