accel: Create AccelType typedef
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 26 Sep 2014 20:45:18 +0000 (17:45 -0300)
committerPaolo 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

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 },