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
21173ea4
Commit
21173ea4
authored
Jan 04, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event_pipe: removed the unused function event_pipe_wait()
parent
e4a53df7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
16 deletions
+4
-16
event_pipe.c
src/event_pipe.c
+4
-14
event_pipe.h
src/event_pipe.h
+0
-2
No files found.
src/event_pipe.c
View file @
21173ea4
...
...
@@ -51,8 +51,10 @@ event_pipe_invoke(enum pipe_event event)
event_pipe_callbacks
[
event
]();
}
static
void
consume_pipe
(
void
)
static
gboolean
main_notify_event
(
G_GNUC_UNUSED
GIOChannel
*
source
,
G_GNUC_UNUSED
GIOCondition
condition
,
G_GNUC_UNUSED
gpointer
data
)
{
char
buffer
[
256
];
ssize_t
r
=
read
(
event_pipe
[
0
],
buffer
,
sizeof
(
buffer
));
...
...
@@ -70,14 +72,7 @@ consume_pipe(void)
if
(
events
[
i
])
/* invoke the event handler */
event_pipe_invoke
(
i
);
}
static
gboolean
main_notify_event
(
G_GNUC_UNUSED
GIOChannel
*
source
,
G_GNUC_UNUSED
GIOCondition
condition
,
G_GNUC_UNUSED
gpointer
data
)
{
consume_pipe
();
return
true
;
}
...
...
@@ -148,8 +143,3 @@ void event_pipe_emit_fast(enum pipe_event event)
pipe_events
[
event
]
=
true
;
write
(
event_pipe
[
1
],
""
,
1
);
}
void
event_pipe_wait
(
void
)
{
consume_pipe
();
}
src/event_pipe.h
View file @
21173ea4
...
...
@@ -60,6 +60,4 @@ void event_pipe_emit(enum pipe_event event);
*/
void
event_pipe_emit_fast
(
enum
pipe_event
event
);
void
event_pipe_wait
(
void
);
#endif
/* MAIN_NOTIFY_H */
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