diff options
Diffstat (limited to 'include/qom')
-rw-r--r-- | include/qom/object_interfaces.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/qom/object_interfaces.h b/include/qom/object_interfaces.h index 07511e6..fb32330 100644 --- a/include/qom/object_interfaces.h +++ b/include/qom/object_interfaces.h @@ -145,6 +145,21 @@ int user_creatable_add_opts_foreach(void *opaque, QemuOpts *opts, Error **errp); /** + * user_creatable_parse_str: + * @optarg: the object definition string as passed on the command line + * @errp: if an error occurs, a pointer to an area to store the error + * + * Parses the option for the user creatable object with a keyval parser and + * implicit key 'qom-type', converting the result to ObjectOptions. + * + * If a help option is given, print help instead. + * + * Returns: ObjectOptions on success, NULL when an error occurred (*errp is set + * then) or help was printed (*errp is not set). + */ +ObjectOptions *user_creatable_parse_str(const char *optarg, Error **errp); + +/** * user_creatable_add_from_str: * @optarg: the object definition string as passed on the command line * @errp: if an error occurs, a pointer to an area to store the error |