You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.5 KiB
38 lines
1.5 KiB
#ifndef __CONFIGMODEL_H
|
|
#define __CONFIGMODEL_H
|
|
#include "types.h"
|
|
|
|
LINEPTR LineNew(CONST_STRPTR buffer);
|
|
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);
|
|
BOOL LineHasVariable(LINEPTR line, CONST_STRPTR varKey);
|
|
BOOL LineIsBlank(LINEPTR line);
|
|
|
|
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 abstractSection, LINEPTR abstractLine, BOOL addBeforeBlanks);
|
|
CONST_STRPTR SectionCanonicalName(SECTIONPTR section);
|
|
VOID SectionDump(SECTIONPTR section);
|
|
CONST_STRPTR SectionSerialize(SECTIONPTR section);
|
|
|
|
VOID SectionCollectLinesForVariable(SECTIONPTR section, CONST_STRPTR varKey, LineArray collecting);
|
|
VOID SectionRemoveLinesForVariable(SECTIONPTR section, CONST_STRPTR varKey);
|
|
|
|
VARIABLEPTR VariableCreate(CONST_STRPTR key, CONST_STRPTR rawValue);
|
|
BOOL VariableHasKey(VARIABLEPTR variable, CONST_STRPTR varKey);
|
|
CONST_STRPTR VariableGetRawValue(VARIABLEPTR variable);
|
|
VOID VariableFree(VARIABLEPTR variable);
|
|
CONST_STRPTR VariableSerialize(VARIABLEPTR variable);
|
|
|
|
#endif |