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)) 110 GKeyFile *dstConfig);
123 const gchar *appendString,
129 const gchar *section,
131 const gboolean defValue);
135 const gchar *section,
137 const gint defValue);
141 const gchar *section,
143 const gchar *defValue);
145 #if defined(G_PLATFORM_WIN32) 148 VMTools_AttachConsole(
void);
151 VMTools_NewHandleSource(HANDLE h);
162 VMTools_GetLibdir(
void);