/usr/include/x86_64-linux-gnu/freerdp/primary.h is in libfreerdp-dev 1.1.0~git20140921.1.440916e+dfsg1-4+deb8u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* Primary Drawing Orders Interface API
*
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef FREERDP_UPDATE_PRIMARY_H
#define FREERDP_UPDATE_PRIMARY_H
#include <freerdp/types.h>
struct _GLYPH_DATA
{
UINT32 cacheIndex;
INT32 x;
INT32 y;
UINT32 cx;
UINT32 cy;
UINT32 cb;
BYTE* aj;
};
typedef struct _GLYPH_DATA GLYPH_DATA;
struct _GLYPH_DATA_V2
{
UINT32 cacheIndex;
INT32 x;
INT32 y;
UINT32 cx;
UINT32 cy;
UINT32 cb;
BYTE* aj;
};
typedef struct _GLYPH_DATA_V2 GLYPH_DATA_V2;
#define BACKMODE_TRANSPARENT 0x0001
#define BACKMODE_OPAQUE 0x0002
struct rdp_bounds
{
INT32 left;
INT32 top;
INT32 right;
INT32 bottom;
};
typedef struct rdp_bounds rdpBounds;
struct rdp_brush
{
UINT32 x;
UINT32 y;
UINT32 bpp;
UINT32 style;
UINT32 hatch;
UINT32 index;
BYTE* data;
BYTE p8x8[8];
};
typedef struct rdp_brush rdpBrush;
struct _ORDER_INFO
{
UINT32 controlFlags;
UINT32 orderType;
UINT32 fieldFlags;
UINT32 boundsFlags;
rdpBounds bounds;
BOOL deltaCoordinates;
};
typedef struct _ORDER_INFO ORDER_INFO;
struct _DSTBLT_ORDER
{
INT32 nLeftRect;
INT32 nTopRect;
INT32 nWidth;
INT32 nHeight;
UINT32 bRop;
};
typedef struct _DSTBLT_ORDER DSTBLT_ORDER;
struct _PATBLT_ORDER
{
INT32 nLeftRect;
INT32 nTopRect;
INT32 nWidth;
INT32 nHeight;
UINT32 bRop;
UINT32 backColor;
UINT32 foreColor;
rdpBrush brush;
};
typedef struct _PATBLT_ORDER PATBLT_ORDER;
struct _SCRBLT_ORDER
{
INT32 nLeftRect;
INT32 nTopRect;
INT32 nWidth;
INT32 nHeight;
UINT32 bRop;
INT32 nXSrc;
INT32 nYSrc;
};
typedef struct _SCRBLT_ORDER SCRBLT_ORDER;
struct _OPAQUE_RECT_ORDER
{
INT32 nLeftRect;
INT32 nTopRect;
INT32 nWidth;
INT32 nHeight;
UINT32 color;
};
typedef struct _OPAQUE_RECT_ORDER OPAQUE_RECT_ORDER;
struct _DRAW_NINE_GRID_ORDER
{
INT32 srcLeft;
INT32 srcTop;
INT32 srcRight;
INT32 srcBottom;
UINT32 bitmapId;
};
typedef struct _DRAW_NINE_GRID_ORDER DRAW_NINE_GRID_ORDER;
struct _DELTA_RECT
{
INT32 left;
INT32 top;
INT32 width;
INT32 height;
};
typedef struct _DELTA_RECT DELTA_RECT;
struct _MULTI_DSTBLT_ORDER
{
INT32 nLeftRect;
INT32 nTopRect;
INT32 nWidth;
INT32 nHeight;
UINT32 bRop;
UINT32 numRectangles;
UINT32 cbData;
DELTA_RECT rectangles[45];
};
typedef struct _MULTI_DSTBLT_ORDER MULTI_DSTBLT_ORDER;
struct _MULTI_PATBLT_ORDER
{
INT32 nLeftRect;
INT32 nTopRect;
INT32 nWidth;
INT32 nHeight;
UINT32 bRop;
UINT32 backColor;
UINT32 foreColor;
rdpBrush brush;
UINT32 numRectangles;
UINT32 cbData;
DELTA_RECT rectangles[45];
};
typedef struct _MULTI_PATBLT_ORDER MULTI_PATBLT_ORDER;
struct _MULTI_SCRBLT_ORDER
{
INT32 nLeftRect;
INT32 nTopRect;
INT32 nWidth;
INT32 nHeight;
UINT32 bRop;
INT32 nXSrc;
INT32 nYSrc;
UINT32 numRectangles;
UINT32 cbData;
DELTA_RECT rectangles[45];
};
typedef struct _MULTI_SCRBLT_ORDER MULTI_SCRBLT_ORDER;
struct _MULTI_OPAQUE_RECT_ORDER
{
INT32 nLeftRect;
INT32 nTopRect;
INT32 nWidth;
INT32 nHeight;
UINT32 color;
UINT32 numRectangles;
UINT32 cbData;
DELTA_RECT rectangles[45];
};
typedef struct _MULTI_OPAQUE_RECT_ORDER MULTI_OPAQUE_RECT_ORDER;
struct _MULTI_DRAW_NINE_GRID_ORDER
{
INT32 srcLeft;
INT32 srcTop;
INT32 srcRight;
INT32 srcBottom;
UINT32 bitmapId;
UINT32 nDeltaEntries;
UINT32 cbData;
BYTE* codeDeltaList;
};
typedef struct _MULTI_DRAW_NINE_GRID_ORDER MULTI_DRAW_NINE_GRID_ORDER;
struct _LINE_TO_ORDER
{
UINT32 backMode;
INT32 nXStart;
INT32 nYStart;
INT32 nXEnd;
INT32 nYEnd;
UINT32 backColor;
UINT32 bRop2;
UINT32 penStyle;
UINT32 penWidth;
UINT32 penColor;
};
typedef struct _LINE_TO_ORDER LINE_TO_ORDER;
struct _DELTA_POINT
{
INT32 x;
INT32 y;
};
typedef struct _DELTA_POINT DELTA_POINT;
struct _POLYLINE_ORDER
{
INT32 xStart;
INT32 yStart;
UINT32 bRop2;
UINT32 penColor;
UINT32 numPoints;
UINT32 cbData;
DELTA_POINT* points;
};
typedef struct _POLYLINE_ORDER POLYLINE_ORDER;
struct _MEMBLT_ORDER
{
UINT32 cacheId;
UINT32 colorIndex;
INT32 nLeftRect;
INT32 nTopRect;
INT32 nWidth;
INT32 nHeight;
UINT32 bRop;
INT32 nXSrc;
INT32 nYSrc;
UINT32 cacheIndex;
rdpBitmap* bitmap;
};
typedef struct _MEMBLT_ORDER MEMBLT_ORDER;
struct _MEM3BLT_ORDER
{
UINT32 cacheId;
UINT32 colorIndex;
INT32 nLeftRect;
INT32 nTopRect;
INT32 nWidth;
INT32 nHeight;
UINT32 bRop;
INT32 nXSrc;
INT32 nYSrc;
UINT32 backColor;
UINT32 foreColor;
rdpBrush brush;
UINT32 cacheIndex;
rdpBitmap* bitmap;
};
typedef struct _MEM3BLT_ORDER MEM3BLT_ORDER;
struct _SAVE_BITMAP_ORDER
{
UINT32 savedBitmapPosition;
INT32 nLeftRect;
INT32 nTopRect;
INT32 nRightRect;
INT32 nBottomRect;
UINT32 operation;
};
typedef struct _SAVE_BITMAP_ORDER SAVE_BITMAP_ORDER;
struct _GLYPH_FRAGMENT_INDEX
{
UINT32 index;
UINT32 delta;
};
typedef struct _GLYPH_FRAGMENT_INDEX GLYPH_FRAGMENT_INDEX;
struct _GLYPH_FRAGMENT
{
UINT32 operation;
UINT32 index;
UINT32 size;
UINT32 nindices;
GLYPH_FRAGMENT_INDEX* indices;
};
typedef struct _GLYPH_FRAGMENT GLYPH_FRAGMENT;
struct _GLYPH_INDEX_ORDER
{
UINT32 cacheId;
UINT32 flAccel;
UINT32 ulCharInc;
UINT32 fOpRedundant;
UINT32 backColor;
UINT32 foreColor;
INT32 bkLeft;
INT32 bkTop;
INT32 bkRight;
INT32 bkBottom;
INT32 opLeft;
INT32 opTop;
INT32 opRight;
INT32 opBottom;
rdpBrush brush;
INT32 x;
INT32 y;
UINT32 cbData;
BYTE data[256];
};
typedef struct _GLYPH_INDEX_ORDER GLYPH_INDEX_ORDER;
struct _FAST_INDEX_ORDER
{
UINT32 cacheId;
UINT32 flAccel;
UINT32 ulCharInc;
UINT32 backColor;
UINT32 foreColor;
INT32 bkLeft;
INT32 bkTop;
INT32 bkRight;
INT32 bkBottom;
INT32 opLeft;
INT32 opTop;
INT32 opRight;
INT32 opBottom;
BOOL opaqueRect;
INT32 x;
INT32 y;
UINT32 cbData;
BYTE data[256];
};
typedef struct _FAST_INDEX_ORDER FAST_INDEX_ORDER;
struct _FAST_GLYPH_ORDER
{
UINT32 cacheId;
UINT32 flAccel;
UINT32 ulCharInc;
UINT32 backColor;
UINT32 foreColor;
INT32 bkLeft;
INT32 bkTop;
INT32 bkRight;
INT32 bkBottom;
INT32 opLeft;
INT32 opTop;
INT32 opRight;
INT32 opBottom;
INT32 x;
INT32 y;
UINT32 cbData;
BYTE data[256];
GLYPH_DATA_V2 glyphData;
};
typedef struct _FAST_GLYPH_ORDER FAST_GLYPH_ORDER;
struct _POLYGON_SC_ORDER
{
INT32 xStart;
INT32 yStart;
UINT32 bRop2;
UINT32 fillMode;
UINT32 brushColor;
UINT32 numPoints;
UINT32 cbData;
DELTA_POINT* points;
};
typedef struct _POLYGON_SC_ORDER POLYGON_SC_ORDER;
struct _POLYGON_CB_ORDER
{
INT32 xStart;
INT32 yStart;
UINT32 bRop2;
UINT32 backMode;
UINT32 fillMode;
UINT32 backColor;
UINT32 foreColor;
rdpBrush brush;
UINT32 numPoints;
UINT32 cbData;
DELTA_POINT* points;
};
typedef struct _POLYGON_CB_ORDER POLYGON_CB_ORDER;
struct _ELLIPSE_SC_ORDER
{
INT32 leftRect;
INT32 topRect;
INT32 rightRect;
INT32 bottomRect;
UINT32 bRop2;
UINT32 fillMode;
UINT32 color;
};
typedef struct _ELLIPSE_SC_ORDER ELLIPSE_SC_ORDER;
struct _ELLIPSE_CB_ORDER
{
INT32 leftRect;
INT32 topRect;
INT32 rightRect;
INT32 bottomRect;
UINT32 bRop2;
UINT32 fillMode;
UINT32 backColor;
UINT32 foreColor;
rdpBrush brush;
};
typedef struct _ELLIPSE_CB_ORDER ELLIPSE_CB_ORDER;
typedef void (*pDstBlt)(rdpContext* context, DSTBLT_ORDER* dstblt);
typedef void (*pPatBlt)(rdpContext* context, PATBLT_ORDER* patblt);
typedef void (*pScrBlt)(rdpContext* context, SCRBLT_ORDER* scrblt);
typedef void (*pOpaqueRect)(rdpContext* context, OPAQUE_RECT_ORDER* opaque_rect);
typedef void (*pDrawNineGrid)(rdpContext* context, DRAW_NINE_GRID_ORDER* draw_nine_grid);
typedef void (*pMultiDstBlt)(rdpContext* context, MULTI_DSTBLT_ORDER* multi_dstblt);
typedef void (*pMultiPatBlt)(rdpContext* context, MULTI_PATBLT_ORDER* multi_patblt);
typedef void (*pMultiScrBlt)(rdpContext* context, MULTI_SCRBLT_ORDER* multi_scrblt);
typedef void (*pMultiOpaqueRect)(rdpContext* context, MULTI_OPAQUE_RECT_ORDER* multi_opaque_rect);
typedef void (*pMultiDrawNineGrid)(rdpContext* context, MULTI_DRAW_NINE_GRID_ORDER* multi_draw_nine_grid);
typedef void (*pLineTo)(rdpContext* context, LINE_TO_ORDER* line_to);
typedef void (*pPolyline)(rdpContext* context, POLYLINE_ORDER* polyline);
typedef void (*pMemBlt)(rdpContext* context, MEMBLT_ORDER* memblt);
typedef void (*pMem3Blt)(rdpContext* context, MEM3BLT_ORDER* memblt);
typedef void (*pSaveBitmap)(rdpContext* context, SAVE_BITMAP_ORDER* save_bitmap);
typedef void (*pGlyphIndex)(rdpContext* context, GLYPH_INDEX_ORDER* glyph_index);
typedef void (*pFastIndex)(rdpContext* context, FAST_INDEX_ORDER* fast_index);
typedef void (*pFastGlyph)(rdpContext* context, FAST_GLYPH_ORDER* fast_glyph);
typedef void (*pPolygonSC)(rdpContext* context, POLYGON_SC_ORDER* polygon_sc);
typedef void (*pPolygonCB)(rdpContext* context, POLYGON_CB_ORDER* polygon_cb);
typedef void (*pEllipseSC)(rdpContext* context, ELLIPSE_SC_ORDER* ellipse_sc);
typedef void (*pEllipseCB)(rdpContext* context, ELLIPSE_CB_ORDER* ellipse_cb);
struct rdp_primary_update
{
rdpContext* context; /* 0 */
UINT32 paddingA[16 - 1]; /* 1 */
pDstBlt DstBlt; /* 16 */
pPatBlt PatBlt; /* 17 */
pScrBlt ScrBlt; /* 18 */
pOpaqueRect OpaqueRect; /* 19 */
pDrawNineGrid DrawNineGrid; /* 20 */
pMultiDstBlt MultiDstBlt; /* 21 */
pMultiPatBlt MultiPatBlt; /* 22 */
pMultiScrBlt MultiScrBlt; /* 23 */
pMultiOpaqueRect MultiOpaqueRect; /* 24 */
pMultiDrawNineGrid MultiDrawNineGrid; /* 25 */
pLineTo LineTo; /* 26 */
pPolyline Polyline; /* 27 */
pMemBlt MemBlt; /* 28 */
pMem3Blt Mem3Blt; /* 29 */
pSaveBitmap SaveBitmap; /* 30 */
pGlyphIndex GlyphIndex; /* 31 */
pFastIndex FastIndex; /* 32 */
pFastGlyph FastGlyph; /* 33 */
pPolygonSC PolygonSC; /* 34 */
pPolygonCB PolygonCB; /* 35 */
pEllipseSC EllipseSC; /* 36 */
pEllipseCB EllipseCB; /* 37 */
UINT32 paddingB[48 - 38]; /* 38 */
/* internal */
ORDER_INFO order_info;
DSTBLT_ORDER dstblt;
PATBLT_ORDER patblt;
SCRBLT_ORDER scrblt;
OPAQUE_RECT_ORDER opaque_rect;
DRAW_NINE_GRID_ORDER draw_nine_grid;
MULTI_DSTBLT_ORDER multi_dstblt;
MULTI_PATBLT_ORDER multi_patblt;
MULTI_SCRBLT_ORDER multi_scrblt;
MULTI_OPAQUE_RECT_ORDER multi_opaque_rect;
MULTI_DRAW_NINE_GRID_ORDER multi_draw_nine_grid;
LINE_TO_ORDER line_to;
POLYLINE_ORDER polyline;
MEMBLT_ORDER memblt;
MEM3BLT_ORDER mem3blt;
SAVE_BITMAP_ORDER save_bitmap;
GLYPH_INDEX_ORDER glyph_index;
FAST_INDEX_ORDER fast_index;
FAST_GLYPH_ORDER fast_glyph;
POLYGON_SC_ORDER polygon_sc;
POLYGON_CB_ORDER polygon_cb;
ELLIPSE_SC_ORDER ellipse_sc;
ELLIPSE_CB_ORDER ellipse_cb;
};
typedef struct rdp_primary_update rdpPrimaryUpdate;
#endif /* FREERDP_UPDATE_PRIMARY_H */
|