Skip to content

Commit 5b18362

Browse files
committed
cm: updatemanager: implement sending delta unit status
Signed-off-by: Oleksandr Grytsov <[email protected]>
1 parent 2f62b34 commit 5b18362

File tree

7 files changed

+616
-32
lines changed

7 files changed

+616
-32
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright (C) 2025 EPAM Systems, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#ifndef AOS_CORE_CM_UPDATEMANAGER_CONFIG_HPP_
8+
#define AOS_CORE_CM_UPDATEMANAGER_CONFIG_HPP_
9+
10+
#include <core/common/tools/time.hpp>
11+
12+
namespace aos::cm::updatemanager {
13+
14+
/**
15+
* Update manager configuration.
16+
*/
17+
struct Config {
18+
Duration mUnitStatusSendTimeout;
19+
20+
/**
21+
* Compares config.
22+
*
23+
* @param rhs config to compare.
24+
* @return bool.
25+
*/
26+
bool operator==(const Config& rhs) const { return mUnitStatusSendTimeout == rhs.mUnitStatusSendTimeout; }
27+
28+
/**
29+
* Compares config.
30+
*
31+
* @param other config to compare.
32+
* @return bool.
33+
*/
34+
bool operator!=(const Config& rhs) const { return !operator==(rhs); }
35+
};
36+
37+
} // namespace aos::cm::updatemanager
38+
39+
#endif

0 commit comments

Comments
 (0)