fr_dict_attr_t const *da = uctx;
return da == vp->da;
}
+
+/** Get the length of a list of fr_pair_t
+ *
+ * @param[in] list to return the length of
+ *
+ * @return number of entries in the list
+ */
+inline size_t fr_pair_list_len(fr_pair_list_t const *list)
+{
+ return list->head.num_elements;
+}
/** @hidecallergraph */
bool fr_pair_list_empty(fr_pair_list_t const *list);
+size_t fr_pair_list_len(fr_pair_list_t const *list);
+
/* Searching and list modification */
int fr_pair_to_unknown(fr_pair_t *vp);
void *fr_pair_iter_next_by_da(fr_dlist_head_t *list, void *to_eval, void *uctx);