2021-03-17 10:19:23 +01:00
|
|
|
#ifndef UTIL_TRACE_H
|
|
|
|
|
#define UTIL_TRACE_H
|
|
|
|
|
|
2022-09-24 10:00:21 +02:00
|
|
|
#include <stdint.h>
|
2021-03-17 10:19:23 +01:00
|
|
|
#include <wlr/util/log.h>
|
|
|
|
|
|
|
|
|
|
void wlr_trace(const char *format, ...) _WLR_ATTRIB_PRINTF(1, 2);
|
|
|
|
|
void wlr_vtrace(const char *format, va_list args) _WLR_ATTRIB_PRINTF(1, 0);
|
|
|
|
|
|
2022-09-24 10:00:21 +02:00
|
|
|
struct wlr_trace_ctx {
|
|
|
|
|
uint32_t seq;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void wlr_trace_begin_ctx(struct wlr_trace_ctx *ctx, const char *format, ...) _WLR_ATTRIB_PRINTF(2, 3);
|
|
|
|
|
void wlr_trace_end_ctx(struct wlr_trace_ctx *ctx, const char *format, ...) _WLR_ATTRIB_PRINTF(2, 3);
|
|
|
|
|
|
2021-03-17 10:19:23 +01:00
|
|
|
#endif
|