rdpsnd: client: add rdpContext getter

This commit is contained in:
kubistika 2019-08-26 16:53:00 +03:00 committed by akallabeth
parent dc11bcc9f0
commit faa833f97a
3 changed files with 10 additions and 1 deletions

View File

@ -1255,6 +1255,14 @@ static VOID VCAPITYPE rdpsnd_virtual_channel_init_event_ex(LPVOID lpUserParam, L
"rdpsnd_virtual_channel_init_event reported an error");
}
rdpContext* freerdp_rdpsnd_get_context(rdpsndPlugin* plugin)
{
if (!plugin)
return NULL;
return plugin->rdpcontext;
}
/* rdpsnd is always built-in */
#define VirtualChannelEntryEx rdpsnd_VirtualChannelEntryEx

View File

@ -29,6 +29,8 @@
#define TAG CHANNELS_TAG("rdpsnd.client")
FREERDP_API rdpContext* freerdp_rdpsnd_get_context(rdpsndPlugin* rdpsnd);
#if defined(WITH_DEBUG_SND)
#define DEBUG_SND(...) WLog_DBG(TAG, __VA_ARGS__)
#else

View File

@ -69,4 +69,3 @@ typedef FREERDP_RDPSND_DEVICE_ENTRY_POINTS* PFREERDP_RDPSND_DEVICE_ENTRY_POINTS;
typedef UINT(*PFREERDP_RDPSND_DEVICE_ENTRY)(PFREERDP_RDPSND_DEVICE_ENTRY_POINTS pEntryPoints);
#endif /* FREERDP_CHANNEL_RDPSND_CLIENT_RDPSND_H */