From b53d826c9a2aeb5c33beb328ffadb45ea96bde1d Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 21 Jun 1996 05:58:46 +0000 Subject: (fshelp_set_options): Add INPUT argument. (fshelp_return_malloced_buffer): New declaration. --- libfshelp/fshelp.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libfshelp/fshelp.h b/libfshelp/fshelp.h index 990a732b..9df05abe 100644 --- a/libfshelp/fshelp.h +++ b/libfshelp/fshelp.h @@ -210,6 +210,13 @@ struct argp; /* Include to get the real thing. */ /* Invoke ARGP with data from DATA & LEN, in the standard way. */ error_t fshelp_set_options (struct argp *argp, int flags, - char *data, mach_msg_type_number_t len); + char *argz, size_t argz_len, void *input); + +/* Puts data from the malloced buffer BUF, LEN bytes long, into RBUF & RLEN, + suitable for returning from a mach rpc. If LEN > 0, BUF is freed, + regardless of whether an error is returned or not. */ +error_t fshelp_return_malloced_buffer (char *buf, size_t len, + char **rbuf, + mach_msg_type_number_t *rlen); #endif -- cgit v1.2.3