|
|
|
#ifndef __CONFIGMODEL_H
|
|
|
|
#define __CONFIGMODEL_H
|
|
|
|
#include "types.h"
|
|
|
|
#include <dos/dos.h>
|
|
|
|
|
|
|
|
CONFIGFILEPTR ConfigFileRead(CONST_STRPTR filename);
|
|
|
|
VOID ConfigFileFree(CONFIGFILEPTR configFile);
|
|
|
|
VOID ConfigFileDump(CONFIGFILEPTR configFile);
|
|
|
|
|
|
|
|
|
|
|
|
LINEPTR LineNew(CONST_STRPTR buffer, ULONG size);
|
|
|
|
VOID LineFree(LINEPTR abstractLine);
|
|
|
|
|
|
|
|
CONST_STRPTR LineGetRawText(LINEPTR line);
|
|
|
|
|
|
|
|
VOID LineSetSection(LINEPTR line, SECTIONPTR section);
|
|
|
|
SECTIONPTR LineGetSection(LINEPTR line);
|
|
|
|
VARIABLEPTR LineGetVariable(LINEPTR line);
|
|
|
|
VOID LineSetInitialVariable(LINEPTR line, VARIABLEPTR variable);
|
|
|
|
VOID LineSetVariable(LINEPTR line, VARIABLEPTR variable);
|
|
|
|
|
|
|
|
VOID LineDump(LINEPTR abstractLine);
|
|
|
|
|
|
|
|
SECTIONPTR SectionCreateWithName(CONST_STRPTR primary);
|
|
|
|
SECTIONPTR SectionCreateWithNameAndSubname(CONST_STRPTR primary, CONST_STRPTR secondary);
|
|
|
|
VOID SectionFree(SECTIONPTR section);
|
|
|
|
VOID SectionAddSectionLine(SECTIONPTR section, LINEPTR line);
|
|
|
|
VOID SectionAddLine(SECTIONPTR section, LINEPTR line);
|
|
|
|
CONST_STRPTR SectionCanonicalName(SECTIONPTR section);
|
|
|
|
VOID SectionDump(SECTIONPTR section);
|
|
|
|
|
|
|
|
VARIABLEPTR VariableCreate(CONST_STRPTR key, CONST_STRPTR rawValue);
|
|
|
|
VOID VariableFree(VARIABLEPTR variable);
|
|
|
|
|
|
|
|
#endif
|