author | Max Kellermann <max@duempel.org> | |
Wed, 17 Sep 2008 23:49:53 +0000 (01:49 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Wed, 17 Sep 2008 23:49:53 +0000 (01:49 +0200) | ||
commit | f0aa88e5c18de0b1e4f5d85dd5c3ae5d9be76bc3 | |
tree | ead2fd90d2a19b39c5e1a7a0942df9be77c02831 | tree | snapshot |
parent | e54533bd1fad95b149e87918dffca06b0afb5074 | commit | diff |
use the glib main event loop
This big patch replaces our custom main loop with the event based glib
main loop. This has several advantages: we can make all the tiny code
bits in the main loop independent from each others, we can add
additional file descriptors for polling (e.g. the mpdclient socket).
We don't need the ncurses timeout() anymore, because glib will poll
stdin for us.
This big patch replaces our custom main loop with the event based glib
main loop. This has several advantages: we can make all the tiny code
bits in the main loop independent from each others, we can add
additional file descriptors for polling (e.g. the mpdclient socket).
We don't need the ncurses timeout() anymore, because glib will poll
stdin for us.
src/command.c | diff | blob | history | |
src/command.h | diff | blob | history | |
src/main.c | diff | blob | history | |
src/screen.c | diff | blob | history | |
src/screen_utils.c | diff | blob | history |