summaryrefslogtreecommitdiffstats
path: root/lib/utils_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils_base.h')
-rw-r--r--lib/utils_base.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/utils_base.h b/lib/utils_base.h
index c34f044..f40fdb0 100644
--- a/lib/utils_base.h
+++ b/lib/utils_base.h
@@ -56,6 +56,12 @@ int np_warn_if_not_root(void);
56 * This function can be used to parse NTP control packet data and performance 56 * This function can be used to parse NTP control packet data and performance
57 * data strings. 57 * data strings.
58 */ 58 */
59char *np_extract_value(const char*, const char*); 59char *np_extract_value(const char*, const char*, char);
60
61/*
62 * Same as np_extract_value with separator suitable for NTP control packet
63 * payloads (comma)
64 */
65#define np_extract_ntpvar(l, n) np_extract_value(l, n, ',')
60 66
61#endif /* _UTILS_BASE_ */ 67#endif /* _UTILS_BASE_ */