Skip to content

Commit bf774f3

Browse files
committed
Add missing session logout response
A command can return CMD_RET_LOGOUT to exit console session after executing command Signed-off-by: Ajay Bhargav <[email protected]>
1 parent a3505ba commit bf774f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/command.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
enum command_ret_e {
2121
CMD_RET_SUCCESS, /**< Command executed successfully */
2222
CMD_RET_FAILURE, /**< Command executing failure */
23-
CMD_RET_PERM, /**< Command Permission denied */
23+
CMD_RET_PERM, /**< Command Permission denied */
24+
CMD_RET_LOGOUT, /**< Execute session logout */
2425
CMD_RET_USAGE = -1, /**< Failure, please report 'usage' error */
2526
};
2627

0 commit comments

Comments
 (0)