add API_START/API_END to linked list and util

This commit is contained in:
Matthias Ringwald 2016-12-02 16:28:36 +01:00
parent 68dacca219
commit f54850a92d
2 changed files with 8 additions and 0 deletions

View File

@ -45,6 +45,8 @@
#if defined __cplusplus
extern "C" {
#endif
/* API_START */
typedef struct btstack_linked_item {
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);
void btstack_linked_list_iterator_remove(btstack_linked_list_iterator_t * it);
/* API_END */
void test_linked_list(void);
#if defined __cplusplus
}
#endif

View File

@ -65,12 +65,14 @@ extern "C" {
// will be moved to daemon/btstack_device_name_db.h
/**
* @brief The device name type
*/
#define DEVICE_NAME_LEN 248
typedef uint8_t device_name_t[DEVICE_NAME_LEN+1];
/* API_START */
/**
* @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);
/* API_END */
#if defined __cplusplus
}