diff options
| author | Kai <[email protected]> | 2024-10-24 09:03:04 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-10-24 20:22:48 +0800 |
| commit | 5e34298f998e3e655dc5fa1985d6b1e81d70cc92 (patch) | |
| tree | 73ba4125e7a2dbee8333631f0c150b5957828a49 /components/drivers/include/ipc/completion.h | |
| parent | b3d59050b049f03d954273e8921f941dd806360a (diff) | |
add missing extern "C" in header to support cpp
Diffstat (limited to 'components/drivers/include/ipc/completion.h')
| -rw-r--r-- | components/drivers/include/ipc/completion.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/components/drivers/include/ipc/completion.h b/components/drivers/include/ipc/completion.h index bc075c410c..25581f66f0 100644 --- a/components/drivers/include/ipc/completion.h +++ b/components/drivers/include/ipc/completion.h @@ -6,6 +6,7 @@ * Change Logs: * Date Author Notes * 2024-04-28 Shell Add new wait_flags() & wakeup_by_errno() API + * 2024-10-24 yekai Add C++ support */ #ifndef COMPLETION_H_ #define COMPLETION_H_ @@ -30,6 +31,10 @@ struct rt_completion #define RT_COMPLETION_INIT(comp) {0} +#ifdef __cplusplus +extern "C" { +#endif + void rt_completion_init(struct rt_completion *completion); rt_err_t rt_completion_wait(struct rt_completion *completion, rt_int32_t timeout); @@ -42,4 +47,9 @@ rt_err_t rt_completion_wait_flags_noisr(struct rt_completion *completion, void rt_completion_done(struct rt_completion *completion); rt_err_t rt_completion_wakeup(struct rt_completion *completion); rt_err_t rt_completion_wakeup_by_errno(struct rt_completion *completion, rt_err_t error); + +#ifdef __cplusplus +} +#endif + #endif |
