Register RSP and DAAP services in main()

This commit is contained in:
Julien BLACHE 2009-05-03 10:49:33 +02:00
parent c76c8165ce
commit 2fb7537346

View File

@ -667,10 +667,12 @@ int main(int argc, char *argv[]) {
port = conf_get_int("general", "port", 0);
/* Register main service */
/* Register web server service */
mdns_register(servername, "_http._tcp", port, txtrecord);
/* Register plugin services */
plugin_rend_register(servername, port, txtrecord);
/* Register RSP service */
mdns_register(servername, "_rsp._tcp", port, txtrecord);
/* Register DAAP service */
mdns_register(servername, "_daap._tcp", port, txtrecord);
for (i = 0; i < (sizeof(txtrecord) / sizeof(*txtrecord) - 1); i++)
free(txtrecord[i]);