dmg.c (1559ca00bc90ce6917c2798ed81098e4be67f58e) | dmg.c (66f82ceed6781261c09e65fb440ca76842fd0500) |
---|---|
1/* 2 * QEMU Block driver for DMG images 3 * 4 * Copyright (c) 2004 Johannes E. Schindelin 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 274 unchanged lines hidden (view full) --- 283 free(s->uncompressed_chunk); 284 inflateEnd(&s->zstream); 285} 286 287static BlockDriver bdrv_dmg = { 288 .format_name = "dmg", 289 .instance_size = sizeof(BDRVDMGState), 290 .bdrv_probe = dmg_probe, | 1/* 2 * QEMU Block driver for DMG images 3 * 4 * Copyright (c) 2004 Johannes E. Schindelin 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 274 unchanged lines hidden (view full) --- 283 free(s->uncompressed_chunk); 284 inflateEnd(&s->zstream); 285} 286 287static BlockDriver bdrv_dmg = { 288 .format_name = "dmg", 289 .instance_size = sizeof(BDRVDMGState), 290 .bdrv_probe = dmg_probe, |
291 .bdrv_open = dmg_open, | 291 .bdrv_file_open = dmg_open, |
292 .bdrv_read = dmg_read, 293 .bdrv_close = dmg_close, 294}; 295 296static void bdrv_dmg_init(void) 297{ 298 bdrv_register(&bdrv_dmg); 299} 300 301block_init(bdrv_dmg_init); | 292 .bdrv_read = dmg_read, 293 .bdrv_close = dmg_close, 294}; 295 296static void bdrv_dmg_init(void) 297{ 298 bdrv_register(&bdrv_dmg); 299} 300 301block_init(bdrv_dmg_init); |