aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2021-06-15 11:08:23 +0200
committerlaforge <laforge@osmocom.org>2021-06-18 12:31:01 +0000
commiteabc6fd4b11e3671921754b7ba2a739890ae3d09 (patch)
tree53660d0332fab16bbaf67121cb174bff0e3613be /include/osmocom
parentac49bda4d493eef2de1a8c957bd54ce65855f534 (diff)
vty: make function cmd_range_match() publicHEADmaster
Certain control interface commands also may require to verfy a range in their verify function. cmd_range_match() from the VTY does exactly that and the range can be specified as string, the same way as we would specify it in the VTY. Change-Id: I53fc207677f52b1dc748b01d58424839cdba807c related: SYS#5369
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/vty/command.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h
index 81333b48..7f1ae5aa 100644
--- a/include/osmocom/vty/command.h
+++ b/include/osmocom/vty/command.h
@@ -483,4 +483,6 @@ extern const struct value_string vty_ref_gen_mode_desc[];
int vty_dump_xml_ref_mode(FILE *stream, enum vty_ref_gen_mode mode);
int vty_dump_xml_ref(FILE *stream) OSMO_DEPRECATED("Use vty_dump_xml_ref_mode() instead");
+int vty_cmd_range_match(const char *range, const char *str);
+
/*! @} */