#ifndef __SECTIONSTORE_H #define __SECTIONSTORE_H #include "types.h" SECTIONSTOREPTR SectionStoreNew(VOID); VOID SectionStoreFree(SECTIONSTOREPTR sectionStore); VOID SectionStoreAddSection(SECTIONSTOREPTR sectionStore, SECTIONPTR section); SECTIONPTR SectionStoreCurrentSection(SECTIONSTOREPTR sectionStore); SECTIONPTR SectionStoreGetSection(SECTIONSTOREPTR sectionStore, CONST_STRPTR canonicalName); VOID SectionStoreAddLineToCurrentSection(SECTIONSTOREPTR sectionStore, LINEPTR line); VOID SectionStoreRemoveLines(SECTIONSTOREPTR sectionStore, CONST_STRPTR canonicalSectionName, CONST_STRPTR varKey); SECTIONPTR SectionStoreFindOrCreateSection(SECTIONSTOREPTR sectionStore, CONST_STRPTR compoundKey); LineArray SectionStoreFindLines(SECTIONSTOREPTR sectionStore, CONST_STRPTR canonicalSectionName, CONST_STRPTR varKey); VariableArray SectionStoreGetAll(SECTIONSTOREPTR sectionStore, CONST_STRPTR canonicalSectionName, CONST_STRPTR varKey); VARIABLEPTR SectionStoreGet(SECTIONSTOREPTR sectionStore, CONST_STRPTR canonicalSectionName, CONST_STRPTR varKey); ULONG SectionStoreSectionCount(SECTIONSTOREPTR sectionStore); SECTIONPTR SectionStoreSectionAt(SECTIONSTOREPTR sectionStore, ULONG index); StringArray SectionStoreSubsectionsForSection(SECTIONSTOREPTR sectionStore, CONST_STRPTR primarySection); #endif