Lines Matching refs:peer
21 #include "device/include/classic/peer.h"
89 classic_peer_t *peer = hash_map_get(peers_by_address, address);
91 if (!peer) {
95 peer = hash_map_get(peers_by_address, address);
96 if (peer)
99 // Splice in a new peer struct on behalf of the caller.
100 peer = osi_calloc(sizeof(classic_peer_t));
101 peer->address = *address;
102 hash_map_set(peers_by_address, &peer->address, peer);
108 return peer;
111 const bt_bdaddr_t *classic_peer_get_address(classic_peer_t *peer) {
112 assert(peer != NULL);
113 return &peer->address;