From 937ddea6cce45f3f6dcb8177ea86162f15ecb5f9 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 16 Dec 2017 00:46:50 +0100 Subject: 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 --- include/osmocom/core/utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/osmocom') 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); /*! @} */ -- cgit v1.2.3