Revision aa941b94 ecc.h

b/ecc.h
75 75
    s->cp = 0x00;
76 76
    s->count = 0;
77 77
}
78

  
79
/* Save/restore */
80
static inline void ecc_put(QEMUFile *f, struct ecc_state_s *s)
81
{
82
    qemu_put_8s(f, &s->cp);
83
    qemu_put_be16s(f, &s->lp[0]);
84
    qemu_put_be16s(f, &s->lp[1]);
85
    qemu_put_be16s(f, &s->count);
86
}
87

  
88
static inline void ecc_get(QEMUFile *f, struct ecc_state_s *s)
89
{
90
    qemu_get_8s(f, &s->cp);
91
    qemu_get_be16s(f, &s->lp[0]);
92
    qemu_get_be16s(f, &s->lp[1]);
93
    qemu_get_be16s(f, &s->count);
94
}

Also available in: Unified diff