19#ifndef _VMWARE_TOOLS_UTILS_H_
20#define _VMWARE_TOOLS_UTILS_H_
37#define VMTOOLS_GUEST_SERVICE "vmsvc"
38#define VMTOOLS_USER_SERVICE "vmusr"
40#if defined(__cplusplus)
41# define VMTOOLS_EXTERN_C extern "C"
43# define VMTOOLS_EXTERN_C
47#if defined(G_PLATFORM_WIN32)
56#if defined(G_PLATFORM_WIN32)
57# if defined(G_INLINE_FUNC)
60# define G_INLINE_FUNC static __inline
64# define ABS(x) (((x) >= 0) ? (x) : -(x))
80#if defined(G_PLATFORM_WIN32)
81# define VMTOOLS_GET_FILENAME_LOCAL(path, err) (gchar *) (path)
83# define VMTOOLS_GET_FILENAME_LOCAL(path, err) g_filename_from_utf8((path), \
96#if defined(G_PLATFORM_WIN32)
97# define VMTOOLS_RELEASE_FILENAME_LOCAL(path) (void) (path)
99# define VMTOOLS_RELEASE_FILENAME_LOCAL(path) g_free(path)
103#define VMTOOLS_WRAP_ARRAY(a) VMTools_WrapArray((a), sizeof *(a), G_N_ELEMENTS(a))
123VMTools_ChangeLogFilePath(
const gchar *delimiter,
124 const gchar *appendString,
130 const gchar *section,
132 const gboolean defValue);
136 const gchar *section,
138 const gint defValue);
142 const gchar *section,
144 const gchar *defValue);
146#if defined(G_PLATFORM_WIN32)
149VMTools_AttachConsole(
void);
152VMTools_NewHandleSource(HANDLE h);
163VMTools_GetLibdir(
void);