diff options
Diffstat (limited to 'src/include/gnunet_network_lib.h')
-rw-r--r-- | src/include/gnunet_network_lib.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h index baba3aba8..645353520 100644 --- a/src/include/gnunet_network_lib.h +++ b/src/include/gnunet_network_lib.h | |||
@@ -24,8 +24,8 @@ | |||
24 | * @author Nils Durner | 24 | * @author Nils Durner |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #ifndef GNUNET_NETWORK_LIB_H_ | 27 | #ifndef GNUNET_NETWORK_LIB_H |
28 | #define GNUNET_NETWORK_LIB_H_ | 28 | #define GNUNET_NETWORK_LIB_H |
29 | 29 | ||
30 | #ifdef __cplusplus | 30 | #ifdef __cplusplus |
31 | extern "C" | 31 | extern "C" |
@@ -54,6 +54,11 @@ struct GNUNET_NETWORK_Descriptor *GNUNET_NETWORK_socket_accept (const struct GNU | |||
54 | struct sockaddr *address, | 54 | struct sockaddr *address, |
55 | socklen_t *address_len); | 55 | socklen_t *address_len); |
56 | 56 | ||
57 | int | ||
58 | GNUNET_NETWORK_socket_set_inheritable (const struct GNUNET_NETWORK_Descriptor | ||
59 | *desc); | ||
60 | |||
61 | |||
57 | int GNUNET_NETWORK_socket_bind (struct GNUNET_NETWORK_Descriptor *desc, | 62 | int GNUNET_NETWORK_socket_bind (struct GNUNET_NETWORK_Descriptor *desc, |
58 | const struct sockaddr *address, socklen_t address_len); | 63 | const struct sockaddr *address, socklen_t address_len); |
59 | 64 | ||
@@ -128,7 +133,7 @@ int GNUNET_NETWORK_fdset_handle_isset (const struct GNUNET_NETWORK_FDSet *fds, | |||
128 | 133 | ||
129 | int GNUNET_NETWORK_fdset_overlap (const struct GNUNET_NETWORK_FDSet *fds1, const struct GNUNET_NETWORK_FDSet *fds2); | 134 | int GNUNET_NETWORK_fdset_overlap (const struct GNUNET_NETWORK_FDSet *fds1, const struct GNUNET_NETWORK_FDSet *fds2); |
130 | 135 | ||
131 | struct GNUNET_NETWORK_FDSet *GNUNET_NETWORK_fdset_create (); | 136 | struct GNUNET_NETWORK_FDSet *GNUNET_NETWORK_fdset_create (void); |
132 | 137 | ||
133 | void GNUNET_NETWORK_fdset_destroy (struct GNUNET_NETWORK_FDSet *fds); | 138 | void GNUNET_NETWORK_fdset_destroy (struct GNUNET_NETWORK_FDSet *fds); |
134 | 139 | ||
@@ -140,4 +145,4 @@ void GNUNET_NETWORK_fdset_destroy (struct GNUNET_NETWORK_FDSet *fds); | |||
140 | } | 145 | } |
141 | #endif | 146 | #endif |
142 | 147 | ||
143 | #endif /* GNUNET_NETWORK_LIB_H_ */ | 148 | #endif /* GNUNET_NETWORK_LIB_H */ |