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
48aace18
Commit
48aace18
authored
Jan 03, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event_pipe: moved variable "main_task" to main.c
parent
96814397
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
7 deletions
+5
-7
event_pipe.c
src/event_pipe.c
+0
-5
event_pipe.h
src/event_pipe.h
+0
-2
main.c
src/main.c
+2
-0
main.h
src/main.h
+2
-0
update.c
src/update.c
+1
-0
No files found.
src/event_pipe.c
View file @
48aace18
...
...
@@ -26,7 +26,6 @@
#include <glib.h>
#include <string.h>
GThread
*
main_task
;
static
int
event_pipe
[
2
];
static
GMutex
*
event_pipe_mutex
;
static
bool
pipe_events
[
PIPE_EVENT_MAX
];
...
...
@@ -78,8 +77,6 @@ void event_pipe_init(void)
{
GIOChannel
*
channel
;
main_task
=
g_thread_self
();
if
(
pipe
(
event_pipe
)
<
0
)
g_error
(
"Couldn't open pipe: %s"
,
strerror
(
errno
));
if
(
set_nonblocking
(
event_pipe
[
1
])
<
0
)
...
...
@@ -90,8 +87,6 @@ void event_pipe_init(void)
g_io_channel_unref
(
channel
);
event_pipe_mutex
=
g_mutex_new
();
main_task
=
g_thread_self
();
}
void
event_pipe_deinit
(
void
)
...
...
src/event_pipe.h
View file @
48aace18
...
...
@@ -44,8 +44,6 @@ enum pipe_event {
typedef
void
(
*
event_pipe_callback_t
)(
void
);
extern
GThread
*
main_task
;
void
event_pipe_init
(
void
);
void
event_pipe_deinit
(
void
);
...
...
src/main.c
View file @
48aace18
...
...
@@ -76,6 +76,7 @@
#include <locale.h>
#endif
GThread
*
main_task
;
GMainLoop
*
main_loop
;
struct
notify
main_notify
;
...
...
@@ -242,6 +243,7 @@ int main(int argc, char *argv[])
changeToUser
();
main_task
=
g_thread_self
();
main_loop
=
g_main_loop_new
(
NULL
,
FALSE
);
notify_init
(
&
main_notify
);
...
...
src/main.h
View file @
48aace18
...
...
@@ -21,6 +21,8 @@
#include <glib.h>
extern
GThread
*
main_task
;
extern
GMainLoop
*
main_loop
;
extern
struct
notify
main_notify
;
...
...
src/update.c
View file @
48aace18
...
...
@@ -30,6 +30,7 @@
#include "update.h"
#include "idle.h"
#include "conf.h"
#include "main.h"
#include <glib.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