diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-08 23:20:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-08 23:20:42 +0000 |
commit | a983a0267109b1b6a8e16e476e2f2956a8771b94 (patch) | |
tree | 79bcae73cdb7b87b4f55d4396e79baea76ef53a6 /src/transport/gnunet-service-transport_plugins.h | |
parent | a3f8ef5b89dc44fc3acfb8f081a502f3409e4224 (diff) | |
download | gnunet-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_plugins.h')
-rw-r--r-- | src/transport/gnunet-service-transport_plugins.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/transport/gnunet-service-transport_plugins.h b/src/transport/gnunet-service-transport_plugins.h index 3a49f004f..3cca3ce10 100644 --- a/src/transport/gnunet-service-transport_plugins.h +++ b/src/transport/gnunet-service-transport_plugins.h | |||
@@ -30,6 +30,7 @@ | |||
30 | #include "gnunet_transport_service.h" | 30 | #include "gnunet_transport_service.h" |
31 | #include "gnunet_transport_plugin.h" | 31 | #include "gnunet_transport_plugin.h" |
32 | #include "gnunet_util_lib.h" | 32 | #include "gnunet_util_lib.h" |
33 | #include "gnunet_hello_lib.h" | ||
33 | 34 | ||
34 | 35 | ||
35 | /** | 36 | /** |
@@ -69,13 +70,11 @@ GST_plugins_find (const char *name); | |||
69 | * Convert a given address to a human-readable format. Note that the | 70 | * Convert a given address to a human-readable format. Note that the |
70 | * return value will be overwritten on the next call to this function. | 71 | * return value will be overwritten on the next call to this function. |
71 | * | 72 | * |
72 | * @param name plugin name | 73 | * @param address address to convert |
73 | * @param addr binary address in plugin-specific format | ||
74 | * @param addrlen number of bytes in 'addr' | ||
75 | * @return statically allocated (!) human-readable address | 74 | * @return statically allocated (!) human-readable address |
76 | */ | 75 | */ |
77 | const char * | 76 | const char * |
78 | GST_plugins_a2s (const char *name, const void *addr, size_t addrlen); | 77 | GST_plugins_a2s (const struct GNUNET_HELLO_Address *address); |
79 | 78 | ||
80 | 79 | ||
81 | #endif | 80 | #endif |