mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
accel: Create AccelType typedef
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
a1a9cb0ccd
commit
e54adde615
@@ -40,13 +40,15 @@ static int tcg_init(MachineClass *mc)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct {
|
||||
typedef struct AccelType {
|
||||
const char *opt_name;
|
||||
const char *name;
|
||||
int (*available)(void);
|
||||
int (*init)(MachineClass *mc);
|
||||
bool *allowed;
|
||||
} accel_list[] = {
|
||||
} AccelType;
|
||||
|
||||
static AccelType accel_list[] = {
|
||||
{ "tcg", "tcg", tcg_available, tcg_init, &tcg_allowed },
|
||||
{ "xen", "Xen", xen_available, xen_init, &xen_allowed },
|
||||
{ "kvm", "KVM", kvm_available, kvm_init, &kvm_allowed },
|
||||
|
||||
Reference in New Issue
Block a user