diff options
Diffstat (limited to 'include/qemu/cutils.h')
-rw-r--r-- | include/qemu/cutils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qemu/cutils.h b/include/qemu/cutils.h index 5c6572d..40e10e1 100644 --- a/include/qemu/cutils.h +++ b/include/qemu/cutils.h @@ -193,6 +193,13 @@ int uleb128_decode_small(const uint8_t *in, uint32_t *n); */ int qemu_pstrcmp0(const char **str1, const char **str2); +/* Find program directory, and save it for later usage with + * qemu_get_exec_dir(). + * Try OS specific API first, if not working, parse from argv0. */ +void qemu_init_exec_dir(const char *argv0); + +/* Get the saved exec dir. */ +const char *qemu_get_exec_dir(void); /** * get_relocated_path: |