Changeset 42732 in vbox for trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostartStart.cpp
- Timestamp:
- Aug 9, 2012 10:32:48 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 79941
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostartStart.cpp
r42527 r42732 23 23 #include <VBox/com/errorprint.h> 24 24 25 #include <iprt/message.h> 25 26 #include <iprt/thread.h> 26 27 #include <iprt/stream.h> … … 51 52 } 52 53 53 DECLHIDDEN(RTEXITCODE) autostartStartMain( uint32_t uStartupDelay)54 DECLHIDDEN(RTEXITCODE) autostartStartMain(PCFGAST pCfgAst) 54 55 { 55 56 RTEXITCODE rcExit = RTEXITCODE_SUCCESS; 56 57 int vrc = VINF_SUCCESS; 57 58 std::list<AUTOSTARTVM> listVM; 59 uint32_t uStartupDelay = 0; 60 61 pCfgAst = autostartConfigAstGetByName(pCfgAst, "startup_delay"); 62 if (pCfgAst) 63 { 64 if (pCfgAst->enmType == CFGASTNODETYPE_KEYVALUE) 65 { 66 vrc = RTStrToUInt32Full(pCfgAst->u.KeyValue.aszValue, 10, &uStartupDelay); 67 if (RT_FAILURE(vrc)) 68 return RTMsgErrorExit(RTEXITCODE_FAILURE, "'startup_delay' must be an unsigned number"); 69 } 70 } 58 71 59 72 if (uStartupDelay)
Note:
See TracChangeset
for help on using the changeset viewer.