]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add impl of APIs to get user directories on Win32
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 24 May 2012 13:37:54 +0000 (14:37 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 28 May 2012 09:55:09 +0000 (10:55 +0100)
commit076f200689b9c06534cecb84790fc6291e700e0d
treed3c1b92ec1b5322192a7e142d2a7f2b6f1f1d465
parent517368a3772f4196121881b1c7ec37acd225fece
Add impl of APIs to get user directories on Win32

Add an impl of +virGetUserRuntimeDirectory, virGetUserCacheDirectory
virGetUserConfigDirectory and virGetUserDirectory for Win32 platform.
Also create stubs for non-Win32 platforms which lack getpwuid_r()

In adding these two helpers were added virFileIsAbsPath and
virFileSkipRoot, along with some macros VIR_FILE_DIR_SEPARATOR,
VIR_FILE_DIR_SEPARATOR_S, VIR_FILE_IS_DIR_SEPARATOR,
VIR_FILE_PATH_SEPARATOR, VIR_FILE_PATH_SEPARATOR_S

All this code was adapted from GLib2 under terms of LGPLv2+ license.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/libvirt_private.syms
src/util/util.c
src/util/util.h