diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-01-19 00:25:29 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-01-19 00:25:29 +0100 |
commit | b03516ea887ceada5054092737767444483d85ca (patch) | |
tree | 173c1dac8316e398e493a924b7e5e6f27ce83952 /src | |
parent | 2f0245cafadab6914b9081bda10a9cbd24e069dd (diff) | |
download | librda-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.c | 24 | ||||
-rw-r--r-- | src/rda.h | 5 |
2 files changed, 24 insertions, 5 deletions
@@ -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; } @@ -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 */ |