From 1e45cc2fb3618cdfcb0b790d563201c6ecb16334 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 23 May 2002 09:07:12 +0000 Subject: * assuan-util.c (assuan_set_io_func): New. * 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. --- src/assuan-defs.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/assuan-defs.h') 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); -- cgit v1.2.3