From b34934f2afe790d88eac36e026352b81da2cfac3 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Thu, 20 Jul 2023 03:05:23 +0200 Subject: util/rdacheck.c: add generic protocol support. --- util/rdacheck.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 #include #include +#include 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); } -- cgit v1.2.3