diff options
author | Marcus Brinkmann <[email protected]> | 2007-10-05 16:44:08 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2007-10-05 16:44:08 +0000 |
commit | d0395d1de508b960fa8d7c83e404d7aacb617c9c (patch) | |
tree | f22047c0e0076ccdbb0299cc60f702c8b1861582 /src/assuan-defs.h | |
parent | Map WSANOTINITIALIZED to ENOSYS. (diff) | |
download | libassuan-d0395d1de508b960fa8d7c83e404d7aacb617c9c.tar.gz libassuan-d0395d1de508b960fa8d7c83e404d7aacb617c9c.zip |
2007-10-05 Marcus Brinkmann <[email protected]>
* assuan-defs.h (_assuan_error_is_eagain): New prototype.
* mkerrors (_assuan_error_is_eagain): New function.
* assuan-handler.c (process_next): Leave on EAGAIN.
* assuan-handler.c (process_request),
assuan-client.c (_assuan_read_from_server),
assuan-buffer.c (assuan_read_line): Busy loop over EAGAIN.
Diffstat (limited to 'src/assuan-defs.h')
-rw-r--r-- | src/assuan-defs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/assuan-defs.h b/src/assuan-defs.h index 1e31c43..f17e906 100644 --- a/src/assuan-defs.h +++ b/src/assuan-defs.h @@ -234,6 +234,8 @@ void _assuan_inquire_release (assuan_context_t ctx); /* Map error codes as used in this implementation to the libgpg-error codes. */ assuan_error_t _assuan_error (int oldcode); +/* Check if ERR means EAGAIN. */ +int _assuan_error_is_eagain (assuan_error_t err); /* Extract the error code from A. This works for both the old and the new style error codes. This needs to be used whenever an error |