mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
fd89575485
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).
37 lines
918 B
C
37 lines
918 B
C
#ifndef _LIBRFB_BYTESTREAM_H_
|
|
#define _LIBRFB_BYTESTREAM_H_
|
|
|
|
#include <glib.h>
|
|
|
|
#include <librfb/rfbbuffer.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef struct _RfbBytestream RfbBytestream;
|
|
|
|
struct _RfbBytestream
|
|
{
|
|
RfbBuffer * (* get_buffer) (gint length, gpointer user_data);
|
|
|
|
gpointer user_data;
|
|
|
|
GSList *buffer_list;
|
|
gint length;
|
|
gint offset;
|
|
};
|
|
|
|
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
|
|
|
|
#endif
|