~ We also define an equality function: is this element equal to this key? */
| 159 | |
| 160 | /*~ We also define an equality function: is this element equal to this key? */ |
| 161 | static bool peer_eq_node_id(const struct peer *peer, |
| 162 | const struct node_id *id) |
| 163 | { |
| 164 | return node_id_eq(&peer->id, id); |
| 165 | } |
| 166 | |
| 167 | /*~ This defines 'struct peer_htable' which contains 'struct peer' pointers. */ |
| 168 | HTABLE_DEFINE_NODUPS_TYPE(struct peer, |
nothing calls this directly
no test coverage detected