1 /*
2  * Copyright (c) 2022 Nordic Semiconductor
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef SRC_MOCK_FRONTEND_H__
8 #define SRC_MOCK_FRONTEND_H__
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 void mock_log_frontend_reset(void);
15 void mock_log_frontend_dummy_record(int cnt);
16 
17 void mock_log_frontend_generic_record(uint16_t source_id,
18 				      uint16_t domain_id,
19 				      uint8_t level,
20 				      const char *str,
21 				      uint8_t *data,
22 				      uint32_t data_len);
23 
mock_log_frontend_record(uint16_t source_id,uint8_t level,const char * str)24 static inline void mock_log_frontend_record(uint16_t source_id, uint8_t level, const char *str)
25 {
26 	mock_log_frontend_generic_record(source_id, 0, level, str, NULL, 0);
27 }
28 
29 void mock_log_frontend_validate(bool panic);
30 void mock_log_frontend_check_enable(void);
31 void mock_log_frontend_check_disable(void);
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 #endif /* SRC_MOCK_FRONTEND_H__ */
37