diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-26 17:15:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-26 17:15:54 +0000 |
commit | 902d220cb04ce87b13756747d76c399009814d21 (patch) | |
tree | 2f6441877873182068efd42e69b81d9c8be9f7b1 /src/include/gnunet_network_lib.h | |
parent | 37194f115116b2ea38d5ccb3c7fd8d3a75d77641 (diff) | |
download | gnunet-902d220cb04ce87b13756747d76c399009814d21.tar.gz gnunet-902d220cb04ce87b13756747d76c399009814d21.zip |
scheduler optimizing
Diffstat (limited to 'src/include/gnunet_network_lib.h')
-rw-r--r-- | src/include/gnunet_network_lib.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h index 19fd234ee..a5ae0e4e6 100644 --- a/src/include/gnunet_network_lib.h +++ b/src/include/gnunet_network_lib.h | |||
@@ -323,6 +323,19 @@ void GNUNET_NETWORK_fdset_copy_native (struct GNUNET_NETWORK_FDSet *to, | |||
323 | void GNUNET_NETWORK_fdset_set_native (struct GNUNET_NETWORK_FDSet *to, | 323 | void GNUNET_NETWORK_fdset_set_native (struct GNUNET_NETWORK_FDSet *to, |
324 | int nfd); | 324 | int nfd); |
325 | 325 | ||
326 | |||
327 | /** | ||
328 | * Test native fd in a set | ||
329 | * | ||
330 | * @param to set to test, NULL for empty set | ||
331 | * @param nfd native FD to test, -1 for none | ||
332 | * @return GNUNET_YES if to contains nfd | ||
333 | */ | ||
334 | int | ||
335 | GNUNET_NETWORK_fdset_test_native (const struct GNUNET_NETWORK_FDSet *to, | ||
336 | int nfd); | ||
337 | |||
338 | |||
326 | /** | 339 | /** |
327 | * Add a file handle to the fd set | 340 | * Add a file handle to the fd set |
328 | * @param fds fd set | 341 | * @param fds fd set |