35 lines
724 B
C
35 lines
724 B
C
|
|
#ifndef AMDUAT_API_ASL_GC_FS_H
|
||
|
|
#define AMDUAT_API_ASL_GC_FS_H
|
||
|
|
|
||
|
|
#include <stdbool.h>
|
||
|
|
#include <stddef.h>
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
typedef struct {
|
||
|
|
bool keep_materializations;
|
||
|
|
bool delete_artifacts;
|
||
|
|
bool dry_run;
|
||
|
|
} amduat_asl_gc_fs_options_t;
|
||
|
|
|
||
|
|
typedef struct {
|
||
|
|
size_t pointer_roots;
|
||
|
|
size_t materialization_roots;
|
||
|
|
size_t marked_artifacts;
|
||
|
|
size_t candidates;
|
||
|
|
uint64_t candidate_bytes;
|
||
|
|
} amduat_asl_gc_fs_stats_t;
|
||
|
|
|
||
|
|
bool amduat_asl_gc_fs_run(const char *root_path,
|
||
|
|
const amduat_asl_gc_fs_options_t *opts,
|
||
|
|
amduat_asl_gc_fs_stats_t *out_stats);
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
} /* extern "C" */
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif /* AMDUAT_API_ASL_GC_FS_H */
|