FreeRDP
wlfreerdp.h
1 
20 #ifndef FREERDP_CLIENT_WAYLAND_FREERDP_H
21 #define FREERDP_CLIENT_WAYLAND_FREERDP_H
22 
23 #include <freerdp/client/rdpei.h>
24 #include <freerdp/gdi/gfx.h>
25 #include <freerdp/freerdp.h>
26 #include <freerdp/log.h>
27 #include <freerdp/locale/keyboard.h>
28 #include <winpr/wtypes.h>
29 #include <uwac/uwac.h>
30 
31 typedef struct wlf_clipboard wfClipboard;
32 typedef struct s_wlfDispContext wlfDispContext;
33 
34 typedef struct
35 {
36  rdpClientContext common;
37 
38  UwacDisplay* display;
39  HANDLE displayHandle;
40  UwacWindow* window;
41  UwacSeat* seat;
42 
43  BOOL fullscreen;
44  BOOL closed;
45  BOOL focusing;
46 
47  /* Channels */
48  wfClipboard* clipboard;
49  wlfDispContext* disp;
50  wLog* log;
51  CRITICAL_SECTION critical;
52  wArrayList* events;
53  FREERDP_REMAP_TABLE* remap_table;
54 } wlfContext;
55 
56 BOOL wlf_scale_coordinates(rdpContext* context, UINT32* px, UINT32* py, BOOL fromLocalToRDP);
57 BOOL wlf_copy_image(const void* src, size_t srcStride, size_t srcWidth, size_t srcHeight, void* dst,
58  size_t dstStride, size_t dstWidth, size_t dstHeight, const RECTANGLE_16* area,
59  BOOL scale);
60 
61 #endif /* FREERDP_CLIENT_WAYLAND_FREERDP_H */