summaryrefslogtreecommitdiff
path: root/src/rda.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rda.c')
-rw-r--r--src/rda.c24
1 files changed, 20 insertions, 4 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;
}