mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
vmstate: extract declarations out of hw/hw.h
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
49d4d9b63e
commit
701a8f76aa
10 changed files with 957 additions and 891 deletions
12
hw/ptimer.h
12
hw/ptimer.h
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include "qemu-common.h"
|
||||
#include "qemu-timer.h"
|
||||
#include "vmstate.h"
|
||||
|
||||
/* ptimer.c */
|
||||
typedef struct ptimer_state ptimer_state;
|
||||
|
@ -24,4 +25,15 @@ void ptimer_set_count(ptimer_state *s, uint64_t count);
|
|||
void ptimer_run(ptimer_state *s, int oneshot);
|
||||
void ptimer_stop(ptimer_state *s);
|
||||
|
||||
extern const VMStateDescription vmstate_ptimer;
|
||||
|
||||
#define VMSTATE_PTIMER(_field, _state) { \
|
||||
.name = (stringify(_field)), \
|
||||
.version_id = (1), \
|
||||
.vmsd = &vmstate_ptimer, \
|
||||
.size = sizeof(ptimer_state *), \
|
||||
.flags = VMS_STRUCT|VMS_POINTER, \
|
||||
.offset = vmstate_offset_pointer(_state, _field, ptimer_state), \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue