diff options
author | Thijs Vermeir <thijsvermeir@gmail.com> | 2007-09-19 13:06:17 +0000 |
---|---|---|
committer | Thijs Vermeir <thijsvermeir@gmail.com> | 2007-09-19 13:06:17 +0000 |
commit | a458032e6ebafa9245575155c0d3233d30843762 (patch) | |
tree | 9cb4912f66174a424be01e45bef943936be6c554 /gst/librfb/rfbdecoder.h | |
parent | 416a4f18cf4d0cc3126f9628165612477c4d7092 (diff) | |
download | gst-plugins-bad-a458032e6ebafa9245575155c0d3233d30843762.tar.gz gst-plugins-bad-a458032e6ebafa9245575155c0d3233d30843762.tar.bz2 gst-plugins-bad-a458032e6ebafa9245575155c0d3233d30843762.zip |
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
Diffstat (limited to 'gst/librfb/rfbdecoder.h')
-rw-r--r-- | gst/librfb/rfbdecoder.h | 7 |
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; |