Home
last modified time | relevance | path

Searched refs:optMsg (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_getopt.c25 if (optMsg == NULL) { in NstackInitGetOptMsg()
29 optMsg->argvIdx = 1; in NstackInitGetOptMsg()
30 optMsg->argvOffset = 1; in NstackInitGetOptMsg()
37 …if (optMsg->argvIdx >= argc || argv[optMsg->argvIdx][0] != '-' || argv[optMsg->argvIdx][1] == '\0'… in GetOptCheckInputArg()
40 optMsg->argvIdx++; in GetOptCheckInputArg()
65 if (argv[optMsg->argvIdx][optMsg->argvOffset + 1] != '\0') { in GetOptParseAttachArg()
66 optMsg->attachArg = &argv[optMsg->argvIdx++][optMsg->argvOffset + 1]; in GetOptParseAttachArg()
72 optMsg->attachArg = argv[optMsg->argvIdx++]; in GetOptParseAttachArg()
76 if (argv[optMsg->argvIdx][++(optMsg->argvOffset)] == '\0') { in GetOptParseAttachArg()
118 currentOpt = argv[optMsg->argvIdx][optMsg->argvOffset]; in NstackGetOpt()
[all …]
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface/
H A Dnstackx_getopt.h33 NSTACKX_EXPORT int32_t NstackInitGetOptMsg(NstackGetOptMsg *optMsg);
34 NSTACKX_EXPORT int32_t NstackGetOpt(NstackGetOptMsg *optMsg, int32_t argc, const char *const *argv,…
35 NSTACKX_EXPORT const char *NstackGetOptArgs(const NstackGetOptMsg *optMsg);
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/
H A Dnstackx_dfinder_hidump.c328 static int32_t EnableMgtMsgLog(const char *optMsg, void *softObj, DFinderDumpFunc dump) in EnableMgtMsgLog() argument
332 if ((optMsg == NULL) || (strlen(optMsg) != 1) || in EnableMgtMsgLog()
333 ((optMsg[0] != '0') && (optMsg[0] != '1'))) { in EnableMgtMsgLog()
340 enable = (int32_t)strtol(optMsg, NULL, DFINDER_DUMP_STRTOL_BASE); in EnableMgtMsgLog()
361 NstackGetOptMsg optMsg; in DFinderDump() local
362 int32_t ret = NstackInitGetOptMsg(&optMsg); in DFinderDump()
373 … while ((opt = NstackGetOpt(&optMsg, argc, argv, g_dfinderDumpOpts)) != NSTACK_GETOPT_END_OF_STR) { in DFinderDump()
391 ret = EnableMgtMsgLog(NstackGetOptArgs(&optMsg), softObj, dump); in DFinderDump()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/src/
H A Dfillp_dfx.c699 const NstackGetOptMsg *optMsg; member
753 const FILLP_CHAR *optArgs = NstackGetOptArgs(optArgStr->optMsg); in FillpDfxDumpGetOptVal()
828 NstackGetOptMsg optMsg; in FillpDfxDump() local
829 (void)NstackInitGetOptMsg(&optMsg); in FillpDfxDump()
830 …while ((opt = NstackGetOpt(&optMsg, (FILLP_INT32)argc, argv, g_optString)) != NSTACK_GETOPT_END_OF… in FillpDfxDump()
832 FillpDfxDumpOptArgs optArgStr = {opt, &optMsg, softObj, dump}; in FillpDfxDump()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/
H A Dnstackx_dfile.c1590 NstackGetOptMsg optMsg; in NSTACKX_DFileDump() local
1591 (void)NstackInitGetOptMsg(&optMsg); in NSTACKX_DFileDump()
1593 while ((c = NstackGetOpt(&optMsg, argc, arg, "s:m:hl")) != NSTACK_GETOPT_END_OF_STR) { in NSTACKX_DFileDump()
1602 opt = (char *)NstackGetOptArgs(&optMsg); in NSTACKX_DFileDump()
1606 opt = (char *)NstackGetOptArgs(&optMsg); in NSTACKX_DFileDump()