diff options
author | Scott Lobdell <slobdell@google.com> | 2021-03-11 19:09:04 +0000 |
---|---|---|
committer | Scott Lobdell <slobdell@google.com> | 2021-03-11 19:09:04 +0000 |
commit | 23fa108ac4b2020ba3a735b21d43719bd0300ae1 (patch) | |
tree | de292a70ddc2edd6da37d3d9b370debd8b80b88f /aosp/apex_handler_interface.h | |
parent | 3381102283df5bd2be955b05e796e1e87e75434d (diff) | |
parent | bbd0405ed18ea50006312e8d3f7545d01638a420 (diff) |
Merge SP1A.210311.001
Change-Id: I30e3236e053ac82d0dda3608a864cfc107a05194
Diffstat (limited to 'aosp/apex_handler_interface.h')
-rw-r--r-- | aosp/apex_handler_interface.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/aosp/apex_handler_interface.h b/aosp/apex_handler_interface.h new file mode 100644 index 00000000..c3399b61 --- /dev/null +++ b/aosp/apex_handler_interface.h @@ -0,0 +1,36 @@ +// +// Copyright (C) 2021 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +#ifndef SYSTEM_UPDATE_ENGINE_AOSP_APEX_HANDLER_INTERFACE_H_ +#define SYSTEM_UPDATE_ENGINE_AOSP_APEX_HANDLER_INTERFACE_H_ + +#include <vector> + +#include "update_engine/update_metadata.pb.h" + +namespace chromeos_update_engine { + +class ApexHandlerInterface { + public: + virtual ~ApexHandlerInterface() = default; + virtual uint64_t CalculateSize( + const std::vector<ApexInfo>& apex_infos) const = 0; + virtual bool AllocateSpace(const uint64_t size_required) const = 0; +}; + +} // namespace chromeos_update_engine + +#endif // SYSTEM_UPDATE_ENGINE_AOSP_APEX_HANDLER_INTERFACE_H_ |