Merge pull request #2174 from akallabeth/dynamic_plugin_fix

Fixed static / dynamic plugin entry point.
This commit is contained in:
Martin Fleisz 2014-10-31 12:15:49 +01:00
commit e4eb73597e
3 changed files with 15 additions and 3 deletions

View 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;

View 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;

View 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;