assuan/
authorMarcus Brinkmann <mb@g10code.com>
Wed, 8 Apr 2009 18:53:57 +0000 (18:53 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Wed, 8 Apr 2009 18:53:57 +0000 (18:53 +0000)
commitd255b4bec9a1fdf0864640750161ea12999e43a5
tree75e870ff7e07cb4f2bf30dc8a136c72eb4bf6bd4
parent6f8aa0e29d46f3109a5c3f8f9d7a7dc3e7b6abef
assuan/
2009-04-08  Marcus Brinkmann  <marcus@g10code.de>

* assuan.h (_gpgme_io_socket): New prototype.
(_ASSUAN_CUSTOM_IO, _assuan_custom_close, _assuan_custom_read)
(_assuan_custom_write, _assuan_custom_pipe, _assuan_custom_socket)
(_assuan_custom_connect): New macros.
* assuan-socket.c (_assuan_close, _assuan_sock_new)
(_assuan_sock_connect) [_ASSUAN_CUSTOM_IO]: Use custom I/O function.
* assuan-buffer.c (assuan_read_line): Do not handle EAGAIN anymore.
* assuan-client.c (_assuan_read_from_server): Likewise.
* assuan-handler.c (process_next): Likewise
* assuan-inquire.c (assuan_inquire): Likewise.

src/
2009-04-08  Marcus Brinkmann  <marcus@g10code.de>

* w32-glib-io.c (giochannel_table): New members used, fd, socket.
(find_channel): Drop CREATE argument.
(new_dummy_channel_from_fd, new_channel_from_fd)
(new_channel_from_socket): New functions.
(_gpgm_io_fd2str): Implement for sockets.
(_gpgme_io_write, _gpgme_io_read): Translate EAGAIN errors
correctly.
(_gpgme_io_pipe): Fix for new channel bookkeeping.
(_gpgme_io_close, _gpgme_io_dup): Likewise.
(wsa2errno, _gpgme_io_socket, _gpgme_io_connect): New.
* w32-io.c (MAX_READERS, MAX_WRITERS): Bump up to 40.
(wsa2errno, _gpgme_io_socket, _gpgme_io_connect): New.
* w32-qt-io.cpp (_gpgme_io_socket, _gpgme_io_connect): New stubs.
* version.c [HAVE_W32_SYSTEM]: Include "windows.h.
(do_subsystem_inits) [HAVE_W32_SYSTEM]: Call WSAStartup.
* engine-assuan.c (llass_status_handler): Ignore EAGAIN errors.
14 files changed:
TODO
assuan/ChangeLog
assuan/assuan-buffer.c
assuan/assuan-client.c
assuan/assuan-handler.c
assuan/assuan-inquire.c
assuan/assuan-socket.c
assuan/assuan.h
src/ChangeLog
src/engine-assuan.c
src/version.c
src/w32-glib-io.c
src/w32-io.c
src/w32-qt-io.cpp