]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
vss: Make vss_next() and vss_repos() static.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 8 Jun 2025 21:18:22 +0000 (23:18 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 12 Jun 2025 23:11:46 +0000 (01:11 +0200)
Unlike vss_playing(), vss_paused() and vss_stopped(), these are only called
from within vss.c.

vss.c
vss.h

diff --git a/vss.c b/vss.c
index 827267d362790c98fea5bb89c776d3c8a57663f3..2a3728157b1805d96e3d475dee08cdf4f0ea341e 100644 (file)
--- 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 611a294fcf11169042deb0c465207b755d5e0788..c0d7456a56045309983d27fca0c3650c175e6f1b 100644 (file)
--- 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);