From b61fd2258f1fe63d675d49ffb91eccd25df868cf Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 18 Jan 2019 23:51:37 +0100 Subject: Move special remote technology pretty names to .c files providing features for that technology. --- src/rda.c | 4 ++-- src/rda_ogon.c | 7 +++++++ src/rda_ogon.h | 3 +++ src/rda_x2go.c | 7 +++++++ src/rda_x2go.h | 3 +++ 5 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/rda.c b/src/rda.c index c6f436d..0fb0e0b 100644 --- a/src/rda.c +++ b/src/rda.c @@ -102,13 +102,13 @@ rda_get_remote_technology_name (void) #ifdef WITH_REMOTE_AWARENESS_X2GO case REMOTE_TECHNOLOGY_X2GO: - remote_technology_name = _("X2Go"); + remote_technology_name = rda_remote_technology_name_x2go(); break; #endif #ifdef WITH_REMOTE_AWARENESS_OGON case REMOTE_TECHNOLOGY_OGON: - remote_technology_name = _("OgonRDP"); + remote_technology_name = rda_remote_technology_name_ogon(); break; #endif diff --git a/src/rda_ogon.c b/src/rda_ogon.c index 26c83d1..f667f74 100644 --- a/src/rda_ogon.c +++ b/src/rda_ogon.c @@ -23,6 +23,7 @@ #include #include +#include #include @@ -43,6 +44,12 @@ rda_session_is_ogon (void) return FALSE; } +gchar * +rda_remote_technology_name_ogon(void) +{ + return _("OgonRDP"); +} + gboolean rda_session_suspend_ogon(void) { diff --git a/src/rda_ogon.h b/src/rda_ogon.h index ca7c829..734df34 100644 --- a/src/rda_ogon.h +++ b/src/rda_ogon.h @@ -34,6 +34,9 @@ gboolean rda_session_is_ogon (void); +gchar * +rda_remote_technology_name_ogon(void); + gboolean rda_session_suspend_ogon (void); diff --git a/src/rda_x2go.c b/src/rda_x2go.c index 07ebb96..db46056 100644 --- a/src/rda_x2go.c +++ b/src/rda_x2go.c @@ -23,6 +23,7 @@ #include #include +#include #include @@ -43,6 +44,12 @@ rda_session_is_x2go (void) return FALSE; } +gchar * +rda_remote_technology_name_x2go(void) +{ + return _("X2Go"); +} + gboolean rda_session_suspend_x2go(void) { diff --git a/src/rda_x2go.h b/src/rda_x2go.h index 26d37a8..54cb361 100644 --- a/src/rda_x2go.h +++ b/src/rda_x2go.h @@ -34,6 +34,9 @@ gboolean rda_session_is_x2go (void); +gchar * +rda_remote_technology_name_x2go(void); + gboolean rda_session_suspend_x2go(void); -- cgit v1.2.3