asrt
Automated System Runtime Testing library
Loading...
Searching...
No Matches
diag.h
1
11
12#ifndef ASRTC_DIAG_H
13#define ASRTC_DIAG_H
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#include "../asrtl/allocator.h"
20#include "../asrtl/chann.h"
21#include "../asrtl/diag_proto.h"
22
27{
28 char const* file;
29 char const* extra;
30 uint32_t line;
31
33};
34
37void asrt_diag_free_record( struct asrt_allocator* alloc, struct asrt_diag_record* rec );
38
42{
43 struct asrt_node node;
44 struct asrt_allocator alloc;
45
46 struct asrt_diag_record* first_rec;
47 struct asrt_diag_record* last_rec;
48};
49
51enum asrt_status asrt_diag_server_init(
52 struct asrt_diag_server* diag,
53 struct asrt_node* prev,
54 struct asrt_allocator alloc );
55
58struct asrt_diag_record* asrt_diag_server_take_record( struct asrt_diag_server* diag );
59
61void asrt_diag_server_deinit( struct asrt_diag_server* diag );
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif // ASRTC_DIAG_H
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee ...
Definition: allocator.h:28
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee ...
Definition: diag.h:27
struct asrt_diag_record * next
Intrusive linked-list link.
Definition: diag.h:32
char const * extra
Optional expression string (owned copy), may be NULL.
Definition: diag.h:29
char const * file
Source filename (owned copy).
Definition: diag.h:28
uint32_t line
Source line number.
Definition: diag.h:30
Diagnostic server module — DIAG channel, controller side.
Definition: diag.h:42
A node in a doubly-linked channel chain.
Definition: chann.h:122