mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
smbios: Convert to QemuOpts
So that it can be set in config file for -readconfig. This tightens parsing of -smbios, and makes it more consistent with other options: unknown parameters are rejected, numbers with trailing junk are rejected, when a parameter is given multiple times, last rather than first wins, ... MST: drop one chunk to fix build errors Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
351a6a73ca
commit
4f953d2fc8
5 changed files with 179 additions and 43 deletions
|
@ -13,7 +13,9 @@
|
|||
*
|
||||
*/
|
||||
|
||||
void smbios_entry_add(const char *t);
|
||||
#include "qemu/option.h"
|
||||
|
||||
void smbios_entry_add(QemuOpts *opts);
|
||||
void smbios_add_field(int type, int offset, const void *data, size_t len);
|
||||
uint8_t *smbios_get_table(size_t *length);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue