From a458032e6ebafa9245575155c0d3233d30843762 Mon Sep 17 00:00:00 2001 From: Thijs Vermeir Date: Wed, 19 Sep 2007 13:06:17 +0000 Subject: gst/librfb/gstrfbsrc.c: Add password property (write only) Original commit message from CVS: * gst/librfb/gstrfbsrc.c: Add password property (write only) * gst/librfb/rfbdecoder.c: Read the reason on failure Use the password property for authentication * gst/librfb/rfbdecoder.h: Add defines for version checking --- gst/librfb/rfbdecoder.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gst/librfb/rfbdecoder.h') 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; -- cgit v1.2.1