From 2caaef8f6b89d7fcbbe3d480d192fe1952576942 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 5 Jun 2024 15:07:01 +0900 Subject: spawn: Expose spawn functions API. * src/gpg-error.def.in: Update. * src/gpg-error.vers: Update. * src/gpg-error.h.in: Add declarations. * src/visibility.c: Add implementations. * src/visibility.h: Expose them. -- GnuPG-bug-id: 6249 Signed-off-by: NIIBE Yutaka --- src/spawn-w32.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'src/spawn-w32.c') diff --git a/src/spawn-w32.c b/src/spawn-w32.c index 1c0daa9..4e0f206 100644 --- a/src/spawn-w32.c +++ b/src/spawn-w32.c @@ -952,8 +952,9 @@ process_kill (gpgrt_process_t process, unsigned int exitcode) return ec; } -static gpg_err_code_t -process_vctl (gpgrt_process_t process, unsigned int request, va_list arg_ptr) +gpg_err_code_t +_gpgrt_process_vctl (gpgrt_process_t process, unsigned int request, + va_list arg_ptr) { switch (request) { @@ -1065,18 +1066,6 @@ process_vctl (gpgrt_process_t process, unsigned int request, va_list arg_ptr) return GPG_ERR_UNKNOWN_COMMAND; } -gpg_err_code_t -_gpgrt_process_ctl (gpgrt_process_t process, unsigned int request, ...) -{ - va_list arg_ptr; - gpg_err_code_t ec; - - va_start (arg_ptr, request); - ec = process_vctl (process, request, arg_ptr); - va_end (arg_ptr); - return ec; -} - gpg_err_code_t _gpgrt_process_wait (gpgrt_process_t process, int hang) { -- cgit v1.2.3