/* Copyright 2019 Google LLC. All Rights Reserved. This file and proprietary source code may only be used and distributed under the Widevine Master License Agreement. */ #ifndef OEMCRYPTO_TA_LOGGING_INTERFACE_H_ #define OEMCRYPTO_TA_LOGGING_INTERFACE_H_ typedef enum LogPriority { LOG_ERROR = 0x1098fa73, LOG_DEBUG = 0x2b898c5a, } LogPriority; extern LogPriority g_cutoff; void Log(const char* file, const char* function, int line, LogPriority level, const char* fmt, ...); #define LOGE(...) Log(__FILE__, __func__, __LINE__, LOG_ERROR, __VA_ARGS__) #define LOGD(...) Log(__FILE__, __func__, __LINE__, LOG_DEBUG, __VA_ARGS__) #endif /* OEMCRYPTO_TA_LOGGING_INTERFACE_H_ */