aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2013-05-31 11:33:02 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2013-05-31 11:33:02 -0500
commit0a1f348c429a6af0ba6448e5b3ae08dbc8e28696 (patch)
treef9d29b9f471c378a0ac0bfd9a442342535ea1a08 /include
parent6c8df7a33ade90c8c96b01655520c7e9b69b46c0 (diff)
parentf2e3978b5a72870b061d29948075dccc0a72db8e (diff)
downloadqemu-0a1f348c429a6af0ba6448e5b3ae08dbc8e28696.zip
qemu-0a1f348c429a6af0ba6448e5b3ae08dbc8e28696.tar.gz
qemu-0a1f348c429a6af0ba6448e5b3ae08dbc8e28696.tar.bz2
Merge remote-tracking branch 'mdroth/qga-pull-2013-05-30' into staging
# By Laszlo Ersek # Via Michael Roth * mdroth/qga-pull-2013-05-30: Makefile: create ".../var/run" when installing the POSIX guest agent qga: save state directory in ga_install_service() qga: remove undefined behavior in ga_install_service() qga: create state directory on win32 configure: don't save any fixed local_statedir for win32 qga: determine default state dir and pidfile dynamically osdep: add qemu_get_local_state_pathname() Message-id: 1369940341-9043-1-git-send-email-mdroth@linux.vnet.ibm.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/osdep.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index 57d7b1f..26136f1 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -204,4 +204,15 @@ const char *qemu_get_version(void);
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.
+ *
+ * The caller is responsible for releasing the value returned with g_free()
+ * after use.
+ */
+char *qemu_get_local_state_pathname(const char *relative_pathname);
+
#endif