Bluetooth: Rename bt_conn_get/put to bt_conn_ref/unref
We want to make the naming convention ref/unref rather than get/put. So far the only reference counted objects are the buffers and the connections. For the buffers the new generic buffer API will also use ref/unref. Change-Id: I9fe8b8a6a50a8baf06ba231e8f6717a5a47dd292 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
6f410176ef
commit
49885879f2
6 changed files with 38 additions and 38 deletions
|
@ -36,7 +36,7 @@ struct bt_conn;
|
|||
*
|
||||
* @return Connection object with incremented reference count.
|
||||
*/
|
||||
struct bt_conn *bt_conn_get(struct bt_conn *conn);
|
||||
struct bt_conn *bt_conn_ref(struct bt_conn *conn);
|
||||
|
||||
/** @brief Decrement a connection's reference count.
|
||||
*
|
||||
|
@ -44,7 +44,7 @@ struct bt_conn *bt_conn_get(struct bt_conn *conn);
|
|||
*
|
||||
* @param conn Connection object.
|
||||
*/
|
||||
void bt_conn_put(struct bt_conn *conn);
|
||||
void bt_conn_unref(struct bt_conn *conn);
|
||||
|
||||
/** @brief Look up an existing connection by address.
|
||||
*
|
||||
|
@ -54,7 +54,7 @@ void bt_conn_put(struct bt_conn *conn);
|
|||
*
|
||||
* @return Connection object or NULL if not found. The caller gets a
|
||||
* new reference to the connection object which must be released with
|
||||
* bt_conn_put() once done using the object.
|
||||
* bt_conn_unref() once done using the object.
|
||||
*/
|
||||
struct bt_conn *bt_conn_lookup_addr_le(const bt_addr_le_t *peer);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue