/*1* Copyright (c) 2018 naehrwert2* Copyright (c) 2018 CTCaer3*4* This program is free software; you can redistribute it and/or modify it5* under the terms and conditions of the GNU General Public License,6* version 2, as published by the Free Software Foundation.7*8* This program is distributed in the hope it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for11* more details.12*13* You should have received a copy of the GNU General Public License14* along with this program. If not, see <http://www.gnu.org/licenses/>.15*/1617#ifndef _INI_H_18#define _INI_H_1920#include <utils/types.h>21#include <utils/list.h>2223#define INI_CHOICE 324#define INI_CAPTION 525#define INI_CHGLINE 626#define INI_NEWLINE 0xFE27#define INI_COMMENT 0xFF2829typedef struct _ini_kv_t30{31char *key;32char *val;33link_t link;34} ini_kv_t;3536typedef struct _ini_sec_t37{38char *name;39link_t kvs;40link_t link;41u32 type;42u32 color;43} ini_sec_t;4445int ini_parse(link_t *dst, const char *ini_path, bool is_dir);46char *ini_check_special_section(ini_sec_t *cfg);47void ini_free(link_t *src);4849#endif50515253