diff options
Diffstat (limited to 'src/include/gnunet_nat_lib.h')
-rw-r--r-- | src/include/gnunet_nat_lib.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/include/gnunet_nat_lib.h b/src/include/gnunet_nat_lib.h index a84f684a7..30eb50dd8 100644 --- a/src/include/gnunet_nat_lib.h +++ b/src/include/gnunet_nat_lib.h | |||
@@ -41,8 +41,7 @@ | |||
41 | * @param addr either the previous or the new public IP address | 41 | * @param addr either the previous or the new public IP address |
42 | * @param addrlen actual lenght of the address | 42 | * @param addrlen actual lenght of the address |
43 | */ | 43 | */ |
44 | typedef void (*GNUNET_NAT_AddressCallback) (void *cls, | 44 | typedef void (*GNUNET_NAT_AddressCallback) (void *cls, int add_remove, |
45 | int add_remove, | ||
46 | const struct sockaddr * addr, | 45 | const struct sockaddr * addr, |
47 | socklen_t addrlen); | 46 | socklen_t addrlen); |
48 | 47 | ||
@@ -110,9 +109,8 @@ struct GNUNET_NAT_Handle *GNUNET_NAT_register (const struct | |||
110 | * GNUNET_NO if the address is not plausible, | 109 | * GNUNET_NO if the address is not plausible, |
111 | * GNUNET_SYSERR if the address is malformed | 110 | * GNUNET_SYSERR if the address is malformed |
112 | */ | 111 | */ |
113 | int | 112 | int GNUNET_NAT_test_address (struct GNUNET_NAT_Handle *h, const void *addr, |
114 | GNUNET_NAT_test_address (struct GNUNET_NAT_Handle *h, | 113 | socklen_t addrlen); |
115 | const void *addr, socklen_t addrlen); | ||
116 | 114 | ||
117 | 115 | ||
118 | /** | 116 | /** |
@@ -123,9 +121,8 @@ GNUNET_NAT_test_address (struct GNUNET_NAT_Handle *h, | |||
123 | * @param h handle (used for configuration) | 121 | * @param h handle (used for configuration) |
124 | * @param sa the address of the peer (IPv4-only) | 122 | * @param sa the address of the peer (IPv4-only) |
125 | */ | 123 | */ |
126 | void | 124 | void GNUNET_NAT_run_client (struct GNUNET_NAT_Handle *h, |
127 | GNUNET_NAT_run_client (struct GNUNET_NAT_Handle *h, | 125 | const struct sockaddr_in *sa); |
128 | const struct sockaddr_in *sa); | ||
129 | 126 | ||
130 | 127 | ||
131 | 128 | ||
@@ -220,8 +217,8 @@ struct GNUNET_NAT_ExternalHandle *GNUNET_NAT_mini_get_external_ipv4 (struct | |||
220 | * | 217 | * |
221 | * @param eh operation to cancel | 218 | * @param eh operation to cancel |
222 | */ | 219 | */ |
223 | void | 220 | void GNUNET_NAT_mini_get_external_ipv4_cancel (struct GNUNET_NAT_ExternalHandle |
224 | GNUNET_NAT_mini_get_external_ipv4_cancel (struct GNUNET_NAT_ExternalHandle *eh); | 221 | *eh); |
225 | 222 | ||
226 | 223 | ||
227 | /** | 224 | /** |