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.
configreader/configmodel.h

31 lines
932 B

1 year ago
#ifndef __CONFIGMODEL_H
#define __CONFIGMODEL_H
#include <exec/types.h>
#include <dos/dos.h>
typedef APTR LINEPTR;
typedef APTR SECTIONPTR;
typedef APTR VARIABLEPTR;
1 year ago
typedef APTR CONFIGFILEPTR;
CONFIGFILEPTR ConfigFileRead(CONST_STRPTR filename);
VOID ConfigFileFree(CONFIGFILEPTR abstractConfigFile);
VOID ConfigFileSave(CONFIGFILEPTR config);
1 year ago
VOID InitialisePatterns(VOID);
VOID ReleasePatterns(VOID);
LINEPTR LineReadIncludingContinuation(BPTR file, SECTIONPTR currentSection);
1 year ago
VOID LineFree(LINEPTR abstractLine);
CONST_STRPTR LineGetRawText(LINEPTR line);
SECTIONPTR SectionCreateWithName(CONST_STRPTR primary);
SECTIONPTR SectionCreateWithNameAndSubname(CONST_STRPTR primary, CONST_STRPTR secondary);
1 year ago
VOID SectionFree(SECTIONPTR section);
CONST_STRPTR SectionCanonicalName(SECTIONPTR section);
VARIABLEPTR VariableCreate(CONST_STRPTR key, CONST_STRPTR rawValue);
VOID VariableFree(VARIABLEPTR abstractVariable);
1 year ago
#endif