/* * 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 */