summaryrefslogtreecommitdiffstats
path: root/gst/librfb/rfb.c
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2005-02-11 22:01:19 +0000
committerDavid Schleef <ds@schleef.org>2005-02-11 22:01:19 +0000
commita970a323047d9241a4ee96f4126c9739fc9780cf (patch)
tree0cc2c90fba41e659ddfa701c08f9bc0b95545427 /gst/librfb/rfb.c
parent909da9fb0489c3744547e6386531461c072da5fc (diff)
downloadgst-plugins-bad-a970a323047d9241a4ee96f4126c9739fc9780cf.tar.gz
gst-plugins-bad-a970a323047d9241a4ee96f4126c9739fc9780cf.tar.bz2
gst-plugins-bad-a970a323047d9241a4ee96f4126c9739fc9780cf.zip
configure.ac: Pull in librfb from my CVS tree, because it is too small and annoying to be separate. Move rfbsrc plug...
Original commit message from CVS: * configure.ac: Pull in librfb from my CVS tree, because it is too small and annoying to be separate. Move rfbsrc plugin to gst/. * ext/Makefile.am: * ext/librfb/Makefile.am: * ext/librfb/gstrfbsrc.c: * gst/librfb/Makefile.am: * gst/librfb/gstrfbsrc.c: * gst/librfb/rfb.c: * gst/librfb/rfb.h: * gst/librfb/rfbbuffer.c: * gst/librfb/rfbbuffer.h: * gst/librfb/rfbbytestream.c: * gst/librfb/rfbbytestream.h: * gst/librfb/rfbcontext.h: * gst/librfb/rfbdecoder.c: * gst/librfb/rfbdecoder.h: * gst/librfb/rfbutil.h:
Diffstat (limited to 'gst/librfb/rfb.c')
-rw-r--r--gst/librfb/rfb.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/gst/librfb/rfb.c b/gst/librfb/rfb.c
new file mode 100644
index 00000000..ceed1856
--- /dev/null
+++ b/gst/librfb/rfb.c
@@ -0,0 +1,31 @@
+
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "rfb.h"
+
+
+int
+main (int argc, char *argv[])
+{
+ RfbDecoder *decoder;
+
+ //int fd = 0;
+
+ decoder = rfb_decoder_new ();
+
+ rfb_decoder_connect_tcp (decoder, "127.0.0.1", 5901);
+ //rfb_decoder_use_file_descriptor (decoder, fd);
+
+ while (!decoder->inited)
+ rfb_decoder_iterate (decoder);
+
+ rfb_decoder_send_update_request (decoder, FALSE, 0, 0, 100, 100);
+
+ while (1) {
+ rfb_decoder_iterate (decoder);
+ }
+
+ return 0;
+}