summaryrefslogtreecommitdiffstats
path: root/uca-net-camera.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2017-12-08 11:27:11 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2017-12-08 11:27:25 +0100
commitf8efbe7090662cda1d2fb89920c203ba725c9901 (patch)
treece83514189247a138e25fdafc6fc8fd33816345e /uca-net-camera.c
parentce79916561268c51a69bbff9e61bae98ebe4aa1c (diff)
downloaduca-net-f8efbe7090662cda1d2fb89920c203ba725c9901.tar.gz
uca-net-f8efbe7090662cda1d2fb89920c203ba725c9901.tar.bz2
uca-net-f8efbe7090662cda1d2fb89920c203ba725c9901.tar.xz
uca-net-f8efbe7090662cda1d2fb89920c203ba725c9901.zip
Transmit enum value names
Diffstat (limited to 'uca-net-camera.c')
-rw-r--r--uca-net-camera.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/uca-net-camera.c b/uca-net-camera.c
index f265fc6..03e4996 100644
--- a/uca-net-camera.c
+++ b/uca-net-camera.c
@@ -491,8 +491,7 @@ deserialize_param_spec (UcaNetMessageProperty *prop)
for (guint i = 0; i < prop->spec.genum.n_values; i++) {
gchar *name;
- name = g_strdup_printf ("%s_%i", prop->name, i);
-
+ name = g_strdup (prop->spec.genum.value_names[i]);
values[i].value = prop->spec.genum.values[i];
values[i].value_name = name;
values[i].value_nick = name;