1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2020 NetDEF, Inc.
9 #include "pathd/pathd.h"
12 #define THREAD_DATA __thread
17 #define DEBUG_IDENT_SIZE 4
18 #define DEBUG_BUFF_SIZE 4096
19 #define TUP(A, B) ((((uint32_t)(A)) << 16) | ((uint32_t)(B)))
20 #define PATHD_FORMAT_INIT() _debug_buff[0] = 0
21 #define PATHD_FORMAT(fmt, ...) \
22 csnprintfrr(_debug_buff, DEBUG_BUFF_SIZE, fmt, ##__VA_ARGS__)
23 #define PATHD_FORMAT_FINI() _debug_buff
25 extern THREAD_DATA
char _debug_buff
[DEBUG_BUFF_SIZE
];
27 const char *srte_protocol_origin_name(enum srte_protocol_origin origin
);
28 const char *srte_candidate_type_name(enum srte_candidate_type type
);
29 const char *objfun_type_name(enum objfun_type type
);
31 #endif // _PATH_DEBUG_H_