2025-05-08 10:48:23 +01:00
|
|
|
#ifndef _DIAG_CTX_H_
|
|
|
|
|
#define _DIAG_CTX_H_
|
|
|
|
|
|
2026-03-16 14:07:33 +00:00
|
|
|
#include <fx/core/queue.h>
|
2025-05-08 10:48:23 +01:00
|
|
|
#include <ivy/diag.h>
|
|
|
|
|
|
|
|
|
|
struct ivy_line_source;
|
|
|
|
|
|
|
|
|
|
struct ivy_diag_ctx {
|
|
|
|
|
struct ivy_line_source *ctx_line_source;
|
|
|
|
|
|
|
|
|
|
const struct ivy_diag_class *ctx_classes;
|
|
|
|
|
size_t ctx_nr_classes;
|
|
|
|
|
|
|
|
|
|
const struct ivy_diag_msg *ctx_msg;
|
|
|
|
|
size_t ctx_nr_msg;
|
|
|
|
|
|
2026-03-16 14:07:33 +00:00
|
|
|
fx_queue ctx_diags;
|
2025-05-08 10:48:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern const struct ivy_diag_class *diag_ctx_get_class(
|
|
|
|
|
struct ivy_diag_ctx *ctx, unsigned long class_id);
|
|
|
|
|
extern const struct ivy_diag_msg *diag_ctx_get_msg(
|
|
|
|
|
struct ivy_diag_ctx *ctx, unsigned long msg_id);
|
|
|
|
|
|
|
|
|
|
#endif
|