e7738de6d2
CI / Deep Native Runtime Cases (1/6) (push) Has been skipped
CI / Native Preflight (push) Failing after 1s
CI / Native Runtime Cases (1/2) (push) Failing after 0s
CI / Native Runtime Cases (2/2) (push) Failing after 1s
CI / Native Metadata Reports (push) Failing after 0s
CI / Native Direct Backend Artifacts (push) Failing after 0s
CI / Native Sanitizer Smoke (push) Failing after 1s
CI / Command Contract Snapshots (push) Failing after 1s
CI / Deep Conformance Suite (push) Has been skipped
CI / Graph Build Perf (push) Failing after 1s
CI / Deep Native Preflight (push) Has been skipped
CI / Deep Native Runtime Cases (2/6) (push) Has been skipped
CI / Deep Native Runtime Cases (3/6) (push) Has been skipped
CI / Conformance Suite (push) Failing after 1s
CI / Workspace Checks (push) Failing after 0s
CI / Deep Native Runtime Cases (5/6) (push) Has been skipped
CI / Deep Native Runtime Cases (6/6) (push) Has been skipped
CI / Deep Native Runtime Cases (4/6) (push) Has been skipped
CI / Deep Graph Build Perf (push) Has been skipped
37 lines
2.5 KiB
C
37 lines
2.5 KiB
C
#ifndef ZERO_C_PROGRAM_GRAPH_PROJECTION_H
|
|
#define ZERO_C_PROGRAM_GRAPH_PROJECTION_H
|
|
|
|
#include "program_graph_store.h"
|
|
|
|
typedef struct {
|
|
char **changed_paths;
|
|
size_t changed_len;
|
|
size_t changed_cap;
|
|
size_t source_count;
|
|
size_t unchanged_count;
|
|
} ZProgramGraphProjection;
|
|
|
|
typedef enum {
|
|
Z_PROGRAM_GRAPH_PROJECTION_SYNC_CLEAN = 0,
|
|
Z_PROGRAM_GRAPH_PROJECTION_SYNC_SOURCE_NEWER,
|
|
Z_PROGRAM_GRAPH_PROJECTION_SYNC_STORE_NEWER,
|
|
Z_PROGRAM_GRAPH_PROJECTION_SYNC_DIVERGED,
|
|
} ZProgramGraphProjectionSourceSync;
|
|
|
|
void z_program_graph_projection_init(ZProgramGraphProjection *projection);
|
|
void z_program_graph_projection_free(ZProgramGraphProjection *projection);
|
|
bool z_program_graph_projection_sources_match(const ZProgramGraphStore *store, const ZTargetInfo *target, bool *matches, ZDiag *diag);
|
|
bool z_program_graph_projection_source_files_match(const ZProgramGraphStore *store, bool *matches, ZDiag *diag);
|
|
bool z_program_graph_projection_source_sync_state(const ZProgramGraphStore *store, ZProgramGraphProjectionSourceSync *sync, ZDiag *diag);
|
|
bool z_program_graph_projection_source_sync_state_binary_fast(const char *store_path, const char *root, ZProgramGraphProjectionSourceSync *sync); bool z_program_graph_projection_target_path_safe(const ZProgramGraphStore *store, const char *path, bool *before_exists, ZDiag *diag); bool z_program_graph_projection_source_path_safe_for_cached_read(const char *root, const char *source_path, bool *before_exists); bool z_program_graph_projection_cached_run_allows_cache(const char *input);
|
|
bool z_program_graph_projection_sources_missing(const ZProgramGraphStore *store);
|
|
const char *z_program_graph_projection_state_label(const ZProgramGraphStore *store, const ZTargetInfo *target, bool *checked, bool *current, ZDiag *diag);
|
|
bool z_program_graph_projection_write_sources(const ZProgramGraphStore *store, const ZTargetInfo *target, ZProgramGraphProjection *projection, ZDiag *diag);
|
|
bool z_program_graph_projection_graph_from_store(const ZProgramGraphStore *store, const ZTargetInfo *target, ZProgramGraph *graph, ZDiag *diag);
|
|
bool z_program_graph_projection_store_matches_graph(const ZProgramGraphStore *store, const ZTargetInfo *target, ZDiag *diag);
|
|
void z_program_graph_projection_match_verdicts_flush(void);
|
|
bool z_program_graph_check_semantics_verdict_known(const ZProgramGraphStore *store, const ZTargetInfo *target, const char *manifest_text);
|
|
void z_program_graph_check_semantics_verdict_remember(const ZProgramGraphStore *store, const ZTargetInfo *target, const char *manifest_text);
|
|
|
|
#endif
|