Age | Commit message (Collapse) | Author |
|
|
|
Correctly unparse complex type names.
|
|
Use parse_type to parse the -T option.
(parse_type):
New function.
(struct store_parsed):
Add NAME_PREFIX field.
(store_parsed_free):
Free it.
(store_parsed_append_args):
Emit it.
(store_parsed_open):
Use it in opens.
|
|
|
|
Correctly check for non-default type.
(options, parse_opt):
Add --store-type/-T & (hidden) --machdev/-m options, remove --device/-d
option.
(find_class):
Change CLASSES to be a vector of class pointers.
(struct store_parsed):
Change CLASSES field to be a pointer to a vector of class pointers.
Make some fields const.
Rmove DEVICE field, add TYPE, DEFAULT_TYPE and CLASSES fields.
(store_parsed_free):
Free PARSED->type if it exists.
(store_parsed_append_args):
Use --store-type=... instead of --device.
(store_parsed_open):
Remove CLASSES argument.
When --store-type is specified, search CLASSES for that type, and call it's
open function.
|
|
(store_parsed_append_args, store_parsed_open, struct store_parsed):
Use `device' instead of `machdev'.
|
|
|
|
(struct store_parsed): New type.
(store_parsed_free, store_parsed_append_args, store_parsed_open): New functions.
(parse_opt):
Use new store_parsed structure instead of the old store_parse_hook, and just
fill in the names rather than doing the open here.
Don't take a struct store_argp_params as input any more; instead just take
the address of a location in which to return a store_parsed structure.
(struct store_parse_hook): Type removed.
(free_hook, open_file): Functions removed.
(options): --machdev/-m renamed to --device/-D.
<assert.h>: New include.
<stdlib.h>, <fcntl.h>: Includes removed.
|
|
(parse_opt): Initialize and fill in H->params->args when appropriate.
<argz.h>: New include.
|
|
|
|
|
|
|
|
Use error instead of ERR for non-parsing errors.
Rename ERR to PERR.
|
|
(parse_opt): Use store_device_open instead of open_machdev.
(open_file, parse_opt): Add FLAGS arg to various function calls.
|
|
|