X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=block_int.h;h=e3038160e6fe82228516ce3cdf48448898259759;hb=7ef4da1c3a753888e2678388150f1b846b025168;hp=36a88ed0a11454040a07eb5abf09e612207463c1;hpb=ea2384d36e1e5f6dfd44b748d290762181c38350;p=qemu diff --git a/block_int.h b/block_int.h index 36a88ed..e303816 100644 --- a/block_int.h +++ b/block_int.h @@ -33,12 +33,13 @@ struct BlockDriver { uint8_t *buf, int nb_sectors); int (*bdrv_write)(BlockDriverState *bs, int64_t sector_num, const uint8_t *buf, int nb_sectors); - int (*bdrv_close)(BlockDriverState *bs); + void (*bdrv_close)(BlockDriverState *bs); int (*bdrv_create)(const char *filename, int64_t total_sectors, const char *backing_file, int flags); int (*bdrv_is_allocated)(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum); int (*bdrv_set_key)(BlockDriverState *bs, const char *key); + int (*bdrv_make_empty)(BlockDriverState *bs); struct BlockDriver *next; }; @@ -68,10 +69,12 @@ struct BlockDriverState { /* NOTE: the following infos are only hints for real hardware drivers. They are not used by the block driver */ - int cyls, heads, secs; + int cyls, heads, secs, translation; int type; char device_name[32]; BlockDriverState *next; }; +void get_tmp_filename(char *filename, int size); + #endif /* BLOCK_INT_H */