]> git.tuebingen.mpg.de Git - paraslash.git/commit
Make struct sched private.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 10 Jun 2025 14:06:03 +0000 (16:06 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 11 Jun 2025 15:38:35 +0000 (17:38 +0200)
commit9d5e2fd932f2b847792fa55b071a0061e1b9cd84
treeee4b8ed69bb8b43d5f9c21dfedf3b26828fc5d39
parent231c2dda1c9f13df1d956dd2790992689b3f4838
Make struct sched private.

This moves the declaration of the structure from sched.h to sched.c because
the information stored in this structure has almost no users outside of the
scheduler core.

As a result, the size of the structure is no longer known outside of sched.c.
Applications now must call the new sched_new() to obtain a pointer to an
initialized scheduler structure, passing an alternative poll function if
needed. We don't let applications set the default timeout anymore because
the value is kind of arbitrary anyway and most applications simply specified
one second. So hardcode this as the default.
12 files changed:
afs.c
audioc.c
audiod.c
client.c
filter.c
gui.c
play.c
recv.c
sched.c
sched.h
server.c
write.c