From 52d8ed8dfb91a2b302c20bee27e9a28b7cb6a518 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 7 Jun 2019 11:17:53 +0200 Subject: core: Replace the posix close notify mechanism by a new generic one. * src/fdtable.c, src/fdtable.h: New. * src/posix-io.c (notify_table_item_s): Remove. (notify_table, notify_table_size, notify_table_lock): Remove. (_gpgme_io_pipe): Put new fds into the table. (_gpgme_io_dup): Ditto. (_gpgme_io_close): Replace notify stuff by a call to the fdtable. (_gpgme_io_set_close_notify): Remove. Change all callers to to use _gpgme_fdtable_add_close_notify. * src/Makefile.am (main_sources): Add new files. -- This is the first part or a larger change to unify the tracking of file descriptors. Right now this has only been implemented for Posix and thus the code will not yet build for Windows. Signed-off-by: Werner Koch --- src/w32-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/w32-io.c') diff --git a/src/w32-io.c b/src/w32-io.c index c5c21f59..ea9622e9 100644 --- a/src/w32-io.c +++ b/src/w32-io.c @@ -143,7 +143,7 @@ static struct /* The context of an associated writer object or NULL. */ struct writer_context_s *writer; - /* A notification handler. Noet that we current support only one + /* A notification handler. Note that we current support only one * callback per fd. */ struct { _gpgme_close_notify_handler_t handler; -- cgit v1.2.3