aboutsummaryrefslogtreecommitdiff
path: root/include/qemu
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-04-20 17:26:21 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-04-21 17:09:09 +0400
commit1fbf2665e6773d87657c2a1654d9bf272a4f1ec0 (patch)
treecca3c06c3112551683a35f96fe1a04ab0a202c51 /include/qemu
parent1b34d08f0b529ccf80e9da9d0928afa97d5d7807 (diff)
downloadqemu-1fbf2665e6773d87657c2a1654d9bf272a4f1ec0.zip
qemu-1fbf2665e6773d87657c2a1654d9bf272a4f1ec0.tar.gz
qemu-1fbf2665e6773d87657c2a1654d9bf272a4f1ec0.tar.bz2
util: replace qemu_get_local_state_pathname()
Simplify the function to only return the directory path. Callers are adjusted to use the GLib function to build paths, g_build_filename(). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20220420132624.2439741-39-marcandre.lureau@redhat.com>
Diffstat (limited to 'include/qemu')
-rw-r--r--include/qemu/osdep.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index 4bf2883..baaa23c 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -556,16 +556,13 @@ void qemu_set_cloexec(int fd);
void fips_set_state(bool requested);
bool fips_get_state(void);
-/* Return a dynamically allocated pathname denoting a file or directory that is
- * appropriate for storing local state.
- *
- * @relative_pathname need not start with a directory separator; one will be
- * added automatically.
+/* Return a dynamically allocated directory path that is appropriate for storing
+ * local state.
*
* The caller is responsible for releasing the value returned with g_free()
* after use.
*/
-char *qemu_get_local_state_pathname(const char *relative_pathname);
+char *qemu_get_local_state_dir(void);
/* Find program directory, and save it for later usage with
* qemu_get_exec_dir().