[vlc-devel] commit: Automatically pass the long name in the SD probe helper ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Feb 6 16:08:43 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Feb  6 17:04:55 2010 +0200| [191fab819dbb2044fc3cd56bb0e28678ab6ad608] | committer: Rémi Denis-Courmont 

Automatically pass the long name in the SD probe helper

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=191fab819dbb2044fc3cd56bb0e28678ab6ad608
---

 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 b035573..06026c7 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 7bc87ef..07afe5b 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, " \




More information about the vlc-devel mailing list