Line data Source code
1 : /**
2 : * Copyright Notice:
3 : * Copyright 2022 DMTF. All rights reserved.
4 : * License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
5 : **/
6 :
7 : #include "base.h"
8 : #include "internal/libspdm_lib_config.h"
9 :
10 : #if LIBSPDM_ENABLE_CAPABILITY_HBEAT_CAP
11 : /**
12 : * If no heartbeat arrives in seconds, the watchdog timeout event
13 : * should terminate the session.
14 : *
15 : * @param session_id Indicate the SPDM session ID.
16 : * @param seconds heartbeat period, in seconds.
17 : *
18 : **/
19 0 : bool libspdm_start_watchdog(uint32_t session_id, uint16_t seconds)
20 : {
21 0 : return true;
22 : }
23 :
24 : /**
25 : * stop watchdog.
26 : *
27 : * @param session_id Indicate the SPDM session ID.
28 : *
29 : **/
30 0 : bool libspdm_stop_watchdog(uint32_t session_id)
31 : {
32 0 : return true;
33 : }
34 :
35 : /**
36 : * Reset the watchdog in heartbeat response.
37 : *
38 : * @param session_id Indicate the SPDM session ID.
39 : *
40 : **/
41 0 : bool libspdm_reset_watchdog(uint32_t session_id)
42 : {
43 0 : return true;
44 : }
45 : #endif /* LIBSPDM_ENABLE_CAPABILITY_HBEAT_CAP */
|