nbos

nbos

https://git.tonybtw.com/nbos.git git://git.tonybtw.com/nbos.git
529 bytes raw
1
#ifndef NB_STORE_H
2
#define NB_STORE_H
3
4
#include "../include/nbos.h"
5
#include "arena.h"
6
#include "resolve.h"
7
8
#define NB_STORE_ROOT "/nb/store"
9
10
[[nodiscard]] const char *store_path_compute(
11
    arena              *a,
12
    const pkg          *p,
13
    const resolved     *resolved_pkgs,
14
    size_t              n_resolved);
15
16
[[nodiscard]] bool store_path_exists(const char *store_path);
17
18
[[nodiscard]] int store_install(const char *temp_path, const char *store_path);
19
20
[[nodiscard]] int store_remove(const char *store_path);
21
22
#endif