Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
6f68587a
Commit
6f68587a
authored
May 15, 2007
by
J. Alexander Treuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing "//" comments to "/* */" comments.
git-svn-id:
https://svn.musicpd.org/mpd/trunk@6112
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
f63c6ca8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
15 deletions
+19
-15
interface.c
src/interface.c
+3
-3
ioops.h
src/ioops.h
+15
-11
zeroconf.c
src/zeroconf.c
+1
-1
No files found.
src/interface.c
View file @
6f68587a
...
...
@@ -511,7 +511,7 @@ int doIOForInterfaces(void)
addInterfacesReadyToReadAndListenSocketToFdSet
(
&
rfds
,
&
fdmax
);
addInterfacesForBufferFlushToFdSet
(
&
wfds
,
&
fdmax
);
/
/ Add fds for all registered IO handlers
/
* Add fds for all registered IO handlers */
if
(
ioList
)
{
struct
ioOps
*
o
=
ioList
;
while
(
o
)
{
...
...
@@ -530,7 +530,7 @@ int doIOForInterfaces(void)
if
(
selret
<
0
&&
errno
==
EINTR
)
break
;
/
/ Consume fds for all registered IO handlers
/
* Consume fds for all registered IO handlers */
if
(
ioList
)
{
struct
ioOps
*
o
=
ioList
;
while
(
o
)
{
...
...
@@ -832,7 +832,7 @@ static void printInterfaceOutBuffer(Interface * interface)
interface
->
send_buf_used
=
0
;
}
/
/ From ioops.h:
/
* From ioops.h: */
void
registerIO
(
struct
ioOps
*
ops
)
{
assert
(
ops
!=
NULL
);
...
...
src/ioops.h
View file @
6f68587a
...
...
@@ -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
src/zeroconf.c
View file @
6f68587a
...
...
@@ -494,5 +494,5 @@ void finishZeroconf(void)
avahi_free
(
avahiName
);
avahiName
=
NULL
;
#endif /
/ HAVE_AVAHI
#endif
/
* HAVE_AVAHI */
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment