Lines Matching refs:pArg

777  * @param   pArg                    Pointer to command line argument structure.
781 static RTEXITCODE ctrlInitVM(HandlerArg *pArg,
784 AssertPtrReturn(pArg, RTEXITCODE_FAILURE);
785 AssertReturn(pArg->argc > 1, RTEXITCODE_FAILURE);
790 for (int i=0; i<pArg->argc;i++)
791 RTPrintf("\targv[%d]=%s\n", i, pArg->argv[i]);
796 const char *pszNameOrId = pArg->argv[0];
797 const char *pszCmd = pArg->argv[1];
803 CHECK_ERROR(pArg->virtualBox, FindMachine(Bstr(pszNameOrId).raw(),
836 pCtx->ppaArgv = (char**)RTMemAlloc(pArg->argc * sizeof(char*) + 1);
849 RTGetOptInit(&GetState, pArg->argc, pArg->argv,
912 char *pszArg = RTStrDup(pArg->argv[i]);
922 RTPrintf("\targv[%d]=%s\n", i, pArg->argv[i]);
965 CHECK_ERROR_BREAK(machine, LockMachine(pArg->session, LockType_Shared));
968 CHECK_ERROR_BREAK(pArg->session, COMGETTER(Console)(console.asOutParam()));
971 CHECK_ERROR_BREAK(pArg->session, COMGETTER(Machine)(sessionMachine.asOutParam()));
1035 pCtx->handlerArg = *pArg;
3925 int handleGuestControl(HandlerArg *pArg)
3927 AssertPtrReturn(pArg, VERR_INVALID_POINTER);
3934 /* pArg->argv[0] contains the VM name. */
3935 /* pArg->argv[1] contains the guest control command. */
3936 if (pArg->argc < 2)
3942 if ( !RTStrICmp(pArg->argv[1], "exec")
3943 || !RTStrICmp(pArg->argv[1], "execute"))
3948 else if (!RTStrICmp(pArg->argv[1], "copyfrom"))
3953 else if ( !RTStrICmp(pArg->argv[1], "copyto")
3954 || !RTStrICmp(pArg->argv[1], "cp"))
3959 else if ( !RTStrICmp(pArg->argv[1], "createdirectory")
3960 || !RTStrICmp(pArg->argv[1], "createdir")
3961 || !RTStrICmp(pArg->argv[1], "mkdir")
3962 || !RTStrICmp(pArg->argv[1], "md"))
3967 else if ( !RTStrICmp(pArg->argv[1], "removedirectory")
3968 || !RTStrICmp(pArg->argv[1], "removedir")
3969 || !RTStrICmp(pArg->argv[1], "rmdir"))
3974 else if ( !RTStrICmp(pArg->argv[1], "rm")
3975 || !RTStrICmp(pArg->argv[1], "removefile"))
3980 else if ( !RTStrICmp(pArg->argv[1], "ren")
3981 || !RTStrICmp(pArg->argv[1], "rename")
3982 || !RTStrICmp(pArg->argv[1], "mv"))
3987 else if ( !RTStrICmp(pArg->argv[1], "createtemporary")
3988 || !RTStrICmp(pArg->argv[1], "createtemp")
3989 || !RTStrICmp(pArg->argv[1], "mktemp"))
3994 else if ( !RTStrICmp(pArg->argv[1], "kill") /* Linux. */
3995 || !RTStrICmp(pArg->argv[1], "pkill") /* Solaris / *BSD. */
3996 || !RTStrICmp(pArg->argv[1], "pskill")) /* SysInternals version. */
4005 else if ( !RTStrICmp(pArg->argv[1], "stat"))
4010 else if ( !RTStrICmp(pArg->argv[1], "updateadditions")
4011 || !RTStrICmp(pArg->argv[1], "updateadds"))
4018 else if ( !RTStrICmp(pArg->argv[1], "list"))
4025 else if ( !RTStrICmp(pArg->argv[1], "session"))
4032 else if ( !RTStrICmp(pArg->argv[1], "process"))
4039 else if ( !RTStrICmp(pArg->argv[1], "watch"))
4047 return errorSyntax(USAGE_GUESTCONTROL, "Unknown sub command '%s' specified!", pArg->argv[1]);
4052 RTEXITCODE rcExit = ctrlInitVM(pArg, &cmdCtx, uCmdCtxFlags, uUsage);