diff options
author | Christoph Hellwig <hch@lst.de> | 2009-06-15 14:04:22 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@brick.lst.de> | 2009-06-15 14:04:22 +0200 |
commit | 508c7cb3fa666f0c4723946869f318ec7751ecbd (patch) | |
tree | aba6e675fcd8b94b7019e3eaa56e4cc06502b9c5 /block_int.h | |
parent | f3a5d3f8a1a992376e3dd128ceee917cd1281da7 (diff) | |
download | qemu-508c7cb3fa666f0c4723946869f318ec7751ecbd.zip qemu-508c7cb3fa666f0c4723946869f318ec7751ecbd.tar.gz qemu-508c7cb3fa666f0c4723946869f318ec7751ecbd.tar.bz2 |
block: add bdrv_probe_device method
Add a bdrv_probe_device method to all BlockDriver instances implementing
host devices to move matching of host device types into the actual drivers.
For now we keep exacly the old matching behaviour based on the devices names,
although we really should have better detetion methods based on device
information in the future.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'block_int.h')
-rw-r--r-- | block_int.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block_int.h b/block_int.h index 8d0da7c..830b7e9 100644 --- a/block_int.h +++ b/block_int.h @@ -48,6 +48,7 @@ struct BlockDriver { const char *format_name; int instance_size; int (*bdrv_probe)(const uint8_t *buf, int buf_size, const char *filename); + int (*bdrv_probe_device)(const char *filename); int (*bdrv_open)(BlockDriverState *bs, const char *filename, int flags); int (*bdrv_read)(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors); @@ -177,4 +178,8 @@ void *qemu_blockalign(BlockDriverState *bs, size_t size); extern BlockDriverState *bdrv_first; +#ifdef _WIN32 +int is_windows_drive(const char *filename); +#endif + #endif /* BLOCK_INT_H */ |