~ We also define an equality function: is this element equal to this key? */
| 173 | |
| 174 | /*~ We also define an equality function: is this element equal to this key? */ |
| 175 | static bool peer_eq_node_id(const struct peer *peer, |
| 176 | const struct node_id *id) |
| 177 | { |
| 178 | return node_id_eq(&peer->id, id); |
| 179 | } |
| 180 | |
| 181 | /*~ This defines 'struct peer_htable' which contains 'struct peer' pointers. */ |
| 182 | HTABLE_DEFINE_NODUPS_TYPE(struct peer, |
nothing calls this directly
no test coverage detected