glib: Add compat wrapper for g_poll on old glib
[qemu/pbrook.git] / libcacard / eventt.h
blob0dc7bd468ce69d0a164dba9db81cbbb9f413e1b0
1 /*
2 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
3 * See the COPYING.LIB file in the top-level directory.
4 */
6 #ifndef EVENTT_H
7 #define EVENTT_H 1
8 #include "vreadert.h"
9 #include "vcardt.h"
11 typedef struct VEventStruct VEvent;
13 typedef enum {
14 VEVENT_READER_INSERT,
15 VEVENT_READER_REMOVE,
16 VEVENT_CARD_INSERT,
17 VEVENT_CARD_REMOVE,
18 VEVENT_LAST,
19 } VEventType;
21 struct VEventStruct {
22 VEvent *next;
23 VEventType type;
24 VReader *reader;
25 VCard *card;
27 #endif