Rewrote a cleaner version of container / backing systems
This commit is contained in:
21
src/config.h
Normal file
21
src/config.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
/// @brief Structure used to store the program configuration.
|
||||
typedef struct {
|
||||
/// @brief The path of the directory where the containers are stored.
|
||||
char* container_pool;
|
||||
|
||||
/// @brief The path of the directory where the backings are stored.
|
||||
char* backing_pool;
|
||||
} config_t;
|
||||
|
||||
/// @brief Initializes the program configuration.
|
||||
/// @param _config The pointer to where the configuration should be stored.
|
||||
/// @return The result of the operation.
|
||||
result_t init_config(config_t** _config);
|
||||
|
||||
/// @brief Frees the program configuration.
|
||||
/// @param config The configuration to free.
|
||||
void free_config(config_t* config);
|
Reference in New Issue
Block a user