v2.0.0
btstack_run_loop_async_context.h
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
14extern "C" {
15#endif
16
24const btstack_run_loop_t *btstack_run_loop_async_context_get_instance(async_context_t *context);
25
26#ifdef __cplusplus
27}
28#endif
29#endif
async_context.h
btstack_run_loop_async_context_get_instance
const btstack_run_loop_t * btstack_run_loop_async_context_get_instance(async_context_t *context)
Initialize and return the singleton BTstack run loop instance that integrates with the async_context ...
Definition: btstack_run_loop_async_context.c:125
async_context
Base structure type of all async_contexts. For details about its use, see pico_async_context.
Definition: async_context.h:179