gstreamer/gst/librfb/rfbbuffer.c
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

27 lines
392 B
C

#include <rfbbuffer.h>
RfbBuffer *
rfb_buffer_new (void)
{
return g_new0 (RfbBuffer, 1);
}
RfbBuffer *
rfb_buffer_new_and_alloc (int len)
{
RfbBuffer *buffer = g_new0 (RfbBuffer, 1);
buffer->data = g_malloc (len);
buffer->free_data = (void *) g_free;
return buffer;
}
void
rfb_buffer_free (RfbBuffer * buffer)
{
buffer->free_data (buffer->data, buffer->buffer_private);
}