2024-02-18 18:09:53 +01:00
|
|
|
#include "utils.h"
|
2024-02-28 17:50:27 +01:00
|
|
|
#include "disk.h"
|
|
|
|
#include "config.h"
|
2024-02-19 18:18:18 +01:00
|
|
|
#include "container.h"
|
2024-02-29 10:58:47 +01:00
|
|
|
#include "image.h"
|
2024-02-15 00:17:20 +01:00
|
|
|
|
2024-02-28 17:50:27 +01:00
|
|
|
#include <stdio.h>
|
2024-02-29 09:50:28 +01:00
|
|
|
#include <dirent.h>
|
2024-02-28 17:50:27 +01:00
|
|
|
|
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
config_t* config;
|
|
|
|
result_t result = init_config(&config);
|
2024-02-29 09:50:28 +01:00
|
|
|
if (result != success())
|
|
|
|
return -1;
|
2024-02-18 15:23:01 +01:00
|
|
|
|
2024-02-29 10:58:47 +01:00
|
|
|
add_root_container(config, "test", 1024ULL);
|
|
|
|
|
|
|
|
char* image;
|
|
|
|
add_image(&image, config, "test");
|
|
|
|
|
|
|
|
printf("Image: %s\n", image);
|
|
|
|
|
|
|
|
add_backed_container(config, "test2", image);
|
|
|
|
|
|
|
|
add_image(&image, config, "test2");
|
|
|
|
|
2024-02-28 17:50:27 +01:00
|
|
|
free_config(config);
|
|
|
|
}
|