~ubuntu-branches/ubuntu/vivid/freerdp/vivid

« back to all changes in this revision

Viewing changes to include/freerdp/altsec.h

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-11-11 12:20:50 UTC
  • mfrom: (1.1.9) (9.1.17 sid)
  • Revision ID: package-import@ubuntu.com-20141111122050-wyr8hrnwco9fcmum
Tags: 1.1.0~git20140921.1.440916e+dfsg1-2ubuntu1
* Merge with Debian unstable, remaining changes
  - Disable ffmpeg support
* Disable gstreamer support, this relies on gstreamer 0.10 and we don't want
  to add any more deps on that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * FreeRDP: A Remote Desktop Protocol Client
 
2
 * FreeRDP: A Remote Desktop Protocol Implementation
3
3
 * Alternate Secondary Drawing Orders Interface API
4
4
 *
5
5
 * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
17
17
 * limitations under the License.
18
18
 */
19
19
 
20
 
#ifndef __UPDATE_ALTSEC_H
21
 
#define __UPDATE_ALTSEC_H
 
20
#ifndef FREERDP_UPDATE_ALTSEC_H
 
21
#define FREERDP_UPDATE_ALTSEC_H
22
22
 
23
23
#include <freerdp/types.h>
24
24
 
38
38
 
39
39
struct _OFFSCREEN_DELETE_LIST
40
40
{
41
 
        uint32 sIndices;
42
 
        uint32 cIndices;
43
 
        uint16* indices;
 
41
        UINT32 sIndices;
 
42
        UINT32 cIndices;
 
43
        UINT16* indices;
44
44
};
45
45
typedef struct _OFFSCREEN_DELETE_LIST OFFSCREEN_DELETE_LIST;
46
46
 
47
47
struct _CREATE_OFFSCREEN_BITMAP_ORDER
48
48
{
49
 
        uint32 id;
50
 
        uint32 cx;
51
 
        uint32 cy;
 
49
        UINT32 id;
 
50
        UINT32 cx;
 
51
        UINT32 cy;
52
52
        OFFSCREEN_DELETE_LIST deleteList;
53
53
};
54
54
typedef struct _CREATE_OFFSCREEN_BITMAP_ORDER CREATE_OFFSCREEN_BITMAP_ORDER;
55
55
 
56
56
struct _SWITCH_SURFACE_ORDER
57
57
{
58
 
        uint32 bitmapId;
 
58
        UINT32 bitmapId;
59
59
};
60
60
typedef struct _SWITCH_SURFACE_ORDER SWITCH_SURFACE_ORDER;
61
61
 
62
62
struct _NINE_GRID_BITMAP_INFO
63
63
{
64
 
        uint32 flFlags;
65
 
        uint32 ulLeftWidth;
66
 
        uint32 ulRightWidth;
67
 
        uint32 ulTopHeight;
68
 
        uint32 ulBottomHeight;
69
 
        uint32 crTransparent;
 
64
        UINT32 flFlags;
 
65
        UINT32 ulLeftWidth;
 
66
        UINT32 ulRightWidth;
 
67
        UINT32 ulTopHeight;
 
68
        UINT32 ulBottomHeight;
 
69
        UINT32 crTransparent;
70
70
};
71
71
typedef struct _NINE_GRID_BITMAP_INFO NINE_GRID_BITMAP_INFO;
72
72
 
73
73
struct _CREATE_NINE_GRID_BITMAP_ORDER
74
74
{
75
 
        uint32 bitmapBpp;
76
 
        uint32 bitmapId;
77
 
        uint32 cx;
78
 
        uint32 cy;
 
75
        UINT32 bitmapBpp;
 
76
        UINT32 bitmapId;
 
77
        UINT32 cx;
 
78
        UINT32 cy;
79
79
        NINE_GRID_BITMAP_INFO nineGridInfo;
80
80
};
81
81
typedef struct _CREATE_NINE_GRID_BITMAP_ORDER CREATE_NINE_GRID_BITMAP_ORDER;
82
82
 
83
83
struct _FRAME_MARKER_ORDER
84
84
{
85
 
        uint32 action;
 
85
        UINT32 action;
86
86
};
87
87
typedef struct _FRAME_MARKER_ORDER FRAME_MARKER_ORDER;
88
88
 
