Fix plugin loading for the sample client
Some missing initialisation bits were preventing the sample client from loading
the dynamic channel.
#include <freerdp/client/file.h>
#include <freerdp/client/cmdline.h>
#include <freerdp/client/cliprdr.h>
+#include <freerdp/client/channels.h>
#include <freerdp/channels/channels.h>
#include <winpr/crt.h>
@@ -174,6 +175,8 @@ int main(int argc, char* argv[])
instance->ContextNew = tf_context_new;
instance->ContextFree = tf_context_free;
+ freerdp_register_addin_provider(freerdp_channels_load_static_addin_entry, 0);
+
if (!freerdp_context_new(instance))
{
WLog_ERR(TAG, "Couldn't create context");
@@ -188,6 +191,7 @@ int main(int argc, char* argv[])
exit(0);
}
+
if (!freerdp_client_load_addins(instance->context->channels,
instance->settings))
exit(-1);
