summaryrefslogtreecommitdiff
path: root/gst/librfb/rfbcontext.h
blob: fb41aa0c699a5f97e3fe7fb58582b59a0a02c469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _LIBRFB_RFBCONTEXT_H_
#define _LIBRFB_RFBCONTEXT_H_

#include <glib.h>

G_BEGIN_DECLS

typedef struct _RfbContext
{
  RfbConnection *connection;

  guint8 *buffer1;
  gpointer buffer1_alloc;
  guint buffer1_len;

  guint8 *buffer2;
  gpointer buffer2_alloc;
  guint buffer2_len;

  gchar *name;
} RfbContext;

typedef struct _RfbRect
{
  RfbContext *context;

  guint x_pos;
  guint y_pos;
  guint width;
  guint height;
  guint encoding_type;

  gchar *data;
} RfbRect;

G_END_DECLS

#endif