From 191fab819dbb2044fc3cd56bb0e28678ab6ad608 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 6 Feb 2010 17:04:55 +0200 Subject: [PATCH] Automatically pass the long name in the SD probe helper --- include/vlc_services_discovery.h | 3 ++- modules/services_discovery/podcast.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/vlc_services_discovery.h b/include/vlc_services_discovery.h index b0355739f2..06026c7bc2 100644 --- a/include/vlc_services_discovery.h +++ b/include/vlc_services_discovery.h @@ -101,7 +101,8 @@ VLC_EXPORT(int, vlc_sd_probe_Add, (vlc_probe_t *, const char *, const char *)); #define VLC_SD_PROBE_HELPER(name, longname) \ static int vlc_sd_probe_Open (vlc_object_t *obj) \ { \ - return vlc_sd_probe_Add ((struct vlc_probe_t *)obj, name, longname); \ + return vlc_sd_probe_Add ((struct vlc_probe_t *)obj, \ + name "{longname=\"" # longname "\"}", longname); \ } /** @} */ diff --git a/modules/services_discovery/podcast.c b/modules/services_discovery/podcast.c index 7bc87ef3c0..07afe5bc2c 100644 --- a/modules/services_discovery/podcast.c +++ b/modules/services_discovery/podcast.c @@ -53,7 +53,7 @@ static int Open ( vlc_object_t * ); static void Close( vlc_object_t * ); -VLC_SD_PROBE_HELPER("podcast{longname=Podcasts}", N_("Podcasts")) +VLC_SD_PROBE_HELPER("podcast", N_("Podcasts")) #define URLS_TEXT N_("Podcast URLs list") #define URLS_LONGTEXT N_("Enter the list of podcasts to retrieve, " \ -- 2.39.5