]> git.ipfire.org Git - thirdparty/asterisk.git/commit
json.c/strings.c - Add a couple of utility functions
authorKevin Harwell <kharwell@digium.com>
Fri, 8 Feb 2019 19:01:43 +0000 (13:01 -0600)
committerKevin Harwell <kharwell@digium.com>
Tue, 19 Feb 2019 15:43:40 +0000 (09:43 -0600)
commitb2d3c9d2ded7eee5305aef17abca2b5bb134556a
tree424310ba15138b59e0cd29ac89c3ffec38d8e1a0
parent1ec00d205fad00ab1dedcaf168f9f46a9264bde0
json.c/strings.c - Add a couple of utility functions

Added 'ast_json_object_string_get' to the JSON wrapper in order to make it a
little easier to retrieve a string field from the JSON object.

Also added an 'ast_strings_equal' function that safely checks (checks for NULLs)
for equality between two strings.

Change-Id: I26f0a16d61537505eb41b4b05ef2e6d67fc2541b
include/asterisk/json.h
include/asterisk/strings.h
main/strings.c