diff options
author | Miles Bader <miles@gnu.org> | 1996-06-21 06:00:08 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-06-21 06:00:08 +0000 |
commit | cfeaca5253c734b12d682a1e1da26fd4ff6ef33f (patch) | |
tree | 1d41464bf6dcf6314cac6efd86212959e6b9d319 /libtrivfs | |
parent | 3735437af97a170a4fb18c86ffb24df95bd91208 (diff) |
Add trivfs_set_options & trivfs_get_options.
Diffstat (limited to 'libtrivfs')
-rw-r--r-- | libtrivfs/trivfs.h | 15 |
1 files changed, 14 insertions, 1 deletions
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__ */ |