The def command Indicates that a comment block contains documentation for a #define macro. This is useful if the comment block documents a macro not adjacent to it, e.g. ```c /** * @def MAX(x,y) * @brief Computes the maximum of @a x and @a y. */ #ifdef XXX #define MAX(x,y) ... #endif ``` However, it is not necessary if the comment is adjacent to the definition, e.g. ```c /** * @brief Computes the maximum of @a x and @a y. */ #define MAX(x,y) ... ``` This patch removes all unnecessary def entries in-tree. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2017 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#define BT_MESH_KEY_PRIMARY 0x0000
|
|
|
|
enum bt_mesh_key_evt {
|
|
BT_MESH_KEY_ADDED, /* New key added */
|
|
BT_MESH_KEY_DELETED, /* Existing key deleted */
|
|
BT_MESH_KEY_UPDATED, /* KR phase 1, second key added */
|
|
BT_MESH_KEY_SWAPPED, /* KR phase 2, now sending on second key */
|
|
BT_MESH_KEY_REVOKED, /* KR phase 3, old key removed */
|
|
};
|
|
|
|
/** Appkey callback. Instantiate with @ref BT_MESH_APP_KEY_CB */
|
|
struct bt_mesh_app_key_cb {
|
|
void (*evt_handler)(uint16_t app_idx, uint16_t net_idx,
|
|
enum bt_mesh_key_evt evt);
|
|
};
|
|
|
|
/**
|
|
* @brief Register an AppKey event callback.
|
|
*
|
|
* @param _handler Handler function, see @ref bt_mesh_app_key_cb::evt_handler.
|
|
*/
|
|
#define BT_MESH_APP_KEY_CB_DEFINE(_handler) \
|
|
static const STRUCT_SECTION_ITERABLE(bt_mesh_app_key_cb, \
|
|
_CONCAT(bt_mesh_app_key_cb_, \
|
|
_handler)) = { \
|
|
.evt_handler = (_handler), \
|
|
}
|
|
|
|
struct bt_mesh_net;
|
|
|
|
int bt_mesh_start(void);
|