89
89
struct _STREAM_BITMAP_FIRST_ORDER
90
90
{
91
 
        uint32 bitmapFlags;
92
 
        uint32 bitmapBpp;
93
 
        uint32 bitmapType;
94
 
        uint32 bitmapWidth;
95
 
        uint32 bitmapHeight;
96
 
        uint32 bitmapSize;
97
 
        uint32 bitmapBlockSize;
98
 
        uint8* bitmapBlock;
 
91
        UINT32 bitmapFlags;
 
92
        UINT32 bitmapBpp;
 
93
        UINT32 bitmapType;
 
94
        UINT32 bitmapWidth;
 
95
        UINT32 bitmapHeight;
 
96
        UINT32 bitmapSize;
 
97
        UINT32 bitmapBlockSize;
 
98
        BYTE* bitmapBlock;
99
99
};
100
100
typedef struct _STREAM_BITMAP_FIRST_ORDER STREAM_BITMAP_FIRST_ORDER;
101
101
 
102
102
struct _STREAM_BITMAP_NEXT_ORDER
103
103
{
104
 
        uint32 bitmapFlags;
105
 
        uint32 bitmapType;
106
 
        uint32 bitmapBlockSize;
107
 
        uint8* bitmapBlock;
 
104
        UINT32 bitmapFlags;
 
105
        UINT32 bitmapType;
 
106
        UINT32 bitmapBlockSize;
 
107
        BYTE* bitmapBlock;
108
108
};
109
109
typedef struct _STREAM_BITMAP_NEXT_ORDER STREAM_BITMAP_NEXT_ORDER;
110
110
 
111
111
struct _DRAW_GDIPLUS_FIRST_ORDER
112
112
{
113
 
        uint32 cbSize;
114
 
        uint32 cbTotalSize;
115
 
        uint32 cbTotalEmfSize;
116
 
        uint8* emfRecords;
 
113
        UINT32 cbSize;
 
114
        UINT32 cbTotalSize;
 
115
        UINT32 cbTotalEmfSize;
 
116
        BYTE* emfRecords;
117
117
};
118
118
typedef struct _DRAW_GDIPLUS_FIRST_ORDER DRAW_GDIPLUS_FIRST_ORDER;
119
119
 
120
120
struct _DRAW_GDIPLUS_NEXT_ORDER
121
121
{
122
 
        uint32 cbSize;
123
 
        uint8* emfRecords;
 
122
        UINT32 cbSize;
 
123
        BYTE* emfRecords;
124
124
};
125
125
typedef struct _DRAW_GDIPLUS_NEXT_ORDER DRAW_GDIPLUS_NEXT_ORDER;
126
126
 
127
127
struct _DRAW_GDIPLUS_END_ORDER
128
128
{
129
 
        uint32 cbSize;
130
 
        uint32 cbTotalSize;
131
 
        uint32 cbTotalEmfSize;
132
 
        uint8* emfRecords;
 
129
        UINT32 cbSize;
 
130
        UINT32 cbTotalSize;
 
131
        UINT32 cbTotalEmfSize;
 
132
        BYTE* emfRecords;
133
133
};
134
134
typedef struct _DRAW_GDIPLUS_END_ORDER DRAW_GDIPLUS_END_ORDER;
135
135
 
136
136
struct _DRAW_GDIPLUS_CACHE_FIRST_ORDER
137
137
{
138
 
        uint32 flags;
139
 
        uint32 cacheType;
140
 
        uint32 cacheIndex;
141
 
        uint32 cbSize;
142
 
        uint32 cbTotalSize;
143
 
        uint8* emfRecords;
 
138
        UINT32 flags;
 
139
        UINT32 cacheType;
 
140
        UINT32 cacheIndex;
 
141
        UINT32 cbSize;
 
142
        UINT32 cbTotalSize;
 
143
        BYTE* emfRecords;
144
144
};
145
145
typedef struct _DRAW_GDIPLUS_CACHE_FIRST_ORDER DRAW_GDIPLUS_CACHE_FIRST_ORDER;
146
146
 
147
147
struct _DRAW_GDIPLUS_CACHE_NEXT_ORDER
148
148
{
149
 
        uint32 flags;
150
 
        uint32 cacheType;
151
 
        uint32 cacheIndex;
152
 
        uint32 cbSize;
153
 
        uint8* emfRecords;
 
149
        UINT32 flags;
 
150
        UINT32 cacheType;
 
151
        UINT32 cacheIndex;
 
152
        UINT32 cbSize;
 
153
        BYTE* emfRecords;
154
154
};
155
155
typedef struct _DRAW_GDIPLUS_CACHE_NEXT_ORDER DRAW_GDIPLUS_CACHE_NEXT_ORDER;
156
156
 
