types.h (1670B)
1/** 2 * FreeRDP: A Remote Desktop Protocol Implementation 3 * Type Definitions 4 * 5 * Copyright 2009-2011 Jay Sorg 6 * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> 7 * 8 * Licensed under the Apache License, Version 2.0 (the "License"); 9 * you may not use this file except in compliance with the License. 10 * You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 */ 20 21#ifndef FREERDP_TYPES_H 22#define FREERDP_TYPES_H 23 24#include <winpr/wtypes.h> 25#include <winpr/wtsapi.h> 26 27#ifndef MIN 28#define MIN(x, y) (((x) < (y)) ? (x) : (y)) 29#endif 30 31#ifndef MAX 32#define MAX(x, y) (((x) > (y)) ? (x) : (y)) 33#endif 34 35struct _PALETTE_ENTRY 36{ 37 BYTE red; 38 BYTE green; 39 BYTE blue; 40}; 41typedef struct _PALETTE_ENTRY PALETTE_ENTRY; 42 43struct rdp_palette 44{ 45 UINT32 count; 46 PALETTE_ENTRY entries[256]; 47}; 48typedef struct rdp_palette rdpPalette; 49 50#include <freerdp/settings.h> 51 52struct _RDP_PLUGIN_DATA 53{ 54 DWORD size; 55 void* data[4]; 56}; 57typedef struct _RDP_PLUGIN_DATA RDP_PLUGIN_DATA; 58 59struct _RDP_RECT 60{ 61 INT16 x; 62 INT16 y; 63 INT16 width; 64 INT16 height; 65}; 66typedef struct _RDP_RECT RDP_RECT; 67 68struct _RECTANGLE_16 69{ 70 UINT16 left; 71 UINT16 top; 72 UINT16 right; 73 UINT16 bottom; 74}; 75typedef struct _RECTANGLE_16 RECTANGLE_16; 76 77/* Plugin events */ 78 79#include <freerdp/message.h> 80#include <winpr/collections.h> 81 82#endif /* __RDP_TYPES_H */