]> 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 20:12:37 +0000 (14:12 -0600)
committerKevin Harwell <kharwell@digium.com>
Tue, 19 Feb 2019 15:44:08 +0000 (09:44 -0600)
commite85f92f37ab4ffb95266c2af49d836540a4c58cd
tree8ba44b90cac6d90560c86e63e3ecb80d25dd8824
parentb327b0bbda4f4e05ee23062acc432e298bade487
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