Lines Matching refs:peer
27 #include "device/include/classic/peer.h"
88 classic_peer_t *peer = hash_map_get(peers_by_address, address);
90 if (!peer) {
94 peer = hash_map_get(peers_by_address, address);
95 if (peer)
98 // Splice in a new peer struct on behalf of the caller.
99 peer = osi_calloc(sizeof(classic_peer_t));
100 peer->address = *address;
101 hash_map_set(peers_by_address, &peer->address, peer);
107 return peer;
110 const bt_bdaddr_t *classic_peer_get_address(classic_peer_t *peer) {
111 assert(peer != NULL);
112 return &peer->address;