Revision 5efa9d5a block-raw-win32.c
b/block-raw-win32.c | ||
---|---|---|
24 | 24 |
#include "qemu-common.h" |
25 | 25 |
#include "qemu-timer.h" |
26 | 26 |
#include "block_int.h" |
27 |
#include "module.h" |
|
27 | 28 |
#include <windows.h> |
28 | 29 |
#include <winioctl.h> |
29 | 30 |
|
... | ... | |
227 | 228 |
return 0; |
228 | 229 |
} |
229 | 230 |
|
230 |
BlockDriver bdrv_raw = { |
|
231 |
static BlockDriver bdrv_raw = {
|
|
231 | 232 |
.format_name = "raw", |
232 | 233 |
.instance_size = sizeof(BDRVRawState), |
233 | 234 |
.bdrv_open = raw_open, |
... | ... | |
371 | 372 |
} |
372 | 373 |
#endif |
373 | 374 |
|
374 |
BlockDriver bdrv_host_device = { |
|
375 |
static BlockDriver bdrv_host_device = {
|
|
375 | 376 |
.format_name = "host_device", |
376 | 377 |
.instance_size = sizeof(BDRVRawState), |
377 | 378 |
.bdrv_open = hdev_open, |
... | ... | |
382 | 383 |
.bdrv_write = raw_write, |
383 | 384 |
.bdrv_getlength = raw_getlength, |
384 | 385 |
}; |
386 |
|
|
387 |
static void bdrv_raw_init(void) |
|
388 |
{ |
|
389 |
bdrv_register(&bdrv_raw); |
|
390 |
bdrv_register(&bdrv_host_device); |
|
391 |
} |
|
392 |
|
|
393 |
block_init(bdrv_raw_init); |
Also available in: Unified diff