summaryrefslogtreecommitdiffstats
path: root/uca-net-protocol.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-02-18 12:08:42 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-02-18 12:08:42 +0100
commit01fdd893ced1f534eea2de39dc363c9e1f43d391 (patch)
tree133b0b8227d022e9daabfc16453c0c621c819e6a /uca-net-protocol.h
parent508973808a736a563e54034f86dda39335d629f4 (diff)
downloaduca-net-01fdd893ced1f534eea2de39dc363c9e1f43d391.tar.gz
uca-net-01fdd893ced1f534eea2de39dc363c9e1f43d391.tar.bz2
uca-net-01fdd893ced1f534eea2de39dc363c9e1f43d391.tar.xz
uca-net-01fdd893ced1f534eea2de39dc363c9e1f43d391.zip
Proxy custom camera properties to the client
Diffstat (limited to 'uca-net-protocol.h')
-rw-r--r--uca-net-protocol.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/uca-net-protocol.h b/uca-net-protocol.h
index 653a26d..d8e07e6 100644
--- a/uca-net-protocol.h
+++ b/uca-net-protocol.h
@@ -5,6 +5,7 @@
typedef enum {
UCA_NET_MESSAGE_INVALID = 0,
+ UCA_NET_MESSAGE_GET_PROPERTIES,
UCA_NET_MESSAGE_GET_PROPERTY,
UCA_NET_MESSAGE_SET_PROPERTY,
UCA_NET_MESSAGE_START_RECORDING,
@@ -60,4 +61,36 @@ typedef struct {
gchar name[128];
} UcaNetMessageWriteRequest;
+typedef struct {
+ UcaNetMessageType type;
+ guint num_properties;
+} UcaNetMessageGetPropertiesReply;
+
+#define NUMERIC_STRUCT(type) \
+ struct { \
+ type minimum; \
+ type maximum; \
+ type default_value; \
+ } type;
+
+typedef struct {
+ GType value_type;
+ GParamFlags flags;
+ gchar name[128];
+ gchar nick[128];
+ gchar blurb[128];
+
+ union {
+ struct {
+ gboolean default_value;
+ } gboolean;
+ NUMERIC_STRUCT (gint)
+ NUMERIC_STRUCT (guint)
+ NUMERIC_STRUCT (gfloat)
+ NUMERIC_STRUCT (gdouble)
+ } spec;
+} UcaNetMessageProperty;
+
+#undef NUMERIC_STRUCT
+
#endif