projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1a9cb0
)
accel: Create AccelType typedef
author
Eduardo Habkost
<ehabkost@redhat.com>
Fri, 26 Sep 2014 20:45:18 +0000
(17:45 -0300)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Sat, 4 Oct 2014 06:59:15 +0000
(08:59 +0200)
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel.c
patch
|
blob
|
history
diff --git
a/accel.c
b/accel.c
index 9424796b8b7d855378fbda42c0b9f4d2d805550b..3cefd7451ccce84c5f7693b3a5f2ddfaea9884be 100644
(file)
--- a/
accel.c
+++ b/
accel.c
@@
-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 },