]> 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:36:59 +0000 (09:36 -0800)
committerJohn Wolfe <jwolfe@vmware.com>
Mon, 22 Feb 2021 17:36:59 +0000 (09:36 -0800)
open-vm-tools/lib/include/log.h

index 3a460a87e108e2bf1cf8e0e0b1384fca6c9c7ee3..9deb125d643333690d1c2d532184ed44ea00f358 100644 (file)
@@ -317,6 +317,22 @@ Log_NewCustomOutput(const char *instanceName,
                     LogCustomMsgFunc *msgFunc,
                     int minLogLevel);
 
+typedef struct {
+   uint8 level;
+   Bool  additionalLine;
+   char  timeStamp[64];
+   char  threadName[32];
+   char  opID[132];  // Will be empty string on hosted products
+} LogLineMetadata;
+
+typedef void (LogCustomMsgFuncEx)(const LogLineMetadata * const metadata,
+                                  const char *msg);
+
+LogOutput *
+Log_NewCustomOutputEx(const char *instanceName,
+                      LogCustomMsgFuncEx *msgFunc,
+                      int minLogLevel);
+
 #if defined(VMX86_SERVER)
 LogOutput *
 Log_NewEsxKernelLogOutput(const char *appPrefix,