2 * QEMU Enhanced Disk Format
4 * Copyright IBM, Corp. 2010
9 * This work is licensed under the terms of the GNU LGPL, version 2 or later.
10 * See the COPYING.LIB file in the top-level directory.
16 void *gencb_alloc(size_t len, BlockDriverCompletionFunc *cb, void *opaque)
18 GenericCB *gencb = g_malloc(len);
20 gencb->opaque = opaque;
24 void gencb_complete(void *opaque, int ret)
26 GenericCB *gencb = opaque;
27 BlockDriverCompletionFunc *cb = gencb->cb;
28 void *user_opaque = gencb->opaque;