From 902d220cb04ce87b13756747d76c399009814d21 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 26 Jun 2010 17:15:54 +0000 Subject: [PATCH] scheduler optimizing --- src/include/gnunet_network_lib.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- 2.25.1