aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/priv-io.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2005-11-18 14:00:50 +0000
committerMarcus Brinkmann <[email protected]>2005-11-18 14:00:50 +0000
commit3418d23ec527b60e876e5f231879f37928955541 (patch)
tree78f55287770a05560e1d484455e438ce8d1fe914 /gpgme/priv-io.h
parent2005-11-18 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-3418d23ec527b60e876e5f231879f37928955541.tar.gz
gpgme-3418d23ec527b60e876e5f231879f37928955541.zip
2005-11-18 Marcus Brinkmann <[email protected]>
* priv-io.h (_gpgme_io_fd2str): New prototype. * posix-io.c (_gpgme_io_fd2str): New function. * w32-io.c (_gpgme_io_fd2str): New function. * rungpg.c: Use this new function. * w32-glib-io.c (_gpgme_io_fd2str): Rewrote the file handle code again. Two's company, three's the musketeers.
Diffstat (limited to '')
-rw-r--r--gpgme/priv-io.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gpgme/priv-io.h b/gpgme/priv-io.h
index 786f2432..4c2a604a 100644
--- a/gpgme/priv-io.h
+++ b/gpgme/priv-io.h
@@ -59,7 +59,9 @@ int _gpgme_io_spawn (const char *path, char **argv,
struct spawn_fd_item_s *fd_parent_list);
int _gpgme_io_select (struct io_select_fd_s *fds, size_t nfds, int nonblock);
-#endif /* IO_H */
-
-
+/* Write the printable version of FD to the buffer BUF of length
+ BUFLEN. The printable version is the representation on the command
+ line that the child process expects. */
+int _gpgme_io_fd2str (char *buf, int buflen, int fd);
+#endif /* IO_H */