aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-12-16 00:46:50 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-12-17 21:57:55 +0000
commit937ddea6cce45f3f6dcb8177ea86162f15ecb5f9 (patch)
treeb372bd4d3cc5b09a3e5f80e658a7fbc74579d314 /include/osmocom
parente5a2bdbc5501b892605a6a1fe7e30fb2f1546d42 (diff)
utils: add osmo_separated_identifiers_valid()
For validating CTRL input, we want to verify that an input variable is a series of valid osmo_identifier_valid() separated by dots. Allow validating any additional chars with identifiers, for CTRL vars will be just ".". Change-Id: I13dfd02c8c870620f937d789873ad84c6b1c45de
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/core/utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/core/utils.h b/include/osmocom/core/utils.h
index 5c660cd8..0973b4c6 100644
--- a/include/osmocom/core/utils.h
+++ b/include/osmocom/core/utils.h
@@ -118,5 +118,6 @@ bool osmo_is_hexstr(const char *str, int min_digits, int max_digits,
bool require_even);
bool osmo_identifier_valid(const char *str);
+bool osmo_separated_identifiers_valid(const char *str, const char *sep_chars);
/*! @} */