Revision 042f84d0 hw/qdev.h

b/hw/qdev.h
4 4
#include "hw.h"
5 5
#include "sys-queue.h"
6 6

  
7
typedef struct DeviceType DeviceType;
7
typedef struct DeviceInfo DeviceInfo;
8 8

  
9 9
typedef struct DeviceProperty DeviceProperty;
10 10

  
......
15 15
/* This structure should not be accessed directly.  We declare it here
16 16
   so that it can be embedded in individual device state structures.  */
17 17
struct DeviceState {
18
    DeviceType *type;
18
    DeviceInfo *info;
19 19
    BusState *parent_bus;
20 20
    DeviceProperty *props;
21 21
    int num_gpio_out;
......
72 72
    DevicePropType type;
73 73
} DevicePropList;
74 74

  
75
typedef struct DeviceInfo DeviceInfo;
76

  
77 75
typedef void (*qdev_initfn)(DeviceState *dev, DeviceInfo *info);
78 76
typedef void (*SCSIAttachFn)(DeviceState *host, BlockDriverState *bdrv,
79 77
              int unit);
......
86 84
    /* Private to qdev / bus.  */
87 85
    qdev_initfn init;
88 86
    BusInfo *bus_info;
87
    struct DeviceInfo *next;
89 88
};
90 89

  
91 90
void qdev_register(DeviceInfo *info);

Also available in: Unified diff