Tuxánci 2
Successor to Tuxánci
 
Loading...
Searching...
No Matches
config.h
1/*
2 * Tuxánci 2 - Successor to Tuxánci
3 * Copyright (C) 2026 Connor Thomson
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */
18
23
24#ifndef CONFIG_H
25#define CONFIG_H
26
27extern char* configFile;
28
29char* configRead(const char* entry);
30void configWrite(const char* entry, const char* data);
31void configDefaults(void);
32void configInit(void);
33void configDestroy(void);
34
35#endif // CONFIG_H
char * configRead(const char *entry)
Read config file.
Definition config.c:56
void configInit(void)
Init the config path.
Definition config.c:34
void configDefaults(void)
Create default config.
Definition config.c:149
char * configFile
Config file path stored here.
Definition config.c:31
void configDestroy(void)
Clean up config stuff.
Definition config.c:47
void configWrite(const char *entry, const char *data)
Write to config file.
Definition config.c:96