config: Create ast_variable_find_in_list()
authorGeorge Joseph <george.joseph@fairview5.com>
Tue, 2 Dec 2014 00:38:56 +0000 (00:38 +0000)
committerGeorge Joseph <george.joseph@fairview5.com>
Tue, 2 Dec 2014 00:38:56 +0000 (00:38 +0000)
commitf128ff61ab8f1f2df00a63c1322baa179f9b9b7c
tree1a6bf04d7aedaf2a03913c487d1c0defcfa2ed48
parentf418f25c449cc160f4e15b259076e516bba0f6bf
config: Create ast_variable_find_in_list()

Add
const char *ast_variable_find_in_list(const struct ast_variable *list,
   const char *variable);

ast_variable_find() requires a config category to search whereas
ast_variable_find_in_list() just needs the root list element which is
useful if you don't have a category.

Tested-by: George Joseph

Review: https://reviewboard.asterisk.org/r/4217/
........

Merged revisions 428733 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 428734 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@428735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/config.h
main/config.c