Fixed static / dynamic plugin entry point.
authorArmin Novak <armin.novak@thincast.com>
Mon, 27 Oct 2014 15:33:51 +0000 (16:33 +0100)
committerArmin Novak <armin.novak@thincast.com>
Mon, 27 Oct 2014 15:33:51 +0000 (16:33 +0100)
channels/disp/client/disp_main.c
channels/echo/client/echo_main.c
channels/rdpgfx/client/rdpgfx_main.c

index b33ffb0..7d56488 100644 (file)
@@ -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;
index f5633dd..ec7b56a 100644 (file)
@@ -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;
index 7e0c518..43809ea 100644 (file)
@@ -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;