]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common header file change not applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Mon, 22 Feb 2021 17:37:00 +0000 (09:37 -0800)
committerJohn Wolfe <jwolfe@vmware.com>
Mon, 22 Feb 2021 17:37:00 +0000 (09:37 -0800)
open-vm-tools/lib/include/log.h

index 9deb125d643333690d1c2d532184ed44ea00f358..9f3283712fafe4908ff985a234f685c5aca79fe3 100644 (file)
 #include "productState.h"
 #include <stdarg.h>
 
+#if defined(_WIN32)
+#include <windows.h>
+#endif
+
 #if defined(__cplusplus)
 extern "C" {
 #endif
@@ -522,9 +526,21 @@ typedef Bool (LogOwnerFunc)(void *userData,
                             const char *fileName);
 
 Bool
-Log_BoundNumFiles(struct LogOutput *output,
-                LogOwnerFunc *func,
-                void *userData);
+Log_BoundNumFiles(const LogOutput *output,
+                  LogOwnerFunc *func,
+                  void *userData);
+
+typedef struct {
+#if defined(_WIN32)
+   HANDLE handle;
+#else
+   int fd;
+#endif
+} LogFileObject;
+
+Bool
+Log_GetFileObject(const LogOutput *output,
+                  LogFileObject *result);
 
 #if defined(VMX86_SERVER)
 #define LOG_KEEPOLD 6  // Old log files to keep around; ESX value