Revision cdae5cfb savevm.c

b/savevm.c
675 675
    return v;
676 676
}
677 677

  
678
/* bool */
679

  
680
static int get_bool(QEMUFile *f, void *pv, size_t size)
681
{
682
    bool *v = pv;
683
    *v = qemu_get_byte(f);
684
    return 0;
685
}
686

  
687
static void put_bool(QEMUFile *f, void *pv, size_t size)
688
{
689
    bool *v = pv;
690
    qemu_put_byte(f, *v);
691
}
692

  
693
const VMStateInfo vmstate_info_bool = {
694
    .name = "bool",
695
    .get  = get_bool,
696
    .put  = put_bool,
697
};
698

  
678 699
/* 8 bit int */
679 700

  
680 701
static int get_int8(QEMUFile *f, void *pv, size_t size)

Also available in: Unified diff