157
157
struct _DRAW_GDIPLUS_CACHE_END_ORDER
158
158
{
159
 
        uint32 flags;
160
 
        uint32 cacheType;
161
 
        uint32 cacheIndex;
162
 
        uint32 cbSize;
163
 
        uint32 cbTotalSize;
164
 
        uint8* emfRecords;
 
159
        UINT32 flags;
 
160
        UINT32 cacheType;
 
161
        UINT32 cacheIndex;
 
162
        UINT32 cbSize;
 
163
        UINT32 cbTotalSize;
 
164
        BYTE* emfRecords;
165
165
};
166
166
typedef struct _DRAW_GDIPLUS_CACHE_END_ORDER DRAW_GDIPLUS_CACHE_END_ORDER;
167
167
 
170
170
typedef void (*pCreateNineGridBitmap)(rdpContext* context, CREATE_NINE_GRID_BITMAP_ORDER* create_nine_grid_bitmap);
171
171
typedef void (*pFrameMarker)(rdpContext* context, FRAME_MARKER_ORDER* frame_marker);
172
172
typedef void (*pStreamBitmapFirst)(rdpContext* context, STREAM_BITMAP_FIRST_ORDER* stream_bitmap_first);
173
 
typedef void (*pStreamBitmapNext)(rdpContext* context, STREAM_BITMAP_FIRST_ORDER* stream_bitmap_next);
 
173
typedef void (*pStreamBitmapNext)(rdpContext* context, STREAM_BITMAP_NEXT_ORDER* stream_bitmap_next);
174
174
typedef void (*pDrawGdiPlusFirst)(rdpContext* context, DRAW_GDIPLUS_FIRST_ORDER* draw_gdiplus_first);
175
175
typedef void (*pDrawGdiPlusNext)(rdpContext* context, DRAW_GDIPLUS_NEXT_ORDER* draw_gdiplus_next);
176
176
typedef void (*pDrawGdiPlusEnd)(rdpContext* context, DRAW_GDIPLUS_END_ORDER* draw_gdiplus_end);
181
181
struct rdp_altsec_update
182
182
{
183
183
        rdpContext* context; /* 0 */
184
 
        uint32 paddingA[16 - 1]; /* 1 */
 
184
        UINT32 paddingA[16 - 1]; /* 1 */
185
185
 
186
186
        pCreateOffscreenBitmap CreateOffscreenBitmap; /* 16 */
187
187
        pSwitchSurface SwitchSurface; /* 17 */
195
195
        pDrawGdiPlusCacheFirst DrawGdiPlusCacheFirst; /* 25 */
196
196
        pDrawGdiPlusCacheNext DrawGdiPlusCacheNext; /* 26 */
197
197
        pDrawGdiPlusCacheEnd DrawGdiPlusCacheEnd; /* 27 */
198
 
        uint32 paddingB[32 - 28]; /* 28 */
 
198
        UINT32 paddingB[32 - 28]; /* 28 */
199
199
 
200
200
        /* internal */
201
201
 
204
204
        CREATE_NINE_GRID_BITMAP_ORDER create_nine_grid_bitmap;
205
205
        FRAME_MARKER_ORDER frame_marker;
206
206
        STREAM_BITMAP_FIRST_ORDER stream_bitmap_first;
207
 
        STREAM_BITMAP_FIRST_ORDER stream_bitmap_next;
 
207
        STREAM_BITMAP_NEXT_ORDER stream_bitmap_next;
208
208
        DRAW_GDIPLUS_CACHE_FIRST_ORDER draw_gdiplus_cache_first;
209
209
        DRAW_GDIPLUS_CACHE_NEXT_ORDER draw_gdiplus_cache_next;
210
210
        DRAW_GDIPLUS_CACHE_END_ORDER draw_gdiplus_cache_end;
214
214
};
215
215
typedef struct rdp_altsec_update rdpAltSecUpdate;
216
216
 
217
 
#endif /* __UPDATE_ALTSEC_H */
 
217
#endif /* FREERDP_UPDATE_ALTSEC_H */