diff options
author | Werner Koch <[email protected]> | 2009-06-12 16:58:45 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-06-12 16:58:45 +0000 |
commit | 148f51bb3e6e592333250ef73f2b801a10734083 (patch) | |
tree | 08ea4fe8f7b9009372821e9b28e41df294b248d8 /src/priv-io.h | |
parent | Fix possible assert in the card edit. (diff) | |
download | gpgme-148f51bb3e6e592333250ef73f2b801a10734083.tar.gz gpgme-148f51bb3e6e592333250ef73f2b801a10734083.zip |
Improved W32 SetForegroundWindow hacks.
Diffstat (limited to 'src/priv-io.h')
-rw-r--r-- | src/priv-io.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/priv-io.h b/src/priv-io.h index 4a87f650..7194a424 100644 --- a/src/priv-io.h +++ b/src/priv-io.h @@ -59,11 +59,15 @@ int _gpgme_io_set_close_notify (int fd, _gpgme_close_notify_handler_t handler, void *value); int _gpgme_io_set_nonblocking (int fd); +/* A flag to tell the spawn function to allow the child process to set + the foreground window. */ +#define IOSPAWN_FLAG_ALLOW_SET_FG 1 + /* Spawn the executable PATH with ARGV as arguments. After forking close all fds except for those in FD_LIST in the child, then optionally dup() the child fds. Finally, all fds in the list are closed in the parent. */ -int _gpgme_io_spawn (const char *path, char *const argv[], +int _gpgme_io_spawn (const char *path, char *const argv[], unsigned int flags, struct spawn_fd_item_s *fd_list, pid_t *r_pid); int _gpgme_io_select (struct io_select_fd_s *fds, size_t nfds, int nonblock); |