summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2023-07-20 03:05:23 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-15 21:17:30 +0200
commitb34934f2afe790d88eac36e026352b81da2cfac3 (patch)
tree6a4ddebb4788fb1f2d01f44af81d3b0e5e12b6bc /util
parentf75ef6c322512f52fc3a7f98ff26622126497bb5 (diff)
downloadlibrda-b34934f2afe790d88eac36e026352b81da2cfac3.tar.gz
librda-b34934f2afe790d88eac36e026352b81da2cfac3.tar.bz2
librda-b34934f2afe790d88eac36e026352b81da2cfac3.zip
util/rdacheck.c: add generic protocol support.
Diffstat (limited to 'util')
-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);
}