From fec2742ee52289b16b9c52d8fcf268bbfeca8b1a Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Tue, 3 Mar 2015 15:07:15 -0700 Subject: layers: if no settings file or call overrides make callback override loging Default debugAction in layers is to log based on variable init. Make the overrides work as follows: 1) app calls xglRegisterMsgCallback() 2) settings file 3) Glave (or app) calls to setlayerOption() --- layers/layers_msg.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'layers/layers_msg.h') diff --git a/layers/layers_msg.h b/layers/layers_msg.h index 933012c1..88d9fba7 100644 --- a/layers/layers_msg.h +++ b/layers/layers_msg.h @@ -22,10 +22,12 @@ * DEALINGS IN THE SOFTWARE. */ #include +#include static XGL_LAYER_DBG_FUNCTION_NODE *g_pDbgFunctionHead = NULL; static XGL_LAYER_DBG_REPORT_LEVEL g_reportingLevel = XGL_DBG_LAYER_LEVEL_INFO; static XGL_LAYER_DBG_ACTION g_debugAction = XGL_DBG_LAYER_ACTION_LOG_MSG; +static bool g_actionIsDefault = true; static FILE *g_logFile = NULL; // Utility function to handle reporting -- cgit v1.2.3