summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-01-18 23:51:37 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-01-18 23:56:39 +0100
commitb61fd2258f1fe63d675d49ffb91eccd25df868cf (patch)
tree79ea3852af825d06d31cf4b60f870450d1137645
parent3f5cd65640927c562adcb4bbe6d00b0f2a0f91b4 (diff)
downloadlibrda-b61fd2258f1fe63d675d49ffb91eccd25df868cf.tar.gz
librda-b61fd2258f1fe63d675d49ffb91eccd25df868cf.tar.bz2
librda-b61fd2258f1fe63d675d49ffb91eccd25df868cf.zip
Move special remote technology pretty names to .c files providing features for that technology.
-rw-r--r--src/rda.c4
-rw-r--r--src/rda_ogon.c7
-rw-r--r--src/rda_ogon.h3
-rw-r--r--src/rda_x2go.c7
-rw-r--r--src/rda_x2go.h3
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 <config.h>
#include <glib.h>
+#include <glib/gi18n.h>
#include <rda.h>
@@ -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 <config.h>
#include <glib.h>
+#include <glib/gi18n.h>
#include <rda.h>
@@ -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);