Skip to content
suit Artifact [7de66566e5]
Login

Artifact [7de66566e5]

Artifact 7de66566e5746035c1bb86a49cc9e3539f4cfef4765b340d9a764b2ec25b5c95:


#ifndef SUIT_ASSETS_H
#define SUIT_ASSETS_H

#include "conf.h"
#include "resolve.h"

// What the stores of the wardrobes that take part hold: the skills, agents and
// commands, each marked with its wardrobe (docs/conf-format.md, "More than one
// wardrobe"). The names point into a buffer this file keeps, valid until the
// process ends; a process loads once.

constexpr size_t ASSET_TEXT_MAX = 262144;

// Fill A from the stores of W, each kind in byte order of name, equal names in
// the order of their wardrobes. Returns 0, or 1 after a message when a folder
// cannot be read or there are too many assets.
int assets_load(const Wards *w, Assets *a);

#endif