diff options
Diffstat (limited to 'bpkg/manifest')
-rw-r--r-- | bpkg/manifest | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/bpkg/manifest b/bpkg/manifest index a02a4a0..c920cd6 100644 --- a/bpkg/manifest +++ b/bpkg/manifest @@ -105,7 +105,7 @@ namespace bpkg std::string comment; }; - class manifest + class package_manifest { public: using priority_type = bpkg::priority; @@ -128,16 +128,33 @@ namespace bpkg std::vector<requirement_alternatives> requirements; public: - manifest (manifest_parser&); - manifest (manifest_parser&, const manifest_name_value& start); + package_manifest (manifest_parser&); + package_manifest (manifest_parser&, const manifest_name_value& start); void serialize (manifest_serializer&) const; }; - class manifests: public std::vector<manifest> + class repository_manifest { public: + std::string location; + + public: + repository_manifest (manifest_parser&); + repository_manifest (manifest_parser&, const manifest_name_value& start); + + void + serialize (manifest_serializer&) const; + }; + + class manifests + { + public: + std::vector<repository_manifest> repositories; + std::vector<package_manifest> packages; + + public: manifests (manifest_parser&); void |