Go to the documentation of this file.
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)
51 # include <sys/time.h>
55 # define ABS(x) (((x) >= 0) ? (x) : -(x))
71 #if defined(G_PLATFORM_WIN32)
72 # define VMTOOLS_GET_FILENAME_LOCAL(path, err) (gchar *) (path)
74 # define VMTOOLS_GET_FILENAME_LOCAL(path, err) g_filename_from_utf8((path), \
87 #if defined(G_PLATFORM_WIN32)
88 # define VMTOOLS_RELEASE_FILENAME_LOCAL(path) (void) (path)
90 # define VMTOOLS_RELEASE_FILENAME_LOCAL(path) g_free(path)
94 #define VMTOOLS_WRAP_ARRAY(a) VMTools_WrapArray((a), sizeof *(a), G_N_ELEMENTS(a))
115 const gchar *appendString,
121 const gchar *section,
123 const gboolean defValue);
127 const gchar *section,
129 const gint defValue);
133 const gchar *section,
135 const gchar *defValue);
137 #if defined(G_PLATFORM_WIN32)
140 VMTools_AttachConsole(
void);
143 VMTools_NewHandleSource(HANDLE h);
154 VMTools_GetLibdir(
void);