From ef48fc8233872545243e9a41df498fceedece978 Mon Sep 17 00:00:00 2001 From: Abdiel Janulgue Date: Thu, 13 Apr 2017 16:18:37 +0300 Subject: igt/igt_core: Provide an option to check for the log buffer contents Signed-off-by: Abdiel Janulgue Reviewed-by: Arkadiusz Hiler --- lib/igt_core.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/igt_core.h') diff --git a/lib/igt_core.h b/lib/igt_core.h index 1855c5e3..a2ed9720 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -818,6 +818,9 @@ void igt_vlog(const char *domain, enum igt_log_level level, const char *format, */ #define igt_critical(f...) igt_log(IGT_LOG_DOMAIN, IGT_LOG_CRITICAL, f) +typedef bool (*igt_buffer_log_handler_t)(const char *line, void *data); +void igt_log_buffer_inspect(igt_buffer_log_handler_t check, void *data); + extern enum igt_log_level igt_log_level; /** -- cgit v1.2.3