aboutsummaryrefslogtreecommitdiffstats
path: root/src/ioops.h
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-05-15 23:23:09 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-05-15 23:23:09 +0000
commit6f68587ad59a2e5f606a332b96e55f57a0f9a5fc (patch)
tree0ee1613c2c0456981d7063aac52bafa2bb664d7f /src/ioops.h
parentf63c6ca86d9e1f7e2736df4e66e3fa96ec2890f1 (diff)
downloadmpd-6f68587ad59a2e5f606a332b96e55f57a0f9a5fc.tar.gz
mpd-6f68587ad59a2e5f606a332b96e55f57a0f9a5fc.tar.xz
mpd-6f68587ad59a2e5f606a332b96e55f57a0f9a5fc.zip
Changing "//" comments to "/* */" comments.
git-svn-id: https://svn.musicpd.org/mpd/trunk@6112 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/ioops.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/ioops.h b/src/ioops.h
index c9187dcc1..e797a7153 100644
--- a/src/ioops.h
+++ b/src/ioops.h
@@ -24,24 +24,28 @@
struct ioOps {
struct ioOps *prev, *next;
- // Called before each 'select' statement.
- // To register for IO, call FD_SET for each required queue
- // Return the highest fd number you registered
+ /*
+ * Called before each 'select' statement.
+ * 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 );
- // Called after each 'select' statement.
- // fdCount is the number of fds total in all sets. It may be 0.
- // For each fd you registered for in (fdset), you should FD_CLR it from the
- // appropriate queue(s).
- // Return the total number of fds left in all sets (Ie, return fdCount
- // minus the number of times you called FD_CLR).
+ /*
+ * Called after each 'select' statement.
+ * fdCount is the number of fds total in all sets. It may be 0.
+ * For each fd you registered for in (fdset), you should FD_CLR it from the
+ * appropriate queue(s).
+ * 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 );
};
-// Call this to register your io operation handler struct
+/* Call this to register your io operation handler struct */
void registerIO( struct ioOps *ops );
-// Call this to deregister your io operation handler struct
+/* Call this to deregister your io operation handler struct */
void deregisterIO( struct ioOps *ops );
#endif