]> Git Repo - qemu.git/blob - include/qemu/datadir.h
works with less than base ISA qemu-system-riscv32 -M virt -bios none -kernel output...
[qemu.git] / include / qemu / datadir.h
1 #ifndef QEMU_DATADIR_H
2 #define QEMU_DATADIR_H
3
4 #define QEMU_FILE_TYPE_BIOS   0
5 #define QEMU_FILE_TYPE_KEYMAP 1
6 /**
7  * qemu_find_file:
8  * @type: QEMU_FILE_TYPE_BIOS (for BIOS, VGA BIOS)
9  *        or QEMU_FILE_TYPE_KEYMAP (for keymaps).
10  * @name: Relative or absolute file name
11  *
12  * If @name exists on disk as an absolute path, or a path relative
13  * to the current directory, then returns @name unchanged.
14  * Otherwise searches for @name file in the data directories, either
15  * configured at build time (DATADIR) or registered with the -L command
16  * line option.
17  *
18  * The caller must use g_free() to free the returned data when it is
19  * no longer required.
20  *
21  * Returns: a path that can access @name, or NULL if no matching file exists.
22  */
23 char *qemu_find_file(int type, const char *name);
24 void qemu_add_default_firmwarepath(void);
25 void qemu_add_data_dir(char *path);
26 void qemu_list_data_dirs(void);
27
28 #endif
This page took 0.024895 seconds and 4 git commands to generate.