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.
29 lines
1.2 KiB
29 lines
1.2 KiB
#ifndef __CONFIGFILE_H
|
|
#define __CONFIGFILE_H
|
|
#include "types.h"
|
|
CONFIGFILEPTR ConfigFileRead(CONST_STRPTR filename);
|
|
VOID ConfigFileFree(CONFIGFILEPTR configFile);
|
|
|
|
StringArray ConfigFileGetAll(CONFIGFILEPTR abstractConfigFile, CONST_STRPTR compoundKey);
|
|
STRPTR ConfigFileGet(CONFIGFILEPTR abstractConfigFile, CONST_STRPTR compoundKey);
|
|
VOID ConfigFileSet(CONFIGFILEPTR abstractConfigFile, CONST_STRPTR compoundKey, CONST_STRPTR stringValue);
|
|
|
|
// --add
|
|
VOID ConfigFileAdd(CONFIGFILEPTR abstractConfigFile, CONST_STRPTR compoundKey, CONST_STRPTR stringValue);
|
|
|
|
// --replace-all
|
|
VOID ConfigFileReplaceAll(CONFIGFILEPTR abstractConfigFile, CONST_STRPTR compoundKey, CONST_STRPTR stringValue);
|
|
|
|
// --unset
|
|
VOID ConfigFileUnset(CONFIGFILEPTR abstractConfigFile, CONST_STRPTR compoundKey, CONST_STRPTR stringValue);
|
|
|
|
// --unset-all
|
|
VOID ConfigFileUnsetAll(CONFIGFILEPTR abstractConfigFile, CONST_STRPTR compoundKey, CONST_STRPTR stringValue);
|
|
|
|
// --remove-section
|
|
VOID ConfigFileRemoveSection(CONFIGFILEPTR abstractConfigFile, CONST_STRPTR canonicalName);
|
|
|
|
VOID ConfigFileDump(CONFIGFILEPTR configFile);
|
|
StringArray ConfigFileSplitKeyForVar(CONST_STRPTR key);
|
|
StringArray ConfigFileSplitKeyCompletely(CONST_STRPTR key);
|
|
#endif |