return cp->parsed;
}
-/** Return the next child that's a #CONF_PAIR
+/** Return the first child that's a #CONF_PAIR
*
* @param[in] cs to return children from.
* @return
- * - The next #CONF_ITEM that's a child of cs and a CONF_PAIR.
+ * - The first #CONF_ITEM that's a child of cs and a CONF_PAIR.
* - NULL if no #CONF_ITEM matches that criteria.
*/
CONF_PAIR *cf_pair_first(CONF_SECTION const *cs)
return cf_item_to_pair(cf_next(cf_section_to_item(cs), cf_pair_to_item(curr), CONF_ITEM_PAIR));
}
-/** Return the next child that's a #CONF_PAIR
+/** Return the previous child that's a #CONF_PAIR
*
* @param[in] cs to return children from.
* @param[in] curr child to start searching from.
* @return
- * - The next #CONF_ITEM that's a child of cs and a CONF_PAIR.
+ * - The previous #CONF_ITEM that's a child of cs and a CONF_PAIR.
* - NULL if no #CONF_ITEM matches that criteria.
*/
CONF_PAIR *cf_pair_prev(CONF_SECTION const *cs, CONF_PAIR const *curr)