[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH qom-cpu v2 1/8] stubs: Add vmstate_register() st
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [PATCH qom-cpu v2 1/8] stubs: Add vmstate_register() stub |
Date: |
Mon, 18 Feb 2013 16:49:11 -0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Feb 18, 2013 at 08:42:26PM +0100, Andreas Färber wrote:
> So far we only had vmstate_register_with_alias_id().
This is an exact duplicate of the real vmstate_register()
implementation. What about simply making the real vmstate_register()
function a static inline inside vmstate.h?
>
> Signed-off-by: Andreas Färber <address@hidden>
> ---
> stubs/vmstate.c | 7 +++++++
> 1 Datei geändert, 7 Zeilen hinzugefügt(+)
>
> diff --git a/stubs/vmstate.c b/stubs/vmstate.c
> index 3682af5..f64e9a3 100644
> --- a/stubs/vmstate.c
> +++ b/stubs/vmstate.c
> @@ -10,6 +10,13 @@ int vmstate_register_with_alias_id(DeviceState *dev,
> return 0;
> }
>
> +int vmstate_register(DeviceState *dev, int instance_id,
> + const VMStateDescription *vmsd, void *base)
> +{
> + return vmstate_register_with_alias_id(dev, instance_id, vmsd, base,
> + -1, 0);
> +}
> +
> void vmstate_unregister(DeviceState *dev,
> const VMStateDescription *vmsd,
> void *opaque)
> --
> 1.7.10.4
>
--
Eduardo