mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
add API_START/API_END to linked list and util
This commit is contained in:
parent
68dacca219
commit
f54850a92d
@ -45,6 +45,8 @@
|
|||||||
#if defined __cplusplus
|
#if defined __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* API_START */
|
||||||
|
|
||||||
typedef struct btstack_linked_item {
|
typedef struct btstack_linked_item {
|
||||||
struct btstack_linked_item *next; // <-- next element in list, or NULL
|
struct btstack_linked_item *next; // <-- next element in list, or NULL
|
||||||
@ -89,8 +91,11 @@ int btstack_linked_list_iterator_has_next(btstack_linked_list_iterat
|
|||||||
btstack_linked_item_t * btstack_linked_list_iterator_next(btstack_linked_list_iterator_t * it);
|
btstack_linked_item_t * btstack_linked_list_iterator_next(btstack_linked_list_iterator_t * it);
|
||||||
void btstack_linked_list_iterator_remove(btstack_linked_list_iterator_t * it);
|
void btstack_linked_list_iterator_remove(btstack_linked_list_iterator_t * it);
|
||||||
|
|
||||||
|
/* API_END */
|
||||||
|
|
||||||
void test_linked_list(void);
|
void test_linked_list(void);
|
||||||
|
|
||||||
|
|
||||||
#if defined __cplusplus
|
#if defined __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -65,12 +65,14 @@ extern "C" {
|
|||||||
|
|
||||||
// will be moved to daemon/btstack_device_name_db.h
|
// will be moved to daemon/btstack_device_name_db.h
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The device name type
|
* @brief The device name type
|
||||||
*/
|
*/
|
||||||
#define DEVICE_NAME_LEN 248
|
#define DEVICE_NAME_LEN 248
|
||||||
typedef uint8_t device_name_t[DEVICE_NAME_LEN+1];
|
typedef uint8_t device_name_t[DEVICE_NAME_LEN+1];
|
||||||
|
|
||||||
|
/* API_START */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Minimum function for uint32_t
|
* @brief Minimum function for uint32_t
|
||||||
@ -223,6 +225,7 @@ int uuid_has_bluetooth_prefix(uint8_t * uuid128);
|
|||||||
*/
|
*/
|
||||||
uint32_t btstack_atoi(const char *str);
|
uint32_t btstack_atoi(const char *str);
|
||||||
|
|
||||||
|
/* API_END */
|
||||||
|
|
||||||
#if defined __cplusplus
|
#if defined __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user