aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/priv-io.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2007-07-13 00:43:17 +0000
committerMarcus Brinkmann <[email protected]>2007-07-13 00:43:17 +0000
commitc4bb93ec28db2bab7e02c5e6c76645a7367bf4b2 (patch)
treeff1cbba84d64f76fcae49755a36404da8e0a7668 /gpgme/priv-io.h
parentFix last change. (diff)
downloadgpgme-c4bb93ec28db2bab7e02c5e6c76645a7367bf4b2.tar.gz
gpgme-c4bb93ec28db2bab7e02c5e6c76645a7367bf4b2.zip
2007-07-13 Marcus Brinkmann <[email protected]>
* assuan/assuan-io.c (_assuan_simple_read, _assuan_simple_write): Always use read/write (which means _gpgme_io_read and _gpgme_io_write). gpgme/ 2007-07-13 Marcus Brinkmann <[email protected]> * priv-io.h (_gpgme_io_set_close_notify): Change type of HANDLER to _gpgme_close_notify_handler. (_gpgme_close_notify_handler): New type. (_gpgme_io_dup): Remove prototype. * posix-io.c (notify_table, _gpgme_io_set_close_notify): Change type of HANDLER to _gpgme_close_notify_handler_t. (_gpgme_io_close): Do not close the FD if handler returns 0. (_gpgme_io_dup): Remove function. * w32-io.c (notify_table, _gpgme_io_set_close_notify, _gpgme_io_close): Change type of HANDLER to _gpgme_close_notify_handler_t. (_gpgme_io_close): Do not close the FD if handler returns 0. (_gpgme_io_dup): Remove function. * w32-glib-io.c (_gpgme_io_dup): Remove function. (_gpgme_io_set_close_notify, notify_table): Change type of HANDLER to _gpgme_close_notify_handler_t. (_gpgme_io_close): Do not close the FD if handler returns 0. * rungpg.c (close_notify_handler): Change return type to int, return 1. * engine-gpgsm.c (close_notify_handler): Change return type to int, return 0 for status FD and 1 for all other FDs. (start): Do not duplicate the status FD.
Diffstat (limited to '')
-rw-r--r--gpgme/priv-io.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/gpgme/priv-io.h b/gpgme/priv-io.h
index 6b422840..602fedee 100644
--- a/gpgme/priv-io.h
+++ b/gpgme/priv-io.h
@@ -47,7 +47,8 @@ int _gpgme_io_read (int fd, void *buffer, size_t count);
int _gpgme_io_write (int fd, const void *buffer, size_t count);
int _gpgme_io_pipe (int filedes[2], int inherit_idx);
int _gpgme_io_close (int fd);
-int _gpgme_io_set_close_notify (int fd, void (*handler) (int, void *),
+typedef int (*_gpgme_close_notify_handler_t) (int,void*);
+int _gpgme_io_set_close_notify (int fd, _gpgme_close_notify_handler_t handler,
void *value);
int _gpgme_io_set_nonblocking (int fd);
@@ -64,7 +65,4 @@ int _gpgme_io_select (struct io_select_fd_s *fds, size_t nfds, int nonblock);
line that the child process expects. */
int _gpgme_io_fd2str (char *buf, int buflen, int fd);
-/* Like dup(). */
-int _gpgme_io_dup (int fd);
-
#endif /* IO_H */