Revision 7983c8a3 hw/qdev-core.h

b/hw/qdev-core.h
8 8
#include "hw/irq.h"
9 9
#include "qapi/error.h"
10 10

  
11
enum DevState {
12
    DEV_STATE_CREATED = 1,
13
    DEV_STATE_INITIALIZED,
14
};
15

  
16 11
enum {
17 12
    DEV_NVECTORS_UNSPECIFIED = -1,
18 13
};
......
49 44
    const char *bus_type;
50 45
} DeviceClass;
51 46

  
52
/* This structure should not be accessed directly.  We declare it here
53
   so that it can be embedded in individual device state structures.  */
47
/**
48
 * DeviceState:
49
 * @realized: Indicates whether the device has been fully constructed.
50
 *
51
 * This structure should not be accessed directly.  We declare it here
52
 * so that it can be embedded in individual device state structures.
53
 */
54 54
struct DeviceState {
55
    /*< private >*/
55 56
    Object parent_obj;
57
    /*< public >*/
56 58

  
57 59
    const char *id;
58
    enum DevState state;
60
    bool realized;
59 61
    QemuOpts *opts;
60 62
    int hotplugged;
61 63
    BusState *parent_bus;

Also available in: Unified diff