aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_strings_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_strings_lib.h')
-rw-r--r--src/include/gnunet_strings_lib.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h
index b751ef044..be41fb1d9 100644
--- a/src/include/gnunet_strings_lib.h
+++ b/src/include/gnunet_strings_lib.h
@@ -18,7 +18,7 @@
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19 */ 19 */
20 20
21#if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) 21#if ! defined (__GNUNET_UTIL_LIB_H_INSIDE__)
22#error "Only <gnunet_util_lib.h> can be included directly." 22#error "Only <gnunet_util_lib.h> can be included directly."
23#endif 23#endif
24 24
@@ -41,7 +41,7 @@
41 * @{ 41 * @{
42 */ 42 */
43 43
44#if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) 44#if ! defined (__GNUNET_UTIL_LIB_H_INSIDE__)
45#error "Only <gnunet_util_lib.h> can be included directly." 45#error "Only <gnunet_util_lib.h> can be included directly."
46#endif 46#endif
47 47
@@ -670,6 +670,23 @@ GNUNET_strlcpy (char *dst,
670 size_t n); 670 size_t n);
671 671
672 672
673/**
674 * Sometimes we use the binary name to determine which specific
675 * test to run. In those cases, the string after the last "_"
676 * in 'argv[0]' specifies a string that determines the configuration
677 * file or plugin to use.
678 *
679 * This function returns the respective substring, taking care
680 * of issues such as binaries ending in '.exe' on W32.
681 *
682 * @param argv0 the name of the binary
683 * @return string between the last '_' and the '.exe' (or the end of the string),
684 * NULL if argv0 has no '_'
685 */
686char *
687GNUNET_STRINGS_get_suffix_from_binary_name (const char *argv0);
688
689
673/* ***************** IPv4/IPv6 parsing ****************** */ 690/* ***************** IPv4/IPv6 parsing ****************** */
674 691
675struct GNUNET_STRINGS_PortPolicy 692struct GNUNET_STRINGS_PortPolicy