diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-02-18 12:08:42 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-02-18 12:08:42 +0100 |
commit | 01fdd893ced1f534eea2de39dc363c9e1f43d391 (patch) | |
tree | 133b0b8227d022e9daabfc16453c0c621c819e6a /uca-net-protocol.h | |
parent | 508973808a736a563e54034f86dda39335d629f4 (diff) | |
download | uca-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.h | 33 |
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 |