summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rda_ogon.c9
-rw-r--r--src/rda_ogon.h6
2 files changed, 15 insertions, 0 deletions
diff --git a/src/rda_ogon.c b/src/rda_ogon.c
index 95f4f11..e4dc7d2 100644
--- a/src/rda_ogon.c
+++ b/src/rda_ogon.c
@@ -25,9 +25,17 @@
#include <glib/gi18n.h>
#include <rda.h>
+#include <rda_ogon.h>
+#include <rda_protocol.h>
+#include <rda_util.h>
#ifdef WITH_REMOTE_AWARENESS_OGON
+const rda_protocol_t
+rda_supported_protocols_ogon[] = { RDA_PROTOCOL_RDP };
+const gsize
+rda_supported_protocols_ogon_len = static_arr_size(rda_supported_protocols_ogon);
+
gboolean
rda_session_is_ogon (void)
{
@@ -37,6 +45,7 @@ rda_session_is_ogon (void)
if (g_getenv("OGON_SID"))
{
remote_technology = REMOTE_TECHNOLOGY_OGON;
+ rda_protocol = RDA_PROTOCOL_RDP;
return TRUE;
}
diff --git a/src/rda_ogon.h b/src/rda_ogon.h
index 744d459..4959563 100644
--- a/src/rda_ogon.h
+++ b/src/rda_ogon.h
@@ -27,9 +27,15 @@
#include <glib.h>
#include <rda.h>
+#include <rda_protocol.h>
#ifdef WITH_REMOTE_AWARENESS_OGON
+extern const rda_protocol_t
+rda_supported_protocols_ogon[];
+extern const gsize
+rda_supported_protocols_ogon_len;
+
gboolean
rda_session_is_ogon (void);