shell.h
来自「神龙解压卡Linux下的完整开发包,绝对是超值超值超值」· C头文件 代码 · 共 69 行
H
69 行
#ifndef __RMSHELL_H__#define __RMSHELL_H__#ifdef __cplusplusextern "C" {#endiftypedef void (*RMShellCommandVoid) (void *userdata);typedef void (*RMShellCommandUInt32) (RMuint32 val, void *userdata);typedef void (*RMShellCommandUInt32UInt32) (RMuint32 val1, RMuint32 val2, void *userdata);typedef void (*RMShellCommandUInt32String) (RMuint32 val1, const RMascii *val2, void *userdata);typedef void (*RMShellCommandString) (const RMascii *val, void *userdata);RM_LIBRARY_IMPORT_EXPORT void RMShellAddCommandUInt32 (const RMascii *token, const RMascii *name, const RMascii *help, RMShellCommandUInt32 cmd);RM_LIBRARY_IMPORT_EXPORT void RMShellAddCommandUInt32UInt32 (const RMascii *token, const RMascii *name, const RMascii *help, RMShellCommandUInt32UInt32 cmd);RM_LIBRARY_IMPORT_EXPORT void RMShellAddCommandUInt32String (const RMascii *token, const RMascii *name, const RMascii *help, RMShellCommandUInt32String cmd);RM_LIBRARY_IMPORT_EXPORT void RMShellAddCommandString (const RMascii *token, const RMascii *name, const RMascii *help, RMShellCommandString cmd);RM_LIBRARY_IMPORT_EXPORT void RMShellAddCommandVoid (const RMascii *token, const RMascii *name, const RMascii *help, RMShellCommandVoid cmd);/** Must be called prior to calling any other function of this API. It sets up the Shell. It can be called a second timne, after RMShellDeInit has been called. */RM_LIBRARY_IMPORT_EXPORT void RMShellInit (const RMascii *appName, void *userData);/** Used to free the memory used by the shell. */RM_LIBRARY_IMPORT_EXPORT void RMShellDeInit (void);/** Each invocation of this function will invoke one command if the user typed one. It will do nothing otherwise and return immediatly. */RM_LIBRARY_IMPORT_EXPORT void RMShellRun (void);#ifdef __cplusplus};#endif#endif //__RMSHELL_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?