osdep: add qemu_get_local_state_pathname()
commite2ea3515a9d2d747f91dadf361afcbeb57a71500
authorLaszlo Ersek <lersek@redhat.com>
Sat, 18 May 2013 04:31:48 +0000 (18 06:31 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 30 May 2013 16:37:37 +0000 (30 11:37 -0500)
tree8ee87328e85454ee845c2896708f49c893bd71bc
parent87d23f78aa79b72da022afda358bbc8a8509ca70
osdep: add qemu_get_local_state_pathname()

This function returns ${prefix}/var/RELATIVE_PATHNAME on POSIX-y systems,
and <CSIDL_COMMON_APPDATA>/RELATIVE_PATHNAME on Win32.

http://msdn.microsoft.com/en-us/library/bb762494.aspx

  [...] This folder is used for application data that is not user
  specific. For example, an application can store a spell-check
  dictionary, a database of clip art, or a log file in the
  CSIDL_COMMON_APPDATA folder. [...]

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
include/qemu/osdep.h
util/oslib-posix.c
util/oslib-win32.c