#ifndef _SHELL_CMD_HEADER
#define _SHELL_CMD_HEADER

char *shellSkipBlank(char *str);
char *shellSkipNonBlank(char *str);
int shellNullTerminateCmd(char *cmd);

int shellCd(int fd, char *cmd);
int shellDiag(int fd, char *cmd);
int shellFormat(int fd, char *cmd);
int shellUsage(int fd, char *cmd);
int shellGet(int fd, char *cmd);
int shellLaunch(int fd, char *cmd);
int shellLs(int fd, char *cmd);
int shellMkdir(int fd,  char *cmd);
int shellMv(int fd, char *cmd);
int shellPing(int fd, char *cmd);
int shellPut(int fd, char *cmd);
int shellPwd(int fd, char *cmd);
int shellVer(int fd, char *cmd);
int shellId(int fd, char *cmd);
int shellRm(int fd, char *cmd);
int shellCp(int fd, char *cmd);
int shellReadBoot(int fd, char *cmd);
int shellWriteBoot(int fd, char *cmd);
int shellImport(int fd,  char *cmd);
int shellNvTest(int fd, char *cmd);
int shellNvReadback(int fd, char *cmd);
int shellDate(int fd, char *cmd);

int reliableSend(int fd, char *buf, int len);
const char * shellGetErrStr(int code);

int diagUsb(int fd, char *param);
int diagRtc(int fd, char *param);
int diagGba(int fd, char *param);
int diagAud(int fd, char *param);
int diagFlash(int fd, char *param);

int semihost(int fd);

#endif
