diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-03-20 16:26:10 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2023-04-24 13:53:44 -0400 |
commit | fdd5e90fdb4de364e12cc2722993c8f14784e7a4 (patch) | |
tree | 269b4669b2c38b3fc5cf27a86af3e5d67baf2d6e /block/dmg.h | |
parent | ac5f7bf8e208cd7893dbb1a9520559e569a4677c (diff) | |
download | qemu-fdd5e90fdb4de364e12cc2722993c8f14784e7a4.zip qemu-fdd5e90fdb4de364e12cc2722993c8f14784e7a4.tar.gz qemu-fdd5e90fdb4de364e12cc2722993c8f14784e7a4.tar.bz2 |
block/dmg: Declare a type definition for DMG uncompress function
Introduce the BdrvDmgUncompressFunc type defintion. To emphasis
dmg_uncompress_bz2 and dmg_uncompress_lzfse are pointer to functions,
declare them using this new typedef.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20230320152610.32052-1-philmd@linaro.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/dmg.h')
-rw-r--r-- | block/dmg.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/block/dmg.h b/block/dmg.h index e488601..dcd6165 100644 --- a/block/dmg.h +++ b/block/dmg.h @@ -51,10 +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 int (*dmg_uncompress_lzfse)(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 |