pool_unref(&ctx->parser_pool);
}
+unsigned int
+setting_parser_info_get_define_count(const struct setting_parser_info *info)
+{
+ unsigned int count = 0;
+ while (info->defines[count].key != NULL)
+ count++;
+ return count;
+}
+
void *settings_parser_get_set(const struct setting_parser_context *ctx)
{
return ctx->set_struct;
void settings_parser_ref(struct setting_parser_context *ctx);
void settings_parser_unref(struct setting_parser_context **ctx);
+/* Returns number of defines in info->defines */
+unsigned int
+setting_parser_info_get_define_count(const struct setting_parser_info *info);
+
/* Returns the current settings. */
void *settings_parser_get_set(const struct setting_parser_context *ctx);
/* Return pointer to changes in the root setting structure. */