From: Oliver Kurth Date: Mon, 20 Aug 2018 19:48:06 +0000 (-0700) Subject: Common header file changes related to Log Facility; not directly applicable X-Git-Tag: stable-11.0.0~481 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ea4da9cf517477853ebf40096a360a464ab914d;p=thirdparty%2Fopen-vm-tools.git Common header file changes related to Log Facility; not directly applicable to open-vm-tools --- diff --git a/open-vm-tools/lib/include/log.h b/open-vm-tools/lib/include/log.h index 8b9a34eca..6e9bc8028 100644 --- a/open-vm-tools/lib/include/log.h +++ b/open-vm-tools/lib/include/log.h @@ -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,