Home
last modified time | relevance | path

Searched refs:BShellHandle (Results 1 – 20 of 20) sorted by relevance

/base/startup/init/services/begetctl/shell/
Dshell.h30 typedef struct BShellEnv_ *BShellHandle; typedef
31 typedef int32_t (*BShellCmdExecuter_)(BShellHandle handle, int32_t argc, char *argv[]);
34 typedef int32_t (*BShellkeyHandle)(BShellHandle, uint8_t code);
92 int BShellEnvInit(BShellHandle *handle, const BShellInfo *info);
93 int BShellEnvStart(BShellHandle handle);
94 void BShellEnvDestory(BShellHandle handle);
96 int BShellEnvRegisterCmd(BShellHandle handle, const CmdInfo *cmdInfo);
97 int BShellEnvSetParam(BShellHandle handle, const char *name, const char *desc, BShellParamType type…
98 const BShellParam *BShellEnvGetParam(BShellHandle handle, const char *name);
99 int BShellEnvRegisterKeyHandle(BShellHandle handle, uint8_t code, BShellkeyHandle keyHandle);
[all …]
Dshell_bas.h97 BShellKey *BShellEnvGetKey(BShellHandle handle, uint8_t code);
98 BShellCommand *BShellEnvGetCmd(BShellHandle handle, int32_t argc, char *argv[]);
99 int32_t BShellEnvOutputString(BShellHandle handle, const char *string);
100 void BShellEnvOutputByte(BShellHandle handle, char data);
101 void BShellEnvOutputResult(BShellHandle handle, int32_t result);
102 char *BShellEnvErrString(BShellHandle handle, int32_t err);
103 const char *BShellEnvGetStringParam(BShellHandle handle, const char *name);
106 void BShellEnvProcessInput(BShellHandle handle, char data);
Dshell_bas.c22 char *BShellEnvErrString(BShellHandle handle, int32_t err) in BShellEnvErrString()
48 static void BShellCmdOutputCmdHelp(BShellHandle handle, BShellCommand *cmd) in BShellCmdOutputCmdHelp()
62 int32_t BShellCmdHelp(BShellHandle handle, int32_t argc, char *argv[]) in BShellCmdHelp()
90 static int32_t BShellCmdExit(BShellHandle handle, int32_t argc, char *argv[]) in BShellCmdExit()
98 int32_t BShellEnvOutput(BShellHandle handle, char *fmt, ...) in BShellEnvOutput()
109 int32_t BShellEnvOutputString(BShellHandle handle, const char *string) in BShellEnvOutputString()
117 int32_t BShellEnvOutputPrompt(BShellHandle handle, const char *prompt) in BShellEnvOutputPrompt()
139 void BShellEnvOutputByte(BShellHandle handle, char data) in BShellEnvOutputByte()
146 void BShellEnvOutputResult(BShellHandle handle, int32_t result) in BShellEnvOutputResult()
155 static void BShellEnvOutputParam(BShellHandle handle, char *var) in BShellEnvOutputParam()
[all …]
Dshell_main.c24 static BShellHandle g_handle = NULL;
41 BShellHandle GetShellHandle(void) in GetShellHandle()
69 BShellHandle handle = GetShellHandle(); in main()
/base/startup/init/services/begetctl/
Dbegetctl.h37 BShellHandle GetShellHandle(void);
40 int SetParamShellPrompt(BShellHandle shell, const char *param);
41 int32_t BShellParamCmdRegister(BShellHandle shell, int execMode);
42 int32_t BShellCmdRegister(BShellHandle shell, int execMode);
Dbootchart_cmd.c22 static int bootchartCmdEnable(BShellHandle shell, int argc, char **argv) in bootchartCmdEnable()
28 static int bootchartCmdDisable(BShellHandle shell, int argc, char **argv) in bootchartCmdDisable()
34 static int bootchartCmdStart(BShellHandle shell, int argc, char **argv) in bootchartCmdStart()
47 static int bootchartCmdStop(BShellHandle shell, int argc, char **argv) in bootchartCmdStop()
Dmain.c23 static BShellHandle g_handle = NULL;
24 BShellHandle GetShellHandle(void) in GetShellHandle()
62 BShellHandle handle = GetShellHandle(); in main()
Ddump_service.c27 static int main_cmd(BShellHandle shell, int argc, char **argv) in main_cmd()
49 static int BootEventEnable(BShellHandle shell, int argc, char **argv) in BootEventEnable()
56 static int BootEventDisable(BShellHandle shell, int argc, char **argv) in BootEventDisable()
Dbegetctl_cmd.c35 static int HandleCmd(BShellHandle shell, const char *cmdName, int argc, char **argv) in HandleCmd()
55 static int SetInitLogLevelFromParam(BShellHandle shell, int argc, char **argv) in SetInitLogLevelFromParam()
82 static int32_t GetInitLogLevelFromParam(BShellHandle shell, int argc, char **argv) in GetInitLogLevelFromParam()
92 static int32_t GetUidByName(BShellHandle shell, int argc, char **argv) in GetUidByName()
129 static int32_t GetGidByName(BShellHandle shell, int argc, char **argv) in GetGidByName()
Dparam_cmd.c76 static char *GetRealParameter(BShellHandle shell, const char *name, char *buffer, uint32_t buffSize) in GetRealParameter()
110 int SetParamShellPrompt(BShellHandle shell, const char *param) in SetParamShellPrompt()
165 static void ShowParam(BShellHandle shell, const char *name, const char *value) in ShowParam()
205 ShowParam((BShellHandle)cookie, buffer, value); in ShowParamForCmdLs()
208 static int32_t BShellParamCmdLs(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdLs()
254 static int32_t BShellParamCmdCat(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdCat()
267 static int32_t BShellParamCmdCd(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdCd()
284 BShellEnvOutput((BShellHandle)cookie, " %s = %s\r\n", buffer, value); in ShowParamForCmdGet()
287 static int32_t BShellParamCmdGet(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdGet()
314 static int32_t BShellParamCmdSet(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdSet()
[all …]
Dpartitionslot.cpp45 static int GetSlot(BShellHandle handle, int32_t argc, char *argv[]) in GetSlot()
62 static int GetSuffix(BShellHandle handle, int32_t argc, char *argv[]) in GetSuffix()
83 static int SetActiveSlot(BShellHandle handle, int32_t argc, char *argv[]) in SetActiveSlot()
103 static int SetUnbootSlot(BShellHandle handle, int32_t argc, char *argv[]) in SetUnbootSlot()
Dmodulectl.c26 static int32_t ModuleInstallCmd(BShellHandle shell, int32_t argc, char *argv[]) in ModuleInstallCmd()
41 static int ModuleDisplayCmd(BShellHandle shell, int argc, char **argv) in ModuleDisplayCmd()
Dsetloglevel.c26 static int32_t SetInitLogLevelFromParam(BShellHandle shell, int argc, char **argv) in SetInitLogLevelFromParam()
51 static int32_t GetInitLogLevelFromParam(BShellHandle shell, int argc, char **argv) in GetInitLogLevelFromParam()
Dservice_control.c29 static void ServiceControlUsage(BShellHandle shell, int argc, char **argv) in ServiceControlUsage()
35 static int main_cmd(BShellHandle shell, int argc, char **argv) in main_cmd()
Dinit_cmd_reboot.c23 static int main_cmd(BShellHandle shell, int argc, char* argv[]) in main_cmd()
Dmisc_daemon.cpp186 static int main_cmd(BShellHandle shell, int argc, char **argv) in main_cmd()
Dsandbox.cpp132 static int main_cmd(BShellHandle shell, int argc, char **argv) in main_cmd()
/base/startup/init/test/moduletest/
Dparam_test_cmds.c64 static int32_t BShellParamCmdRead(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdRead()
190 static int32_t BShellParamCmdWatch(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdWatch()
222 static int32_t BShellParamCmdInstall(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdInstall()
235 static int32_t BShellParamCmdDisplay(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdDisplay()
251 static int32_t BShellParamCmdGroupTest(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdGroupTest()
264 static int32_t BShellParamCmdUdidGet(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdUdidGet()
294 static int32_t BShellParamCmdMemGet(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdMemGet()
363 static int32_t BShellParamCmdWatchService(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdWatchService()
369 int32_t BShellCmdRegister(BShellHandle shell, int execMode) in BShellCmdRegister()
Dsyspara.cpp57 static int32_t SysParaApiDumpCmd(BShellHandle shell, int32_t argc, char *argv[]) in SysParaApiDumpCmd()
/base/startup/init/test/unittest/param/
Dparam_shell_unittest.cpp40 BShellHandle bshd = GetShellHandle(); in TestInitParamShell()
66 BShellHandle bshd = GetShellHandle(); in TestParamShellCmd()
116 BShellHandle bshd = GetShellHandle(); in TestParamShellCmd1()
146 BShellHandle bshd = GetShellHandle(); in TestParamShellcmdEndkey()
191 BShellHandle bshd = GetShellHandle();