File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,23 @@ const char *qemu_get_vm_name(void);
110
110
111
111
#define QEMU_FILE_TYPE_BIOS 0
112
112
#define QEMU_FILE_TYPE_KEYMAP 1
113
+ /**
114
+ * qemu_find_file:
115
+ * @type: QEMU_FILE_TYPE_BIOS (for BIOS, VGA BIOS)
116
+ * or QEMU_FILE_TYPE_KEYMAP (for keymaps).
117
+ * @name: Relative or absolute file name
118
+ *
119
+ * If @name exists on disk as an absolute path, or a path relative
120
+ * to the current directory, then returns @name unchanged.
121
+ * Otherwise searches for @name file in the data directories, either
122
+ * configured at build time (DATADIR) or registered with the -L command
123
+ * line option.
124
+ *
125
+ * The caller must use g_free() to free the returned data when it is
126
+ * no longer required.
127
+ *
128
+ * Returns: a path that can access @name, or NULL if no matching file exists.
129
+ */
113
130
char * qemu_find_file (int type , const char * name );
114
131
115
132
/* OS specific functions */
You can’t perform that action at this time.
0 commit comments