diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-26 22:13:01 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-26 22:13:01 +0000 |
commit | 64d3e46cfb99a711e500fa1f114e7c44bdf10040 (patch) | |
tree | 83093d92761d5c1b8b2fded713adaa19af29274c /src/include/gnunet_network_lib.h | |
parent | ef6f05f63769263a5201636c4b7f71eaa455cdf3 (diff) | |
download | gnunet-64d3e46cfb99a711e500fa1f114e7c44bdf10040.tar.gz gnunet-64d3e46cfb99a711e500fa1f114e7c44bdf10040.zip |
-bugfixes, code cleanup
Diffstat (limited to 'src/include/gnunet_network_lib.h')
-rw-r--r-- | src/include/gnunet_network_lib.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 | |||
@@ -73,6 +73,16 @@ struct GNUNET_NETWORK_FDSet | |||
73 | 73 | ||
74 | 74 | ||
75 | /** | 75 | /** |
76 | * Test if the given protocol family is supported by this system. | ||
77 | * | ||
78 | * @param pf protocol family to test (PF_INET, PF_INET6, PF_UNIX) | ||
79 | * @return GNUNET_OK if the PF is supported | ||
80 | */ | ||
81 | int | ||
82 | GNUNET_NETWORK_test_pf (int pf); | ||
83 | |||
84 | |||
85 | /** | ||
76 | * Given a unixpath that is too long (larger than UNIX_PATH_MAX), | 86 | * Given a unixpath that is too long (larger than UNIX_PATH_MAX), |
77 | * shorten it to an acceptable length while keeping it unique | 87 | * shorten it to an acceptable length while keeping it unique |
78 | * and making sure it remains a valid filename (if possible). | 88 | * and making sure it remains a valid filename (if possible). |