aboutsummaryrefslogtreecommitdiff
path: root/bbot/bootstrap-manifest
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/bootstrap-manifest')
-rw-r--r--bbot/bootstrap-manifest32
1 files changed, 31 insertions, 1 deletions
diff --git a/bbot/bootstrap-manifest b/bbot/bootstrap-manifest
index 502127b..c29406a 100644
--- a/bbot/bootstrap-manifest
+++ b/bbot/bootstrap-manifest
@@ -7,6 +7,8 @@
#include <map>
+#include <butl/manifest-forward>
+
#include <bbot/types>
#include <bbot/utility>
@@ -23,6 +25,16 @@ namespace bbot
// Toolchain id (SHAXXX).
//
string id;
+
+ public:
+ toolchain_manifest () = default; // VC export.
+ toolchain_manifest (butl::manifest_parser&, bool ignore_unknown = false);
+ toolchain_manifest (butl::manifest_parser&,
+ butl::manifest_name_value start,
+ bool ignore_unknown = false);
+
+ void
+ serialize (butl::manifest_serializer&) const;
};
// Bootstrap result manifest. Uploaded by the worker to the agent's TFTP
@@ -40,10 +52,20 @@ namespace bbot
// bbot-version: 1010200 # 1.1.2
//
std::map<string, uint64_t> versions;
+
+ public:
+ bootstrap_manifest () = default; // VC export.
+ bootstrap_manifest (butl::manifest_parser&, bool ignore_unknown = false);
+ bootstrap_manifest (butl::manifest_parser&,
+ butl::manifest_name_value start,
+ bool ignore_unknown = false);
+
+ void
+ serialize (butl::manifest_serializer&) const;
};
// The manifest stored in <name>-<toolchain>/ consists of the machine
- // manifest (original), toolchain manifest, and bootstrap result manifest.
+ // manifest (original), toolchain manifest, and bootstrap manifest.
//
class bootstrapped_machine_manifest
{
@@ -51,6 +73,14 @@ namespace bbot
machine_manifest machine;
toolchain_manifest toolchain;
bootstrap_manifest bootstrap;
+
+ public:
+ bootstrapped_machine_manifest () = default; // VC export.
+ bootstrapped_machine_manifest (butl::manifest_parser&,
+ bool ignore_unknown = false);
+
+ void
+ serialize (butl::manifest_serializer&) const;
};
}