2012-11-04 07:04:04 +04:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <winpr/crt.h>
|
|
|
|
#include <winpr/windows.h>
|
|
|
|
|
|
|
|
#include <freerdp/client/channels.h>
|
2021-08-25 11:02:46 +03:00
|
|
|
#include <freerdp/channels/rdpsnd.h>
|
2012-11-04 07:04:04 +04:00
|
|
|
|
|
|
|
int TestClientChannels(int argc, char* argv[])
|
|
|
|
{
|
|
|
|
int index;
|
2012-11-06 04:55:15 +04:00
|
|
|
DWORD dwFlags;
|
2012-11-04 07:04:04 +04:00
|
|
|
FREERDP_ADDIN* pAddin;
|
|
|
|
FREERDP_ADDIN** ppAddins;
|
|
|
|
|
2019-02-07 19:53:21 +03:00
|
|
|
WINPR_UNUSED(argc);
|
|
|
|
WINPR_UNUSED(argv);
|
2012-11-06 04:55:15 +04:00
|
|
|
dwFlags = FREERDP_ADDIN_DYNAMIC;
|
|
|
|
|
2012-11-04 07:04:04 +04:00
|
|
|
printf("Enumerate all\n");
|
2012-11-18 07:03:04 +04:00
|
|
|
ppAddins = freerdp_channels_list_addins(NULL, NULL, NULL, dwFlags);
|
2012-11-04 07:04:04 +04:00
|
|
|
|
|
|
|
for (index = 0; ppAddins[index] != NULL; index++)
|
|
|
|
{
|
|
|
|
pAddin = ppAddins[index];
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
printf("Addin: Name: %s Subsystem: %s Type: %s\n", pAddin->cName, pAddin->cSubsystem,
|
|
|
|
pAddin->cType);
|
2012-11-04 07:04:04 +04:00
|
|
|
}
|
|
|
|
|
2012-11-04 07:33:10 +04:00
|
|
|
freerdp_channels_addin_list_free(ppAddins);
|
|
|
|
|
2012-11-04 07:04:04 +04:00
|
|
|
printf("Enumerate rdpsnd\n");
|
2021-08-25 11:02:46 +03:00
|
|
|
ppAddins = freerdp_channels_list_addins(RDPSND_DVC_CHANNEL_NAME, NULL, NULL, dwFlags);
|
2012-11-04 07:04:04 +04:00
|
|
|
|
|
|
|
for (index = 0; ppAddins[index] != NULL; index++)
|
|
|
|
{
|
|
|
|
pAddin = ppAddins[index];
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
printf("Addin: Name: %s Subsystem: %s Type: %s\n", pAddin->cName, pAddin->cSubsystem,
|
|
|
|
pAddin->cType);
|
2012-11-04 07:04:04 +04:00
|
|
|
}
|
|
|
|
|
2012-11-04 07:33:10 +04:00
|
|
|
freerdp_channels_addin_list_free(ppAddins);
|
|
|
|
|
2020-02-25 17:21:16 +03:00
|
|
|
#if defined(CHANNEL_TSMF_CLIENT)
|
2012-11-04 07:04:04 +04:00
|
|
|
printf("Enumerate tsmf video\n");
|
2012-11-18 07:03:04 +04:00
|
|
|
ppAddins = freerdp_channels_list_addins("tsmf", NULL, "video", dwFlags);
|
2012-11-04 07:04:04 +04:00
|
|
|
|
|
|
|
for (index = 0; ppAddins[index] != NULL; index++)
|
|
|
|
{
|
|
|
|
pAddin = ppAddins[index];
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
printf("Addin: Name: %s Subsystem: %s Type: %s\n", pAddin->cName, pAddin->cSubsystem,
|
|
|
|
pAddin->cType);
|
2012-11-04 07:04:04 +04:00
|
|
|
}
|
|
|
|
|
2012-11-04 07:33:10 +04:00
|
|
|
freerdp_channels_addin_list_free(ppAddins);
|
2020-02-25 17:21:16 +03:00
|
|
|
#endif
|
2012-11-04 07:33:10 +04:00
|
|
|
|
2012-11-18 07:03:04 +04:00
|
|
|
ppAddins = freerdp_channels_list_addins("unknown", NULL, NULL, dwFlags);
|
2012-11-04 07:04:04 +04:00
|
|
|
|
|
|
|
for (index = 0; ppAddins[index] != NULL; index++)
|
|
|
|
{
|
|
|
|
pAddin = ppAddins[index];
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
printf("Addin: Name: %s Subsystem: %s Type: %s\n", pAddin->cName, pAddin->cSubsystem,
|
|
|
|
pAddin->cType);
|
2012-11-04 07:04:04 +04:00
|
|
|
}
|
|
|
|
|
2012-11-04 07:33:10 +04:00
|
|
|
freerdp_channels_addin_list_free(ppAddins);
|
|
|
|
|
2012-11-06 05:58:58 +04:00
|
|
|
printf("Enumerate static addins\n");
|
|
|
|
|
2012-11-06 04:55:15 +04:00
|
|
|
dwFlags = FREERDP_ADDIN_STATIC;
|
2012-11-18 07:03:04 +04:00
|
|
|
ppAddins = freerdp_channels_list_addins(NULL, NULL, NULL, dwFlags);
|
2012-11-06 04:55:15 +04:00
|
|
|
|
|
|
|
for (index = 0; ppAddins[index] != NULL; index++)
|
|
|
|
{
|
|
|
|
pAddin = ppAddins[index];
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
printf("Addin: Name: %s Subsystem: %s Type: %s\n", pAddin->cName, pAddin->cSubsystem,
|
|
|
|
pAddin->cType);
|
2012-11-06 04:55:15 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
freerdp_channels_addin_list_free(ppAddins);
|
|
|
|
|
2012-11-04 07:04:04 +04:00
|
|
|
return 0;
|
|
|
|
}
|