summaryrefslogtreecommitdiffstats
path: root/gst/librfb/rfbdecoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'gst/librfb/rfbdecoder.h')
-rw-r--r--gst/librfb/rfbdecoder.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/librfb/rfbdecoder.h b/gst/librfb/rfbdecoder.h
index 1a0c2831..2f423341 100644
--- a/gst/librfb/rfbdecoder.h
+++ b/gst/librfb/rfbdecoder.h
@@ -12,6 +12,11 @@ enum {
SECURITY_VNC,
};
+#define IS_VERSION(x, ma, mi) ((x->protocol_major == ma) && (x->protocol_minor == mi))
+#define IS_VERSION_3_3(x) IS_VERSION(x, 3, 3)
+#define IS_VERSION_3_7(x) IS_VERSION(x, 3, 7)
+#define IS_VERSION_3_8(x) IS_VERSION(x, 3, 8)
+
typedef struct _RfbDecoder RfbDecoder;
struct _RfbDecoder
@@ -41,6 +46,8 @@ struct _RfbDecoder
guint protocol_minor;
guint security_type;
+ gchar *password;
+
guint width;
guint height;
guint bpp;