From 70a630c4c422298d40453c537edf9d326b613abc Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 7 Aug 2017 19:51:15 +0200 Subject: [PATCH] server: Rename init_vss_task() to vss_init(). The function not only initializes the vss task but also the three senders. Moreover, all other public functions of vss.c are also prefixed with vss_. Finally, the new name is shorter. --- server.c | 2 +- vss.c | 2 +- vss.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server.c b/server.c index 43ede2a9..4bc85a34 100644 --- a/server.c +++ b/server.c @@ -534,7 +534,7 @@ static void server_init(int argc, char **argv) init_signal_task(); para_unblock_signal(SIGCHLD); PARA_NOTICE_LOG("initializing virtual streaming system\n"); - init_vss_task(afs_socket, &sched); + vss_init(afs_socket, &sched); init_server_command_task(argc, argv); if (daemon_pipe >= 0) { if (write(daemon_pipe, "\0", 1) < 0) { diff --git a/vss.c b/vss.c index dc325a3d..77d2f376 100644 --- a/vss.c +++ b/vss.c @@ -1177,7 +1177,7 @@ static int vss_post_select(struct sched *s, void *context) * This also initializes all supported senders and starts streaming * if the --autoplay command line flag was given. */ -void init_vss_task(int afs_socket, struct sched *s) +void vss_init(int afs_socket, struct sched *s) { static struct vss_task vss_task_struct, *vsst = &vss_task_struct; int i; diff --git a/vss.h b/vss.h index d2b1ad1d..bf135786 100644 --- a/vss.h +++ b/vss.h @@ -6,7 +6,7 @@ /** \file vss.h Exported functions from vss.c (para_server). */ -void init_vss_task(int afs_socket, struct sched *s); +void vss_init(int afs_socket, struct sched *s); unsigned int vss_playing(void); unsigned int vss_next(void); unsigned int vss_repos(void); -- 2.39.2