1 /*
2  * Copyright (c) 2023 Raspberry Pi (Trading) Ltd.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef _PICO_BTSTACK_RUN_LOOP_ASYNC_CONTEXT_H
8 #define _PICO_BTSTACK_RUN_LOOP_ASYNC_CONTEXT_H
9 
10 #include "btstack_run_loop.h"
11 #include "pico/async_context.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 /**
18  * \brief Initialize and return the singleton BTstack run loop instance that integrates with the async_context API
19  * \ingroup pico_btstack
20  *
21  * \param context the async_context instance that provides the abstraction for handling asynchronous work.
22  * \return the BTstack run loop instance
23  */
24 const btstack_run_loop_t *btstack_run_loop_async_context_get_instance(async_context_t *context);
25 
26 #ifdef __cplusplus
27 }
28 #endif
29 #endif
30