From 6e4c572d74f868e73b40a44fe0821153a34e5ea0 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 25 May 2018 14:34:39 +0200 Subject: Support more property types --- uca-net-camera.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/uca-net-camera.c b/uca-net-camera.c index 03e4996..2b0d913 100644 --- a/uca-net-camera.c +++ b/uca-net-camera.c @@ -363,9 +363,21 @@ request_get_property (GSocketConnection *connection, const gchar *name, GValue * * that call fails with Python and uca-camera-control but succeeds with * uca-grab ... */ switch (G_VALUE_TYPE (value)) { + case G_TYPE_INT: + g_value_set_int (value, atol (reply.property_value)); + break; + case G_TYPE_INT64: + g_value_set_int (value, atol (reply.property_value)); + break; case G_TYPE_UINT: g_value_set_uint (value, atol (reply.property_value)); break; + case G_TYPE_UINT64: + g_value_set_uint (value, atol (reply.property_value)); + break; + case G_TYPE_FLOAT: + g_value_set_float (value, atof (reply.property_value)); + break; case G_TYPE_DOUBLE: g_value_set_double (value, atof (reply.property_value)); break; -- cgit v1.2.3