summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2023-07-20 02:53:47 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-15 21:17:29 +0200
commitfa330e8b9844e838fa8a8e1d01ab9d72d61e6bce (patch)
treeb777a94384e44eb9aac1b2b87e23973247ec8cec
parenteb3af447a30bbcdf4e71c6c5be9f45fdd178cfd7 (diff)
downloadlibrda-fa330e8b9844e838fa8a8e1d01ab9d72d61e6bce.tar.gz
librda-fa330e8b9844e838fa8a8e1d01ab9d72d61e6bce.tar.bz2
librda-fa330e8b9844e838fa8a8e1d01ab9d72d61e6bce.zip
src/rda_ogon.{c,h}: add generic remote protocol support.
Ogon only supports RDP, so expose only that.
-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);