This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
dexter gerrit-no-reply at lists.osmocom.orgdexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/24691 ) Change subject: vty: make function cmd_range_match() public ...................................................................... vty: make function cmd_range_match() public 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 --- M include/osmocom/vty/command.h M src/vty/command.c 2 files changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/91/24691/1 diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h index 81333b4..01209f5 100644 --- a/include/osmocom/vty/command.h +++ b/include/osmocom/vty/command.h @@ -483,4 +483,6 @@ 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 cmd_range_match(const char *range, const char *str); + /*! @} */ diff --git a/src/vty/command.c b/src/vty/command.c index 6d63d84..48ac031 100644 --- a/src/vty/command.c +++ b/src/vty/command.c @@ -1477,7 +1477,7 @@ #error "LONG_MAX not defined!" #endif -static int cmd_range_match(const char *range, const char *str) +int cmd_range_match(const char *range, const char *str) { char *p; char buf[DECIMAL_STRLEN_MAX_UNSIGNED + 1]; -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/24691 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I53fc207677f52b1dc748b01d58424839cdba807c Gerrit-Change-Number: 24691 Gerrit-PatchSet: 1 Gerrit-Owner: dexter <pmaier at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210616/808425d0/attachment.htm>