aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2009-11-25 17:55:26 +0000
committerMarcus Brinkmann <[email protected]>2009-11-25 17:55:26 +0000
commitb41cc03c891deac4bb35af3c88f8b635ebfb632c (patch)
treeccf200bd7e05c36da7a9ccf04a9b0e8bd9464be8 /src/assuan.h
parentdoc/ (diff)
downloadlibassuan-b41cc03c891deac4bb35af3c88f8b635ebfb632c.tar.gz
libassuan-b41cc03c891deac4bb35af3c88f8b635ebfb632c.zip
doc/
2009-11-25 Marcus Brinkmann <[email protected]> * assuan.texi (Data Types): Document assuan_fdopen. src/ 2009-11-25 Marcus Brinkmann <[email protected]> * assuan.h (assuan_init_pipe_server): Change type of filedes to assuan_fd_t. (assuan_fdopen): New prototype. * libassuan.vers, libassuan.def: Add assuan_fdopen. * system.c (assuan_fdopen): New function. * assuan-pipe-server.c (assuan_init_pipe_server): Change type of filedes to assuan_fd_t. No longer translate fd to handle. Don't set to binary either (that doesn't do anything for handles, it only affects the libc fd).
Diffstat (limited to 'src/assuan.h')
-rw-r--r--src/assuan.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/assuan.h b/src/assuan.h
index 33afc63..0fb1795 100644
--- a/src/assuan.h
+++ b/src/assuan.h
@@ -91,6 +91,8 @@ typedef int assuan_fd_t;
#define ASSUAN_INVALID_PID ((pid_t) -1)
#endif
+assuan_fd_t assuan_fdopen (int fd);
+
/* Assuan features an emulation of Unix domain sockets based on a
local TCP connections. To implement access permissions based on
@@ -358,7 +360,8 @@ gpg_error_t assuan_close_output_fd (assuan_context_t ctx);
/*-- assuan-pipe-server.c --*/
-gpg_error_t assuan_init_pipe_server (assuan_context_t ctx, int filedes[2]);
+gpg_error_t assuan_init_pipe_server (assuan_context_t ctx,
+ assuan_fd_t filedes[2]);
/*-- assuan-socket-server.c --*/
#define ASSUAN_SOCKET_SERVER_FDPASSING 1