bdk: ini: add ini free

Additionally, fix a bug where a list could not be initialized if section type is comment or caption.
This commit is contained in:
CTCaer
2022-05-19 15:03:00 +03:00
parent 429074293a
commit bf00c79edb
2 changed files with 46 additions and 3 deletions

View File

@@ -43,8 +43,9 @@ typedef struct _ini_sec_t
u32 color;
} ini_sec_t;
int ini_parse(link_t *dst, char *ini_path, bool is_dir);
int ini_parse(link_t *dst, char *ini_path, bool is_dir);
char *ini_check_payload_section(ini_sec_t *cfg);
void ini_free(link_t *src);
#endif