X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fgidle.h;h=385b00d83dbc6b2328c44688484af4925f809fa7;hb=fc747242111e902794a110d7153dc12505a636ba;hp=3b460e214d54b74651f3abac36ff80b2647ab135;hpb=46c72b9e1f4e35340dfe0fa2dec57622ee60f3ae;p=ncmpc.git diff --git a/src/gidle.h b/src/gidle.h index 3b460e2..385b00d 100644 --- a/src/gidle.h +++ b/src/gidle.h @@ -1,5 +1,5 @@ /* ncmpc (Ncurses MPD Client) - (c) 2004-2009 The Music Player Daemon Project + (c) 2004-2010 The Music Player Daemon Project Project homepage: http://musicpd.org Redistribution and use in source and binary forms, with or without @@ -45,10 +45,22 @@ mpd_glib_new(struct mpd_connection *connection, void mpd_glib_free(struct mpd_glib_source *source); -void +/** + * Enters idle mode. + * + * @return true if idle mode has been entered, false if not + * (e.g. blocked during the callback, or I/O error) + */ +bool mpd_glib_enter(struct mpd_glib_source *source); -void +/** + * Leaves idle mode and invokes the callback if there were events. + * + * @return true on success, false if this object was deleted by the + * callback + */ +bool mpd_glib_leave(struct mpd_glib_source *source); #endif