gstreamer/gst/librfb/rfbbytestream.h
David Schleef a970a32304 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:
2005-02-11 22:01:19 +00:00

33 lines
608 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) (int length, gpointer user_data);
gpointer user_data;
GList *buffer_list;
int length;
int 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);
G_END_DECLS
#endif