aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/maweb.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-08-16 19:57:25 +0200
committercbdev <cb@cbcdn.com>2019-08-16 19:57:25 +0200
commit7997c74b421437c64ad3c25d5e7943470a6b9bc7 (patch)
tree8c2f8eb25e275e73108c3558845aba43e41aeba0 /backends/maweb.h
parentc2bf894835d01c648e3f64826e69944a2a27373f (diff)
downloadmidimonster-7997c74b421437c64ad3c25d5e7943470a6b9bc7.tar.gz
midimonster-7997c74b421437c64ad3c25d5e7943470a6b9bc7.tar.bz2
midimonster-7997c74b421437c64ad3c25d5e7943470a6b9bc7.zip
Implement dot2 specific workarounds
Diffstat (limited to 'backends/maweb.h')
-rw-r--r--backends/maweb.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/backends/maweb.h b/backends/maweb.h
index 6e6e652..5f59cc1 100644
--- a/backends/maweb.h
+++ b/backends/maweb.h
@@ -28,6 +28,13 @@ typedef enum /*_maweb_channel_type*/ {
cmdline_button
} maweb_channel_type;
+typedef enum /*_maweb_peer_type*/ {
+ peer_unidentified = 0,
+ peer_ma2,
+ peer_ma3,
+ peer_dot2
+} maweb_peer_type;
+
typedef enum /*_ws_conn_state*/ {
ws_new,
ws_http,
@@ -57,9 +64,10 @@ typedef struct /*_maweb_instance_data*/ {
char* port;
char* user;
char* pass;
-
+
uint8_t login;
int64_t session;
+ maweb_peer_type peer_type;
int fd;
maweb_state state;