diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-04-17 08:15:54 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-04-24 15:16:12 +0200 |
commit | 45a65278146268fce30e4790c9fb831da876024e (patch) | |
tree | 49bb4178dcd8d4c3537a05e8409d51d7326f7a01 /mod/tenant-service.hxx | |
parent | 0a7f176c21075cafac7862226304e2cd0142fa4b (diff) |
Also pass build hints to build_building() and build_built()
Diffstat (limited to 'mod/tenant-service.hxx')
-rw-r--r-- | mod/tenant-service.hxx | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/mod/tenant-service.hxx b/mod/tenant-service.hxx index 52860b7..92d8747 100644 --- a/mod/tenant-service.hxx +++ b/mod/tenant-service.hxx @@ -18,6 +18,20 @@ namespace brep class tenant_service_base { public: + + // The build_hints can be used to omit certain components from the build + // id. If single_package_version is true, then this tenant contains a + // single (non-test) package version and this package name and package + // version can be omitted. If single_package_config is true, then the + // package version being built only has the default package configuration + // and thus it can be omitted. + // + struct build_hints + { + bool single_package_version; + bool single_package_config; + }; + virtual ~tenant_service_base () = default; }; @@ -83,24 +97,11 @@ namespace brep // the function name suffix (_queued, _building, _built) signify the // logical end state. // - // The build_queued_hints can be used to omit certain components from the - // build id. If single_package_version is true, then this tenant contains - // a single (non-test) package version and this package name and package - // version can be omitted. If single_package_config is true, then the - // package version being built only has the default package configuration - // and thus it can be omitted. - // - struct build_queued_hints - { - bool single_package_version; - bool single_package_config; - }; - virtual function<optional<string> (const tenant_service&)> build_queued (const tenant_service&, const vector<build>&, optional<build_state> initial_state, - const build_queued_hints&, + const build_hints&, const diag_epilogue& log_writer) const noexcept = 0; }; @@ -110,6 +111,7 @@ namespace brep virtual function<optional<string> (const tenant_service&)> build_building (const tenant_service&, const build&, + const build_hints&, const diag_epilogue& log_writer) const noexcept = 0; }; @@ -119,6 +121,7 @@ namespace brep virtual function<optional<string> (const tenant_service&)> build_built (const tenant_service&, const build&, + const build_hints&, const diag_epilogue& log_writer) const noexcept = 0; }; |