mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
qdev: Move bus properties to a separate global
Simple code movement in order to simplify future refactoring. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
2f262e06f0
commit
3cb75a7cba
9 changed files with 66 additions and 47 deletions
|
@ -1055,13 +1055,15 @@ static Answer *ccid_peek_next_answer(USBCCIDState *s)
|
|||
: &s->pending_answers[s->pending_answers_start % PENDING_ANSWERS_NUM];
|
||||
}
|
||||
|
||||
static Property ccid_props[] = {
|
||||
DEFINE_PROP_UINT32("slot", struct CCIDCardState, slot, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static struct BusInfo ccid_bus_info = {
|
||||
.name = "ccid-bus",
|
||||
.size = sizeof(CCIDBus),
|
||||
.props = (Property[]) {
|
||||
DEFINE_PROP_UINT32("slot", struct CCIDCardState, slot, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
}
|
||||
.props = ccid_props,
|
||||
};
|
||||
|
||||
void ccid_card_send_apdu_to_guest(CCIDCardState *card,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue