--- a/src/server/config/serverconfig.h Mon Nov 07 17:59:44 2022 +0100 +++ b/src/server/config/serverconfig.h Mon Nov 07 22:30:12 2022 +0100 @@ -197,6 +197,16 @@ */ int serverconfig_check_param_names(ConfigNode *directive, ConfigParam **err); +/* + * Returns the previous node that is a directive or object + */ +ConfigNode* serverconfig_previous_dir_or_obj(ConfigNode *node); + +/* + * Count the direct children that have the specified type + */ +size_t serverconfig_children_count(ConfigNode *node, ConfigNodeType type); + #ifdef __cplusplus } #endif