diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-07-02 16:14:10 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-07-02 16:16:49 +0200 |
commit | c74a30b50c7afe0a492c77751cbccd638a0b9f69 (patch) | |
tree | 31b9de26ea548c3037bf629f16c5a4d368ca76ab /src/rda.c | |
parent | e21efc9210ab1f514de4e43b677b1fa88ee25fa9 (diff) | |
download | librda-c74a30b50c7afe0a492c77751cbccd638a0b9f69.tar.gz librda-c74a30b50c7afe0a492c77751cbccd638a0b9f69.tar.bz2 librda-c74a30b50c7afe0a492c77751cbccd638a0b9f69.zip |
Ogon RDP support: initial draft to support Ogon RDP as remote desktop technology.
Diffstat (limited to 'src/rda.c')
-rw-r--r-- | src/rda.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -26,6 +26,7 @@ #include <glib/gi18n.h> #include <rda.h> +#include <rda_ogon.h> #include <rda_x2go.h> guint @@ -58,6 +59,9 @@ rda_session_is_remote (void) if (rda_session_is_x2go()) return TRUE; + if (rda_session_is_ogon()) + return TRUE; + /* possibly add more checks for other remote desktop technologies */ else if (rda_session_is_local()) @@ -96,6 +100,10 @@ rda_get_remote_technology_name (void) remote_technology_name = _("X2Go"); break; + case REMOTE_TECHNOLOGY_OGON: + remote_technology_name = _("OgonRDP"); + break; + case REMOTE_TECHNOLOGY_UNKNOWN: remote_technology_name = _("unknown"); @@ -113,6 +121,9 @@ rda_session_can_be_suspended(void) if (rda_session_is_x2go()) return TRUE; + if (rda_session_is_ogon()) + return TRUE; + /* possibly add more checks for other remote desktop frameworks that have a session suspension feature */ @@ -125,6 +136,9 @@ rda_session_suspend(void) if (rda_session_is_x2go()) return rda_session_suspend_x2go(); + if (rda_session_is_ogon()) + return rda_session_suspend_ogon(); + return FALSE; } @@ -134,5 +148,8 @@ rda_session_terminate(void) if (rda_session_is_x2go()) return rda_session_terminate_x2go(); + if (rda_session_is_ogon()) + return rda_session_terminate_ogon(); + return FALSE; } |