[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH RESEND v6 03/36] command-line: refractor parser code
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH RESEND v6 03/36] command-line: refractor parser code |
Date: |
Fri, 24 Apr 2020 13:55:59 +0100 |
On Wed, Apr 22, 2020 at 09:13:38PM -0700, address@hidden wrote:
> From: Elena Ufimtseva <address@hidden>
>
> Refactor command-line parser code so that it could be used by
> other processes as well.
How will qemu-options-wrapper.h be handled for other processes? At the
moment qemu-parse.c cannot be reused because it includes this file for
the options list.
> diff --git a/include/qemu-parse.h b/include/qemu-parse.h
> new file mode 100644
> index 0000000000..156b238db6
> --- /dev/null
> +++ b/include/qemu-parse.h
> @@ -0,0 +1,42 @@
> +/*
> + * Copyright © 2018, 2020 Oracle and/or its affiliates.
This code is extracted from vl.c so the copyright should be preserved
and not replaced with yours.
You can add yours for changes that have been made.
> + *
> + * This work is licensed under the terms of the GNU GPL, version 2 or later.
> + * See the COPYING file in the top-level directory.
> + *
> + */
> +
> +#ifndef VL_H
> +#define VL_H
#define QEMU_PARSE_H
> +
> +int drive_init_func(void *opaque, QemuOpts *opts, Error **errp);
> +
> +int device_init_func(void *opaque, QemuOpts *opts, Error **errp);
What do drive_init_func() and device_init_func() have to do with
lookup_opt()? I wouldn't expect to see them in this header file.
signature.asc
Description: PGP signature
- [PATCH RESEND v6 00/36] Initial support for multi-process qemu, elena . ufimtseva, 2020/04/23
- [PATCH RESEND v6 04/36] multi-process: Refactor chardev functions out of vl.c, elena . ufimtseva, 2020/04/23
- [PATCH RESEND v6 03/36] command-line: refractor parser code, elena . ufimtseva, 2020/04/23
- Re: [PATCH RESEND v6 03/36] command-line: refractor parser code,
Stefan Hajnoczi <=
- [PATCH RESEND v6 05/36] multi-process: Refactor monitor functions out of vl.c, elena . ufimtseva, 2020/04/23
- [PATCH RESEND v6 01/36] memory: alloc RAM from file at offset, elena . ufimtseva, 2020/04/23
- [PATCH RESEND v6 06/36] monitor: destaticize HMP commands, elena . ufimtseva, 2020/04/23
- [PATCH RESEND v6 09/36] multi-process: Add config option for multi-process QEMU, elena . ufimtseva, 2020/04/23
- [PATCH RESEND v6 07/36] multi-process: add a command line option for debug file, elena . ufimtseva, 2020/04/23