]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/dmg.h
block: Mark bdrv_filter_bs() and callers GRAPH_RDLOCK
[mirror_qemu.git] / block / dmg.h
index b592d6fa8b75e7e471b35f4051d77484e3d7126a..dcd6165e6397f95ed661aacd5b9fe2ed7e8e472e 100644 (file)
@@ -26,8 +26,6 @@
 #ifndef BLOCK_DMG_H
 #define BLOCK_DMG_H
 
-#include "qemu/osdep.h"
-#include "qemu-common.h"
 #include "block/block_int.h"
 #include <zlib.h>
 
@@ -53,7 +51,10 @@ typedef struct BDRVDMGState {
     z_stream zstream;
 } BDRVDMGState;
 
-extern int (*dmg_uncompress_bz2)(char *next_in, unsigned int avail_in,
-                                 char *next_out, unsigned int avail_out);
+typedef int BdrvDmgUncompressFunc(char *next_in, unsigned int avail_in,
+                                  char *next_out, unsigned int avail_out);
+
+extern BdrvDmgUncompressFunc *dmg_uncompress_bz2;
+extern BdrvDmgUncompressFunc *dmg_uncompress_lzfse;
 
 #endif