]>
Commit | Line | Data |
---|---|---|
4e082566 VK |
1 | /* |
2 | * QEMU boot sector testing helpers. | |
3 | * | |
4 | * Copyright (c) 2016 Red Hat Inc. | |
5 | * | |
6 | * Authors: | |
7 | * Michael S. Tsirkin <[email protected]> | |
8b19f2b7 | 8 | * Victor Kaplansky <[email protected]> |
4e082566 VK |
9 | * |
10 | * This work is licensed under the terms of the GNU GPL, version 2 or later. | |
11 | * See the COPYING file in the top-level directory. | |
12 | */ | |
13 | ||
2a6a4076 MA |
14 | #ifndef TEST_BOOT_SECTOR_H |
15 | #define TEST_BOOT_SECTOR_H | |
4e082566 | 16 | |
8b19f2b7 EB |
17 | #include "libqtest.h" |
18 | ||
3e353773 TH |
19 | /* Create boot disk file. fname must be a suitable string for mkstemp() */ |
20 | int boot_sector_init(char *fname); | |
4e082566 VK |
21 | |
22 | /* Loop until signature in memory is OK. */ | |
8b19f2b7 | 23 | void boot_sector_test(QTestState *qts); |
4e082566 VK |
24 | |
25 | /* unlink boot disk file. */ | |
26 | void boot_sector_cleanup(const char *fname); | |
27 | ||
2a6a4076 | 28 | #endif /* TEST_BOOT_SECTOR_H */ |