Line data Source code
1 0 : /* 2 : * Copyright (c) 2018-2021 mcumgr authors 3 : * Copyright (c) 2023 Nordic Semiconductor ASA 4 : * 5 : * SPDX-License-Identifier: Apache-2.0 6 : */ 7 : 8 : #ifndef H_SHELL_MGMT_ 9 : #define H_SHELL_MGMT_ 10 : 11 : #ifdef __cplusplus 12 : extern "C" { 13 : #endif 14 : 15 : /** 16 : * Command IDs for shell management group. 17 : */ 18 1 : #define SHELL_MGMT_ID_EXEC 0 19 : 20 : /** 21 : * Command result codes for shell management group. 22 : */ 23 1 : enum shell_mgmt_err_code_t { 24 : /** No error, this is implied if there is no ret value in the response */ 25 : SHELL_MGMT_ERR_OK = 0, 26 : 27 : /** Unknown error occurred. */ 28 : SHELL_MGMT_ERR_UNKNOWN, 29 : 30 : /** The provided command to execute is too long. */ 31 : SHELL_MGMT_ERR_COMMAND_TOO_LONG, 32 : 33 : /** No command to execute was provided. */ 34 : SHELL_MGMT_ERR_EMPTY_COMMAND, 35 : }; 36 : 37 : #ifdef __cplusplus 38 : } 39 : #endif 40 : 41 : #endif /* H_SHELL_MGMT_ */