* src/fdtable.h (FDTABLE_FLAG_NOT_DONE): New flag.
* src/fdtable.c (_gpgme_fdtable_io_cb_count): Rename to ...
(_gpgme_fdtable_get_count): this and add arg 'flags'.
(_gpgme_fdtable_run_io_cbs): Add return arg 'r_owner'.
* src/wait.c (gpgme_wait_ext): Improve tracing. Act upon error codes
from running the callbacks.
* tests/gpg/t-wait.c (main): Remove the sleep.
--
Now t-wait works again. There are still problems with the user
defined events but it is another step in our refactoring work.
Signed-off-by: Werner Koch <wk@gnupg.org>