aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-07 18:29:16 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-07 18:29:16 +0000
commitef0def7ccde140b2b4558761dfd46cbb16c625f4 (patch)
tree599c3a70c592028d912d53bfed7539b9d2758501 /src
parent6e31c04e908b98f6c9cb347eb36ccc47bde590a7 (diff)
downloadgnunet-ef0def7ccde140b2b4558761dfd46cbb16c625f4.tar.gz
gnunet-ef0def7ccde140b2b4558761dfd46cbb16c625f4.zip
-indent, doxygen
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_network_lib.h6
-rw-r--r--src/include/gnunet_resolver_service.h18
2 files changed, 14 insertions, 10 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h
index 042ab235e..0081f0973 100644
--- a/src/include/gnunet_network_lib.h
+++ b/src/include/gnunet_network_lib.h
@@ -135,7 +135,7 @@ GNUNET_NETWORK_socket_set_blocking (struct GNUNET_NETWORK_Handle *fd,
135 * 135 *
136 * @param desc socket to bind 136 * @param desc socket to bind
137 * @param address address to be bound 137 * @param address address to be bound
138 * @param address_len length of address 138 * @param address_len length of @a address
139 * @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise 139 * @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise
140 */ 140 */
141int 141int
@@ -372,8 +372,8 @@ GNUNET_NETWORK_fdset_set (struct GNUNET_NETWORK_FDSet *fds,
372 * @param h the file handle to add 372 * @param h the file handle to add
373 */ 373 */
374void 374void
375GNUNET_NETWORK_fdset_handle_set_native_w32_handle (struct GNUNET_NETWORK_FDSet 375GNUNET_NETWORK_fdset_handle_set_native_w32_handle (struct GNUNET_NETWORK_FDSet *fds
376 *fds, HANDLE h); 376 HANDLE h);
377#endif 377#endif
378 378
379 379
diff --git a/src/include/gnunet_resolver_service.h b/src/include/gnunet_resolver_service.h
index 0a51e41ca..b76c3113c 100644
--- a/src/include/gnunet_resolver_service.h
+++ b/src/include/gnunet_resolver_service.h
@@ -49,9 +49,10 @@ extern "C"
49 * @param addr one of the addresses of the host, NULL for the last address 49 * @param addr one of the addresses of the host, NULL for the last address
50 * @param addrlen length of @a addr 50 * @param addrlen length of @a addr
51 */ 51 */
52typedef void (*GNUNET_RESOLVER_AddressCallback) (void *cls, 52typedef void
53 const struct sockaddr *addr, 53(*GNUNET_RESOLVER_AddressCallback) (void *cls,
54 socklen_t addrlen); 54 const struct sockaddr *addr,
55 socklen_t addrlen);
55 56
56 57
57/** 58/**
@@ -87,7 +88,8 @@ GNUNET_RESOLVER_disconnect (void);
87 * @return handle that can be used to cancel the request, NULL on error 88 * @return handle that can be used to cancel the request, NULL on error
88 */ 89 */
89struct GNUNET_RESOLVER_RequestHandle * 90struct GNUNET_RESOLVER_RequestHandle *
90GNUNET_RESOLVER_ip_get (const char *hostname, int af, 91GNUNET_RESOLVER_ip_get (const char *hostname,
92 int af,
91 struct GNUNET_TIME_Relative timeout, 93 struct GNUNET_TIME_Relative timeout,
92 GNUNET_RESOLVER_AddressCallback callback, 94 GNUNET_RESOLVER_AddressCallback callback,
93 void *callback_cls); 95 void *callback_cls);
@@ -116,8 +118,9 @@ GNUNET_RESOLVER_hostname_resolve (int af,
116 * @param hostname one of the names for the host, NULL 118 * @param hostname one of the names for the host, NULL
117 * on the last call to the callback 119 * on the last call to the callback
118 */ 120 */
119typedef void (*GNUNET_RESOLVER_HostnameCallback) (void *cls, 121typedef void
120 const char *hostname); 122(*GNUNET_RESOLVER_HostnameCallback) (void *cls,
123 const char *hostname);
121 124
122/** 125/**
123 * Get local fully qualified domain name 126 * Get local fully qualified domain name
@@ -140,7 +143,8 @@ GNUNET_RESOLVER_local_fqdn_get (void);
140 * @return handle that can be used to cancel the request, NULL on error 143 * @return handle that can be used to cancel the request, NULL on error
141 */ 144 */
142struct GNUNET_RESOLVER_RequestHandle * 145struct GNUNET_RESOLVER_RequestHandle *
143GNUNET_RESOLVER_hostname_get (const struct sockaddr *sa, socklen_t salen, 146GNUNET_RESOLVER_hostname_get (const struct sockaddr *sa,
147 socklen_t salen,
144 int do_resolve, 148 int do_resolve,
145 struct GNUNET_TIME_Relative timeout, 149 struct GNUNET_TIME_Relative timeout,
146 GNUNET_RESOLVER_HostnameCallback callback, 150 GNUNET_RESOLVER_HostnameCallback callback,