Re: [Qemu-devel] [PATCH 2/2] vmstate: add VMSTATE_ARRAY_UNSAFE

2009-10-19 Thread Glauber Costa
On Mon, Oct 19, 2009 at 5:07 PM, Juan Quintela wrote: > Use offset given as an array of type given, without doing typechecking. > > +#define VMSTATE_ARRAY_UNSAFE(_field, _state, _num, _version, _info, _type) {\ > +    .name       = (stringify(_field)),                               \ > +    .versi

[Qemu-devel] [PATCH 2/2] vmstate: add VMSTATE_ARRAY_UNSAFE

2009-10-19 Thread Juan Quintela
Use offset given as an array of type given, without doing typechecking. Signed-off-by: Juan Quintela --- hw/hw.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 422cf18..9218905 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -382,6 +382,16 @@ ext