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
3e5f09be
Commit
3e5f09be
authored
Jan 09, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event_pipe: convert to C++
parent
e86e77ad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
Makefile.am
Makefile.am
+1
-1
EventPipe.cxx
src/EventPipe.cxx
+2
-2
event_pipe.h
src/event_pipe.h
+9
-1
No files found.
Makefile.am
View file @
3e5f09be
...
...
@@ -247,7 +247,7 @@ src_mpd_SOURCES = \
src/io_thread.c src/io_thread.h
\
src/Main.cxx src/Main.hxx
\
src/Win32Main.cxx
\
src/
event_pipe.c
\
src/
EventPipe.cxx
\
src/daemon.c
\
src/AudioCompress/compress.c
\
src/MusicBuffer.cxx src/MusicBuffer.hxx
\
...
...
src/
event_pipe.c
→
src/
EventPipe.cxx
View file @
3e5f09be
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -80,7 +80,7 @@ main_notify_event(G_GNUC_UNUSED GIOChannel *source,
for
(
unsigned
i
=
0
;
i
<
PIPE_EVENT_MAX
;
++
i
)
if
(
events
[
i
])
/* invoke the event handler */
event_pipe_invoke
(
i
);
event_pipe_invoke
(
pipe_event
(
i
)
);
return
true
;
}
...
...
src/event_pipe.h
View file @
3e5f09be
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -50,6 +50,10 @@ enum pipe_event {
typedef
void
(
*
event_pipe_callback_t
)(
void
);
#ifdef __cplusplus
extern
"C"
{
#endif
void
event_pipe_init
(
void
);
void
event_pipe_deinit
(
void
);
...
...
@@ -66,4 +70,8 @@ void event_pipe_emit(enum pipe_event event);
*/
void
event_pipe_emit_fast
(
enum
pipe_event
event
);
#ifdef __cplusplus
}
#endif
#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