diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-08-22 17:09:56 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-08-22 18:20:44 -0700 |
commit | d642c8c9a1633264bd0962ae163026bbbabc6e5a (patch) | |
tree | 856842423aae5f0f8a59e7bb800795ce14908ed5 /binding | |
parent | d877f551b065f8722e48d9bb38d9326361f3eedc (diff) |
binding: networking: add type to simple_gvariant_to_jsonguppy_6.90.0guppy/6.90.0flounder_5.99.6flounder_5.99.5flounder_5.99.4flounder/5.99.6flounder/5.99.5flounder/5.99.46.90.05.99.65.99.55.99.4
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.c | 1 |
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; |