From 64d3e46cfb99a711e500fa1f114e7c44bdf10040 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 26 Oct 2012 22:13:01 +0000 Subject: -bugfixes, code cleanup --- src/include/gnunet_network_lib.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/include/gnunet_network_lib.h') diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h index 06a5ce903..1618b2442 100644 --- a/src/include/gnunet_network_lib.h +++ b/src/include/gnunet_network_lib.h @@ -72,6 +72,16 @@ struct GNUNET_NETWORK_FDSet #include "gnunet_time_lib.h" +/** + * Test if the given protocol family is supported by this system. + * + * @param pf protocol family to test (PF_INET, PF_INET6, PF_UNIX) + * @return GNUNET_OK if the PF is supported + */ +int +GNUNET_NETWORK_test_pf (int pf); + + /** * Given a unixpath that is too long (larger than UNIX_PATH_MAX), * shorten it to an acceptable length while keeping it unique -- cgit v1.2.3