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 <winpr/wtypes.h>
28 #include <uwac/uwac.h>
29 
30 typedef struct wlf_clipboard wfClipboard;
31 typedef struct s_wlfDispContext wlfDispContext;
32 
33 typedef struct
34 {
35  rdpClientContext common;
36 
37  UwacDisplay* display;
38  HANDLE displayHandle;
39  UwacWindow* window;
40  UwacSeat* seat;
41 
42  BOOL fullscreen;
43  BOOL closed;
44  BOOL focusing;
45 
46  /* Channels */
47  wfClipboard* clipboard;
48  wlfDispContext* disp;
49  wLog* log;
50  CRITICAL_SECTION critical;
51  wArrayList* events;
52 } wlfContext;
53 
54 BOOL wlf_scale_coordinates(rdpContext* context, UINT32* px, UINT32* py, BOOL fromLocalToRDP);
55 BOOL wlf_copy_image(const void* src, size_t srcStride, size_t srcWidth, size_t srcHeight, void* dst,
56  size_t dstStride, size_t dstWidth, size_t dstHeight, const RECTANGLE_16* area,
57  BOOL scale);
58 
59 #endif /* FREERDP_CLIENT_WAYLAND_FREERDP_H */