blob: 9cce33bfa12a5da255c76af1c87e006cbf41e803 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* pkg - Configuration
* https://rawnix.org
*
* Copyright (c) 2025 zorz@gmx.com
* SPDX-License-Identifier: BSD-2-Clause
*/
#ifndef CONFIG_H
#define CONFIG_H
#include "pkg.h"
/* Configuration structure */
typedef struct {
/* Port directories */
char **portdirs;
size_t portdir_count;
} config_t;
/* Create and free config */
config_t *config_new(void);
void config_free(config_t *config);
/* Load configuration from file */
int config_load(config_t *config, const char *path);
#endif /* CONFIG_H */
|