aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/ccid.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2018-01-25 14:14:32 -0300
committerGerd Hoffmann <kraxel@redhat.com>2018-01-26 07:59:33 +0100
commit80ae865468bde918363a123aa26c6fc4385023ac (patch)
tree2b00678ecb67754b6c06e1c08da36bf790688826 /hw/usb/ccid.h
parentc7516699fc416ed836639dff12115f9d806bfc82 (diff)
downloadqemu-80ae865468bde918363a123aa26c6fc4385023ac.zip
qemu-80ae865468bde918363a123aa26c6fc4385023ac.tar.gz
qemu-80ae865468bde918363a123aa26c6fc4385023ac.tar.bz2
usb-ccid: convert CCIDCardClass::exitfn() -> unrealize()
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20180125171432.13554-4-f4bug@amsat.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/ccid.h')
-rw-r--r--hw/usb/ccid.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/usb/ccid.h b/hw/usb/ccid.h
index 6c6c101..3920733 100644
--- a/hw/usb/ccid.h
+++ b/hw/usb/ccid.h
@@ -28,13 +28,15 @@ typedef struct CCIDCardInfo CCIDCardInfo;
* into the smartcard device (hw/ccid-card-*.c)
*/
typedef struct CCIDCardClass {
+ /*< private >*/
DeviceClass parent_class;
+ /*< public >*/
const uint8_t *(*get_atr)(CCIDCardState *card, uint32_t *len);
void (*apdu_from_guest)(CCIDCardState *card,
const uint8_t *apdu,
uint32_t len);
- void (*exitfn)(CCIDCardState *card);
void (*realize)(CCIDCardState *card, Error **errp);
+ void (*unrealize)(CCIDCardState *card, Error **errp);
} CCIDCardClass;
/*