From: Andre Noll Date: Sun, 8 Jun 2025 21:18:22 +0000 (+0200) Subject: vss: Make vss_next() and vss_repos() static. X-Git-Url: https://git.tuebingen.mpg.de/?a=commitdiff_plain;h=1b673a083abc59a7505ffc90d030ef8cb1712018;p=paraslash.git vss: Make vss_next() and vss_repos() static. Unlike vss_playing(), vss_paused() and vss_stopped(), these are only called from within vss.c. --- diff --git a/vss.c b/vss.c index 827267d3..2a372815 100644 --- a/vss.c +++ b/vss.c @@ -749,24 +749,14 @@ bool vss_playing(void) return mmd->new_vss_status_flags & VSS_PLAYING; } -/** - * Check if the \a N (next) status flag is set. - * - * \return Greater than zero if set, zero if not. - * - */ -bool vss_next(void) +/* Check whether the N (next) status flag is set. */ +static bool vss_next(void) { return mmd->new_vss_status_flags & VSS_NEXT; } -/** - * Check if a reposition request is pending. - * - * \return Greater than zero if true, zero otherwise. - * - */ -bool vss_repos(void) +/* Check whether a reposition request is pending. */ +static bool vss_repos(void) { return mmd->new_vss_status_flags & VSS_REPOS; } diff --git a/vss.h b/vss.h index 611a294f..c0d7456a 100644 --- a/vss.h +++ b/vss.h @@ -4,8 +4,6 @@ void vss_init(int afs_socket, struct sched *s); bool vss_playing(void); -bool vss_next(void); -bool vss_repos(void); bool vss_paused(void); bool vss_stopped(void); struct timeval *vss_chunk_time(void);