Skip to content
suit Artifact [10b793f62a]
Login

Artifact [10b793f62a]

Artifact 10b793f62a099f068e0ca8dcd51cd85a604a1c4f4279cccd6853bb223311684d:


#ifndef SUIT_JOIN_H
#define SUIT_JOIN_H

#include "resolve.h"

// Joined instructions: a harness has one instruction file, and when two wears
// supply one, suit writes a file of its own with both in it.

constexpr size_t JOIN_SOURCE_MAX = 524288;  // each source file

// Whether the file at J->path holds what the join would write: 1 if so, 0 if
// it is missing or differs, -1 after saying on stderr why a source cannot be
// read.
int join_current(const Join *j);

// Write the file atomically. Returns 0, or 1 after saying why.
int join_write(const Join *j);

#endif