nshlib:add platform_skip_login to nshlib.h

Signed-off-by: huangjian <huangjian@xiaomi.com>
This commit is contained in:
huangjian 2022-12-15 21:24:39 +08:00 committed by Xiang Xiao
parent 9fcb58fb8a
commit 9f3e2cd234

View File

@ -192,6 +192,26 @@ int nsh_telnetstart(sa_family_t family);
void platform_motd(FAR char *buffer, size_t buflen);
#endif
/****************************************************************************
* Name: platform_skip_login
*
* Description:
* If CONFIG_NSH_PLATFORM_SKIP_LOGIN is defined, then platform-specific logic
* must provide this function in order to skip login.
*
* Input Parameters:
* None
*
* Returned value:
* OK - need to skip login
* else - no need to skip login
*
****************************************************************************/
#ifdef CONFIG_NSH_PLATFORM_SKIP_LOGIN
int platform_skip_login(void);
#endif
/****************************************************************************
* Name: platform_challenge
*