summaryrefslogtreecommitdiffstats
path: root/uca-net-camera.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-06-19 10:10:20 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-06-19 10:10:20 +0200
commit1d43a09135be31a2d68afa8e50a665c333ecb084 (patch)
tree4a23a2396e43491e56f629c80d4d10bf053ea97a /uca-net-camera.c
parent6e4c572d74f868e73b40a44fe0821153a34e5ea0 (diff)
downloaduca-net-1d43a09135be31a2d68afa8e50a665c333ecb084.tar.gz
uca-net-1d43a09135be31a2d68afa8e50a665c333ecb084.tar.bz2
uca-net-1d43a09135be31a2d68afa8e50a665c333ecb084.tar.xz
uca-net-1d43a09135be31a2d68afa8e50a665c333ecb084.zip
Fix #10: transmit enum value nick names
Diffstat (limited to 'uca-net-camera.c')
-rw-r--r--uca-net-camera.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/uca-net-camera.c b/uca-net-camera.c
index 2b0d913..657cccc 100644
--- a/uca-net-camera.c
+++ b/uca-net-camera.c
@@ -501,12 +501,9 @@ deserialize_param_spec (UcaNetMessageProperty *prop)
values = g_new0 (GEnumValue, prop->spec.genum.n_values + 1);
for (guint i = 0; i < prop->spec.genum.n_values; i++) {
- gchar *name;
-
- 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;
+ values[i].value_name = g_strdup (prop->spec.genum.value_names[i]);
+ values[i].value_nick = g_strdup (prop->spec.genum.value_nicks[i]);
}
type = g_enum_register_static (prop->name, values);