From cfeaca5253c734b12d682a1e1da26fd4ff6ef33f Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 21 Jun 1996 06:00:08 +0000 Subject: Add trivfs_set_options & trivfs_get_options. --- libtrivfs/trivfs.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'libtrivfs/trivfs.h') diff --git a/libtrivfs/trivfs.h b/libtrivfs/trivfs.h index ab1de42b..4274226f 100644 --- a/libtrivfs/trivfs.h +++ b/libtrivfs/trivfs.h @@ -184,7 +184,20 @@ error_t trivfs_set_atime (struct trivfs_control *cntl); error_t trivfs_set_mtime (struct trivfs_control *cntl); /* If this is defined or set to an argp structure, it will be used by the - default trivfs_S_fsys_set_options to handle runtime options parsing. */ + default trivfs_set_options to handle runtime options parsing. Redefining + this is the normal way to add option parsing to a trivfs program. */ extern struct argp *trivfs_runtime_argp; +/* Set runtime options for FSYS to ARGZ & ARGZ_LEN. The default definition + for this routine simply uses TRIVFS_RUNTIME_ARGP (supply FSYS as the argp + input field). */ +error_t trivfs_set_options (struct trivfs_control *fsys, + char *argz, size_t argz_len); + +/* Return runtime options for FSYS in ARGZ & ARGZ_LEN. ARGZ should be + allocated with malloc. The default definition for this routine returns + EOPNOTSUPP. */ +error_t trivfs_get_options (struct trivfs_control *fsys, + char **argz, size_t *argz_len); + #endif /* __TRIVFS_H__ */ -- cgit v1.2.3