Revision f331110f vl.h

b/vl.h
204 204
                        IOHandler *fd_write,
205 205
                        void *opaque);
206 206

  
207
/* Polling handling */
208

  
209
/* return TRUE if no sleep should be done afterwards */
210
typedef int PollingFunc(void *opaque);
211

  
212
int qemu_add_polling_cb(PollingFunc *func, void *opaque);
213
void qemu_del_polling_cb(PollingFunc *func, void *opaque);
214

  
207 215
/* character device */
208 216

  
209 217
#define CHR_EVENT_BREAK 0 /* serial break char */
......
237 245
    int (*chr_ioctl)(struct CharDriverState *s, int cmd, void *arg);
238 246
    IOEventHandler *chr_event;
239 247
    void (*chr_send_event)(struct CharDriverState *chr, int event);
248
    void (*chr_close)(struct CharDriverState *chr);
240 249
    void *opaque;
241 250
} CharDriverState;
242 251

  

Also available in: Unified diff