mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
channels: rename custom CHANNEL_ENTRY_POINTS_EX to CHANNEL_ENTRY_POINTS_FREERDP to fix conflict
This commit is contained in:
parent
b833073f57
commit
82b922a70d
@ -468,7 +468,7 @@ int VirtualChannelEntry(PCHANNEL_ENTRY_POINTS pEntryPoints)
|
|||||||
{
|
{
|
||||||
cliprdrPlugin* cliprdr;
|
cliprdrPlugin* cliprdr;
|
||||||
CliprdrClientContext* context;
|
CliprdrClientContext* context;
|
||||||
CHANNEL_ENTRY_POINTS_EX* pEntryPointsEx;
|
CHANNEL_ENTRY_POINTS_FREERDP* pEntryPointsEx;
|
||||||
|
|
||||||
cliprdr = (cliprdrPlugin*) calloc(1, sizeof(cliprdrPlugin));
|
cliprdr = (cliprdrPlugin*) calloc(1, sizeof(cliprdrPlugin));
|
||||||
|
|
||||||
@ -485,9 +485,9 @@ int VirtualChannelEntry(PCHANNEL_ENTRY_POINTS pEntryPoints)
|
|||||||
cliprdr->plugin.event_callback = cliprdr_process_event;
|
cliprdr->plugin.event_callback = cliprdr_process_event;
|
||||||
cliprdr->plugin.terminate_callback = cliprdr_process_terminate;
|
cliprdr->plugin.terminate_callback = cliprdr_process_terminate;
|
||||||
|
|
||||||
pEntryPointsEx = (CHANNEL_ENTRY_POINTS_EX*) pEntryPoints;
|
pEntryPointsEx = (CHANNEL_ENTRY_POINTS_FREERDP*) pEntryPoints;
|
||||||
|
|
||||||
if ((pEntryPointsEx->cbSize >= sizeof(CHANNEL_ENTRY_POINTS_EX)) &&
|
if ((pEntryPointsEx->cbSize >= sizeof(CHANNEL_ENTRY_POINTS_FREERDP)) &&
|
||||||
(pEntryPointsEx->MagicNumber == FREERDP_CHANNEL_MAGIC_NUMBER))
|
(pEntryPointsEx->MagicNumber == FREERDP_CHANNEL_MAGIC_NUMBER))
|
||||||
{
|
{
|
||||||
context = (CliprdrClientContext*) calloc(1, sizeof(CliprdrClientContext));
|
context = (CliprdrClientContext*) calloc(1, sizeof(CliprdrClientContext));
|
||||||
|
@ -411,7 +411,7 @@ int VirtualChannelEntry(PCHANNEL_ENTRY_POINTS pEntryPoints)
|
|||||||
{
|
{
|
||||||
drdynvcPlugin* _p;
|
drdynvcPlugin* _p;
|
||||||
DrdynvcClientContext* context;
|
DrdynvcClientContext* context;
|
||||||
CHANNEL_ENTRY_POINTS_EX* pEntryPointsEx;
|
CHANNEL_ENTRY_POINTS_FREERDP* pEntryPointsEx;
|
||||||
|
|
||||||
_p = (drdynvcPlugin*) malloc(sizeof(drdynvcPlugin));
|
_p = (drdynvcPlugin*) malloc(sizeof(drdynvcPlugin));
|
||||||
ZeroMemory(_p, sizeof(drdynvcPlugin));
|
ZeroMemory(_p, sizeof(drdynvcPlugin));
|
||||||
@ -428,9 +428,9 @@ int VirtualChannelEntry(PCHANNEL_ENTRY_POINTS pEntryPoints)
|
|||||||
_p->plugin.event_callback = drdynvc_process_event;
|
_p->plugin.event_callback = drdynvc_process_event;
|
||||||
_p->plugin.terminate_callback = drdynvc_process_terminate;
|
_p->plugin.terminate_callback = drdynvc_process_terminate;
|
||||||
|
|
||||||
pEntryPointsEx = (CHANNEL_ENTRY_POINTS_EX*) pEntryPoints;
|
pEntryPointsEx = (CHANNEL_ENTRY_POINTS_FREERDP*) pEntryPoints;
|
||||||
|
|
||||||
if ((pEntryPointsEx->cbSize >= sizeof(CHANNEL_ENTRY_POINTS_EX)) &&
|
if ((pEntryPointsEx->cbSize >= sizeof(CHANNEL_ENTRY_POINTS_FREERDP)) &&
|
||||||
(pEntryPointsEx->MagicNumber == FREERDP_CHANNEL_MAGIC_NUMBER))
|
(pEntryPointsEx->MagicNumber == FREERDP_CHANNEL_MAGIC_NUMBER))
|
||||||
{
|
{
|
||||||
context = (DrdynvcClientContext*) malloc(sizeof(DrdynvcClientContext));
|
context = (DrdynvcClientContext*) malloc(sizeof(DrdynvcClientContext));
|
||||||
|
@ -505,7 +505,7 @@ int VirtualChannelEntry(PCHANNEL_ENTRY_POINTS pEntryPoints)
|
|||||||
{
|
{
|
||||||
railPlugin* rail;
|
railPlugin* rail;
|
||||||
RailClientContext* context;
|
RailClientContext* context;
|
||||||
CHANNEL_ENTRY_POINTS_EX* pEntryPointsEx;
|
CHANNEL_ENTRY_POINTS_FREERDP* pEntryPointsEx;
|
||||||
|
|
||||||
rail = (railPlugin*) malloc(sizeof(railPlugin));
|
rail = (railPlugin*) malloc(sizeof(railPlugin));
|
||||||
ZeroMemory(rail, sizeof(railPlugin));
|
ZeroMemory(rail, sizeof(railPlugin));
|
||||||
@ -523,9 +523,9 @@ int VirtualChannelEntry(PCHANNEL_ENTRY_POINTS pEntryPoints)
|
|||||||
rail->plugin.event_callback = rail_process_event;
|
rail->plugin.event_callback = rail_process_event;
|
||||||
rail->plugin.terminate_callback = rail_process_terminate;
|
rail->plugin.terminate_callback = rail_process_terminate;
|
||||||
|
|
||||||
pEntryPointsEx = (CHANNEL_ENTRY_POINTS_EX*) pEntryPoints;
|
pEntryPointsEx = (CHANNEL_ENTRY_POINTS_FREERDP*) pEntryPoints;
|
||||||
|
|
||||||
if ((pEntryPointsEx->cbSize >= sizeof(CHANNEL_ENTRY_POINTS_EX)) &&
|
if ((pEntryPointsEx->cbSize >= sizeof(CHANNEL_ENTRY_POINTS_FREERDP)) &&
|
||||||
(pEntryPointsEx->MagicNumber == FREERDP_CHANNEL_MAGIC_NUMBER))
|
(pEntryPointsEx->MagicNumber == FREERDP_CHANNEL_MAGIC_NUMBER))
|
||||||
{
|
{
|
||||||
context = (RailClientContext*) malloc(sizeof(RailClientContext));
|
context = (RailClientContext*) malloc(sizeof(RailClientContext));
|
||||||
|
@ -561,7 +561,7 @@ int VirtualChannelEntry(PCHANNEL_ENTRY_POINTS pEntryPoints)
|
|||||||
|
|
||||||
strcpy(rdpdr->channelDef.name, "rdpdr");
|
strcpy(rdpdr->channelDef.name, "rdpdr");
|
||||||
|
|
||||||
CopyMemory(&(rdpdr->channelEntryPoints), pEntryPoints, sizeof(CHANNEL_ENTRY_POINTS_EX));
|
CopyMemory(&(rdpdr->channelEntryPoints), pEntryPoints, sizeof(CHANNEL_ENTRY_POINTS_FREERDP));
|
||||||
|
|
||||||
rdpdr->channelEntryPoints.pVirtualChannelInit(&rdpdr->InitHandle,
|
rdpdr->channelEntryPoints.pVirtualChannelInit(&rdpdr->InitHandle,
|
||||||
&rdpdr->channelDef, 1, VIRTUAL_CHANNEL_VERSION_WIN2000, rdpdr_virtual_channel_init_event);
|
&rdpdr->channelDef, 1, VIRTUAL_CHANNEL_VERSION_WIN2000, rdpdr_virtual_channel_init_event);
|
||||||
|
@ -38,7 +38,7 @@ typedef struct rdpdr_plugin rdpdrPlugin;
|
|||||||
struct rdpdr_plugin
|
struct rdpdr_plugin
|
||||||
{
|
{
|
||||||
CHANNEL_DEF channelDef;
|
CHANNEL_DEF channelDef;
|
||||||
CHANNEL_ENTRY_POINTS_EX channelEntryPoints;
|
CHANNEL_ENTRY_POINTS_FREERDP channelEntryPoints;
|
||||||
|
|
||||||
HANDLE thread;
|
HANDLE thread;
|
||||||
wStream* data_in;
|
wStream* data_in;
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
struct rdpsnd_plugin
|
struct rdpsnd_plugin
|
||||||
{
|
{
|
||||||
CHANNEL_DEF channelDef;
|
CHANNEL_DEF channelDef;
|
||||||
CHANNEL_ENTRY_POINTS_EX channelEntryPoints;
|
CHANNEL_ENTRY_POINTS_FREERDP channelEntryPoints;
|
||||||
|
|
||||||
HANDLE thread;
|
HANDLE thread;
|
||||||
wStream* data_in;
|
wStream* data_in;
|
||||||
@ -1090,7 +1090,7 @@ int VirtualChannelEntry(PCHANNEL_ENTRY_POINTS pEntryPoints)
|
|||||||
|
|
||||||
strcpy(rdpsnd->channelDef.name, "rdpsnd");
|
strcpy(rdpsnd->channelDef.name, "rdpsnd");
|
||||||
|
|
||||||
CopyMemory(&(rdpsnd->channelEntryPoints), pEntryPoints, sizeof(CHANNEL_ENTRY_POINTS_EX));
|
CopyMemory(&(rdpsnd->channelEntryPoints), pEntryPoints, sizeof(CHANNEL_ENTRY_POINTS_FREERDP));
|
||||||
|
|
||||||
rdpsnd->log = WLog_Get("com.freerdp.channels.rdpsnd.client");
|
rdpsnd->log = WLog_Get("com.freerdp.channels.rdpsnd.client");
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ typedef int (FREERDP_CC * PVIRTUALCHANNELENTRY)(PCHANNEL_ENTRY_POINTS pEntryPoin
|
|||||||
|
|
||||||
#define FREERDP_CHANNEL_MAGIC_NUMBER 0x46524450
|
#define FREERDP_CHANNEL_MAGIC_NUMBER 0x46524450
|
||||||
|
|
||||||
struct _CHANNEL_ENTRY_POINTS_EX
|
struct _CHANNEL_ENTRY_POINTS_FREERDP
|
||||||
{
|
{
|
||||||
UINT32 cbSize;
|
UINT32 cbSize;
|
||||||
UINT32 protocolVersion;
|
UINT32 protocolVersion;
|
||||||
@ -111,7 +111,7 @@ struct _CHANNEL_ENTRY_POINTS_EX
|
|||||||
void** ppInterface; /* channel callback interface, use for initialization */
|
void** ppInterface; /* channel callback interface, use for initialization */
|
||||||
PVIRTUALCHANNELEVENTPUSH pVirtualChannelEventPush;
|
PVIRTUALCHANNELEVENTPUSH pVirtualChannelEventPush;
|
||||||
};
|
};
|
||||||
typedef struct _CHANNEL_ENTRY_POINTS_EX CHANNEL_ENTRY_POINTS_EX;
|
typedef struct _CHANNEL_ENTRY_POINTS_FREERDP CHANNEL_ENTRY_POINTS_FREERDP;
|
||||||
typedef CHANNEL_ENTRY_POINTS_EX* PCHANNEL_ENTRY_POINTS_EX;
|
typedef CHANNEL_ENTRY_POINTS_FREERDP* PCHANNEL_ENTRY_POINTS_FREERDP;
|
||||||
|
|
||||||
#endif /* FREERDP_SVC_H */
|
#endif /* FREERDP_SVC_H */
|
||||||
|
@ -40,7 +40,7 @@ typedef struct rdp_svc_plugin rdpSvcPlugin;
|
|||||||
|
|
||||||
struct rdp_svc_plugin
|
struct rdp_svc_plugin
|
||||||
{
|
{
|
||||||
CHANNEL_ENTRY_POINTS_EX channel_entry_points;
|
CHANNEL_ENTRY_POINTS_FREERDP channel_entry_points;
|
||||||
CHANNEL_DEF channel_def;
|
CHANNEL_DEF channel_def;
|
||||||
|
|
||||||
void (*connect_callback)(rdpSvcPlugin* plugin);
|
void (*connect_callback)(rdpSvcPlugin* plugin);
|
||||||
|
@ -727,7 +727,7 @@ UINT FreeRDP_VirtualChannelEventPush(DWORD openHandle, wMessage* event)
|
|||||||
int freerdp_channels_client_load(rdpChannels* channels, rdpSettings* settings, void* entry, void* data)
|
int freerdp_channels_client_load(rdpChannels* channels, rdpSettings* settings, void* entry, void* data)
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
CHANNEL_ENTRY_POINTS_EX EntryPoints;
|
CHANNEL_ENTRY_POINTS_FREERDP EntryPoints;
|
||||||
CHANNEL_CLIENT_DATA* pChannelClientData;
|
CHANNEL_CLIENT_DATA* pChannelClientData;
|
||||||
|
|
||||||
if (channels->clientDataCount + 1 >= CHANNEL_MAX_COUNT)
|
if (channels->clientDataCount + 1 >= CHANNEL_MAX_COUNT)
|
||||||
@ -739,7 +739,7 @@ int freerdp_channels_client_load(rdpChannels* channels, rdpSettings* settings, v
|
|||||||
pChannelClientData = &channels->clientDataList[channels->clientDataCount];
|
pChannelClientData = &channels->clientDataList[channels->clientDataCount];
|
||||||
pChannelClientData->entry = (PVIRTUALCHANNELENTRY) entry;
|
pChannelClientData->entry = (PVIRTUALCHANNELENTRY) entry;
|
||||||
|
|
||||||
ZeroMemory(&EntryPoints, sizeof(CHANNEL_ENTRY_POINTS_EX));
|
ZeroMemory(&EntryPoints, sizeof(CHANNEL_ENTRY_POINTS_FREERDP));
|
||||||
|
|
||||||
EntryPoints.cbSize = sizeof(EntryPoints);
|
EntryPoints.cbSize = sizeof(EntryPoints);
|
||||||
EntryPoints.protocolVersion = VIRTUAL_CHANNEL_VERSION_WIN2000;
|
EntryPoints.protocolVersion = VIRTUAL_CHANNEL_VERSION_WIN2000;
|
||||||
|
@ -285,7 +285,7 @@ void svc_plugin_init(rdpSvcPlugin* plugin, CHANNEL_ENTRY_POINTS* pEntryPoints)
|
|||||||
* VirtualChannelInit at a time. So this should be safe.
|
* VirtualChannelInit at a time. So this should be safe.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
CopyMemory(&(plugin->channel_entry_points), pEntryPoints, sizeof(CHANNEL_ENTRY_POINTS_EX));
|
CopyMemory(&(plugin->channel_entry_points), pEntryPoints, sizeof(CHANNEL_ENTRY_POINTS_FREERDP));
|
||||||
|
|
||||||
plugin->channel_entry_points.pVirtualChannelInit(&(plugin->InitHandle),
|
plugin->channel_entry_points.pVirtualChannelInit(&(plugin->InitHandle),
|
||||||
&(plugin->channel_def), 1, VIRTUAL_CHANNEL_VERSION_WIN2000, svc_plugin_init_event);
|
&(plugin->channel_def), 1, VIRTUAL_CHANNEL_VERSION_WIN2000, svc_plugin_init_event);
|
||||||
|
Loading…
Reference in New Issue
Block a user