aboutsummaryrefslogtreecommitdiffstats
path: root/src/ioops.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-01-03 10:03:28 +0000
committerEric Wong <normalperson@yhbt.net>2008-01-03 10:03:28 +0000
commita9b581f6c551e783030a8ce54008a772325f71b6 (patch)
tree80d2d1fa10fee762e5bbbec05232825142ac8cb9 /src/ioops.h
parent776ccc89ad20f4532a4f28d98be775c0e1ba66aa (diff)
downloadmpd-a9b581f6c551e783030a8ce54008a772325f71b6.tar.gz
mpd-a9b581f6c551e783030a8ce54008a772325f71b6.tar.xz
mpd-a9b581f6c551e783030a8ce54008a772325f71b6.zip
zeroconf: reformat (with mpd-indent.sh + manual tweaks)
Also, lower the impact of compiling this w/o zeroconf by making the init/teardown functions static no-ops. Eventually, we should separate the Bonjour and Avahi code into separate files and have callbacks registered for each one, avoiding the #ifdef mess we have now... git-svn-id: https://svn.musicpd.org/mpd/trunk@7132 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/ioops.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ioops.h b/src/ioops.h
index 7da440290..642ea79c7 100644
--- a/src/ioops.h
+++ b/src/ioops.h
@@ -29,7 +29,7 @@ struct ioOps {
* To register for IO, call FD_SET for each required queue
* Return the highest fd number you registered
*/
- int (*fdset) ( fd_set *rfds, fd_set *wfds, fd_set *efds );
+ int (*fdset) (fd_set * rfds, fd_set * wfds, fd_set * efds);
/*
* Called after each 'select' statement.
@@ -39,13 +39,14 @@ struct ioOps {
* Return the total number of fds left in all sets (Ie, return fdCount
* minus the number of times you called FD_CLR).
*/
- int (*consume) ( int fdCount, fd_set *rfds, fd_set *wfds, fd_set *efds );
+ int (*consume) (int fdCount, fd_set * rfds, fd_set * wfds,
+ fd_set * efds);
};
/* Call this to register your io operation handler struct */
-void registerIO( struct ioOps *ops );
+void registerIO(struct ioOps *ops);
/* Call this to deregister your io operation handler struct */
-void deregisterIO( struct ioOps *ops );
+void deregisterIO(struct ioOps *ops);
#endif