From fa330e8b9844e838fa8a8e1d01ab9d72d61e6bce Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Thu, 20 Jul 2023 02:53:47 +0200 Subject: src/rda_ogon.{c,h}: add generic remote protocol support. Ogon only supports RDP, so expose only that. --- src/rda_ogon.c | 9 +++++++++ src/rda_ogon.h | 6 ++++++ 2 files changed, 15 insertions(+) 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 #include +#include +#include +#include #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 #include +#include #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); -- cgit v1.2.3