rdpgfx: more minor changes

1. Fix style for channels/rdpgfx/server/rdpgfx_main.c according to scripts/format_code.sh
2. Refactor and introduce APIs to allow rdpgfx server channel running in existing thread (similar to rdpsnd)
This commit is contained in:
zihao.jiang 2016-05-27 02:11:52 +08:00
parent 2b6bd2626d
commit 992e0e9f35
3 changed files with 454 additions and 380 deletions

File diff suppressed because it is too large Load Diff

View File

@ -26,11 +26,15 @@
struct _rdpgfx_server_private
{
ZGFX_CONTEXT* zgfx;
BOOL ownThread;
HANDLE thread;
HANDLE stopEvent;
HANDLE channelEvent;
void* rdpgfx_channel;
DWORD SessionId;
BOOL opened;
wStream* input_stream;
BOOL isOpened;
BOOL isReady;
};
#endif /* FREERDP_CHANNEL_RDPGFX_SERVER_MAIN_H */

View File

@ -90,6 +90,8 @@ extern "C" {
FREERDP_API RdpgfxServerContext* rdpgfx_server_context_new(HANDLE vcm);
FREERDP_API void rdpgfx_server_context_free(RdpgfxServerContext* context);
FREERDP_API HANDLE rdpgfx_server_get_event_handle(RdpgfxServerContext* context);
FREERDP_API UINT rdpgfx_server_handle_messages(RdpgfxServerContext* context);
#ifdef __cplusplus
}