mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Blow away usage of libjansson's foreach macro
While very handy, this macro didn't occur until a later version of libjansson. We'd prefer to be compatible with older versions still - as such, iteration over key/value pairs in a JSON object have to be done with a little bit more manual work. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391675 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -330,10 +330,6 @@ const char *ast_json_object_iter_key(struct ast_json_iter *iter)
|
||||
{
|
||||
return json_object_iter_key(iter);
|
||||
}
|
||||
struct ast_json_iter *ast_json_object_key_to_iter(const char *key)
|
||||
{
|
||||
return (struct ast_json_iter *)json_object_key_to_iter(key);
|
||||
}
|
||||
struct ast_json *ast_json_object_iter_value(struct ast_json_iter *iter)
|
||||
{
|
||||
return (struct ast_json *)json_object_iter_value(iter);
|
||||
|
Reference in New Issue
Block a user