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-posix.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'src/spawn-posix.c') diff --git a/src/spawn-posix.c b/src/spawn-posix.c index eb990ad..67a118f 100644 --- a/src/spawn-posix.c +++ b/src/spawn-posix.c @@ -769,8 +769,9 @@ _gpgrt_process_get_streams (gpgrt_process_t process, unsigned int flags, return 0; } -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) { @@ -869,18 +870,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