]> git.ipfire.org Git - thirdparty/asterisk.git/commit
sorcery: Add ast_sorcery_retrieve_by_prefix()
authorSean Bright <sean.bright@gmail.com>
Thu, 9 Nov 2017 14:21:38 +0000 (09:21 -0500)
committerSean Bright <sean.bright@gmail.com>
Mon, 13 Nov 2017 20:08:50 +0000 (15:08 -0500)
commitcf062303e35e4baa0dc2aa3dfb68b2c25b1ed2c2
treeef53d0517a09247cd97c4d9ee70c294a5a607ae8
parentb1743cb3c75a943a8a9cb55a3e4355f0133156fe
sorcery: Add ast_sorcery_retrieve_by_prefix()

Some consumers of the sorcery API use ast_sorcery_retrieve_by_regex
only so that they can anchor the potential match as a prefix and not
because they truly need regular expressions.

Rather than using regular expressions for simple prefix lookups, add
a new operation - ast_sorcery_retrieve_by_prefix - that does them.

Patches against 13 and 15 have a compatibility layer needed to
maintain ABI that is not needed in master.

Change-Id: I56f4e20ba1154bd52281f995c27a429a854f6a79
include/asterisk/sorcery.h
main/sorcery.c
res/res_sorcery_astdb.c
res/res_sorcery_config.c
res/res_sorcery_memory.c
res/res_sorcery_memory_cache.c
res/res_sorcery_realtime.c