summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-01-19 00:25:29 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-01-19 00:25:29 +0100
commitb03516ea887ceada5054092737767444483d85ca (patch)
tree173c1dac8316e398e493a924b7e5e6f27ce83952 /src
parent2f0245cafadab6914b9081bda10a9cbd24e069dd (diff)
downloadlibrda-b03516ea887ceada5054092737767444483d85ca.tar.gz
librda-b03516ea887ceada5054092737767444483d85ca.tar.bz2
librda-b03516ea887ceada5054092737767444483d85ca.zip
Make rda_supported_technologies*() return GList objects.
Diffstat (limited to 'src')
-rw-r--r--src/rda.c24
-rw-r--r--src/rda.h5
2 files changed, 24 insertions, 5 deletions
diff --git a/src/rda.c b/src/rda.c
index 6582b8c..ec16380 100644
--- a/src/rda.c
+++ b/src/rda.c
@@ -174,17 +174,33 @@ rda_session_terminate(void)
return FALSE;
}
-gchar *
+GList *
rda_supported_technologies(void)
{
+ GList * tech_list;
+
+#ifdef WITH_REMOTE_AWARENESS_X2GO
+ tech_list = g_list_append (tech_list, GINT_TO_POINTER(REMOTE_TECHNOLOGY_X2GO));
+#endif
+
+#ifdef WITH_REMOTE_AWARENESS_OGON
+ tech_list = g_list_append (tech_list, GINT_TO_POINTER(REMOTE_TECHNOLOGY_OGON));
+#endif
- g_autofree gchar * technologies;
+ return tech_list;
+}
+
+GList *
+rda_supported_technologies_by_name(void)
+{
+ GList * tech_list_by_name;
#ifdef WITH_REMOTE_AWARENESS_X2GO
- g_message("RDA supports (stable): %s", rda_remote_technology_name_x2go());
+ tech_list_by_name = g_list_append (tech_list_by_name, rda_remote_technology_name_x2go());
#endif
#ifdef WITH_REMOTE_AWARENESS_OGON
- g_message("RDA supports (alpha): %s", rda_remote_technology_name_ogon());
+ tech_list_by_name = g_list_append (tech_list_by_name, rda_remote_technology_name_ogon());
#endif
+ return tech_list_by_name;
}
diff --git a/src/rda.h b/src/rda.h
index 6782f78..8b42b8d 100644
--- a/src/rda.h
+++ b/src/rda.h
@@ -65,9 +65,12 @@ rda_session_suspend(void);
gboolean
rda_session_terminate(void);
-gchar *
+GList *
rda_supported_technologies(void);
+GList *
+rda_supported_technologies_by_name(void);
+
G_END_DECLS
#endif /* RDA_H */