#pragma once #include #include typedef struct _ini_field { struct list_head node; char *key; char *value; } ini_field_t; typedef struct _ini_section { struct list_head node; struct list_head fields; char *name; } ini_section_t; typedef struct _ini_file { struct list_head sections; } ini_file_t; ini_file_t * read_ini_file(FILE *f); void free_ini_file(ini_file_t *file);