Skip to content

Commit

Permalink
stubs: Add vmstate_register() stub
Browse files Browse the repository at this point in the history
So far we only had vmstate_register_with_alias_id().

Signed-off-by: Andreas Färber <afaerber@suse.de>
  • Loading branch information
afaerber committed Feb 18, 2013
1 parent b615f04 commit dcec731
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions stubs/vmstate.c
Expand Up @@ -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)
Expand Down

0 comments on commit dcec731

Please sign in to comment.