Skip to content
suit Artifact [7e609685b4]
Login

Artifact [7e609685b4]

Artifact 7e609685b4c8ecaf5fa69d49a80d8d8a4c952b72c0ea745c022dde8e56a56a7b:


#ifndef SUIT_STORE_FS_H
#define SUIT_STORE_FS_H

#include "libfossil.h"

// The prefix of the temporary names store_fs writes beside a file. A listing
// never shows them to libfossil.
#define STORE_TMP_PREFIX ".suit-tmp."

// Install suit's file storage on F: libfossil's own for everything except
// writing a file, which goes to a temporary name in the same folder, is
// synced, and is renamed over the file. A reader sees the old bytes or the
// new ones, never a mixture, and a failed write leaves no temporary file.
// Returns 0 or a libfossil result code.
int store_fs_install(fsl_cx *f);

#endif