Changeset 1571 in vbox for trunk/src/VBox
- Timestamp:
- Mar 20, 2007 4:56:14 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp
r1397 r1571 115 115 * Internal Functions * 116 116 *******************************************************************************/ 117 static DECLCALLBACK(int) cfgmR3CreateDefault(PVM pVM, void *pvUser);117 static DECLCALLBACK(int) vboxbfeConfigConstructor(PVM pVM, void *pvUser); 118 118 static DECLCALLBACK(void) vmstateChangeCallback(PVM pVM, VMSTATE enmState, VMSTATE enmOldState, void *pvUser); 119 119 static DECLCALLBACK(void) setVMErrorCallback(PVM pVM, void *pvUser, int rc, RT_SRC_POS_DECL, … … 939 939 * Create empty VM. 940 940 */ 941 rc = VMR3Create(setVMErrorCallback, NULL, cfgmR3CreateDefault, NULL, &pVM);941 rc = VMR3Create(setVMErrorCallback, NULL, vboxbfeConfigConstructor, NULL, &pVM); 942 942 if (VBOX_FAILURE(rc)) 943 943 { … … 1054 1054 1055 1055 /** 1056 * Creates the default configuration. 1057 * This assumes an empty tree. 1056 * Constructs the VMM configuration tree. 1058 1057 * 1059 1058 * @returns VBox status code. 1060 1059 * @param pVM VM handle. 1061 1060 */ 1062 static DECLCALLBACK(int) cfgmR3CreateDefault(PVM pVM, void *pvUser)1061 static DECLCALLBACK(int) vboxbfeConfigConstructor(PVM pVM, void *pvUser) 1063 1062 { 1064 1063 int rcAll = VINF_SUCCESS; … … 1070 1069 1071 1070 /* 1072 * Create VM default values.1071 * Root values. 1073 1072 */ 1074 1073 PCFGMNODE pRoot = CFGMR3GetRoot(pVM); … … 1584 1583 #ifdef __WIN__ 1585 1584 rc = CFGMR3InsertString(pCfg, "AudioDriver", "winmm"); CHECK_RC(); 1586 #else /* !__WIN__ */ 1585 #elif defined(__DARWIN__) 1586 rc = CFGMR3InsertString(pCfg, "AudioDriver", "coreaudio"); CHECK_RC(); 1587 #elif defined(__LINUX__) 1587 1588 rc = CFGMR3InsertString(pCfg, "AudioDriver", "oss"); CHECK_RC(); 1589 #else /* portme */ 1590 rc = CFGMR3InsertString(pCfg, "AudioDriver", "none"); CHECK_RC(); 1588 1591 #endif /* !__WIN__ */ 1589 1592 }
Note:
See TracChangeset
for help on using the changeset viewer.