summaryrefslogtreecommitdiffstats
path: root/uca-net-protocol.h
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-protocol.h
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-protocol.h')
-rw-r--r--uca-net-protocol.h4
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)