diff options
Diffstat (limited to 'gst/librfb/rfbbuffer.h')
-rw-r--r-- | gst/librfb/rfbbuffer.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gst/librfb/rfbbuffer.h b/gst/librfb/rfbbuffer.h new file mode 100644 index 00000000..7c4d40b5 --- /dev/null +++ b/gst/librfb/rfbbuffer.h @@ -0,0 +1,26 @@ + +#ifndef _LIBRFB_BUFFER_H_ +#define _LIBRFB_BUFFER_H_ + +#include <glib.h> + +G_BEGIN_DECLS + +typedef struct _RfbBuffer RfbBuffer; + +struct _RfbBuffer +{ + guint8 *data; + int length; + + void (*free_data) (guint8 *data, gpointer priv); + gpointer buffer_private; +}; + +RfbBuffer *rfb_buffer_new (void); +RfbBuffer *rfb_buffer_new_and_alloc (int len); +void rfb_buffer_free (RfbBuffer *buffer); + +G_END_DECLS + +#endif |