diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-12-08 11:27:11 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-12-08 11:27:25 +0100 |
commit | f8efbe7090662cda1d2fb89920c203ba725c9901 (patch) | |
tree | ce83514189247a138e25fdafc6fc8fd33816345e /ucad.c | |
parent | ce79916561268c51a69bbff9e61bae98ebe4aa1c (diff) | |
download | uca-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 'ucad.c')
-rw-r--r-- | ucad.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -134,8 +134,12 @@ serialize_param_spec (GParamSpec *pspec, UcaNetMessageProperty *prop) g_warning ("Cannot serialize all values of %s", prop->name); /* We do not transfer the enum value names (yet) ... */ - for (guint i = 0; i < MIN (enum_class->n_values, UCA_NET_MAX_ENUM_LENGTH); i++) + for (guint i = 0; i < MIN (enum_class->n_values, UCA_NET_MAX_ENUM_LENGTH); i++) { prop->spec.genum.values[i] = enum_class->values[i].value; + strncpy (prop->spec.genum.value_names[i], enum_class->values[i].value_name, + UCA_NET_MAX_ENUM_NAME_LENGTH); + g_print ("copied %s\n", prop->spec.genum.value_names[i]); + } return; } |