nsh_stdsession() cannot use the same login logic as nsh_session(); Also put telnet login in a separate file for symmetry

This commit is contained in:
Gregory Nutt
2016-01-20 15:22:02 -06:00
parent 93d9d5e4ca
commit 07cf99130c
6 changed files with 497 additions and 229 deletions

View File

@@ -888,7 +888,15 @@ int nsh_parse(FAR struct nsh_vtbl_s *vtbl, char *cmdline);
****************************************************************************/
#ifdef CONFIG_NSH_CONSOLE_LOGIN
# if CONFIG_NFILE_DESCRIPTORS > 0
int nsh_login(FAR struct console_stdio_s *pstate);
# else
int nsh_stdlogin(FAR struct console_stdio_s *pstate);
# endif
#endif
#ifdef CONFIG_NSH_TELNET_LOGIN
int nsh_telnetlogin(FAR struct console_stdio_s *pstate);
#endif
/* Application interface */