Ben Tyner | bcf65a8 | 2020-12-01 08:46:36 -0600 | [diff] [blame] | 1 | #include <attn/attention.hpp> // for Attention |
Ben Tyner | b833556 | 2021-07-16 12:43:52 -0500 | [diff] [blame] | 2 | #include <attn/attn_common.hpp> // for RC_SUCCESS |
Ben Tyner | bcf65a8 | 2020-12-01 08:46:36 -0600 | [diff] [blame] | 3 | #include <attn/attn_logging.hpp> // for trace |
| 4 | |
| 5 | namespace attn |
| 6 | { |
| 7 | |
| 8 | /** @brief Handle SBE vital attention */ |
| 9 | int handleVital(Attention* i_attention) |
| 10 | { |
| 11 | int rc = RC_SUCCESS; |
| 12 | |
| 13 | // trace message |
| 14 | trace<level::INFO>("Vital handler"); |
| 15 | |
| 16 | // sanity check |
| 17 | if (nullptr == i_attention) |
| 18 | { |
| 19 | trace<level::INFO>("attention type is null"); |
| 20 | rc = RC_NOT_HANDLED; |
| 21 | } |
| 22 | |
| 23 | return rc; |
| 24 | } |
| 25 | |
| 26 | } // namespace attn |