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 /uca-net-protocol.h | |
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 'uca-net-protocol.h')
-rw-r--r-- | uca-net-protocol.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/uca-net-protocol.h b/uca-net-protocol.h index e3a827d..ee10b72 100644 --- a/uca-net-protocol.h +++ b/uca-net-protocol.h @@ -3,7 +3,8 @@ #include <gio/gio.h> -#define UCA_NET_MAX_ENUM_LENGTH 128 +#define UCA_NET_MAX_ENUM_LENGTH 32 +#define UCA_NET_MAX_ENUM_NAME_LENGTH 32 typedef enum { UCA_NET_MESSAGE_INVALID = 0, @@ -95,6 +96,7 @@ typedef struct { gint maximum; guint n_values; gint values[UCA_NET_MAX_ENUM_LENGTH]; + gchar value_names[UCA_NET_MAX_ENUM_LENGTH][UCA_NET_MAX_ENUM_NAME_LENGTH]; } genum; NUMERIC_STRUCT (gint) NUMERIC_STRUCT (gint64) |