Consistently place C++ use of extern "C" after all include directives, within the negative branch of _ASMLANGUAGE if used. Background from issue #17997: Declarations that use C linkage should be placed within extern "C" so the language linkage is correct when the header is included by a C++ compiler. Similarly #include directives should be outside the extern "C" to ensure the language-specific default linkage is applied to any declarations provided by the included header. See: https://en.cppreference.com/w/cpp/language/language_linkage Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
40 lines
1.0 KiB
C
40 lines
1.0 KiB
C
/*
|
|
* Copyright (c) 2018 Oticon A/S
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef _TRACE_CTF_H
|
|
#define _TRACE_CTF_H
|
|
|
|
#include <kernel.h>
|
|
#include <kernel_structs.h>
|
|
#include <init.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void sys_trace_thread_switched_out(void);
|
|
void sys_trace_thread_switched_in(void);
|
|
void sys_trace_thread_priority_set(struct k_thread *thread);
|
|
void sys_trace_thread_create(struct k_thread *thread);
|
|
void sys_trace_thread_abort(struct k_thread *thread);
|
|
void sys_trace_thread_suspend(struct k_thread *thread);
|
|
void sys_trace_thread_resume(struct k_thread *thread);
|
|
void sys_trace_thread_ready(struct k_thread *thread);
|
|
void sys_trace_thread_pend(struct k_thread *thread);
|
|
void sys_trace_thread_info(struct k_thread *thread);
|
|
void sys_trace_isr_enter(void);
|
|
void sys_trace_isr_exit(void);
|
|
void sys_trace_isr_exit_to_scheduler(void);
|
|
void sys_trace_idle(void);
|
|
void sys_trace_void(unsigned int id);
|
|
void sys_trace_end_call(unsigned int id);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _TRACE_CTF_H */
|