]> git.proxmox.com Git - qemu.git/blobdiff - qemu-common.h
Introduce contexts for asynchronous callbacks
[qemu.git] / qemu-common.h
index 3e73bf952389fe35ff22dc626fb91d5a4e65389c..b779cfe69d059a3b90159efc77144c0092cf2056 100644 (file)
@@ -93,6 +93,10 @@ typedef struct QEMUBH QEMUBH;
 
 typedef void QEMUBHFunc(void *opaque);
 
+void async_context_push(void);
+void async_context_pop(void);
+int get_async_context_id(void);
+
 QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque);
 void qemu_bh_schedule(QEMUBH *bh);
 /* Bottom halfs that are scheduled from a bottom half handler are instantly