qapi: Remove QMP events and commands from user-mode builds
[qemu/ar7.git] / include / qemu / datadir.h
blob21f9097f582d63635aa694476797ef6eb9f31eae
1 #ifndef QEMU_DATADIR_H
2 #define QEMU_DATADIR_H
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
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.
18 * The caller must use g_free() to free the returned data when it is
19 * no longer required.
21 * Returns: a path that can access @name, or NULL if no matching file exists.
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);
28 #endif