summaryrefslogtreecommitdiffstats
path: root/binding
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-08-22 17:09:56 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-08-22 18:20:44 -0700
commitd642c8c9a1633264bd0962ae163026bbbabc6e5a (patch)
tree856842423aae5f0f8a59e7bb800795ce14908ed5 /binding
parentd877f551b065f8722e48d9bb38d9326361f3eedc (diff)
add G_VARIANT_CLASS_OBJECT_PATH to processing function since it is effectively a string. Change-Id: Ifb079681a840442ee75e755c33abd162db1d9d2a Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding')
-rw-r--r--binding/network-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/binding/network-util.c b/binding/network-util.c
index 02740e8..7e0aa48 100644
--- a/binding/network-util.c
+++ b/binding/network-util.c
@@ -190,6 +190,7 @@ json_object *simple_gvariant_to_json(GVariant *var, json_object *parent,
case G_VARIANT_CLASS_DOUBLE:
obj = json_object_new_double(g_variant_get_double(var));
break;
+ case G_VARIANT_CLASS_OBJECT_PATH:
case G_VARIANT_CLASS_STRING:
obj = json_object_new_string(g_variant_get_string(var, NULL));
break;