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.
27 lines
1.3 KiB
27 lines
1.3 KiB
#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 |