diff options
author | Werner Koch <[email protected]> | 2002-05-23 09:07:12 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-05-23 09:07:12 +0000 |
commit | 1e45cc2fb3618cdfcb0b790d563201c6ecb16334 (patch) | |
tree | e2f48bc1bb2ddcf26da429393e6483f40d3ceccc /src/assuan-defs.h | |
parent | * assuan-buffer.c (my_log_prefix): New. Use it for all i/o debug output. (diff) | |
download | libassuan-NEWPG-0-3-8.tar.gz libassuan-NEWPG-0-3-8.zip |
* assuan-util.c (assuan_set_io_func): New.V0-3-8V0-3-7NEWPG-0-3-8NEWPG-0-3-7
* assuan-buffer.c (writen, readline): Use the new functions
instead of pth.
* assuan-socket-server.c (accept_connection): Don't use the
pth_accept - using the assuan included accept code would be a bad
idea within Pth so we don't need a replacement function.
Diffstat (limited to 'src/assuan-defs.h')
-rw-r--r-- | src/assuan-defs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/assuan-defs.h b/src/assuan-defs.h index 6c502bf..5185ad1 100644 --- a/src/assuan-defs.h +++ b/src/assuan-defs.h @@ -76,6 +76,7 @@ struct assuan_context_s { pid_t pid; /* In pipe mode, the pid of the child server process. In socket mode, the pid of the server */ int listen_fd; /* The fd we are listening on (used by socket servers) */ + int connected_fd; /* helper */ pid_t client_pid; /* for a socket server the PID of the client or -1 if not available */ @@ -101,6 +102,7 @@ struct assuan_context_s { }; + /*-- assuan-pipe-server.c --*/ int _assuan_new_context (ASSUAN_CONTEXT *r_ctx); void _assuan_release_context (ASSUAN_CONTEXT ctx); @@ -119,6 +121,9 @@ AssuanError _assuan_read_from_server (ASSUAN_CONTEXT ctx, int *okay, int *off); /*-- assuan-util.c --*/ +extern ssize_t (*_assuan_read_wrapper)(int,void*,size_t); +extern ssize_t (*_assuan_write_wrapper)(int,const void*,size_t); + void *_assuan_malloc (size_t n); void *_assuan_calloc (size_t n, size_t m); void *_assuan_realloc (void *p, size_t n); |