2005-02-11 22:01:19 +00:00
|
|
|
#ifndef _LIBRFB_BUFFER_H_
|
|
|
|
#define _LIBRFB_BUFFER_H_
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
2007-10-31 14:09:25 +00:00
|
|
|
G_BEGIN_DECLS typedef struct _RfbBuffer RfbBuffer;
|
|
|
|
typedef void (*RfbBufferFreeFunc) (guint8 * data, gpointer priv);
|
2005-02-11 22:01:19 +00:00
|
|
|
|
|
|
|
struct _RfbBuffer
|
|
|
|
{
|
2007-10-08 17:46:45 +00:00
|
|
|
RfbBufferFreeFunc free_data;
|
2005-02-11 22:01:19 +00:00
|
|
|
gpointer buffer_private;
|
2006-11-17 03:15:40 +00:00
|
|
|
|
|
|
|
guint8 *data;
|
|
|
|
gint length;
|
2005-02-11 22:01:19 +00:00
|
|
|
};
|
|
|
|
|
2007-10-31 14:09:25 +00:00
|
|
|
RfbBuffer *rfb_buffer_new (void);
|
2006-11-17 03:15:40 +00:00
|
|
|
RfbBuffer *rfb_buffer_new_and_alloc (gint len);
|
2007-10-31 14:09:25 +00:00
|
|
|
void rfb_buffer_free (RfbBuffer * buffer);
|
2005-02-11 22:01:19 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif
|