From b03516ea887ceada5054092737767444483d85ca Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sat, 19 Jan 2019 00:25:29 +0100 Subject: Make rda_supported_technologies*() return GList objects. --- src/rda.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'src/rda.c') 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; } -- cgit v1.2.3