mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
btstack_tlv: add const to btstack_tlv_t *
This commit is contained in:
parent
853ebd39af
commit
661f177d82
@ -37,15 +37,15 @@
|
|||||||
|
|
||||||
#include "btstack_tlv.h"
|
#include "btstack_tlv.h"
|
||||||
|
|
||||||
static btstack_tlv_t * btstack_tlv_singleton_impl;
|
static const btstack_tlv_t * btstack_tlv_singleton_impl;
|
||||||
static void * btstack_tlv_singleton_context;
|
static void * btstack_tlv_singleton_context;
|
||||||
|
|
||||||
void btstack_tlv_set_instance(btstack_tlv_t * tlv_impl, void * tlv_context){
|
void btstack_tlv_set_instance(const btstack_tlv_t * tlv_impl, void * tlv_context){
|
||||||
btstack_tlv_singleton_impl = tlv_impl;
|
btstack_tlv_singleton_impl = tlv_impl;
|
||||||
btstack_tlv_singleton_context = tlv_context;
|
btstack_tlv_singleton_context = tlv_context;
|
||||||
}
|
}
|
||||||
|
|
||||||
void btstack_tlv_get_instance(btstack_tlv_t ** tlv_impl, void ** tlv_context){
|
void btstack_tlv_get_instance(const btstack_tlv_t ** tlv_impl, void ** tlv_context){
|
||||||
*tlv_impl = btstack_tlv_singleton_impl;
|
*tlv_impl = btstack_tlv_singleton_impl;
|
||||||
*tlv_context = btstack_tlv_singleton_context;
|
*tlv_context = btstack_tlv_singleton_context;
|
||||||
}
|
}
|
||||||
|
@ -82,14 +82,14 @@ typedef struct {
|
|||||||
* @param tlv_impl
|
* @param tlv_impl
|
||||||
* @param tlv_context
|
* @param tlv_context
|
||||||
*/
|
*/
|
||||||
void btstack_tlv_set_instance(btstack_tlv_t * tlv_impl, void * tlv_context);
|
void btstack_tlv_set_instance(const btstack_tlv_t * tlv_impl, void * tlv_context);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get current TLV implementation. Used for bonding information, but can be used by application, too.
|
* @brief Get current TLV implementation. Used for bonding information, but can be used by application, too.
|
||||||
* @param tlv_impl
|
* @param tlv_impl
|
||||||
* @param tlv_context
|
* @param tlv_context
|
||||||
*/
|
*/
|
||||||
void btstack_tlv_get_instance(btstack_tlv_t ** tlv_impl, void ** tlv_context);
|
void btstack_tlv_get_instance(const btstack_tlv_t ** tlv_impl, void ** tlv_context);
|
||||||
|
|
||||||
#if defined __cplusplus
|
#if defined __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user