From: Christian Grothoff Date: Sat, 26 Jun 2010 17:15:54 +0000 (+0000) Subject: scheduler optimizing X-Git-Tag: initial-import-from-subversion-38251~21197 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=902d220cb04ce87b13756747d76c399009814d21;p=oweals%2Fgnunet.git scheduler optimizing --- 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, void GNUNET_NETWORK_fdset_set_native (struct GNUNET_NETWORK_FDSet *to, int nfd); + +/** + * Test native fd in a set + * + * @param to set to test, NULL for empty set + * @param nfd native FD to test, -1 for none + * @return GNUNET_YES if to contains nfd + */ +int +GNUNET_NETWORK_fdset_test_native (const struct GNUNET_NETWORK_FDSet *to, + int nfd); + + /** * Add a file handle to the fd set * @param fds fd set