From a9b581f6c551e783030a8ce54008a772325f71b6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 3 Jan 2008 10:03:28 +0000 Subject: 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 --- src/ioops.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/ioops.h') 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 -- cgit v1.2.3