diff options
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 |