eloop: add EV_ONESHOT and EV_SINGLE flags for idle sources
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 13 Jan 2013 10:54:29 +0000 (11:54 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 13 Jan 2013 10:54:29 +0000 (11:54 +0100)
commit1ef166c12cc259cd72250c0f28da4ab4529d90bf
treef6a27a1180d583559df29f0ac4a79bd05813e9cf
parent5ee2338b6095c5fa996f4d77a6cd9103f1d589d3
eloop: add EV_ONESHOT and EV_SINGLE flags for idle sources

EV_ONESHOT will remove idle sources once they have been processed and
EV_SINGLE will only register the source if it hasn't been registered, yet.

For source removal EV_ONESHOT has no effect but EV_SINGLE causes all
events with this cb+data combination to be removed.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/eloop.c
src/eloop.h
src/shl_hook.h
src/uterm_fbdev_video.c
src/uterm_vt.c
src/wlt_toolkit.c