From: Armin Novak Date: Mon, 27 Oct 2014 15:33:51 +0000 (+0100) Subject: Fixed static / dynamic plugin entry point. X-Git-Tag: 2.0.0-beta1+android10~789^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12e5c3a83834d85ffd6c2af2e97243e06335c72a;p=platform%2Fupstream%2Ffreerdp.git Fixed static / dynamic plugin entry point. --- diff --git a/channels/disp/client/disp_main.c b/channels/disp/client/disp_main.c index b33ffb0..7d56488 100644 --- a/channels/disp/client/disp_main.c +++ b/channels/disp/client/disp_main.c @@ -292,7 +292,11 @@ int disp_send_monitor_layout(DispClientContext* context, UINT32 NumMonitors, DIS return 1; } -int disp_DVCPluginEntry(IDRDYNVC_ENTRY_POINTS* pEntryPoints) +#ifdef STATIC_CHANNELS +#define DVCPluginEntry disp_DVCPluginEntry +#endif + +int DVCPluginEntry(IDRDYNVC_ENTRY_POINTS* pEntryPoints) { int error = 0; DISP_PLUGIN* disp; diff --git a/channels/echo/client/echo_main.c b/channels/echo/client/echo_main.c index f5633dd..ec7b56a 100644 --- a/channels/echo/client/echo_main.c +++ b/channels/echo/client/echo_main.c @@ -134,7 +134,11 @@ static int echo_plugin_terminated(IWTSPlugin* pPlugin) return 0; } -int echo_DVCPluginEntry(IDRDYNVC_ENTRY_POINTS* pEntryPoints) +#ifdef STATIC_CHANNELS +#define DVCPluginEntry echo_DVCPluginEntry +#endif + +int DVCPluginEntry(IDRDYNVC_ENTRY_POINTS* pEntryPoints) { int status = 0; ECHO_PLUGIN* echo; diff --git a/channels/rdpgfx/client/rdpgfx_main.c b/channels/rdpgfx/client/rdpgfx_main.c index 7e0c518..43809ea 100644 --- a/channels/rdpgfx/client/rdpgfx_main.c +++ b/channels/rdpgfx/client/rdpgfx_main.c @@ -1049,7 +1049,11 @@ void* rdpgfx_get_cache_slot_data(RdpgfxClientContext* context, UINT16 cacheSlot) return pData; } -int rdpgfx_DVCPluginEntry(IDRDYNVC_ENTRY_POINTS* pEntryPoints) +#ifdef STATIC_CHANNELS +#define DVCPluginEntry rdpgfx_DVCPluginEntry +#endif + +int DVCPluginEntry(IDRDYNVC_ENTRY_POINTS* pEntryPoints) { int status = 0; RDPGFX_PLUGIN* gfx;