summaryrefslogtreecommitdiff
path: root/util/rdacheck.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-15 21:18:16 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-15 21:18:16 +0200
commitca90f575f2ca9fce348c64bc553c95297fca003a (patch)
tree6a4ddebb4788fb1f2d01f44af81d3b0e5e12b6bc /util/rdacheck.c
parent54fdf5f5b9d3825ebe5060e30ec46053ca02ee00 (diff)
parentb34934f2afe790d88eac36e026352b81da2cfac3 (diff)
downloadlibrda-ca90f575f2ca9fce348c64bc553c95297fca003a.tar.gz
librda-ca90f575f2ca9fce348c64bc553c95297fca003a.tar.bz2
librda-ca90f575f2ca9fce348c64bc553c95297fca003a.zip
Merge branch 'Ionic-feature/backends'
Attributes GH PR #6: https://github.com/ArcticaProject/librda/pull/6
Diffstat (limited to 'util/rdacheck.c')
-rw-r--r--util/rdacheck.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/rdacheck.c b/util/rdacheck.c
index 44a91ff..44bad77 100644
--- a/util/rdacheck.c
+++ b/util/rdacheck.c
@@ -26,12 +26,14 @@ Copyright 2019, Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
#include <glib/gi18n.h>
#include <rda.h>
+#include <rda_protocol.h>
int
main (int __attribute__((unused)) argc, char __attribute__((unused)) **argv)
{
rda_init();
g_message(_("Currently used remote technology: %s"), rda_get_remote_technology_name());
+ g_message(_("Currently used protocol: %s"), rda_get_protocol_name());
g_message(_("RDA supports the following remote technologies:"));
@@ -39,4 +41,13 @@ main (int __attribute__((unused)) argc, char __attribute__((unused)) **argv)
gchar* item = tech->data;
g_message(" * %s", item);
}
+
+ g_message(_("RDA supports the following protocols:"));
+
+ GList *proto = NULL;
+ for(proto = rda_supported_protocols_by_name(); proto; proto = proto->next) {
+ gchar* item = proto->data;
+ g_message(" * %s", item);
+ }
+ g_list_free_full(g_steal_pointer(&proto), free);
}