]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common header file changes related to Log Facility; not directly applicable
authorOliver Kurth <okurth@vmware.com>
Mon, 20 Aug 2018 19:48:06 +0000 (12:48 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 20 Aug 2018 19:48:06 +0000 (12:48 -0700)
to open-vm-tools

open-vm-tools/lib/include/log.h

index 8b9a34eca6bab9807c277dc684525417868ef22f..6e9bc80284bed29d5fca65761d8e8dd318ea01d1 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1998-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2018 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -180,6 +180,16 @@ Log_Trivia(const char *fmt,
 struct Dictionary;
 struct CfgInterface;
 
+/*
+ * Structure contains all the pointers to where value can be updated
+ * Making VmxStats as a struct has its own advantage, such as updating
+ * 'droppedChars' from the struct instead within LogFile.
+ */
+typedef struct {
+   uint64*     droppedChars;
+} VmxStatsInfo;
+
+
 typedef struct LogOutput LogOutput;
 
 struct CfgInterface *Log_CfgInterface(void);
@@ -220,6 +230,9 @@ Bool Log_ReplaceOutput(LogOutput *fromOutput,
 int32 Log_SetOutputLevel(LogOutput *output,
                          int32 level);
 
+Bool Log_SetVmxStatsData(LogOutput *output,
+                         VmxStatsInfo *vmxStats);
+
 /*
  * The most common Log Facility client usage is via the "InitWith" functions.
  * These functions - not the "Int" versions - handle informing the Log
@@ -351,6 +364,8 @@ void Log_SkipLocking(Bool skipLocking);
 
 void Log_DisableThrottling(void);
 
+void Log_DisableVmxStats(void);
+
 uint32 Log_MaxLineLength(void);
 
 size_t Log_MakeTimeString(Bool millisec,