aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_hello.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-08 23:20:42 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-08 23:20:42 +0000
commita983a0267109b1b6a8e16e476e2f2956a8771b94 (patch)
tree79bcae73cdb7b87b4f55d4396e79baea76ef53a6 /src/transport/gnunet-service-transport_hello.h
parenta3f8ef5b89dc44fc3acfb8f081a502f3409e4224 (diff)
downloadgnunet-a983a0267109b1b6a8e16e476e2f2956a8771b94.tar.gz
gnunet-a983a0267109b1b6a8e16e476e2f2956a8771b94.zip
refactoring how we handle peer addresses in peerinfo/ats/transport/hello subsystems -- use a struct instead of 3--4 arguments
Diffstat (limited to 'src/transport/gnunet-service-transport_hello.h')
-rw-r--r--src/transport/gnunet-service-transport_hello.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/transport/gnunet-service-transport_hello.h b/src/transport/gnunet-service-transport_hello.h
index 8d15ec6b5..168dd4364 100644
--- a/src/transport/gnunet-service-transport_hello.h
+++ b/src/transport/gnunet-service-transport_hello.h
@@ -29,6 +29,7 @@
29#include "gnunet_statistics_service.h" 29#include "gnunet_statistics_service.h"
30#include "gnunet_transport_service.h" 30#include "gnunet_transport_service.h"
31#include "gnunet_util_lib.h" 31#include "gnunet_util_lib.h"
32#include "gnunet_hello_lib.h"
32 33
33 34
34 35
@@ -72,22 +73,17 @@ GST_hello_get (void);
72 * Add or remove an address from this peer's HELLO message. 73 * Add or remove an address from this peer's HELLO message.
73 * 74 *
74 * @param addremove GNUNET_YES to add, GNUNET_NO to remove 75 * @param addremove GNUNET_YES to add, GNUNET_NO to remove
75 * @param plugin_name name of the plugin for which this is an address 76 * @param address address to add or remove
76 * @param plugin_address address in a plugin-specific format
77 * @param plugin_address_len number of bytes in plugin_address
78 */ 77 */
79void 78void
80GST_hello_modify_addresses (int addremove, const char *plugin_name, 79GST_hello_modify_addresses (int addremove,
81 const void *plugin_address, 80 const struct GNUNET_HELLO_Address *address);
82 size_t plugin_address_len);
83 81
84 82
85/** 83/**
86 * Test if a particular address is one of ours. 84 * Test if a particular address is one of ours.
87 * 85 *
88 * @param plugin_name name of the plugin for which this is an address 86 * @param address the address to test
89 * @param plugin_address address in a plugin-specific format
90 * @param plugin_address_len number of bytes in plugin_address
91 * @param sig location where to cache PONG signatures for this address [set] 87 * @param sig location where to cache PONG signatures for this address [set]
92 * @param sig_expiration how long until the current 'sig' expires? 88 * @param sig_expiration how long until the current 'sig' expires?
93 * (ZERO if sig was never created) [set] 89 * (ZERO if sig was never created) [set]
@@ -95,8 +91,7 @@ GST_hello_modify_addresses (int addremove, const char *plugin_name,
95 * GNUNET_NO if not 91 * GNUNET_NO if not
96 */ 92 */
97int 93int
98GST_hello_test_address (const char *plugin_name, const void *plugin_address, 94GST_hello_test_address (const struct GNUNET_HELLO_Address *address,
99 size_t plugin_address_len,
100 struct GNUNET_CRYPTO_RsaSignature **sig, 95 struct GNUNET_CRYPTO_RsaSignature **sig,
101 struct GNUNET_TIME_Absolute **sig_expiration); 96 struct GNUNET_TIME_Absolute **sig_expiration);
102 97