diff options
author | David Schleef <ds@schleef.org> | 2005-02-11 22:01:19 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2005-02-11 22:01:19 +0000 |
commit | a970a323047d9241a4ee96f4126c9739fc9780cf (patch) | |
tree | 0cc2c90fba41e659ddfa701c08f9bc0b95545427 /gst/librfb/rfbbuffer.c | |
parent | 909da9fb0489c3744547e6386531461c072da5fc (diff) | |
download | gst-plugins-bad-a970a323047d9241a4ee96f4126c9739fc9780cf.tar.gz gst-plugins-bad-a970a323047d9241a4ee96f4126c9739fc9780cf.tar.bz2 gst-plugins-bad-a970a323047d9241a4ee96f4126c9739fc9780cf.zip |
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:
Diffstat (limited to 'gst/librfb/rfbbuffer.c')
-rw-r--r-- | gst/librfb/rfbbuffer.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gst/librfb/rfbbuffer.c b/gst/librfb/rfbbuffer.c new file mode 100644 index 00000000..e38def36 --- /dev/null +++ b/gst/librfb/rfbbuffer.c @@ -0,0 +1,27 @@ + +#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); + +} |