aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
Commit message (Collapse)AuthorAge
* copyright year 2011Max Kellermann2011-01-29
|
* player_control: removed the global variable "pc"Max Kellermann2011-01-10
| | | | | | | Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support.
* main: Add Windows Service supportDenis Krjuchkov2010-09-23
| | | | | | | | | I've added PIPE_EVENT_SHUTDOWN because calling g_main_loop_quit() do not work when called from another thread. Main thread was sleeping in g_poll() so I needed some way to wake it up. By some strange reason call close(event_pipe[0]) in event_pipe_deinit() hangs. In current implementation that code never reached so that was not a problem :-) I've added a conditional to leave event_pipe[0] open on Win32.
* Update copyright notices.Avuton Olrich2009-12-31
|
* player_control: protect command, state, error with a mutexMax Kellermann2009-10-31
| | | | | | Use GMutex/GCond instead of the notify library. Manually lock the player_control object before accessing the protected attributes. Use the GCond object to notify the player thread and the main thread.
* all: Update copyright header.Avuton Olrich2009-03-13
| | | | | | | | This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
* event_pipe: moved variable "main_task" to main.cMax Kellermann2009-01-03
|
* main: include main.h, fix dependenciesMax Kellermann2009-01-02
|
* event_pipe: replaced PIPE_EVENT_SIGNAL with main_notifyMax Kellermann2009-01-02
| | | | | | There is only one location using PIPE_EVENT_SIGNAL: to synchronize player_command() with player_command_finished(). Use the "notify" library instead of the event_pipe here.
* main: export the main_loop variableMax Kellermann2008-12-30
Other libraries may need to access the main_loop reference, to add or remove events, or to call g_main_loop_quit().