summaryrefslogtreecommitdiff
path: root/libnm
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-09-23 10:30:50 +0200
committerThomas Haller <thaller@redhat.com>2016-09-27 10:56:42 +0200
commit32f78ae6c3baea7f2a90664fc676e73b236a4372 (patch)
tree1f40650d5940d0b268f58ab4abc644a59c70fe84 /libnm
parentc3586ce01a5b73005f9b003fb8f342b89e4f4a5d (diff)
libnm: expose nm_utils_is_json_object() utility function
Since we possibly already link against libjansson, we can also expose some helper utils which allows nmcli to do basic validation of JSON without requiring to duplicate the effort of using libjansson. Also, tighten up the cecks to ensure that we have a JSON object at hand. We are really interested in that and not of arrays or literals.
Diffstat (limited to 'libnm')
-rw-r--r--libnm/libnm.ver1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnm/libnm.ver b/libnm/libnm.ver
index 6c149f658..bc47e8625 100644
--- a/libnm/libnm.ver
+++ b/libnm/libnm.ver
@@ -1086,4 +1086,5 @@ global:
libnm_1_6_0 {
nm_capability_get_type;
+ nm_utils_is_json_object;
} libnm_1_4_0;