bluetooth: ots: Fix bt_ots_init paramter struct naming
Patch to rename struct bt_ots_init to struct bt_ots_init_param to avoid duplicating the name bt_ots_init. Fix for issue#45968 Signed-off-by: Jai Arora <infolinesoni@gmail.com>
This commit is contained in:
parent
9445ca017c
commit
cf0ff30b53
4 changed files with 5 additions and 5 deletions
|
@ -749,7 +749,7 @@ struct bt_ots_cb {
|
|||
};
|
||||
|
||||
/** @brief Descriptor for OTS initialization. */
|
||||
struct bt_ots_init {
|
||||
struct bt_ots_init_param {
|
||||
/* OTS features */
|
||||
struct bt_ots_feat features;
|
||||
|
||||
|
@ -803,7 +803,7 @@ void *bt_ots_svc_decl_get(struct bt_ots *ots);
|
|||
*
|
||||
* @return 0 in case of success or negative value in case of error.
|
||||
*/
|
||||
int bt_ots_init(struct bt_ots *ots, struct bt_ots_init *ots_init);
|
||||
int bt_ots_init(struct bt_ots *ots, struct bt_ots_init_param *ots_init);
|
||||
|
||||
/** @brief Get a free instance of OTS from the pool.
|
||||
*
|
||||
|
|
|
@ -223,7 +223,7 @@ static int ots_init(void)
|
|||
int err;
|
||||
struct bt_ots *ots;
|
||||
struct object_creation_data obj_data;
|
||||
struct bt_ots_init ots_init;
|
||||
struct bt_ots_init_param ots_init;
|
||||
struct bt_ots_obj_add_param param;
|
||||
const char * const first_object_name = "first_object.txt";
|
||||
const char * const second_object_name = "second_object.gif";
|
||||
|
|
|
@ -1348,7 +1348,7 @@ int bt_mcs_init(struct bt_ots_cb *ots_cbs)
|
|||
mcs = (struct bt_gatt_service)BT_GATT_SERVICE(svc_attrs);
|
||||
|
||||
#ifdef CONFIG_BT_OTS
|
||||
struct bt_ots_init ots_init;
|
||||
struct bt_ots_init_param ots_init;
|
||||
|
||||
ots = bt_ots_free_instance_get();
|
||||
if (!ots) {
|
||||
|
|
|
@ -443,7 +443,7 @@ void *bt_ots_svc_decl_get(struct bt_ots *ots)
|
|||
#endif
|
||||
|
||||
int bt_ots_init(struct bt_ots *ots,
|
||||
struct bt_ots_init *ots_init)
|
||||
struct bt_ots_init_param *ots_init)
|
||||
{
|
||||
int err;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue