22 lines
646 B
C
22 lines
646 B
C
|
#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);
|