12 #import <CoreGraphics/CoreGraphics.h>
14 #import <freerdp/freerdp.h>
15 #import <freerdp/channels/channels.h>
17 #import <winpr/clipboard.h>
18 #import <freerdp/client/cliprdr.h>
22 typedef BOOL (*pServerCutText)(rdpContext *context, UINT8 *data, UINT32 size);
27 typedef struct mf_context
32 rdpSettings *settings;
35 wClipboard *clipboard;
36 UINT32 numServerFormats;
37 UINT32 requestedFormatId;
38 HANDLE clipboardRequestEvent;
40 CliprdrClientContext *cliprdr;
41 UINT32 clipboardCapabilities;
42 pServerCutText ServerCutText;
56 CGContextRef bitmap_context;
59 int event_pipe_producer;
60 int event_pipe_consumer;
64 volatile TSXConnectionState connection_state;
69 #define MFI_FROM_INSTANCE(inst) (((mfContext *)((inst)->context))->mfi)
75 MF_EXIT_CONN_FAILED = 128,
76 MF_EXIT_CONN_CANCELED = 129,
77 MF_EXIT_LOGON_TIMEOUT = 130,
82 void ios_init_freerdp(
void);
83 void ios_uninit_freerdp(
void);
84 freerdp *ios_freerdp_new(
void);
85 int ios_run_freerdp(freerdp *instance);
86 void ios_freerdp_free(freerdp *instance);
87 void ios_send_clipboard_data(
void *context,
const void *data, UINT32 size);