* - dccp: \ref dccp_recv.c, \ref dccp_send.c,
* - Audio file selector: \ref afs.c, \ref aft.c, \ref mood.c,
* - Afs structures: \ref afs_table, \ref audio_file_data,
- * \ref afs_info \ref audio_format_info,
+ * \ref afs_info \ref afh_info,
* - Afs tables: \ref aft.c, \ref mood.c, \ref playlist.c,
* \ref attribute.c, \ref score.c,
* - The virtual streaming system: \ref vss.c, \ref chunk_queue.c.
}
-static unsigned do_inits(int argc, char **argv)
+static unsigned server_init(int argc, char **argv)
{
/* connector's address information */
int sockfd;
/* become daemon */
if (conf.daemon_given)
daemon_init();
- PARA_NOTICE_LOG("%s", "initializing virtual streaming system\n");
+ PARA_NOTICE_LOG("initializing audio format handlers\n");
afh_init();
+ PARA_NOTICE_LOG("initializing virtual streaming system\n");
vss_init();
mmd->server_pid = getpid();
setup_signal_handling();
+ PARA_NOTICE_LOG("initializing the audio file selector\n");
init_afs();
mmd_lock();
/* init network socket */
- PARA_NOTICE_LOG("%s", "initializing tcp command socket\n");
+ PARA_NOTICE_LOG("initializing tcp command socket\n");
sockfd = init_network();
- PARA_NOTICE_LOG("%s", "init complete\n");
+ PARA_NOTICE_LOG("server init complete\n");
return sockfd;
}
struct timeval *timeout;
valid_fd_012();
- sockfd = do_inits(argc, argv);
+ sockfd = server_init(argc, argv);
repeat:
FD_ZERO(&rfds);
FD_ZERO(&wfds);