summaryrefslogtreecommitdiff
path: root/implementation/configuration/include/watchdog.hpp
blob: 5c9de1c1ff14a960792ebceecb256261abb5c03a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (C) 2014-2021 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef VSOMEIP_V3_CFG_WATCHDOG_HPP_
#define VSOMEIP_V3_CFG_WATCHDOG_HPP_

namespace vsomeip_v3 {
namespace cfg {

struct watchdog {
    watchdog()
        : is_enabeled_(false),
          timeout_in_ms_(VSOMEIP_DEFAULT_WATCHDOG_TIMEOUT),
          missing_pongs_allowed_(VSOMEIP_DEFAULT_MAX_MISSING_PONGS) {
    }

    bool is_enabeled_;
    uint32_t timeout_in_ms_;
    uint32_t missing_pongs_allowed_;
};

} // namespace cfg
} // namespace vsomeip_v3

#endif // VSOMEIP_V3_CFG_WATCHDOG_HPP_