1#ifndef COASTLINE_LAUNCHER_INI_H
2#define COASTLINE_LAUNCHER_INI_H
void FreeIniSectionIterator(LauncherIniSectionIterator *iterator)
Free a section iterator without freeing its INI file.
LauncherIniSectionIterator * FindIniSection(LauncherIniFile *file, const char *sectionName)
Allocate a section iterator and search for an exact section header.
void FreeIniFile(LauncherIniFile *file)
Free the parsed line storage and file record.
char * GetIniSectionHeaderByIndex(int index, LauncherIniFile *file)
Look up the section header at zero-based index.
LauncherIniFile * SelectIniSection(LauncherIniSectionIterator *iterator)
Set the file's current line to the iterator's section header.
char * GetIniSectionValue(LauncherIniSectionIterator *iterator, const char *key)
Search the selected section for key without regard to case.
LauncherIniFile * ReadIniFile(const char *path)
Read an INI file into indexed lines, treating semicolons as comments.
LauncherIniSectionIterator * FindNextIniSection(LauncherIniSectionIterator *iterator)
Advance iterator to the next section, or set its index to -1 at the end.
char * GetIniSectionName(LauncherIniSectionIterator *iterator)
Return the header at iterator, or NULL when its section index is invalid.
char * GetNextIniSectionLine(LauncherIniFile *file)
Advance within the selected section without crossing into the next section.
LauncherIniSectionIterator * FindFirstIniSection(LauncherIniFile *file)
Allocate an iterator positioned at the first section, or at -1 when none exists.
int CountIniSections(LauncherIniFile *file)
Count section headers in file.
The current line and indexed contents of a launcher INI file.
Definition ini.h:18
int currentLine
Definition ini.h:20
LauncherStringList * list
Definition ini.h:19
A cursor over sections in a launcher INI file.
Definition ini.h:24
LauncherIniFile * file
Definition ini.h:25
int sectionIndex
Definition ini.h:26
The indexed lines read from a launcher INI file.
Definition ini.h:11
int * indices
Definition ini.h:13
int count
Definition ini.h:12
char ** lines
Definition ini.h:14