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> 56 #if defined(G_PLATFORM_WIN32) 57 # if defined(G_INLINE_FUNC) 60 # define G_INLINE_FUNC static __inline 76 #if defined(G_PLATFORM_WIN32) 77 # define VMTOOLS_GET_FILENAME_LOCAL(path, err) (gchar *) (path) 79 # define VMTOOLS_GET_FILENAME_LOCAL(path, err) g_filename_from_utf8((path), \ 92 #if defined(G_PLATFORM_WIN32) 93 # define VMTOOLS_RELEASE_FILENAME_LOCAL(path) (void) (path) 95 # define VMTOOLS_RELEASE_FILENAME_LOCAL(path) g_free(path) 99 #define VMTOOLS_WRAP_ARRAY(a) VMTools_WrapArray((a), sizeof *(a), G_N_ELEMENTS(a)) 119 VMTools_ChangeLogFilePath(
const gchar *delimiter,
120 const gchar *appendString,
124 #if defined(G_PLATFORM_WIN32) 127 VMTools_AttachConsole(
void);
130 VMTools_NewHandleSource(HANDLE h);
141 VMTools_GetLibdir(
void);