aboutsummaryrefslogtreecommitdiff
path: root/layers/layers_msg.h
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2015-03-03 15:07:15 -0700
committerJon Ashburn <jon@lunarg.com>2015-03-03 16:14:23 -0700
commitfec2742ee52289b16b9c52d8fcf268bbfeca8b1a (patch)
tree52001da8cf2de82fa52358527dc4c1ac41040e1b /layers/layers_msg.h
parentc7e14a666730a3b5f66134ab18c1409aa418bc0b (diff)
downloadusermoji-fec2742ee52289b16b9c52d8fcf268bbfeca8b1a.tar.xz
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()
Diffstat (limited to 'layers/layers_msg.h')
-rw-r--r--layers/layers_msg.h2
1 files changed, 2 insertions, 0 deletions
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 <stdio.h>
+#include <stdbool.h>
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