diff options
author | Andre Moreira Magalhaes <andrunko@gmail.com> | 2006-11-17 03:15:40 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2006-11-17 03:15:40 +0000 |
commit | fd89575485e4ad018b0457034e28b4b65989dd74 (patch) | |
tree | 702267162df1141fb67927356d5a5defc8bd7b74 /gst/librfb/rfbbytestream.h | |
parent | de9ee6e6e42b8485daf19586dc976fe05bd14087 (diff) | |
download | gst-plugins-bad-fd89575485e4ad018b0457034e28b4b65989dd74.tar.gz gst-plugins-bad-fd89575485e4ad018b0457034e28b4b65989dd74.tar.bz2 gst-plugins-bad-fd89575485e4ad018b0457034e28b4b65989dd74.zip |
Port librfb to 0.10 (#376106).
Original commit message from CVS:
Patch by: Andre Moreira Magalhaes <andrunko@gmail.com>
* configure.ac:
* 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:
Port librfb to 0.10 (#376106).
Diffstat (limited to 'gst/librfb/rfbbytestream.h')
-rw-r--r-- | gst/librfb/rfbbytestream.h | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/gst/librfb/rfbbytestream.h b/gst/librfb/rfbbytestream.h index 8304169a..65b936d1 100644 --- a/gst/librfb/rfbbytestream.h +++ b/gst/librfb/rfbbytestream.h @@ -1,4 +1,3 @@ - #ifndef _LIBRFB_BYTESTREAM_H_ #define _LIBRFB_BYTESTREAM_H_ @@ -12,21 +11,26 @@ typedef struct _RfbBytestream RfbBytestream; struct _RfbBytestream { - RfbBuffer * (*get_buffer) (int length, gpointer user_data); + RfbBuffer * (* get_buffer) (gint length, gpointer user_data); + gpointer user_data; - GList *buffer_list; - int length; - int offset; + GSList *buffer_list; + gint length; + gint offset; }; - -RfbBytestream * rfb_bytestream_new (void); - -int rfb_bytestream_read (RfbBytestream *bs, RfbBuffer **buffer, int len); -int rfb_bytestream_peek (RfbBytestream *bs, RfbBuffer **buffer, int len); -int rfb_bytestream_flush (RfbBytestream *bs, int len); - +RfbBytestream *rfb_bytestream_new (void); +void rfb_bytestream_free (RfbBytestream * bs); + +gint rfb_bytestream_read (RfbBytestream * bs, + RfbBuffer ** buffer, + gint len); +gint rfb_bytestream_peek (RfbBytestream * bs, + RfbBuffer ** buffer, + gint len); +gint rfb_bytestream_flush (RfbBytestream * bs, + gint len); G_END_DECLS |