Changeset 26173 in vbox for trunk/src/VBox
- Timestamp:
- Feb 2, 2010 9:11:09 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57187
- Location:
- trunk/src/VBox
- Files:
-
- 71 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r26169 r26173 1979 1979 * @interface_method_impl{PDMDEVREG,pfnConstruct} 1980 1980 */ 1981 static DECLCALLBACK(int) pciConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)1981 static DECLCALLBACK(int) pciConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 1982 1982 { 1983 1983 int rc; … … 1987 1987 * Validate and read configuration. 1988 1988 */ 1989 if (!CFGMR3AreValuesValid(pCfg Handle, "IOAPIC\0" "GCEnabled\0" "R0Enabled\0"))1989 if (!CFGMR3AreValuesValid(pCfg, "IOAPIC\0" "GCEnabled\0" "R0Enabled\0")) 1990 1990 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 1991 1991 1992 1992 /* query whether we got an IOAPIC */ 1993 1993 bool fUseIoApic; 1994 rc = CFGMR3QueryBoolDef(pCfg Handle, "IOAPIC", &fUseIoApic, false);1994 rc = CFGMR3QueryBoolDef(pCfg, "IOAPIC", &fUseIoApic, false); 1995 1995 if (RT_FAILURE(rc)) 1996 1996 return PDMDEV_SET_ERROR(pDevIns, rc, … … 1999 1999 /* check if RC code is enabled. */ 2000 2000 bool fGCEnabled; 2001 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &fGCEnabled, true);2001 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true); 2002 2002 if (RT_FAILURE(rc)) 2003 2003 return PDMDEV_SET_ERROR(pDevIns, rc, … … 2006 2006 /* check if R0 code is enabled. */ 2007 2007 bool fR0Enabled; 2008 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &fR0Enabled, true);2008 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &fR0Enabled, true); 2009 2009 if (RT_FAILURE(rc)) 2010 2010 return PDMDEV_SET_ERROR(pDevIns, rc, … … 2369 2369 * @interface_method_impl{PDMDEVREG,pfnConstruct} 2370 2370 */ 2371 static DECLCALLBACK(int) pcibridgeConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)2371 static DECLCALLBACK(int) pcibridgeConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 2372 2372 { 2373 2373 int rc; … … 2376 2376 * Validate and read configuration. 2377 2377 */ 2378 if (!CFGMR3AreValuesValid(pCfg Handle, "GCEnabled\0" "R0Enabled\0"))2378 if (!CFGMR3AreValuesValid(pCfg, "GCEnabled\0" "R0Enabled\0")) 2379 2379 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 2380 2380 2381 2381 /* check if RC code is enabled. */ 2382 2382 bool fGCEnabled; 2383 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &fGCEnabled, true);2383 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true); 2384 2384 if (RT_FAILURE(rc)) 2385 2385 return PDMDEV_SET_ERROR(pDevIns, rc, … … 2388 2388 /* check if R0 code is enabled. */ 2389 2389 bool fR0Enabled; 2390 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &fR0Enabled, true);2390 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &fR0Enabled, true); 2391 2391 if (RT_FAILURE(rc)) 2392 2392 return PDMDEV_SET_ERROR(pDevIns, rc, -
trunk/src/VBox/Devices/EFI/DevEFI.cpp
r26172 r26173 710 710 * @returns VBox status. 711 711 * @param pThis The device instance data. 712 * @param pCfg HandleConfiguration node handle for the device.713 */ 714 static int efiLoadRom(PDEVEFI pThis, PCFGMNODE pCfg Handle)712 * @param pCfg Configuration node handle for the device. 713 */ 714 static int efiLoadRom(PDEVEFI pThis, PCFGMNODE pCfg) 715 715 { 716 716 /* … … 791 791 * @returns VBox status code. 792 792 * @param pThis The device instance data. 793 * @param pCfg HandleConfiguration node handle for the device.794 */ 795 static int efiLoadThunk(PDEVEFI pThis, PCFGMNODE pCfg Handle)793 * @param pCfg Configuration node handle for the device. 794 */ 795 static int efiLoadThunk(PDEVEFI pThis, PCFGMNODE pCfg) 796 796 { 797 797 uint8_t f64BitEntry = 0; 798 798 int rc; 799 799 800 rc = CFGMR3QueryU8Def(pCfg Handle, "64BitEntry", &f64BitEntry, 0);800 rc = CFGMR3QueryU8Def(pCfg, "64BitEntry", &f64BitEntry, 0); 801 801 if (RT_FAILURE (rc)) 802 802 return PDMDEV_SET_ERROR(pThis->pDevIns, rc, … … 864 864 * @interface_method_impl{PDMDEVREG,pfnConstruct} 865 865 */ 866 static DECLCALLBACK(int) efiConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)866 static DECLCALLBACK(int) efiConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 867 867 { 868 868 PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI); … … 876 876 * Validate and read the configuration. 877 877 */ 878 if (!CFGMR3AreValuesValid(pCfg Handle,878 if (!CFGMR3AreValuesValid(pCfg, 879 879 "EfiRom\0" 880 880 "RamSize\0" … … 911 911 912 912 /* CPU count (optional). */ 913 rc = CFGMR3QueryU32Def(pCfg Handle, "NumCPUs", &pThis->cCpus, 1);913 rc = CFGMR3QueryU32Def(pCfg, "NumCPUs", &pThis->cCpus, 1); 914 914 AssertLogRelRCReturn(rc, rc); 915 915 916 rc = CFGMR3QueryU8Def(pCfg Handle, "IOAPIC", &pThis->u8IOAPIC, 1);916 rc = CFGMR3QueryU8Def(pCfg, "IOAPIC", &pThis->u8IOAPIC, 1); 917 917 if (RT_FAILURE (rc)) 918 918 return PDMDEV_SET_ERROR(pDevIns, rc, … … 923 923 */ 924 924 RTUUID uuid; 925 rc = CFGMR3QueryBytes(pCfg Handle, "UUID", &uuid, sizeof(uuid));925 rc = CFGMR3QueryBytes(pCfg, "UUID", &uuid, sizeof(uuid)); 926 926 if (RT_FAILURE(rc)) 927 927 return PDMDEV_SET_ERROR(pDevIns, rc, … … 936 936 937 937 /* RAM sizes */ 938 rc = CFGMR3QueryU64(pCfg Handle, "RamSize", &pThis->cbRam);938 rc = CFGMR3QueryU64(pCfg, "RamSize", &pThis->cbRam); 939 939 AssertLogRelRCReturn(rc, rc); 940 rc = CFGMR3QueryU64(pCfg Handle, "RamHoleSize", &pThis->cbRamHole);940 rc = CFGMR3QueryU64(pCfg, "RamHoleSize", &pThis->cbRamHole); 941 941 AssertLogRelRCReturn(rc, rc); 942 942 pThis->cbBelow4GB = RT_MIN(pThis->cbRam, _4G - pThis->cbRamHole); … … 947 947 * Get the system EFI ROM file name. 948 948 */ 949 rc = CFGMR3QueryStringAlloc(pCfg Handle, "EfiRom", &pThis->pszEfiRomFile);949 rc = CFGMR3QueryStringAlloc(pCfg, "EfiRom", &pThis->pszEfiRomFile); 950 950 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 951 951 { … … 973 973 * Get boot args. 974 974 */ 975 rc = CFGMR3QueryString(pCfg Handle, "BootArgs",975 rc = CFGMR3QueryString(pCfg, "BootArgs", 976 976 pThis->pszBootArgs, sizeof pThis->pszBootArgs); 977 977 if (rc == VERR_CFGM_VALUE_NOT_FOUND) … … 996 996 * Load firmware volume and thunk ROM. 997 997 */ 998 rc = efiLoadRom(pThis, pCfg Handle);998 rc = efiLoadRom(pThis, pCfg); 999 999 if (RT_FAILURE(rc)) 1000 1000 return rc; 1001 1001 1002 rc = efiLoadThunk(pThis, pCfg Handle);1002 rc = efiLoadThunk(pThis, pCfg); 1003 1003 if (RT_FAILURE(rc)) 1004 1004 return rc; -
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r26165 r26173 5845 5845 * @interface_method_impl{PDMDEVREG,pfnConstruct} 5846 5846 */ 5847 static DECLCALLBACK(int) vgaR3Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)5847 static DECLCALLBACK(int) vgaR3Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 5848 5848 { 5849 5849 … … 5877 5877 * Validate configuration. 5878 5878 */ 5879 if (!CFGMR3AreValuesValid(pCfg Handle, "VRamSize\0"5879 if (!CFGMR3AreValuesValid(pCfg, "VRamSize\0" 5880 5880 "MonitorCount\0" 5881 5881 "GCEnabled\0" … … 5910 5910 * Init state data. 5911 5911 */ 5912 rc = CFGMR3QueryU32Def(pCfg Handle, "VRamSize", &pThis->vram_size, VGA_VRAM_DEFAULT);5912 rc = CFGMR3QueryU32Def(pCfg, "VRamSize", &pThis->vram_size, VGA_VRAM_DEFAULT); 5913 5913 AssertLogRelRCReturn(rc, rc); 5914 5914 if (pThis->vram_size > VGA_VRAM_MAX) … … 5919 5919 "VRamSize is too small, %#x, max %#x", pThis->vram_size, VGA_VRAM_MIN); 5920 5920 5921 rc = CFGMR3QueryU32Def(pCfg Handle, "MonitorCount", &pThis->cMonitors, 1);5921 rc = CFGMR3QueryU32Def(pCfg, "MonitorCount", &pThis->cMonitors, 1); 5922 5922 AssertLogRelRCReturn(rc, rc); 5923 5923 5924 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &pThis->fGCEnabled, true);5924 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &pThis->fGCEnabled, true); 5925 5925 AssertLogRelRCReturn(rc, rc); 5926 5926 5927 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &pThis->fR0Enabled, true);5927 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &pThis->fR0Enabled, true); 5928 5928 AssertLogRelRCReturn(rc, rc); 5929 5929 Log(("VGA: VRamSize=%#x fGCenabled=%RTbool fR0Enabled=%RTbool\n", pThis->vram_size, pThis->fGCEnabled, pThis->fR0Enabled)); … … 6210 6210 cb = sizeof(mode_info_list) + sizeof(ModeInfoListItem); 6211 6211 6212 rc = CFGMR3QueryU32(pCfg Handle, "HeightReduction", &cyReduction);6212 rc = CFGMR3QueryU32(pCfg, "HeightReduction", &cyReduction); 6213 6213 if (RT_SUCCESS(rc) && cyReduction) 6214 6214 cb *= 2; /* Default mode list will be twice long */ … … 6216 6216 cyReduction = 0; 6217 6217 6218 rc = CFGMR3QueryU32(pCfg Handle, "CustomVideoModes", &cCustomModes);6218 rc = CFGMR3QueryU32(pCfg, "CustomVideoModes", &cCustomModes); 6219 6219 if (RT_SUCCESS(rc) && cCustomModes) 6220 6220 cb += sizeof(ModeInfoListItem) * cCustomModes; … … 6304 6304 /* query and decode the custom mode string. */ 6305 6305 RTStrPrintf(szExtraDataKey, sizeof(szExtraDataKey), "CustomVideoMode%d", i); 6306 rc = CFGMR3QueryStringAlloc(pCfg Handle, szExtraDataKey, &pszExtraData);6306 rc = CFGMR3QueryStringAlloc(pCfg, szExtraDataKey, &pszExtraData); 6307 6307 if (RT_SUCCESS(rc)) 6308 6308 { … … 6426 6426 LOGOHDR LogoHdr = { LOGO_HDR_MAGIC, 0, 0, 0, 0, 0, 0 }; 6427 6427 6428 rc = CFGMR3QueryU8(pCfg Handle, "FadeIn", &LogoHdr.fu8FadeIn);6428 rc = CFGMR3QueryU8(pCfg, "FadeIn", &LogoHdr.fu8FadeIn); 6429 6429 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 6430 6430 LogoHdr.fu8FadeIn = 1; … … 6433 6433 N_("Configuration error: Querying \"FadeIn\" as integer failed")); 6434 6434 6435 rc = CFGMR3QueryU8(pCfg Handle, "FadeOut", &LogoHdr.fu8FadeOut);6435 rc = CFGMR3QueryU8(pCfg, "FadeOut", &LogoHdr.fu8FadeOut); 6436 6436 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 6437 6437 LogoHdr.fu8FadeOut = 1; … … 6440 6440 N_("Configuration error: Querying \"FadeOut\" as integer failed")); 6441 6441 6442 rc = CFGMR3QueryU16(pCfg Handle, "LogoTime", &LogoHdr.u16LogoMillies);6442 rc = CFGMR3QueryU16(pCfg, "LogoTime", &LogoHdr.u16LogoMillies); 6443 6443 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 6444 6444 LogoHdr.u16LogoMillies = 0; … … 6451 6451 LogoHdr.u16LogoMillies = RT_MAX(LogoHdr.u16LogoMillies, LOGO_DELAY_TIME); 6452 6452 6453 rc = CFGMR3QueryU8(pCfg Handle, "ShowBootMenu", &LogoHdr.fu8ShowBootMenu);6453 rc = CFGMR3QueryU8(pCfg, "ShowBootMenu", &LogoHdr.fu8ShowBootMenu); 6454 6454 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 6455 6455 LogoHdr.fu8ShowBootMenu = 0; … … 6461 6461 * Get the Logo file name. 6462 6462 */ 6463 rc = CFGMR3QueryStringAlloc(pCfg Handle, "LogoFile", &pThis->pszLogoFile);6463 rc = CFGMR3QueryStringAlloc(pCfg, "LogoFile", &pThis->pszLogoFile); 6464 6464 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 6465 6465 pThis->pszLogoFile = NULL; -
trunk/src/VBox/Devices/Input/DevPS2.cpp
r26169 r26173 1583 1583 * @interface_method_impl{PDMDEVREG,pfnConstruct} 1584 1584 */ 1585 static DECLCALLBACK(int) kbdConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)1585 static DECLCALLBACK(int) kbdConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 1586 1586 { 1587 1587 KBDState *pThis = PDMINS_2_DATA(pDevIns, KBDState *); … … 1596 1596 * Validate and read the configuration. 1597 1597 */ 1598 if (!CFGMR3AreValuesValid(pCfg Handle, "GCEnabled\0R0Enabled\0"))1598 if (!CFGMR3AreValuesValid(pCfg, "GCEnabled\0R0Enabled\0")) 1599 1599 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 1600 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &fGCEnabled, true);1600 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true); 1601 1601 if (RT_FAILURE(rc)) 1602 1602 return PDMDEV_SET_ERROR(pDevIns, rc, N_("Failed to query \"GCEnabled\" from the config")); 1603 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &fR0Enabled, true);1603 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &fR0Enabled, true); 1604 1604 if (RT_FAILURE(rc)) 1605 1605 return PDMDEV_SET_ERROR(pDevIns, rc, N_("Failed to query \"R0Enabled\" from the config")); -
trunk/src/VBox/Devices/Input/DrvKeyboardQueue.cpp
r26166 r26173 234 234 * @copydoc FNPDMDRVCONSTRUCT 235 235 */ 236 static DECLCALLBACK(int) drvKbdQueueConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)236 static DECLCALLBACK(int) drvKbdQueueConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 237 237 { 238 238 PDRVKBDQUEUE pDrv = PDMINS_2_DATA(pDrvIns, PDRVKBDQUEUE); … … 243 243 * Validate configuration. 244 244 */ 245 if (!CFGMR3AreValuesValid(pCfg Handle, "QueueSize\0Interval\0"))245 if (!CFGMR3AreValuesValid(pCfg, "QueueSize\0Interval\0")) 246 246 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 247 247 … … 288 288 */ 289 289 uint32_t cMilliesInterval = 0; 290 rc = CFGMR3QueryU32(pCfg Handle, "Interval", &cMilliesInterval);290 rc = CFGMR3QueryU32(pCfg, "Interval", &cMilliesInterval); 291 291 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 292 292 cMilliesInterval = 0; … … 298 298 299 299 uint32_t cItems = 0; 300 rc = CFGMR3QueryU32(pCfg Handle, "QueueSize", &cItems);300 rc = CFGMR3QueryU32(pCfg, "QueueSize", &cItems); 301 301 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 302 302 cItems = 128; -
trunk/src/VBox/Devices/Input/DrvMouseQueue.cpp
r26166 r26173 223 223 * @copydoc FNPDMDRVCONSTRUCT 224 224 */ 225 static DECLCALLBACK(int) drvMouseQueueConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)225 static DECLCALLBACK(int) drvMouseQueueConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 226 226 { 227 227 PDRVMOUSEQUEUE pDrv = PDMINS_2_DATA(pDrvIns, PDRVMOUSEQUEUE); … … 232 232 * Validate configuration. 233 233 */ 234 if (!CFGMR3AreValuesValid(pCfg Handle, "QueueSize\0Interval\0"))234 if (!CFGMR3AreValuesValid(pCfg, "QueueSize\0Interval\0")) 235 235 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 236 236 … … 275 275 */ 276 276 uint32_t cMilliesInterval = 0; 277 rc = CFGMR3QueryU32(pCfg Handle, "Interval", &cMilliesInterval);277 rc = CFGMR3QueryU32(pCfg, "Interval", &cMilliesInterval); 278 278 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 279 279 cMilliesInterval = 0; … … 285 285 286 286 uint32_t cItems = 0; 287 rc = CFGMR3QueryU32(pCfg Handle, "QueueSize", &cItems);287 rc = CFGMR3QueryU32(pCfg, "QueueSize", &cItems); 288 288 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 289 289 cItems = 128; -
trunk/src/VBox/Devices/Network/DevE1000.cpp
r26160 r26173 5025 5025 * @interface_method_impl{PDMDEVREG,pfnConstruct} 5026 5026 */ 5027 static DECLCALLBACK(int) e1kConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)5027 static DECLCALLBACK(int) e1kConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 5028 5028 { 5029 5029 E1KSTATE* pState = PDMINS_2_DATA(pDevIns, E1KSTATE*); … … 5040 5040 * Validate configuration. 5041 5041 */ 5042 if (!CFGMR3AreValuesValid(pCfg Handle, "MAC\0" "CableConnected\0" "AdapterType\0" "LineSpeed\0"))5042 if (!CFGMR3AreValuesValid(pCfg, "MAC\0" "CableConnected\0" "AdapterType\0" "LineSpeed\0")) 5043 5043 return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES, 5044 5044 N_("Invalid configuration for E1000 device")); … … 5047 5047 5048 5048 /* Get config params */ 5049 rc = CFGMR3QueryBytes(pCfg Handle, "MAC", pState->macConfigured.au8,5049 rc = CFGMR3QueryBytes(pCfg, "MAC", pState->macConfigured.au8, 5050 5050 sizeof(pState->macConfigured.au8)); 5051 5051 if (RT_FAILURE(rc)) 5052 5052 return PDMDEV_SET_ERROR(pDevIns, rc, 5053 5053 N_("Configuration error: Failed to get MAC address")); 5054 rc = CFGMR3QueryBool(pCfg Handle, "CableConnected", &pState->fCableConnected);5054 rc = CFGMR3QueryBool(pCfg, "CableConnected", &pState->fCableConnected); 5055 5055 if (RT_FAILURE(rc)) 5056 5056 return PDMDEV_SET_ERROR(pDevIns, rc, 5057 5057 N_("Configuration error: Failed to get the value of 'CableConnected'")); 5058 rc = CFGMR3QueryU32(pCfg Handle, "AdapterType", (uint32_t*)&pState->eChip);5058 rc = CFGMR3QueryU32(pCfg, "AdapterType", (uint32_t*)&pState->eChip); 5059 5059 if (RT_FAILURE(rc)) 5060 5060 return PDMDEV_SET_ERROR(pDevIns, rc, -
trunk/src/VBox/Devices/Network/DevINIP.cpp
r26165 r26173 446 446 */ 447 447 static DECLCALLBACK(int) devINIPConstruct(PPDMDEVINS pDevIns, int iInstance, 448 PCFGMNODE pCfg Handle)448 PCFGMNODE pCfg) 449 449 { 450 450 PDEVINTNETIP pThis = PDMINS_2_DATA(pDevIns, PDEVINTNETIP); 451 451 int rc = VINF_SUCCESS; 452 LogFlow(("%s: pDevIns=%p iInstance=%d pCfg Handle=%p\n", __FUNCTION__,453 pDevIns, iInstance, pCfg Handle));452 LogFlow(("%s: pDevIns=%p iInstance=%d pCfg=%p\n", __FUNCTION__, 453 pDevIns, iInstance, pCfg)); 454 454 455 455 Assert(iInstance == 0); … … 459 459 * Validate the config. 460 460 */ 461 if (!CFGMR3AreValuesValid(pCfg Handle, "MAC\0IP\0Netmask\0Gateway\0"))461 if (!CFGMR3AreValuesValid(pCfg, "MAC\0IP\0Netmask\0Gateway\0")) 462 462 { 463 463 rc = PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES, … … 483 483 * Get the configuration settings. 484 484 */ 485 rc = CFGMR3QueryBytes(pCfg Handle, "MAC", &pThis->MAC, sizeof(pThis->MAC));485 rc = CFGMR3QueryBytes(pCfg, "MAC", &pThis->MAC, sizeof(pThis->MAC)); 486 486 if (rc == VERR_CFGM_NOT_BYTES) 487 487 { 488 488 char szMAC[64]; 489 rc = CFGMR3QueryString(pCfg Handle, "MAC", &szMAC[0], sizeof(szMAC));489 rc = CFGMR3QueryString(pCfg, "MAC", &szMAC[0], sizeof(szMAC)); 490 490 if (RT_SUCCESS(rc)) 491 491 { … … 520 520 goto out; 521 521 } 522 rc = CFGMR3QueryStringAlloc(pCfg Handle, "IP", &pThis->pszIP);522 rc = CFGMR3QueryStringAlloc(pCfg, "IP", &pThis->pszIP); 523 523 if (RT_FAILURE(rc)) 524 524 { … … 527 527 goto out; 528 528 } 529 rc = CFGMR3QueryStringAlloc(pCfg Handle, "Netmask", &pThis->pszNetmask);529 rc = CFGMR3QueryStringAlloc(pCfg, "Netmask", &pThis->pszNetmask); 530 530 if (RT_FAILURE(rc)) 531 531 { … … 534 534 goto out; 535 535 } 536 rc = CFGMR3QueryStringAlloc(pCfg Handle, "Gateway", &pThis->pszGateway);536 rc = CFGMR3QueryStringAlloc(pCfg, "Gateway", &pThis->pszGateway); 537 537 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 538 538 rc = VINF_SUCCESS; -
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r26165 r26173 4933 4933 * @interface_method_impl{PDMDEVREG,pfnConstruct} 4934 4934 */ 4935 static DECLCALLBACK(int) pcnetConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)4935 static DECLCALLBACK(int) pcnetConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 4936 4936 { 4937 4937 PCNetState *pThis = PDMINS_2_DATA(pDevIns, PCNetState *); … … 4957 4957 * Validate configuration. 4958 4958 */ 4959 if (!CFGMR3AreValuesValid(pCfg Handle, "MAC\0" "CableConnected\0" "Am79C973\0" "LineSpeed\0" "GCEnabled\0" "R0Enabled\0" "PrivIfEnabled\0"))4959 if (!CFGMR3AreValuesValid(pCfg, "MAC\0" "CableConnected\0" "Am79C973\0" "LineSpeed\0" "GCEnabled\0" "R0Enabled\0" "PrivIfEnabled\0")) 4960 4960 return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES, 4961 4961 N_("Invalid configuration for pcnet device")); … … 4964 4964 * Read the configuration. 4965 4965 */ 4966 rc = CFGMR3QueryBytes(pCfg Handle, "MAC", &pThis->MacConfigured, sizeof(pThis->MacConfigured));4966 rc = CFGMR3QueryBytes(pCfg, "MAC", &pThis->MacConfigured, sizeof(pThis->MacConfigured)); 4967 4967 if (RT_FAILURE(rc)) 4968 4968 return PDMDEV_SET_ERROR(pDevIns, rc, 4969 4969 N_("Configuration error: Failed to get the \"MAC\" value")); 4970 rc = CFGMR3QueryBoolDef(pCfg Handle, "CableConnected", &pThis->fLinkUp, true);4970 rc = CFGMR3QueryBoolDef(pCfg, "CableConnected", &pThis->fLinkUp, true); 4971 4971 if (RT_FAILURE(rc)) 4972 4972 return PDMDEV_SET_ERROR(pDevIns, rc, 4973 4973 N_("Configuration error: Failed to get the \"CableConnected\" value")); 4974 4974 4975 rc = CFGMR3QueryBoolDef(pCfg Handle, "Am79C973", &pThis->fAm79C973, false);4975 rc = CFGMR3QueryBoolDef(pCfg, "Am79C973", &pThis->fAm79C973, false); 4976 4976 if (RT_FAILURE(rc)) 4977 4977 return PDMDEV_SET_ERROR(pDevIns, rc, 4978 4978 N_("Configuration error: Failed to get the \"Am79C973\" value")); 4979 4979 4980 rc = CFGMR3QueryU32Def(pCfg Handle, "LineSpeed", &pThis->u32LinkSpeed, 1000000); /* 1GBit/s (in kbps units)*/4980 rc = CFGMR3QueryU32Def(pCfg, "LineSpeed", &pThis->u32LinkSpeed, 1000000); /* 1GBit/s (in kbps units)*/ 4981 4981 if (RT_FAILURE(rc)) 4982 4982 return PDMDEV_SET_ERROR(pDevIns, rc, … … 4984 4984 4985 4985 #ifdef PCNET_GC_ENABLED 4986 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &pThis->fGCEnabled, true);4986 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &pThis->fGCEnabled, true); 4987 4987 if (RT_FAILURE(rc)) 4988 4988 return PDMDEV_SET_ERROR(pDevIns, rc, 4989 4989 N_("Configuration error: Failed to get the \"GCEnabled\" value")); 4990 4990 4991 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &pThis->fR0Enabled, true);4991 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &pThis->fR0Enabled, true); 4992 4992 if (RT_FAILURE(rc)) 4993 4993 return PDMDEV_SET_ERROR(pDevIns, rc, … … 5066 5066 5067 5067 bool fPrivIfEnabled; 5068 rc = CFGMR3QueryBool(pCfg Handle, "PrivIfEnabled", &fPrivIfEnabled);5068 rc = CFGMR3QueryBool(pCfg, "PrivIfEnabled", &fPrivIfEnabled); 5069 5069 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 5070 5070 fPrivIfEnabled = true; -
trunk/src/VBox/Devices/Network/DevVirtioNet.cpp
r26160 r26173 1621 1621 * @interface_method_impl{PDMDEVREG,pfnConstruct} 1622 1622 */ 1623 static DECLCALLBACK(int) vnetConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)1623 static DECLCALLBACK(int) vnetConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 1624 1624 { 1625 1625 VNETSTATE* pState = PDMINS_2_DATA(pDevIns, VNETSTATE*); … … 1643 1643 * Validate configuration. 1644 1644 */ 1645 if (!CFGMR3AreValuesValid(pCfg Handle, "MAC\0" "CableConnected\0" "LineSpeed\0"))1645 if (!CFGMR3AreValuesValid(pCfg, "MAC\0" "CableConnected\0" "LineSpeed\0")) 1646 1646 return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES, 1647 1647 N_("Invalid configuration for VirtioNet device")); 1648 1648 1649 1649 /* Get config params */ 1650 rc = CFGMR3QueryBytes(pCfg Handle, "MAC", pState->macConfigured.au8,1650 rc = CFGMR3QueryBytes(pCfg, "MAC", pState->macConfigured.au8, 1651 1651 sizeof(pState->macConfigured)); 1652 1652 if (RT_FAILURE(rc)) 1653 1653 return PDMDEV_SET_ERROR(pDevIns, rc, 1654 1654 N_("Configuration error: Failed to get MAC address")); 1655 rc = CFGMR3QueryBool(pCfg Handle, "CableConnected", &pState->fCableConnected);1655 rc = CFGMR3QueryBool(pCfg, "CableConnected", &pState->fCableConnected); 1656 1656 if (RT_FAILURE(rc)) 1657 1657 return PDMDEV_SET_ERROR(pDevIns, rc, -
trunk/src/VBox/Devices/Network/DrvIntNet.cpp
r26166 r26173 808 808 * @copydoc FNPDMDRVCONSTRUCT 809 809 */ 810 static DECLCALLBACK(int) drvR3IntNetConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)810 static DECLCALLBACK(int) drvR3IntNetConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 811 811 { 812 812 PDRVINTNET pThis = PDMINS_2_DATA(pDrvIns, PDRVINTNET); … … 835 835 * Validate the config. 836 836 */ 837 if (!CFGMR3AreValuesValid(pCfg Handle,837 if (!CFGMR3AreValuesValid(pCfg, 838 838 "Network\0" 839 839 "Trunk\0" … … 884 884 * The name of the internal network to connect to. 885 885 */ 886 int rc = CFGMR3QueryString(pCfg Handle, "Network", OpenReq.szNetwork, sizeof(OpenReq.szNetwork));886 int rc = CFGMR3QueryString(pCfg, "Network", OpenReq.szNetwork, sizeof(OpenReq.szNetwork)); 887 887 if (RT_FAILURE(rc)) 888 888 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 894 894 */ 895 895 uint32_t u32TrunkType; 896 rc = CFGMR3QueryU32(pCfg Handle, "TrunkType", &u32TrunkType);896 rc = CFGMR3QueryU32(pCfg, "TrunkType", &u32TrunkType); 897 897 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 898 898 u32TrunkType = kIntNetTrunkType_None; … … 905 905 * The name of the trunk connection. 906 906 */ 907 rc = CFGMR3QueryString(pCfg Handle, "Trunk", OpenReq.szTrunk, sizeof(OpenReq.szTrunk));907 rc = CFGMR3QueryString(pCfg, "Trunk", OpenReq.szTrunk, sizeof(OpenReq.szTrunk)); 908 908 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 909 909 OpenReq.szTrunk[0] = '\0'; … … 917 917 */ 918 918 bool fRestrictAccess; 919 rc = CFGMR3QueryBool(pCfg Handle, "RestrictAccess", &fRestrictAccess);919 rc = CFGMR3QueryBool(pCfg, "RestrictAccess", &fRestrictAccess); 920 920 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 921 921 fRestrictAccess = true; … … 928 928 * When set all request for operating any interface or trunk in promiscuous 929 929 * mode will be ignored. */ 930 rc = CFGMR3QueryBoolDef(pCfg Handle, "IgnoreAllPromisc", &f, false);930 rc = CFGMR3QueryBoolDef(pCfg, "IgnoreAllPromisc", &f, false); 931 931 if (RT_FAILURE(rc)) 932 932 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 939 939 * mode will be ignored. This differs from IgnoreAllPromisc in that clients 940 940 * won't get VERR_INTNET_INCOMPATIBLE_FLAGS. */ 941 rc = CFGMR3QueryBoolDef(pCfg Handle, "QuietlyIgnoreAllPromisc", &f, false);941 rc = CFGMR3QueryBoolDef(pCfg, "QuietlyIgnoreAllPromisc", &f, false); 942 942 if (RT_FAILURE(rc)) 943 943 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 949 949 * When set all request for operating any non-trunk interface in promiscuous 950 950 * mode will be ignored. */ 951 rc = CFGMR3QueryBoolDef(pCfg Handle, "IgnoreClientPromisc", &f, false);951 rc = CFGMR3QueryBoolDef(pCfg, "IgnoreClientPromisc", &f, false); 952 952 if (RT_FAILURE(rc)) 953 953 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 960 960 * will be ignored. This differs from IgnoreClientPromisc in that clients won't 961 961 * get VERR_INTNET_INCOMPATIBLE_FLAGS. */ 962 rc = CFGMR3QueryBoolDef(pCfg Handle, "QuietlyIgnoreClientPromisc", &f, false);962 rc = CFGMR3QueryBoolDef(pCfg, "QuietlyIgnoreClientPromisc", &f, false); 963 963 if (RT_FAILURE(rc)) 964 964 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 970 970 * When set all request for operating the trunk-wire connection in promiscuous 971 971 * mode will be ignored. */ 972 rc = CFGMR3QueryBoolDef(pCfg Handle, "IgnoreTrunkWirePromisc", &f, false);972 rc = CFGMR3QueryBoolDef(pCfg, "IgnoreTrunkWirePromisc", &f, false); 973 973 if (RT_FAILURE(rc)) 974 974 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 981 981 * will be ignored. This differs from IgnoreTrunkWirePromisc in that clients 982 982 * won't get VERR_INTNET_INCOMPATIBLE_FLAGS. */ 983 rc = CFGMR3QueryBoolDef(pCfg Handle, "QuietlyIgnoreTrunkWirePromisc", &f, false);983 rc = CFGMR3QueryBoolDef(pCfg, "QuietlyIgnoreTrunkWirePromisc", &f, false); 984 984 if (RT_FAILURE(rc)) 985 985 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 991 991 * When set all request for operating the trunk-host connection in promiscuous 992 992 * mode will be ignored. */ 993 rc = CFGMR3QueryBoolDef(pCfg Handle, "IgnoreTrunkHostPromisc", &f, false);993 rc = CFGMR3QueryBoolDef(pCfg, "IgnoreTrunkHostPromisc", &f, false); 994 994 if (RT_FAILURE(rc)) 995 995 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 1002 1002 * will be ignored. This differs from IgnoreTrunkHostPromisc in that clients 1003 1003 * won't get VERR_INTNET_INCOMPATIBLE_FLAGS. */ 1004 rc = CFGMR3QueryBoolDef(pCfg Handle, "QuietlyIgnoreTrunkHostPromisc", &f, false);1004 rc = CFGMR3QueryBoolDef(pCfg, "QuietlyIgnoreTrunkHostPromisc", &f, false); 1005 1005 if (RT_FAILURE(rc)) 1006 1006 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 1018 1018 */ 1019 1019 bool fSharedMacOnWire; 1020 rc = CFGMR3QueryBoolDef(pCfg Handle, "SharedMacOnWire", &fSharedMacOnWire, false);1020 rc = CFGMR3QueryBoolDef(pCfg, "SharedMacOnWire", &fSharedMacOnWire, false); 1021 1021 if (RT_FAILURE(rc)) 1022 1022 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 1028 1028 * The size of the receive buffer. 1029 1029 */ 1030 rc = CFGMR3QueryU32(pCfg Handle, "ReceiveBufferSize", &OpenReq.cbRecv);1030 rc = CFGMR3QueryU32(pCfg, "ReceiveBufferSize", &OpenReq.cbRecv); 1031 1031 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1032 1032 OpenReq.cbRecv = 218 * _1K ; … … 1043 1043 * side of it and the code will get very upset about it all. 1044 1044 */ 1045 rc = CFGMR3QueryU32(pCfg Handle, "SendBufferSize", &OpenReq.cbSend);1045 rc = CFGMR3QueryU32(pCfg, "SendBufferSize", &OpenReq.cbSend); 1046 1046 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1047 1047 OpenReq.cbSend = 36*_1K; … … 1059 1059 * a service such as LWIP/iSCSI it shouldn't suspend immediately like for a NIC. 1060 1060 */ 1061 rc = CFGMR3QueryBool(pCfg Handle, "IsService", &pThis->fActivateEarlyDeactivateLate);1061 rc = CFGMR3QueryBool(pCfg, "IsService", &pThis->fActivateEarlyDeactivateLate); 1062 1062 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1063 1063 pThis->fActivateEarlyDeactivateLate = false; -
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r26166 r26173 863 863 * 864 864 * @returns VBox status code. 865 * @param pCfg Handle The driversconfiguration handle.866 */ 867 static int drvNATConstructRedir(unsigned iInstance, PDRVNAT pThis, PCFGMNODE pCfg Handle, RTIPV4ADDR Network)865 * @param pCfg The configuration handle. 866 */ 867 static int drvNATConstructRedir(unsigned iInstance, PDRVNAT pThis, PCFGMNODE pCfg, RTIPV4ADDR Network) 868 868 { 869 869 RTMAC Mac; … … 872 872 * Enumerate redirections. 873 873 */ 874 for (PCFGMNODE pNode = CFGMR3GetFirstChild(pCfg Handle); pNode; pNode = CFGMR3GetNextChild(pNode))874 for (PCFGMNODE pNode = CFGMR3GetFirstChild(pCfg); pNode; pNode = CFGMR3GetNextChild(pNode)) 875 875 { 876 876 /* … … 966 966 * @copydoc FNPDMDRVCONSTRUCT 967 967 */ 968 static DECLCALLBACK(int) drvNATConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)968 static DECLCALLBACK(int) drvNATConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 969 969 { 970 970 PDRVNAT pThis = PDMINS_2_DATA(pDrvIns, PDRVNAT); … … 975 975 * Validate the config. 976 976 */ 977 if (!CFGMR3AreValuesValid(pCfg Handle,977 if (!CFGMR3AreValuesValid(pCfg, 978 978 "PassDomain\0TFTPPrefix\0BootFile\0Network" 979 979 "\0NextServer\0DNSProxy\0BindIP\0UseHostResolver\0" … … 1006 1006 int rc; 1007 1007 bool fPassDomain = true; 1008 GET_BOOL(rc, pThis, pCfg Handle, "PassDomain", fPassDomain);1009 1010 GET_STRING_ALLOC(rc, pThis, pCfg Handle, "TFTPPrefix", pThis->pszTFTPPrefix);1011 GET_STRING_ALLOC(rc, pThis, pCfg Handle, "BootFile", pThis->pszBootFile);1012 GET_STRING_ALLOC(rc, pThis, pCfg Handle, "NextServer", pThis->pszNextServer);1008 GET_BOOL(rc, pThis, pCfg, "PassDomain", fPassDomain); 1009 1010 GET_STRING_ALLOC(rc, pThis, pCfg, "TFTPPrefix", pThis->pszTFTPPrefix); 1011 GET_STRING_ALLOC(rc, pThis, pCfg, "BootFile", pThis->pszBootFile); 1012 GET_STRING_ALLOC(rc, pThis, pCfg, "NextServer", pThis->pszNextServer); 1013 1013 1014 1014 int fDNSProxy = 0; 1015 GET_S32(rc, pThis, pCfg Handle, "DNSProxy", fDNSProxy);1015 GET_S32(rc, pThis, pCfg, "DNSProxy", fDNSProxy); 1016 1016 int fUseHostResolver = 0; 1017 GET_S32(rc, pThis, pCfg Handle, "UseHostResolver", fUseHostResolver);1017 GET_S32(rc, pThis, pCfg, "UseHostResolver", fUseHostResolver); 1018 1018 #ifdef VBOX_WITH_SLIRP_BSD_MBUF 1019 1019 int MTU = 1500; 1020 GET_S32(rc, pThis, pCfg Handle, "SlirpMTU", MTU);1020 GET_S32(rc, pThis, pCfg, "SlirpMTU", MTU); 1021 1021 #endif 1022 1022 … … 1037 1037 /* Generate a network address for this network card. */ 1038 1038 char szNetwork[32]; /* xxx.xxx.xxx.xxx/yy */ 1039 GET_STRING(rc, pThis, pCfg Handle, "Network", szNetwork[0], sizeof(szNetwork));1039 GET_STRING(rc, pThis, pCfg, "Network", szNetwork[0], sizeof(szNetwork)); 1040 1040 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1041 1041 RTStrPrintf(szNetwork, sizeof(szNetwork), "10.0.%d.0/24", pDrvIns->iInstance + 2); … … 1068 1068 #endif 1069 1069 char *pszBindIP = NULL; 1070 GET_STRING_ALLOC(rc, pThis, pCfg Handle, "BindIP", pszBindIP);1070 GET_STRING_ALLOC(rc, pThis, pCfg, "BindIP", pszBindIP); 1071 1071 rc = slirp_set_binding_address(pThis->pNATState, pszBindIP); 1072 1072 if (rc != 0) … … 1079 1079 { \ 1080 1080 int len = 0; \ 1081 rc = CFGMR3QueryS32(pCfg Handle, name, &len); \1081 rc = CFGMR3QueryS32(pCfg, name, &len); \ 1082 1082 if (RT_SUCCESS(rc)) \ 1083 1083 setter(pThis->pNATState, len); \ … … 1096 1096 #endif 1097 1097 1098 int rc2 = drvNATConstructRedir(pDrvIns->iInstance, pThis, pCfg Handle, Network);1098 int rc2 = drvNATConstructRedir(pDrvIns->iInstance, pThis, pCfg, Network); 1099 1099 if (RT_SUCCESS(rc2)) 1100 1100 { -
trunk/src/VBox/Devices/Network/DrvNetSniffer.cpp
r26166 r26173 350 350 * @copydoc FNPDMDRVCONSTRUCT 351 351 */ 352 static DECLCALLBACK(int) drvNetSnifferConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)352 static DECLCALLBACK(int) drvNetSnifferConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 353 353 { 354 354 PDRVNETSNIFFER pThis = PDMINS_2_DATA(pDrvIns, PDRVNETSNIFFER); … … 359 359 * Validate the config. 360 360 */ 361 if (!CFGMR3AreValuesValid(pCfg Handle, "File\0"))361 if (!CFGMR3AreValuesValid(pCfg, "File\0")) 362 362 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 363 363 364 if (CFGMR3GetFirstChild(pCfg Handle))364 if (CFGMR3GetFirstChild(pCfg)) 365 365 LogRel(("NetSniffer: Found child config entries -- are you trying to redirect ports?\n")); 366 366 … … 389 389 * Get the filename. 390 390 */ 391 int rc = CFGMR3QueryString(pCfg Handle, "File", pThis->szFilename, sizeof(pThis->szFilename));391 int rc = CFGMR3QueryString(pCfg, "File", pThis->szFilename, sizeof(pThis->szFilename)); 392 392 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 393 393 { -
trunk/src/VBox/Devices/Network/DrvTAP.cpp
r26166 r26173 879 879 * @copydoc FNPDMDRVCONSTRUCT 880 880 */ 881 static DECLCALLBACK(int) drvTAPConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)881 static DECLCALLBACK(int) drvTAPConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 882 882 { 883 883 PDRVTAP pThis = PDMINS_2_DATA(pDrvIns, PDRVTAP); … … 911 911 * Validate the config. 912 912 */ 913 if (!CFGMR3AreValuesValid(pCfg Handle, "Device\0InitProg\0TermProg\0FileHandle\0TAPSetupApplication\0TAPTerminateApplication\0MAC"))913 if (!CFGMR3AreValuesValid(pCfg, "Device\0InitProg\0TermProg\0FileHandle\0TAPSetupApplication\0TAPTerminateApplication\0MAC")) 914 914 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES, ""); 915 915 … … 934 934 int rc; 935 935 #if defined(RT_OS_SOLARIS) /** @todo Other platforms' TAP code should be moved here from ConsoleImpl & VBoxBFE. */ 936 rc = CFGMR3QueryStringAlloc(pCfg Handle, "TAPSetupApplication", &pThis->pszSetupApplication);936 rc = CFGMR3QueryStringAlloc(pCfg, "TAPSetupApplication", &pThis->pszSetupApplication); 937 937 if (RT_SUCCESS(rc)) 938 938 { … … 944 944 return PDMDRV_SET_ERROR(pDrvIns, rc, N_("Configuration error: failed to query \"TAPTerminateApplication\"")); 945 945 946 rc = CFGMR3QueryStringAlloc(pCfg Handle, "TAPTerminateApplication", &pThis->pszTerminateApplication);946 rc = CFGMR3QueryStringAlloc(pCfg, "TAPTerminateApplication", &pThis->pszTerminateApplication); 947 947 if (RT_SUCCESS(rc)) 948 948 { … … 955 955 956 956 # ifdef VBOX_WITH_CROSSBOW 957 rc = CFGMR3QueryBytes(pCfg Handle, "MAC", &pThis->MacAddress, sizeof(pThis->MacAddress));957 rc = CFGMR3QueryBytes(pCfg, "MAC", &pThis->MacAddress, sizeof(pThis->MacAddress)); 958 958 if (RT_FAILURE(rc)) 959 959 return PDMDRV_SET_ERROR(pDrvIns, rc, N_("Configuration error: Failed to query \"MAC\"")); 960 960 # endif 961 961 962 rc = CFGMR3QueryStringAlloc(pCfg Handle, "Device", &pThis->pszDeviceName);962 rc = CFGMR3QueryStringAlloc(pCfg, "Device", &pThis->pszDeviceName); 963 963 if (RT_FAILURE(rc)) 964 964 pThis->fStatic = false; … … 992 992 993 993 int32_t iFile; 994 rc = CFGMR3QueryS32(pCfg Handle, "FileHandle", &iFile);994 rc = CFGMR3QueryS32(pCfg, "FileHandle", &iFile); 995 995 if (RT_FAILURE(rc)) 996 996 return PDMDRV_SET_ERROR(pDrvIns, rc, -
trunk/src/VBox/Devices/PC/DevACPI.cpp
r26172 r26173 2228 2228 * @interface_method_impl{PDMDEVREG,pfnConstruct} 2229 2229 */ 2230 static DECLCALLBACK(int) acpiConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)2230 static DECLCALLBACK(int) acpiConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 2231 2231 { 2232 2232 ACPIState *s = PDMINS_2_DATA(pDevIns, ACPIState *); … … 2235 2235 2236 2236 /* Validate and read the configuration. */ 2237 if (!CFGMR3AreValuesValid(pCfg Handle,2237 if (!CFGMR3AreValuesValid(pCfg, 2238 2238 "RamSize\0" 2239 2239 "RamHoleSize\0" … … 2256 2256 2257 2257 /* query whether we are supposed to present an IOAPIC */ 2258 int rc = CFGMR3QueryU8Def(pCfg Handle, "IOAPIC", &s->u8UseIOApic, 1);2258 int rc = CFGMR3QueryU8Def(pCfg, "IOAPIC", &s->u8UseIOApic, 1); 2259 2259 if (RT_FAILURE(rc)) 2260 2260 return PDMDEV_SET_ERROR(pDevIns, rc, 2261 2261 N_("Configuration error: Failed to read \"IOAPIC\"")); 2262 2262 2263 rc = CFGMR3QueryU16Def(pCfg Handle, "NumCPUs", &s->cCpus, 1);2263 rc = CFGMR3QueryU16Def(pCfg, "NumCPUs", &s->cCpus, 1); 2264 2264 if (RT_FAILURE(rc)) 2265 2265 return PDMDEV_SET_ERROR(pDevIns, rc, … … 2267 2267 2268 2268 /* query whether we are supposed to present an FDC controller */ 2269 rc = CFGMR3QueryBoolDef(pCfg Handle, "FdcEnabled", &s->fUseFdc, true);2269 rc = CFGMR3QueryBoolDef(pCfg, "FdcEnabled", &s->fUseFdc, true); 2270 2270 if (RT_FAILURE(rc)) 2271 2271 return PDMDEV_SET_ERROR(pDevIns, rc, … … 2273 2273 2274 2274 /* query whether we are supposed to present HPET */ 2275 rc = CFGMR3QueryBoolDef(pCfg Handle, "HpetEnabled", &s->fUseHpet, false);2275 rc = CFGMR3QueryBoolDef(pCfg, "HpetEnabled", &s->fUseHpet, false); 2276 2276 if (RT_FAILURE(rc)) 2277 2277 return PDMDEV_SET_ERROR(pDevIns, rc, 2278 2278 N_("Configuration error: Failed to read \"HpetEnabled\"")); 2279 2279 /* query whether we are supposed to present SMC */ 2280 rc = CFGMR3QueryBoolDef(pCfg Handle, "SmcEnabled", &s->fUseSmc, false);2280 rc = CFGMR3QueryBoolDef(pCfg, "SmcEnabled", &s->fUseSmc, false); 2281 2281 if (RT_FAILURE(rc)) 2282 2282 return PDMDEV_SET_ERROR(pDevIns, rc, … … 2284 2284 2285 2285 /* query whether we are supposed to present RTC object */ 2286 rc = CFGMR3QueryBoolDef(pCfg Handle, "ShowRtc", &s->fShowRtc, false);2286 rc = CFGMR3QueryBoolDef(pCfg, "ShowRtc", &s->fShowRtc, false); 2287 2287 if (RT_FAILURE(rc)) 2288 2288 return PDMDEV_SET_ERROR(pDevIns, rc, … … 2290 2290 2291 2291 /* query whether we are supposed to present CPU objects */ 2292 rc = CFGMR3QueryBoolDef(pCfg Handle, "ShowCpu", &s->fShowCpu, false);2292 rc = CFGMR3QueryBoolDef(pCfg, "ShowCpu", &s->fShowCpu, false); 2293 2293 if (RT_FAILURE(rc)) 2294 2294 return PDMDEV_SET_ERROR(pDevIns, rc, … … 2296 2296 2297 2297 /* query whether we are allow CPU hot plugging */ 2298 rc = CFGMR3QueryBoolDef(pCfg Handle, "CpuHotPlug", &s->fCpuHotPlug, false);2298 rc = CFGMR3QueryBoolDef(pCfg, "CpuHotPlug", &s->fCpuHotPlug, false); 2299 2299 if (RT_FAILURE(rc)) 2300 2300 return PDMDEV_SET_ERROR(pDevIns, rc, 2301 2301 N_("Configuration error: Failed to read \"CpuHotPlug\"")); 2302 2302 2303 rc = CFGMR3QueryBool(pCfg Handle, "GCEnabled", &s->fGCEnabled);2303 rc = CFGMR3QueryBool(pCfg, "GCEnabled", &s->fGCEnabled); 2304 2304 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 2305 2305 s->fGCEnabled = true; … … 2308 2308 N_("Configuration error: Failed to read \"GCEnabled\"")); 2309 2309 2310 rc = CFGMR3QueryBool(pCfg Handle, "R0Enabled", &s->fR0Enabled);2310 rc = CFGMR3QueryBool(pCfg, "R0Enabled", &s->fR0Enabled); 2311 2311 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 2312 2312 s->fR0Enabled = true; -
trunk/src/VBox/Devices/PC/DevAPIC.cpp
r26169 r26173 2738 2738 * @copydoc FNPDMDEVCONSTRUCT 2739 2739 */ 2740 static DECLCALLBACK(int) apicConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)2740 static DECLCALLBACK(int) apicConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 2741 2741 { 2742 2742 PDMAPICREG ApicReg; … … 2757 2757 * Validate configuration. 2758 2758 */ 2759 if (!CFGMR3AreValuesValid(pCfg Handle,2759 if (!CFGMR3AreValuesValid(pCfg, 2760 2760 "IOAPIC\0" 2761 2761 "GCEnabled\0" … … 2764 2764 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 2765 2765 2766 rc = CFGMR3QueryBoolDef(pCfg Handle, "IOAPIC", &fIoApic, true);2766 rc = CFGMR3QueryBoolDef(pCfg, "IOAPIC", &fIoApic, true); 2767 2767 if (RT_FAILURE(rc)) 2768 2768 return PDMDEV_SET_ERROR(pDevIns, rc, 2769 2769 N_("Configuration error: Failed to read \"IOAPIC\"")); 2770 2770 2771 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &fGCEnabled, true);2771 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true); 2772 2772 if (RT_FAILURE(rc)) 2773 2773 return PDMDEV_SET_ERROR(pDevIns, rc, 2774 2774 N_("Configuration error: Failed to query boolean value \"GCEnabled\"")); 2775 2775 2776 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &fR0Enabled, true);2776 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &fR0Enabled, true); 2777 2777 if (RT_FAILURE(rc)) 2778 2778 return PDMDEV_SET_ERROR(pDevIns, rc, 2779 2779 N_("Configuration error: Failed to query boolean value \"R0Enabled\"")); 2780 2780 2781 rc = CFGMR3QueryU32Def(pCfg Handle, "NumCPUs", &cCpus, 1);2781 rc = CFGMR3QueryU32Def(pCfg, "NumCPUs", &cCpus, 1); 2782 2782 if (RT_FAILURE(rc)) 2783 2783 return PDMDEV_SET_ERROR(pDevIns, rc, … … 3207 3207 * @copydoc FNPDMDEVCONSTRUCT 3208 3208 */ 3209 static DECLCALLBACK(int) ioapicConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)3209 static DECLCALLBACK(int) ioapicConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 3210 3210 { 3211 3211 IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *); … … 3220 3220 * Validate and read the configuration. 3221 3221 */ 3222 if (!CFGMR3AreValuesValid(pCfg Handle, "GCEnabled\0" "R0Enabled\0"))3222 if (!CFGMR3AreValuesValid(pCfg, "GCEnabled\0" "R0Enabled\0")) 3223 3223 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 3224 3224 3225 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &fGCEnabled, true);3225 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true); 3226 3226 if (RT_FAILURE(rc)) 3227 3227 return PDMDEV_SET_ERROR(pDevIns, rc, 3228 3228 N_("Configuration error: Failed to query boolean value \"GCEnabled\"")); 3229 3229 3230 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &fR0Enabled, true);3230 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &fR0Enabled, true); 3231 3231 if (RT_FAILURE(rc)) 3232 3232 return PDMDEV_SET_ERROR(pDevIns, rc, -
trunk/src/VBox/Devices/PC/DevDMA.cpp
r26169 r26173 879 879 static DECLCALLBACK(int) dmaConstruct(PPDMDEVINS pDevIns, 880 880 int iInstance, 881 PCFGMNODE pCfg Handle)881 PCFGMNODE pCfg) 882 882 { 883 883 DMAState *s = PDMINS_2_DATA (pDevIns, DMAState *); … … 891 891 * Validate configuration. 892 892 */ 893 if (!CFGMR3AreValuesValid(pCfg Handle, "\0")) /* "HighPageEnable\0")) */893 if (!CFGMR3AreValuesValid(pCfg, "\0")) /* "HighPageEnable\0")) */ 894 894 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 895 895 896 896 #if 0 897 rc = CFGMR3QueryBool (pCfg Handle, "HighPageEnable", &high_page_enable);897 rc = CFGMR3QueryBool (pCfg, "HighPageEnable", &high_page_enable); 898 898 if (RT_FAILURE (rc)) { 899 899 return rc; -
trunk/src/VBox/Devices/PC/DevFwCommon.cpp
r25647 r26173 314 314 * @param pUuid Pointer to the UUID to use if the DmiUuid 315 315 * configuration string isn't present. 316 * @param pCfg HandleThe handle to our config node.316 * @param pCfg The handle to our config node. 317 317 * @param fPutSmbiosHeaders Plant SMBIOS headers if true. 318 318 */ 319 int FwCommonPlantDMITable(PPDMDEVINS pDevIns, uint8_t *pTable, unsigned cbMax, PCRTUUID pUuid, PCFGMNODE pCfg Handle, bool fPutSmbiosHeaders)319 int FwCommonPlantDMITable(PPDMDEVINS pDevIns, uint8_t *pTable, unsigned cbMax, PCRTUUID pUuid, PCFGMNODE pCfg, bool fPutSmbiosHeaders) 320 320 { 321 321 #define CHECKSIZE(cbWant) \ … … 340 340 else \ 341 341 { \ 342 rc = CFGMR3QueryStringDef(pCfg Handle, name, szBuf, sizeof(szBuf), default_value); \342 rc = CFGMR3QueryStringDef(pCfg, name, szBuf, sizeof(szBuf), default_value); \ 343 343 if (RT_FAILURE(rc)) \ 344 344 { \ … … 377 377 else \ 378 378 { \ 379 rc = CFGMR3QueryS32Def(pCfg Handle, # name, & variable, s_iDef ## name); \379 rc = CFGMR3QueryS32Def(pCfg, # name, & variable, s_iDef ## name); \ 380 380 if (RT_FAILURE(rc)) \ 381 381 { \ … … 421 421 else 422 422 { 423 rc = CFGMR3QueryString(pCfg Handle, "DmiSystemUuid", szDmiSystemUuid, sizeof(szDmiSystemUuid));423 rc = CFGMR3QueryString(pCfg, "DmiSystemUuid", szDmiSystemUuid, sizeof(szDmiSystemUuid)); 424 424 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 425 425 pszDmiSystemUuid = NULL; -
trunk/src/VBox/Devices/PC/DevFwCommon.h
r25058 r26173 32 32 33 33 /* Plant DMI table */ 34 int FwCommonPlantDMITable(PPDMDEVINS pDevIns, uint8_t *pTable, unsigned cbMax, PCRTUUID pUuid, PCFGMNODE pCfg Handle, bool fPutSmbiosHeaders);34 int FwCommonPlantDMITable(PPDMDEVINS pDevIns, uint8_t *pTable, unsigned cbMax, PCRTUUID pUuid, PCFGMNODE pCfg, bool fPutSmbiosHeaders); 35 35 36 36 /* Plant MPS table */ -
trunk/src/VBox/Devices/PC/DevPIC.cpp
r26169 r26173 899 899 * @copydoc FNPDMDEVCONSTRUCT 900 900 */ 901 static DECLCALLBACK(int) picConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)901 static DECLCALLBACK(int) picConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 902 902 { 903 903 PDEVPIC pThis = PDMINS_2_DATA(pDevIns, PDEVPIC); … … 911 911 * Validate and read configuration. 912 912 */ 913 if (!CFGMR3AreValuesValid(pCfg Handle, "GCEnabled\0" "R0Enabled\0"))913 if (!CFGMR3AreValuesValid(pCfg, "GCEnabled\0" "R0Enabled\0")) 914 914 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 915 915 916 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &fGCEnabled, true);916 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true); 917 917 if (RT_FAILURE(rc)) 918 918 return PDMDEV_SET_ERROR(pDevIns, rc, 919 919 N_("Configuration error: failed to read GCEnabled as boolean")); 920 920 921 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &fR0Enabled, true);921 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &fR0Enabled, true); 922 922 if (RT_FAILURE(rc)) 923 923 return PDMDEV_SET_ERROR(pDevIns, rc, -
trunk/src/VBox/Devices/PC/DevPcArch.c
r26169 r26173 217 217 * @interface_method_impl{PDMDEVREG,pfnConstruct} 218 218 */ 219 static DECLCALLBACK(int) pcarchConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)219 static DECLCALLBACK(int) pcarchConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 220 220 { 221 221 PDEVPCARCH pThis = PDMINS_2_DATA(pDevIns, PDEVPCARCH); … … 226 226 * Validate configuration. 227 227 */ 228 if (!CFGMR3AreValuesValid(pCfg Handle, "\0"))228 if (!CFGMR3AreValuesValid(pCfg, "\0")) 229 229 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 230 230 -
trunk/src/VBox/Devices/PC/DevPcBios.cpp
r26165 r26173 834 834 * 835 835 * @returns VBox status code. 836 * @param pCfg HandleConfiguration handle.836 * @param pCfg Configuration handle. 837 837 * @param pszParam The name of the value to read. 838 838 * @param penmBoot Where to store the boot method. 839 839 */ 840 static int pcbiosBootFromCfg(PPDMDEVINS pDevIns, PCFGMNODE pCfg Handle, const char *pszParam, DEVPCBIOSBOOT *penmBoot)840 static int pcbiosBootFromCfg(PPDMDEVINS pDevIns, PCFGMNODE pCfg, const char *pszParam, DEVPCBIOSBOOT *penmBoot) 841 841 { 842 842 char *psz; 843 int rc = CFGMR3QueryStringAlloc(pCfg Handle, pszParam, &psz);843 int rc = CFGMR3QueryStringAlloc(pCfg, pszParam, &psz); 844 844 if (RT_FAILURE(rc)) 845 845 return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS, … … 870 870 * @interface_method_impl{PDMDEVREG,pfnConstruct} 871 871 */ 872 static DECLCALLBACK(int) pcbiosConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)872 static DECLCALLBACK(int) pcbiosConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 873 873 { 874 874 unsigned i; … … 883 883 * Validate configuration. 884 884 */ 885 if (!CFGMR3AreValuesValid(pCfg Handle,885 if (!CFGMR3AreValuesValid(pCfg, 886 886 "BootDevice0\0" 887 887 "BootDevice1\0" … … 932 932 * Init the data. 933 933 */ 934 rc = CFGMR3QueryU64(pCfg Handle, "RamSize", &pThis->cbRam);934 rc = CFGMR3QueryU64(pCfg, "RamSize", &pThis->cbRam); 935 935 if (RT_FAILURE(rc)) 936 936 return PDMDEV_SET_ERROR(pDevIns, rc, 937 937 N_("Configuration error: Querying \"RamSize\" as integer failed")); 938 938 939 rc = CFGMR3QueryU32Def(pCfg Handle, "RamHoleSize", &pThis->cbRamHole, MM_RAM_HOLE_SIZE_DEFAULT);939 rc = CFGMR3QueryU32Def(pCfg, "RamHoleSize", &pThis->cbRamHole, MM_RAM_HOLE_SIZE_DEFAULT); 940 940 if (RT_FAILURE(rc)) 941 941 return PDMDEV_SET_ERROR(pDevIns, rc, 942 942 N_("Configuration error: Querying \"RamHoleSize\" as integer failed")); 943 943 944 rc = CFGMR3QueryU16Def(pCfg Handle, "NumCPUs", &pThis->cCpus, 1);944 rc = CFGMR3QueryU16Def(pCfg, "NumCPUs", &pThis->cCpus, 1); 945 945 if (RT_FAILURE(rc)) 946 946 return PDMDEV_SET_ERROR(pDevIns, rc, … … 949 949 LogRel(("[SMP] BIOS with %u CPUs\n", pThis->cCpus)); 950 950 951 rc = CFGMR3QueryU8Def(pCfg Handle, "IOAPIC", &pThis->u8IOAPIC, 1);951 rc = CFGMR3QueryU8Def(pCfg, "IOAPIC", &pThis->u8IOAPIC, 1); 952 952 if (RT_FAILURE (rc)) 953 953 return PDMDEV_SET_ERROR(pDevIns, rc, … … 958 958 for (i = 0; i < RT_ELEMENTS(pThis->aenmBootDevice); i++) 959 959 { 960 rc = pcbiosBootFromCfg(pDevIns, pCfg Handle, s_apszBootDevices[i], &pThis->aenmBootDevice[i]);960 rc = pcbiosBootFromCfg(pDevIns, pCfg, s_apszBootDevices[i], &pThis->aenmBootDevice[i]); 961 961 if (RT_FAILURE(rc)) 962 962 return rc; 963 963 } 964 964 965 rc = CFGMR3QueryStringAlloc(pCfg Handle, "HardDiskDevice", &pThis->pszHDDevice);965 rc = CFGMR3QueryStringAlloc(pCfg, "HardDiskDevice", &pThis->pszHDDevice); 966 966 if (RT_FAILURE(rc)) 967 967 return PDMDEV_SET_ERROR(pDevIns, rc, 968 968 N_("Configuration error: Querying \"HardDiskDevice\" as a string failed")); 969 969 970 rc = CFGMR3QueryStringAlloc(pCfg Handle, "FloppyDevice", &pThis->pszFDDevice);970 rc = CFGMR3QueryStringAlloc(pCfg, "FloppyDevice", &pThis->pszFDDevice); 971 971 if (RT_FAILURE(rc)) 972 972 return PDMDEV_SET_ERROR(pDevIns, rc, 973 973 N_("Configuration error: Querying \"FloppyDevice\" as a string failed")); 974 974 975 rc = CFGMR3QueryStringAlloc(pCfg Handle, "SataHardDiskDevice", &pThis->pszSataDevice);975 rc = CFGMR3QueryStringAlloc(pCfg, "SataHardDiskDevice", &pThis->pszSataDevice); 976 976 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 977 977 pThis->pszSataDevice = NULL; … … 987 987 for (i = 0; i < RT_ELEMENTS(pThis->iSataHDLUN); i++) 988 988 { 989 rc = CFGMR3QueryU32(pCfg Handle, s_apszSataDisks[i], &pThis->iSataHDLUN[i]);989 rc = CFGMR3QueryU32(pCfg, s_apszSataDisks[i], &pThis->iSataHDLUN[i]); 990 990 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 991 991 pThis->iSataHDLUN[i] = i; … … 1011 1011 */ 1012 1012 RTUUID uuid; 1013 rc = CFGMR3QueryBytes(pCfg Handle, "UUID", &uuid, sizeof(uuid));1013 rc = CFGMR3QueryBytes(pCfg, "UUID", &uuid, sizeof(uuid)); 1014 1014 if (RT_FAILURE(rc)) 1015 1015 return PDMDEV_SET_ERROR(pDevIns, rc, … … 1021 1021 uuid.Gen.u16TimeMid = RT_H2BE_U16(uuid.Gen.u16TimeMid); 1022 1022 uuid.Gen.u16TimeHiAndVersion = RT_H2BE_U16(uuid.Gen.u16TimeHiAndVersion); 1023 rc = FwCommonPlantDMITable(pDevIns, pThis->au8DMIPage, VBOX_DMI_TABLE_SIZE, &uuid, pCfg Handle, false /*fPutSmbiosHeaders*/);1023 rc = FwCommonPlantDMITable(pDevIns, pThis->au8DMIPage, VBOX_DMI_TABLE_SIZE, &uuid, pCfg, false /*fPutSmbiosHeaders*/); 1024 1024 if (RT_FAILURE(rc)) 1025 1025 return rc; … … 1035 1035 * Read the PXE debug logging option. 1036 1036 */ 1037 rc = CFGMR3QueryU8Def(pCfg Handle, "PXEDebug", &pThis->u8PXEDebug, false);1037 rc = CFGMR3QueryU8Def(pCfg, "PXEDebug", &pThis->u8PXEDebug, false); 1038 1038 if (RT_FAILURE(rc)) 1039 1039 return PDMDEV_SET_ERROR(pDevIns, rc, … … 1043 1043 * Get the system BIOS ROM file name. 1044 1044 */ 1045 rc = CFGMR3QueryStringAlloc(pCfg Handle, "BiosRom", &pThis->pszPcBiosFile);1045 rc = CFGMR3QueryStringAlloc(pCfg, "BiosRom", &pThis->pszPcBiosFile); 1046 1046 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1047 1047 { … … 1177 1177 * Get the LAN boot ROM file name. 1178 1178 */ 1179 rc = CFGMR3QueryStringAlloc(pCfg Handle, "LanBootRom", &pThis->pszLanBootFile);1179 rc = CFGMR3QueryStringAlloc(pCfg, "LanBootRom", &pThis->pszLanBootFile); 1180 1180 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1181 1181 { … … 1291 1291 } 1292 1292 1293 rc = CFGMR3QueryU8Def(pCfg Handle, "DelayBoot", &pThis->uBootDelay, 0);1293 rc = CFGMR3QueryU8Def(pCfg, "DelayBoot", &pThis->uBootDelay, 0); 1294 1294 if (RT_FAILURE(rc)) 1295 1295 return PDMDEV_SET_ERROR(pDevIns, rc, -
trunk/src/VBox/Devices/PC/DevPit-i8254.cpp
r26165 r26173 969 969 * @interface_method_impl{PDMDEVREG,pfnConstruct} 970 970 */ 971 static DECLCALLBACK(int) pitConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)971 static DECLCALLBACK(int) pitConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 972 972 { 973 973 PITState *pThis = PDMINS_2_DATA(pDevIns, PITState *); … … 984 984 * Validate configuration. 985 985 */ 986 if (!CFGMR3AreValuesValid(pCfg Handle, "Irq\0" "Base\0" "SpeakerEnabled\0" "GCEnabled\0" "R0Enabled\0"))986 if (!CFGMR3AreValuesValid(pCfg, "Irq\0" "Base\0" "SpeakerEnabled\0" "GCEnabled\0" "R0Enabled\0")) 987 987 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 988 988 … … 990 990 * Init the data. 991 991 */ 992 rc = CFGMR3QueryU8Def(pCfg Handle, "Irq", &u8Irq, 0);992 rc = CFGMR3QueryU8Def(pCfg, "Irq", &u8Irq, 0); 993 993 if (RT_FAILURE(rc)) 994 994 return PDMDEV_SET_ERROR(pDevIns, rc, 995 995 N_("Configuration error: Querying \"Irq\" as a uint8_t failed")); 996 996 997 rc = CFGMR3QueryU16Def(pCfg Handle, "Base", &u16Base, 0x40);997 rc = CFGMR3QueryU16Def(pCfg, "Base", &u16Base, 0x40); 998 998 if (RT_FAILURE(rc)) 999 999 return PDMDEV_SET_ERROR(pDevIns, rc, 1000 1000 N_("Configuration error: Querying \"Base\" as a uint16_t failed")); 1001 1001 1002 rc = CFGMR3QueryBoolDef(pCfg Handle, "SpeakerEnabled", &fSpeaker, true);1002 rc = CFGMR3QueryBoolDef(pCfg, "SpeakerEnabled", &fSpeaker, true); 1003 1003 if (RT_FAILURE(rc)) 1004 1004 return PDMDEV_SET_ERROR(pDevIns, rc, 1005 1005 N_("Configuration error: Querying \"SpeakerEnabled\" as a bool failed")); 1006 1006 1007 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &fGCEnabled, true);1007 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true); 1008 1008 if (RT_FAILURE(rc)) 1009 1009 return PDMDEV_SET_ERROR(pDevIns, rc, 1010 1010 N_("Configuration error: Querying \"GCEnabled\" as a bool failed")); 1011 1011 1012 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &fR0Enabled, true);1012 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &fR0Enabled, true); 1013 1013 if (RT_FAILURE(rc)) 1014 1014 return PDMDEV_SET_ERROR(pDevIns, rc, -
trunk/src/VBox/Devices/PC/DevRTC.cpp
r26169 r26173 850 850 * @interface_method_impl{PDMDEVREG,pfnConstruct} 851 851 */ 852 static DECLCALLBACK(int) rtcConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)852 static DECLCALLBACK(int) rtcConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 853 853 { 854 854 RTCState *pThis = PDMINS_2_DATA(pDevIns, RTCState *); … … 859 859 * Validate configuration. 860 860 */ 861 if (!CFGMR3AreValuesValid(pCfg Handle,861 if (!CFGMR3AreValuesValid(pCfg, 862 862 "Irq\0" 863 863 "Base\0" … … 871 871 */ 872 872 uint8_t u8Irq; 873 rc = CFGMR3QueryU8Def(pCfg Handle, "Irq", &u8Irq, 8);873 rc = CFGMR3QueryU8Def(pCfg, "Irq", &u8Irq, 8); 874 874 if (RT_FAILURE(rc)) 875 875 return PDMDEV_SET_ERROR(pDevIns, rc, … … 877 877 pThis->irq = u8Irq; 878 878 879 rc = CFGMR3QueryPortDef(pCfg Handle, "Base", &pThis->IOPortBase, 0x70);879 rc = CFGMR3QueryPortDef(pCfg, "Base", &pThis->IOPortBase, 0x70); 880 880 if (RT_FAILURE(rc)) 881 881 return PDMDEV_SET_ERROR(pDevIns, rc, 882 882 N_("Configuration error: Querying \"Base\" as a RTIOPORT failed")); 883 883 884 rc = CFGMR3QueryBoolDef(pCfg Handle, "UseUTC", &pThis->fUTC, false);884 rc = CFGMR3QueryBoolDef(pCfg, "UseUTC", &pThis->fUTC, false); 885 885 if (RT_FAILURE(rc)) 886 886 return PDMDEV_SET_ERROR(pDevIns, rc, … … 888 888 889 889 bool fGCEnabled; 890 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &fGCEnabled, true);890 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true); 891 891 if (RT_FAILURE(rc)) 892 892 return PDMDEV_SET_ERROR(pDevIns, rc, … … 894 894 895 895 bool fR0Enabled; 896 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &fR0Enabled, true);896 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &fR0Enabled, true); 897 897 if (RT_FAILURE(rc)) 898 898 return PDMDEV_SET_ERROR(pDevIns, rc, -
trunk/src/VBox/Devices/PC/DrvACPI.cpp
r26166 r26173 720 720 * @copydoc FNPDMDRVCONSTRUCT 721 721 */ 722 static DECLCALLBACK(int) drvACPIConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)722 static DECLCALLBACK(int) drvACPIConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 723 723 { 724 724 PDRVACPI pThis = PDMINS_2_DATA(pDrvIns, PDRVACPI); … … 738 738 * Validate the config. 739 739 */ 740 if (!CFGMR3AreValuesValid(pCfg Handle, "\0"))740 if (!CFGMR3AreValuesValid(pCfg, "\0")) 741 741 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 742 742 -
trunk/src/VBox/Devices/PC/DrvAcpiCpu.cpp
r26166 r26173 63 63 * @copydoc FNPDMDRVCONSTRUCT 64 64 */ 65 static DECLCALLBACK(int) drvACPICpuConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)65 static DECLCALLBACK(int) drvACPICpuConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 66 66 { 67 67 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); … … 76 76 * Validate the config. 77 77 */ 78 if (!CFGMR3AreValuesValid(pCfg Handle, "\0"))78 if (!CFGMR3AreValuesValid(pCfg, "\0")) 79 79 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 80 80 -
trunk/src/VBox/Devices/Parallel/DevParallel.cpp
r26165 r26173 687 687 static DECLCALLBACK(int) parallelConstruct(PPDMDEVINS pDevIns, 688 688 int iInstance, 689 PCFGMNODE pCfg Handle)689 PCFGMNODE pCfg) 690 690 { 691 691 int rc; … … 718 718 * Validate and read the configuration. 719 719 */ 720 if (!CFGMR3AreValuesValid(pCfg Handle, "IRQ\0" "IOBase\0" "GCEnabled\0" "R0Enabled\0"))720 if (!CFGMR3AreValuesValid(pCfg, "IRQ\0" "IOBase\0" "GCEnabled\0" "R0Enabled\0")) 721 721 return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES, 722 722 N_("Configuration error: Unknown config key")); 723 723 724 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &pThis->fGCEnabled, true);724 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &pThis->fGCEnabled, true); 725 725 if (RT_FAILURE(rc)) 726 726 return PDMDEV_SET_ERROR(pDevIns, rc, 727 727 N_("Configuration error: Failed to get the \"GCEnabled\" value")); 728 728 729 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &pThis->fR0Enabled, true);729 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &pThis->fR0Enabled, true); 730 730 if (RT_FAILURE(rc)) 731 731 return PDMDEV_SET_ERROR(pDevIns, rc, … … 733 733 734 734 uint8_t irq_lvl; 735 rc = CFGMR3QueryU8Def(pCfg Handle, "IRQ", &irq_lvl, 7);735 rc = CFGMR3QueryU8Def(pCfg, "IRQ", &irq_lvl, 7); 736 736 if (RT_FAILURE(rc)) 737 737 return PDMDEV_SET_ERROR(pDevIns, rc, … … 739 739 740 740 uint16_t io_base; 741 rc = CFGMR3QueryU16Def(pCfg Handle, "IOBase", &io_base, 0x378);741 rc = CFGMR3QueryU16Def(pCfg, "IOBase", &io_base, 0x378); 742 742 if (RT_FAILURE(rc)) 743 743 return PDMDEV_SET_ERROR(pDevIns, rc, -
trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp
r26166 r26173 289 289 * @copydoc FNPDMDRVCONSTRUCT 290 290 */ 291 static DECLCALLBACK(int) drvHostParallelConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)291 static DECLCALLBACK(int) drvHostParallelConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 292 292 { 293 293 PDRVHOSTPARALLEL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL); … … 298 298 * Validate the config. 299 299 */ 300 if (!CFGMR3AreValuesValid(pCfg Handle, "DevicePath\0"))300 if (!CFGMR3AreValuesValid(pCfg, "DevicePath\0")) 301 301 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES, 302 302 N_("Unknown host parallel configuration option, only supports DevicePath")); … … 320 320 */ 321 321 /* Device */ 322 int rc = CFGMR3QueryStringAlloc(pCfg Handle, "DevicePath", &pThis->pszDevicePath);322 int rc = CFGMR3QueryStringAlloc(pCfg, "DevicePath", &pThis->pszDevicePath); 323 323 if (RT_FAILURE(rc)) 324 324 { -
trunk/src/VBox/Devices/Samples/VBoxSampleDevice.cpp
r26169 r26173 64 64 65 65 66 static DECLCALLBACK(int) devSampleConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)66 static DECLCALLBACK(int) devSampleConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 67 67 { 68 68 /* … … 81 81 * Validate and read the configuration. 82 82 */ 83 if (!CFGMR3AreValuesValid(pCfg Handle,83 if (!CFGMR3AreValuesValid(pCfg, 84 84 "Whatever1\0" 85 85 "Whatever2\0")) -
trunk/src/VBox/Devices/Serial/DevSerial.cpp
r26165 r26173 770 770 static DECLCALLBACK(int) serialConstruct(PPDMDEVINS pDevIns, 771 771 int iInstance, 772 PCFGMNODE pCfg Handle)772 PCFGMNODE pCfg) 773 773 { 774 774 int rc; … … 818 818 * Validate and read the configuration. 819 819 */ 820 if (!CFGMR3AreValuesValid(pCfg Handle, "IRQ\0" "IOBase\0" "GCEnabled\0" "R0Enabled\0" "YieldOnLSRRead\0"))820 if (!CFGMR3AreValuesValid(pCfg, "IRQ\0" "IOBase\0" "GCEnabled\0" "R0Enabled\0" "YieldOnLSRRead\0")) 821 821 { 822 822 AssertMsgFailed(("serialConstruct Invalid configuration values\n")); … … 824 824 } 825 825 826 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &pThis->fGCEnabled, true);826 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &pThis->fGCEnabled, true); 827 827 if (RT_FAILURE(rc)) 828 828 return PDMDEV_SET_ERROR(pDevIns, rc, 829 829 N_("Configuration error: Failed to get the \"GCEnabled\" value")); 830 830 831 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &pThis->fR0Enabled, true);831 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &pThis->fR0Enabled, true); 832 832 if (RT_FAILURE(rc)) 833 833 return PDMDEV_SET_ERROR(pDevIns, rc, 834 834 N_("Configuration error: Failed to get the \"R0Enabled\" value")); 835 835 836 rc = CFGMR3QueryBoolDef(pCfg Handle, "YieldOnLSRRead", &pThis->fYieldOnLSRRead, false);836 rc = CFGMR3QueryBoolDef(pCfg, "YieldOnLSRRead", &pThis->fYieldOnLSRRead, false); 837 837 if (RT_FAILURE(rc)) 838 838 return PDMDEV_SET_ERROR(pDevIns, rc, 839 839 N_("Configuration error: Failed to get the \"YieldOnLSRRead\" value")); 840 840 841 rc = CFGMR3QueryU8(pCfg Handle, "IRQ", &irq_lvl);841 rc = CFGMR3QueryU8(pCfg, "IRQ", &irq_lvl); 842 842 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 843 843 { … … 854 854 N_("Configuration error: Failed to get the \"IRQ\" value")); 855 855 856 rc = CFGMR3QueryU16(pCfg Handle, "IOBase", &io_base);856 rc = CFGMR3QueryU16(pCfg, "IOBase", &io_base); 857 857 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 858 858 { -
trunk/src/VBox/Devices/Serial/DrvChar.cpp
r26166 r26173 341 341 * @copydoc FNPDMDRVCONSTRUCT 342 342 */ 343 static DECLCALLBACK(int) drvCharConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)343 static DECLCALLBACK(int) drvCharConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 344 344 { 345 345 PDRVCHAR pThis = PDMINS_2_DATA(pDrvIns, PDRVCHAR); -
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r26166 r26173 1269 1269 * @copydoc FNPDMDRVCONSTRUCT 1270 1270 */ 1271 static DECLCALLBACK(int) drvHostSerialConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)1271 static DECLCALLBACK(int) drvHostSerialConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 1272 1272 { 1273 1273 PDRVHOSTSERIAL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTSERIAL); … … 1300 1300 */ 1301 1301 /* Device */ 1302 int rc = CFGMR3QueryStringAlloc(pCfg Handle, "DevicePath", &pThis->pszDevicePath);1302 int rc = CFGMR3QueryStringAlloc(pCfg, "DevicePath", &pThis->pszDevicePath); 1303 1303 if (RT_FAILURE(rc)) 1304 1304 { -
trunk/src/VBox/Devices/Serial/DrvNamedPipe.cpp
r26166 r26173 466 466 * @copydoc FNPDMDRVCONSTRUCT 467 467 */ 468 static DECLCALLBACK(int) drvNamedPipeConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)468 static DECLCALLBACK(int) drvNamedPipeConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 469 469 { 470 470 int rc; … … 496 496 * Read the configuration. 497 497 */ 498 if (!CFGMR3AreValuesValid(pCfg Handle, "Location\0IsServer\0"))498 if (!CFGMR3AreValuesValid(pCfg, "Location\0IsServer\0")) 499 499 { 500 500 rc = VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; … … 502 502 } 503 503 504 rc = CFGMR3QueryStringAlloc(pCfg Handle, "Location", &pszLocation);504 rc = CFGMR3QueryStringAlloc(pCfg, "Location", &pszLocation); 505 505 if (RT_FAILURE(rc)) 506 506 { … … 511 511 512 512 bool fIsServer; 513 rc = CFGMR3QueryBool(pCfg Handle, "IsServer", &fIsServer);513 rc = CFGMR3QueryBool(pCfg, "IsServer", &fIsServer); 514 514 if (RT_FAILURE(rc)) 515 515 { -
trunk/src/VBox/Devices/Serial/DrvRawFile.cpp
r26166 r26173 163 163 * @copydoc FNPDMDRVCONSTRUCT 164 164 */ 165 static DECLCALLBACK(int) drvRawFileConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)165 static DECLCALLBACK(int) drvRawFileConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 166 166 { 167 167 PDRVRAWFILE pThis = PDMINS_2_DATA(pDrvIns, PDRVRAWFILE); … … 182 182 * Read the configuration. 183 183 */ 184 if (!CFGMR3AreValuesValid(pCfg Handle, "Location\0"))184 if (!CFGMR3AreValuesValid(pCfg, "Location\0")) 185 185 AssertFailedReturn(VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES); 186 186 187 int rc = CFGMR3QueryStringAlloc(pCfg Handle, "Location", &pThis->pszLocation);187 int rc = CFGMR3QueryStringAlloc(pCfg, "Location", &pThis->pszLocation); 188 188 if (RT_FAILURE(rc)) 189 189 AssertMsgFailedReturn(("Configuration error: query \"Location\" resulted in %Rrc.\n", rc), rc); -
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r26172 r26173 6461 6461 * @interface_method_impl{PDMDEVREG,pfnConstruct} 6462 6462 */ 6463 static DECLCALLBACK(int) ahciR3Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)6463 static DECLCALLBACK(int) ahciR3Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 6464 6464 { 6465 6465 PAHCI pThis = PDMINS_2_DATA(pDevIns, PAHCI); … … 6475 6475 * Validate and read configuration. 6476 6476 */ 6477 if (!CFGMR3AreValuesValid(pCfg Handle, "GCEnabled\0"6477 if (!CFGMR3AreValuesValid(pCfg, "GCEnabled\0" 6478 6478 "R0Enabled\0" 6479 6479 "PrimaryMaster\0" … … 6488 6488 N_("AHCI configuration error: unknown option specified")); 6489 6489 6490 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &fGCEnabled, true);6490 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true); 6491 6491 if (RT_FAILURE(rc)) 6492 6492 return PDMDEV_SET_ERROR(pDevIns, rc, … … 6494 6494 Log(("%s: fGCEnabled=%d\n", __FUNCTION__, fGCEnabled)); 6495 6495 6496 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &fR0Enabled, true);6496 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &fR0Enabled, true); 6497 6497 if (RT_FAILURE(rc)) 6498 6498 return PDMDEV_SET_ERROR(pDevIns, rc, … … 6500 6500 Log(("%s: fR0Enabled=%d\n", __FUNCTION__, fR0Enabled)); 6501 6501 6502 rc = CFGMR3QueryU32Def(pCfg Handle, "PortCount", &pThis->cPortsImpl, AHCI_MAX_NR_PORTS_IMPL);6502 rc = CFGMR3QueryU32Def(pCfg, "PortCount", &pThis->cPortsImpl, AHCI_MAX_NR_PORTS_IMPL); 6503 6503 if (RT_FAILURE(rc)) 6504 6504 return PDMDEV_SET_ERROR(pDevIns, rc, … … 6514 6514 pThis->cPortsImpl); 6515 6515 6516 rc = CFGMR3QueryBoolDef(pCfg Handle, "UseAsyncInterfaceIfAvailable", &pThis->fUseAsyncInterfaceIfAvailable, true);6516 rc = CFGMR3QueryBoolDef(pCfg, "UseAsyncInterfaceIfAvailable", &pThis->fUseAsyncInterfaceIfAvailable, true); 6517 6517 if (RT_FAILURE(rc)) 6518 6518 return PDMDEV_SET_ERROR(pDevIns, rc, 6519 6519 N_("AHCI configuration error: failed to read UseAsyncInterfaceIfAvailable as boolean")); 6520 rc = CFGMR3QueryU32Def(pCfg Handle, "HighIOThreshold", &pThis->cHighIOThreshold, ~0);6520 rc = CFGMR3QueryU32Def(pCfg, "HighIOThreshold", &pThis->cHighIOThreshold, ~0); 6521 6521 if (RT_FAILURE(rc)) 6522 6522 return PDMDEV_SET_ERROR(pDevIns, rc, 6523 6523 N_("AHCI configuration error: failed to read HighIOThreshold as integer")); 6524 rc = CFGMR3QueryU32Def(pCfg Handle, "MillisToSleep", &pThis->cMillisToSleep, 0);6524 rc = CFGMR3QueryU32Def(pCfg, "MillisToSleep", &pThis->cMillisToSleep, 0); 6525 6525 if (RT_FAILURE(rc)) 6526 6526 return PDMDEV_SET_ERROR(pDevIns, rc, … … 6732 6732 6733 6733 /* Get user config if present using defaults otherwise. */ 6734 PCFGMNODE pCfgNode = CFGMR3GetChild(pCfg Handle, szName);6734 PCFGMNODE pCfgNode = CFGMR3GetChild(pCfg, szName); 6735 6735 rc = CFGMR3QueryStringDef(pCfgNode, "SerialNumber", pAhciPort->szSerialNumber, sizeof(pAhciPort->szSerialNumber), 6736 6736 szSerial); … … 6886 6886 }; 6887 6887 6888 rc = CFGMR3QueryU32Def(pCfg Handle, s_apszDescs[i][0], &iPortMaster, 2 * i);6888 rc = CFGMR3QueryU32Def(pCfg, s_apszDescs[i][0], &iPortMaster, 2 * i); 6889 6889 if (RT_FAILURE(rc)) 6890 6890 return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS, 6891 6891 N_("AHCI configuration error: failed to read %s as U32"), s_apszDescs[i][0]); 6892 6892 6893 rc = CFGMR3QueryU32Def(pCfg Handle, s_apszDescs[i][1], &iPortSlave, 2 * i + 1);6893 rc = CFGMR3QueryU32Def(pCfg, s_apszDescs[i][1], &iPortSlave, 2 * i + 1); 6894 6894 if (RT_FAILURE(rc)) 6895 6895 return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS, -
trunk/src/VBox/Devices/Storage/DevATA.cpp
r26165 r26173 6475 6475 * @returns VBox status code. 6476 6476 * @param pDevIns The device instance data. 6477 * @param pCfg HandleConfiguration handle.6477 * @param pCfg Configuration handle. 6478 6478 * @param penmChipset Where to store the chipset type. 6479 6479 */ 6480 static int ataControllerFromCfg(PPDMDEVINS pDevIns, PCFGMNODE pCfg Handle, CHIPSET *penmChipset)6480 static int ataControllerFromCfg(PPDMDEVINS pDevIns, PCFGMNODE pCfg, CHIPSET *penmChipset) 6481 6481 { 6482 6482 char szType[20]; 6483 6483 6484 int rc = CFGMR3QueryStringDef(pCfg Handle, "Type", &szType[0], sizeof(szType), "PIIX4");6484 int rc = CFGMR3QueryStringDef(pCfg, "Type", &szType[0], sizeof(szType), "PIIX4"); 6485 6485 if (RT_FAILURE(rc)) 6486 6486 return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS, … … 6506 6506 * @interface_method_impl{PDMDEVREG,pfnConstruct} 6507 6507 */ 6508 static DECLCALLBACK(int) ataR3Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)6508 static DECLCALLBACK(int) ataR3Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 6509 6509 { 6510 6510 PCIATAState *pThis = PDMINS_2_DATA(pDevIns, PCIATAState *); … … 6532 6532 * Validate and read configuration. 6533 6533 */ 6534 if (!CFGMR3AreValuesValid(pCfg Handle,6534 if (!CFGMR3AreValuesValid(pCfg, 6535 6535 "GCEnabled\0" 6536 6536 "R0Enabled\0" … … 6541 6541 N_("PIIX3 configuration error: unknown option specified")); 6542 6542 6543 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &fGCEnabled, true);6543 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true); 6544 6544 if (RT_FAILURE(rc)) 6545 6545 return PDMDEV_SET_ERROR(pDevIns, rc, … … 6547 6547 Log(("%s: fGCEnabled=%d\n", __FUNCTION__, fGCEnabled)); 6548 6548 6549 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &fR0Enabled, true);6549 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &fR0Enabled, true); 6550 6550 if (RT_FAILURE(rc)) 6551 6551 return PDMDEV_SET_ERROR(pDevIns, rc, … … 6553 6553 Log(("%s: fR0Enabled=%d\n", __FUNCTION__, fR0Enabled)); 6554 6554 6555 rc = CFGMR3QueryU32Def(pCfg Handle, "IRQDelay", &DelayIRQMillies, 0);6555 rc = CFGMR3QueryU32Def(pCfg, "IRQDelay", &DelayIRQMillies, 0); 6556 6556 if (RT_FAILURE(rc)) 6557 6557 return PDMDEV_SET_ERROR(pDevIns, rc, … … 6561 6561 6562 6562 CHIPSET enmChipset = CHIPSET_PIIX3; 6563 rc = ataControllerFromCfg(pDevIns, pCfg Handle, &enmChipset);6563 rc = ataControllerFromCfg(pDevIns, pCfg, &enmChipset); 6564 6564 if (RT_FAILURE(rc)) 6565 6565 return rc; … … 6862 6862 6863 6863 /* Get user config if present using defaults otherwise. */ 6864 PCFGMNODE pCfgNode = CFGMR3GetChild(pCfg Handle, s_apszCFGMKeys[i][j]);6864 PCFGMNODE pCfgNode = CFGMR3GetChild(pCfg, s_apszCFGMKeys[i][j]); 6865 6865 rc = CFGMR3QueryStringDef(pCfgNode, "SerialNumber", pIf->szSerialNumber, sizeof(pIf->szSerialNumber), 6866 6866 szSerial); -
trunk/src/VBox/Devices/Storage/DevBusLogic.cpp
r26165 r26173 2520 2520 * @interface_method_impl{PDMDEVREG,pfnConstruct} 2521 2521 */ 2522 static DECLCALLBACK(int) buslogicConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)2522 static DECLCALLBACK(int) buslogicConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 2523 2523 { 2524 2524 PBUSLOGIC pThis = PDMINS_2_DATA(pDevIns, PBUSLOGIC); … … 2529 2529 * Validate and read configuration. 2530 2530 */ 2531 if (!CFGMR3AreValuesValid(pCfg Handle,2531 if (!CFGMR3AreValuesValid(pCfg, 2532 2532 "GCEnabled\0" 2533 2533 "R0Enabled\0")) … … 2535 2535 N_("BusLogic configuration error: unknown option specified")); 2536 2536 2537 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &pThis->fGCEnabled, true);2537 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &pThis->fGCEnabled, true); 2538 2538 if (RT_FAILURE(rc)) 2539 2539 return PDMDEV_SET_ERROR(pDevIns, rc, … … 2541 2541 Log(("%s: fGCEnabled=%d\n", __FUNCTION__, pThis->fGCEnabled)); 2542 2542 2543 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &pThis->fR0Enabled, true);2543 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &pThis->fR0Enabled, true); 2544 2544 if (RT_FAILURE(rc)) 2545 2545 return PDMDEV_SET_ERROR(pDevIns, rc, -
trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
r26165 r26173 4375 4375 * @copydoc FNPDMDEVCONSTRUCT 4376 4376 */ 4377 static DECLCALLBACK(int) lsilogicConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)4377 static DECLCALLBACK(int) lsilogicConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 4378 4378 { 4379 4379 PLSILOGICSCSI pThis = PDMINS_2_DATA(pDevIns, PLSILOGICSCSI); … … 4386 4386 * Validate and read configuration. 4387 4387 */ 4388 rc = CFGMR3AreValuesValid(pCfg Handle, "GCEnabled\0"4388 rc = CFGMR3AreValuesValid(pCfg, "GCEnabled\0" 4389 4389 "R0Enabled\0" 4390 4390 "ReplyQueueDepth\0" … … 4395 4395 return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES, 4396 4396 N_("LsiLogic configuration error: unknown option specified")); 4397 rc = CFGMR3QueryBoolDef(pCfg Handle, "GCEnabled", &pThis->fGCEnabled, true);4397 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &pThis->fGCEnabled, true); 4398 4398 if (RT_FAILURE(rc)) 4399 4399 return PDMDEV_SET_ERROR(pDevIns, rc, … … 4401 4401 Log(("%s: fGCEnabled=%d\n", __FUNCTION__, pThis->fGCEnabled)); 4402 4402 4403 rc = CFGMR3QueryBoolDef(pCfg Handle, "R0Enabled", &pThis->fR0Enabled, true);4403 rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &pThis->fR0Enabled, true); 4404 4404 if (RT_FAILURE(rc)) 4405 4405 return PDMDEV_SET_ERROR(pDevIns, rc, … … 4407 4407 Log(("%s: fR0Enabled=%d\n", __FUNCTION__, pThis->fR0Enabled)); 4408 4408 4409 rc = CFGMR3QueryU32Def(pCfg Handle, "ReplyQueueDepth",4409 rc = CFGMR3QueryU32Def(pCfg, "ReplyQueueDepth", 4410 4410 &pThis->cReplyQueueEntries, 4411 4411 LSILOGICSCSI_REPLY_QUEUE_DEPTH_DEFAULT); … … 4415 4415 Log(("%s: ReplyQueueDepth=%u\n", __FUNCTION__, pThis->cReplyQueueEntries)); 4416 4416 4417 rc = CFGMR3QueryU32Def(pCfg Handle, "RequestQueueDepth",4417 rc = CFGMR3QueryU32Def(pCfg, "RequestQueueDepth", 4418 4418 &pThis->cRequestQueueEntries, 4419 4419 LSILOGICSCSI_REQUEST_QUEUE_DEPTH_DEFAULT); … … 4423 4423 Log(("%s: RequestQueueDepth=%u\n", __FUNCTION__, pThis->cRequestQueueEntries)); 4424 4424 4425 rc = CFGMR3QueryStringAllocDef(pCfg Handle, "ControllerType",4425 rc = CFGMR3QueryStringAllocDef(pCfg, "ControllerType", 4426 4426 &pszCtrlType, LSILOGICSCSI_PCI_SPI_CTRLNAME); 4427 4427 if (RT_FAILURE(rc)) … … 4437 4437 N_("LsiLogic configuration error: failed to determine controller type from string")); 4438 4438 4439 rc = CFGMR3QueryU8(pCfg Handle, "NumPorts",4439 rc = CFGMR3QueryU8(pCfg, "NumPorts", 4440 4440 &pThis->cPorts); 4441 4441 if (rc == VERR_CFGM_VALUE_NOT_FOUND) -
trunk/src/VBox/Devices/Storage/DrvBlock.cpp
r26166 r26173 697 697 * @copydoc FNPDMDRVCONSTRUCT 698 698 */ 699 static DECLCALLBACK(int) drvblockConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)699 static DECLCALLBACK(int) drvblockConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 700 700 { 701 701 PDRVBLOCK pThis = PDMINS_2_DATA(pDrvIns, PDRVBLOCK); … … 707 707 */ 708 708 #if defined(VBOX_PERIODIC_FLUSH) || defined(VBOX_IGNORE_FLUSH) 709 if (!CFGMR3AreValuesValid(pCfg Handle, "Type\0Locked\0BIOSVisible\0AttachFailError\0Cylinders\0Heads\0Sectors\0Mountable\0FlushInterval\0IgnoreFlush\0"))709 if (!CFGMR3AreValuesValid(pCfg, "Type\0Locked\0BIOSVisible\0AttachFailError\0Cylinders\0Heads\0Sectors\0Mountable\0FlushInterval\0IgnoreFlush\0")) 710 710 #else /* !(VBOX_PERIODIC_FLUSH || VBOX_IGNORE_FLUSH) */ 711 if (!CFGMR3AreValuesValid(pCfg Handle, "Type\0Locked\0BIOSVisible\0AttachFailError\0Cylinders\0Heads\0Sectors\0Mountable\0"))711 if (!CFGMR3AreValuesValid(pCfg, "Type\0Locked\0BIOSVisible\0AttachFailError\0Cylinders\0Heads\0Sectors\0Mountable\0")) 712 712 #endif /* !(VBOX_PERIODIC_FLUSH || VBOX_IGNORE_FLUSH) */ 713 713 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; … … 770 770 /* type */ 771 771 char *psz; 772 int rc = CFGMR3QueryStringAlloc(pCfg Handle, "Type", &psz);772 int rc = CFGMR3QueryStringAlloc(pCfg, "Type", &psz); 773 773 if (RT_FAILURE(rc)) 774 774 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_BLOCK_NO_TYPE, N_("Failed to obtain the type")); … … 800 800 801 801 /* Mountable */ 802 rc = CFGMR3QueryBoolDef(pCfg Handle, "Mountable", &pThis->fMountable, false);802 rc = CFGMR3QueryBoolDef(pCfg, "Mountable", &pThis->fMountable, false); 803 803 if (RT_FAILURE(rc)) 804 804 return PDMDRV_SET_ERROR(pDrvIns, rc, N_("Failed to query \"Mountable\" from the config")); 805 805 806 806 /* Locked */ 807 rc = CFGMR3QueryBoolDef(pCfg Handle, "Locked", &pThis->fLocked, false);807 rc = CFGMR3QueryBoolDef(pCfg, "Locked", &pThis->fLocked, false); 808 808 if (RT_FAILURE(rc)) 809 809 return PDMDRV_SET_ERROR(pDrvIns, rc, N_("Failed to query \"Locked\" from the config")); 810 810 811 811 /* BIOS visible */ 812 rc = CFGMR3QueryBoolDef(pCfg Handle, "BIOSVisible", &pThis->fBiosVisible, true);812 rc = CFGMR3QueryBoolDef(pCfg, "BIOSVisible", &pThis->fBiosVisible, true); 813 813 if (RT_FAILURE(rc)) 814 814 return PDMDRV_SET_ERROR(pDrvIns, rc, N_("Failed to query \"BIOSVisible\" from the config")); … … 817 817 818 818 /* Cylinders */ 819 rc = CFGMR3QueryU32Def(pCfg Handle, "Cylinders", &pThis->LCHSGeometry.cCylinders, 0);819 rc = CFGMR3QueryU32Def(pCfg, "Cylinders", &pThis->LCHSGeometry.cCylinders, 0); 820 820 if (RT_FAILURE(rc)) 821 821 return PDMDRV_SET_ERROR(pDrvIns, rc, N_("Failed to query \"Cylinders\" from the config")); 822 822 823 823 /* Heads */ 824 rc = CFGMR3QueryU32Def(pCfg Handle, "Heads", &pThis->LCHSGeometry.cHeads, 0);824 rc = CFGMR3QueryU32Def(pCfg, "Heads", &pThis->LCHSGeometry.cHeads, 0); 825 825 if (RT_FAILURE(rc)) 826 826 return PDMDRV_SET_ERROR(pDrvIns, rc, N_("Failed to query \"Heads\" from the config")); 827 827 828 828 /* Sectors */ 829 rc = CFGMR3QueryU32Def(pCfg Handle, "Sectors", &pThis->LCHSGeometry.cSectors, 0);829 rc = CFGMR3QueryU32Def(pCfg, "Sectors", &pThis->LCHSGeometry.cSectors, 0); 830 830 if (RT_FAILURE(rc)) 831 831 return PDMDRV_SET_ERROR(pDrvIns, rc, N_("Failed to query \"Sectors\" from the config")); 832 832 833 833 /* Uuid */ 834 rc = CFGMR3QueryStringAlloc(pCfg Handle, "Uuid", &psz);834 rc = CFGMR3QueryStringAlloc(pCfg, "Uuid", &psz); 835 835 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 836 836 RTUuidClear(&pThis->Uuid); … … 851 851 852 852 #ifdef VBOX_PERIODIC_FLUSH 853 rc = CFGMR3QueryU32Def(pCfg Handle, "FlushInterval", &pThis->cbFlushInterval, 0);853 rc = CFGMR3QueryU32Def(pCfg, "FlushInterval", &pThis->cbFlushInterval, 0); 854 854 if (RT_FAILURE(rc)) 855 855 return PDMDRV_SET_ERROR(pDrvIns, rc, N_("Failed to query \"FlushInterval\" from the config")); … … 857 857 858 858 #ifdef VBOX_IGNORE_FLUSH 859 rc = CFGMR3QueryBoolDef(pCfg Handle, "IgnoreFlush", &pThis->fIgnoreFlush, true);859 rc = CFGMR3QueryBoolDef(pCfg, "IgnoreFlush", &pThis->fIgnoreFlush, true); 860 860 if (RT_FAILURE(rc)) 861 861 return PDMDRV_SET_ERROR(pDrvIns, rc, N_("Failed to query \"IgnoreFlush\" from the config")); -
trunk/src/VBox/Devices/Storage/DrvHostBase.cpp
r26166 r26173 1844 1844 * @returns VBox status code. 1845 1845 * @param pDrvIns Driver instance. 1846 * @param pCfg HandleConfiguration handle.1846 * @param pCfg Configuration handle. 1847 1847 * @param enmType Device type. 1848 1848 */ 1849 int DRVHostBaseInitData(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, PDMBLOCKTYPE enmType)1849 int DRVHostBaseInitData(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, PDMBLOCKTYPE enmType) 1850 1850 { 1851 1851 PDRVHOSTBASE pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTBASE); … … 1919 1919 */ 1920 1920 /* Device */ 1921 int rc = CFGMR3QueryStringAlloc(pCfg Handle, "Path", &pThis->pszDevice);1921 int rc = CFGMR3QueryStringAlloc(pCfg, "Path", &pThis->pszDevice); 1922 1922 if (RT_FAILURE(rc)) 1923 1923 { … … 1928 1928 /* Mountable */ 1929 1929 uint32_t u32; 1930 rc = CFGMR3QueryU32(pCfg Handle, "Interval", &u32);1930 rc = CFGMR3QueryU32(pCfg, "Interval", &u32); 1931 1931 if (RT_SUCCESS(rc)) 1932 1932 pThis->cMilliesPoller = u32; … … 1940 1940 1941 1941 /* ReadOnly */ 1942 rc = CFGMR3QueryBool(pCfg Handle, "ReadOnly", &pThis->fReadOnlyConfig);1942 rc = CFGMR3QueryBool(pCfg, "ReadOnly", &pThis->fReadOnlyConfig); 1943 1943 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1944 1944 pThis->fReadOnlyConfig = enmType == PDMBLOCKTYPE_DVD || enmType == PDMBLOCKTYPE_CDROM ? true : false; … … 1950 1950 1951 1951 /* Locked */ 1952 rc = CFGMR3QueryBool(pCfg Handle, "Locked", &pThis->fLocked);1952 rc = CFGMR3QueryBool(pCfg, "Locked", &pThis->fLocked); 1953 1953 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1954 1954 pThis->fLocked = false; … … 1960 1960 1961 1961 /* BIOS visible */ 1962 rc = CFGMR3QueryBool(pCfg Handle, "BIOSVisible", &pThis->fBiosVisible);1962 rc = CFGMR3QueryBool(pCfg, "BIOSVisible", &pThis->fBiosVisible); 1963 1963 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1964 1964 pThis->fBiosVisible = true; … … 1971 1971 /* Uuid */ 1972 1972 char *psz; 1973 rc = CFGMR3QueryStringAlloc(pCfg Handle, "Uuid", &psz);1973 rc = CFGMR3QueryStringAlloc(pCfg, "Uuid", &psz); 1974 1974 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1975 1975 RTUuidClear(&pThis->Uuid); … … 1993 1993 /* Define whether attach failure is an error (default) or not. */ 1994 1994 bool fAttachFailError; 1995 rc = CFGMR3QueryBool(pCfg Handle, "AttachFailError", &fAttachFailError);1995 rc = CFGMR3QueryBool(pCfg, "AttachFailError", &fAttachFailError); 1996 1996 if (RT_FAILURE(rc)) 1997 1997 fAttachFailError = true; -
trunk/src/VBox/Devices/Storage/DrvHostBase.h
r25966 r26173 185 185 186 186 187 int DRVHostBaseInitData(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, PDMBLOCKTYPE enmType);187 int DRVHostBaseInitData(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, PDMBLOCKTYPE enmType); 188 188 int DRVHostBaseInitFinish(PDRVHOSTBASE pThis); 189 189 int DRVHostBaseMediaPresent(PDRVHOSTBASE pThis); -
trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp
r26166 r26173 740 740 * @copydoc FNPDMDRVCONSTRUCT 741 741 */ 742 static DECLCALLBACK(int) drvHostDvdConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)742 static DECLCALLBACK(int) drvHostDvdConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 743 743 { 744 744 PDRVHOSTBASE pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTBASE); … … 748 748 * Validate configuration. 749 749 */ 750 if (!CFGMR3AreValuesValid(pCfg Handle, "Path\0Interval\0Locked\0BIOSVisible\0AttachFailError\0Passthrough\0"))750 if (!CFGMR3AreValuesValid(pCfg, "Path\0Interval\0Locked\0BIOSVisible\0AttachFailError\0Passthrough\0")) 751 751 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 752 752 … … 755 755 * Init instance data. 756 756 */ 757 int rc = DRVHostBaseInitData(pDrvIns, pCfg Handle, PDMBLOCKTYPE_DVD);757 int rc = DRVHostBaseInitData(pDrvIns, pCfg, PDMBLOCKTYPE_DVD); 758 758 if (RT_SUCCESS(rc)) 759 759 { … … 769 769 #ifndef RT_OS_L4 /* Passthrough is not supported on L4 yet */ 770 770 bool fPassthrough; 771 rc = CFGMR3QueryBool(pCfg Handle, "Passthrough", &fPassthrough);771 rc = CFGMR3QueryBool(pCfg, "Passthrough", &fPassthrough); 772 772 if (RT_SUCCESS(rc) && fPassthrough) 773 773 { -
trunk/src/VBox/Devices/Storage/DrvHostFloppy.cpp
r26166 r26173 147 147 * @copydoc FNPDMDRVCONSTRUCT 148 148 */ 149 static DECLCALLBACK(int) drvHostFloppyConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)149 static DECLCALLBACK(int) drvHostFloppyConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 150 150 { 151 151 PDRVHOSTFLOPPY pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTFLOPPY); … … 155 155 * Validate configuration. 156 156 */ 157 if (!CFGMR3AreValuesValid(pCfg Handle, "Path\0ReadOnly\0Interval\0Locked\0BIOSVisible\0"))157 if (!CFGMR3AreValuesValid(pCfg, "Path\0ReadOnly\0Interval\0Locked\0BIOSVisible\0")) 158 158 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 159 159 … … 161 161 * Init instance data. 162 162 */ 163 int rc = DRVHostBaseInitData(pDrvIns, pCfg Handle, PDMBLOCKTYPE_FLOPPY_1_44);163 int rc = DRVHostBaseInitData(pDrvIns, pCfg, PDMBLOCKTYPE_FLOPPY_1_44); 164 164 if (RT_SUCCESS(rc)) 165 165 { -
trunk/src/VBox/Devices/Storage/DrvMediaISO.cpp
r26166 r26173 231 231 * @copydoc FNPDMDRVCONSTRUCT 232 232 */ 233 static DECLCALLBACK(int) drvMediaISOConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)233 static DECLCALLBACK(int) drvMediaISOConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 234 234 { 235 235 PDRVMEDIAISO pThis = PDMINS_2_DATA(pDrvIns, PDRVMEDIAISO); … … 258 258 * Read the configuration. 259 259 */ 260 if (!CFGMR3AreValuesValid(pCfg Handle, "Path\0"))260 if (!CFGMR3AreValuesValid(pCfg, "Path\0")) 261 261 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 262 262 263 263 char *pszName; 264 int rc = CFGMR3QueryStringAlloc(pCfg Handle, "Path", &pszName);264 int rc = CFGMR3QueryStringAlloc(pCfg, "Path", &pszName); 265 265 if (RT_FAILURE(rc)) 266 266 return PDMDRV_SET_ERROR(pDrvIns, rc, N_("Failed to query \"Path\" from the config")); -
trunk/src/VBox/Devices/Storage/DrvRawImage.cpp
r26166 r26173 268 268 * @copydoc FNPDMDRVCONSTRUCT 269 269 */ 270 static DECLCALLBACK(int) drvRawImageConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)270 static DECLCALLBACK(int) drvRawImageConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 271 271 { 272 272 PDRVRAWIMAGE pThis = PDMINS_2_DATA(pDrvIns, PDRVRAWIMAGE); … … 295 295 * Read the configuration. 296 296 */ 297 if (!CFGMR3AreValuesValid(pCfg Handle, "Path\0"))297 if (!CFGMR3AreValuesValid(pCfg, "Path\0")) 298 298 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 299 299 300 300 char *pszName; 301 int rc = CFGMR3QueryStringAlloc(pCfg Handle, "Path", &pszName);301 int rc = CFGMR3QueryStringAlloc(pCfg, "Path", &pszName); 302 302 if (RT_FAILURE(rc)) 303 303 { -
trunk/src/VBox/Devices/Storage/DrvSCSI.cpp
r26166 r26173 932 932 * @copydoc FNPDMDRVCONSTRUCT 933 933 */ 934 static DECLCALLBACK(int) drvscsiConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)934 static DECLCALLBACK(int) drvscsiConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 935 935 { 936 936 PDRVSCSI pThis = PDMINS_2_DATA(pDrvIns, PDRVSCSI); 937 LogFlowFunc(("pDrvIns=%#p pCfg Handle=%#p\n", pDrvIns, pCfgHandle));937 LogFlowFunc(("pDrvIns=%#p pCfg=%#p\n", pDrvIns, pCfg)); 938 938 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 939 939 -
trunk/src/VBox/Devices/Storage/DrvSCSIHost.cpp
r26166 r26173 443 443 * @copydoc FNPDMDRVCONSTRUCT 444 444 */ 445 static DECLCALLBACK(int) drvscsihostConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)445 static DECLCALLBACK(int) drvscsihostConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 446 446 { 447 447 PDRVSCSIHOST pThis = PDMINS_2_DATA(pDrvIns, PDRVSCSIHOST); 448 LogFlowFunc(("pDrvIns=%#p pCfg Handle=%#p\n", pDrvIns, pCfgHandle));448 LogFlowFunc(("pDrvIns=%#p pCfg=%#p\n", pDrvIns, pCfg)); 449 449 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 450 450 … … 452 452 * Read the configuration. 453 453 */ 454 if (!CFGMR3AreValuesValid(pCfg Handle, "DevicePath\0"))454 if (!CFGMR3AreValuesValid(pCfg, "DevicePath\0")) 455 455 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES, 456 456 N_("Invalid configuration for host scsi access driver")); … … 473 473 474 474 /* Open the device. */ 475 rc = CFGMR3QueryStringAlloc(pCfg Handle, "DevicePath", &pThis->pszDevicePath);475 rc = CFGMR3QueryStringAlloc(pCfg, "DevicePath", &pThis->pszDevicePath); 476 476 if (RT_FAILURE(rc)) 477 477 return PDMDRV_SET_ERROR(pDrvIns, rc, -
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r26166 r26173 982 982 */ 983 983 static DECLCALLBACK(int) drvvdConstruct(PPDMDRVINS pDrvIns, 984 PCFGMNODE pCfg Handle,984 PCFGMNODE pCfg, 985 985 uint32_t fFlags) 986 986 { … … 1052 1052 bool fUseNewIo = false; 1053 1053 unsigned iLevel = 0; 1054 PCFGMNODE pCurNode = pCfg Handle;1054 PCFGMNODE pCurNode = pCfg; 1055 1055 1056 1056 for (;;) … … 1058 1058 bool fValid; 1059 1059 1060 if (pCurNode == pCfg Handle)1060 if (pCurNode == pCfg) 1061 1061 { 1062 1062 /* Toplevel configuration additionally contains the global image … … 1080 1080 } 1081 1081 1082 if (pCurNode == pCfg Handle)1082 if (pCurNode == pCfg) 1083 1083 { 1084 1084 rc = CFGMR3QueryBoolDef(pCurNode, "HostIPStack", &fHostIP, true); -
trunk/src/VBox/Devices/Storage/fdc.c
r26165 r26173 2743 2743 static DECLCALLBACK(int) fdcConstruct (PPDMDEVINS pDevIns, 2744 2744 int iInstance, 2745 PCFGMNODE pCfg Handle)2745 PCFGMNODE pCfg) 2746 2746 { 2747 2747 int rc; … … 2759 2759 * Validate configuration. 2760 2760 */ 2761 if (!CFGMR3AreValuesValid(pCfg Handle, "IRQ\0DMA\0MemMapped\0IOBase\0"))2761 if (!CFGMR3AreValuesValid(pCfg, "IRQ\0DMA\0MemMapped\0IOBase\0")) 2762 2762 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 2763 2763 … … 2765 2765 * Read the configuration. 2766 2766 */ 2767 rc = CFGMR3QueryU8 (pCfg Handle, "IRQ", &irq_lvl);2767 rc = CFGMR3QueryU8 (pCfg, "IRQ", &irq_lvl); 2768 2768 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 2769 2769 irq_lvl = 6; … … 2773 2773 } 2774 2774 2775 rc = CFGMR3QueryU8 (pCfg Handle, "DMA", &dma_chann);2775 rc = CFGMR3QueryU8 (pCfg, "DMA", &dma_chann); 2776 2776 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 2777 2777 dma_chann = 2; … … 2781 2781 } 2782 2782 2783 rc = CFGMR3QueryU16 (pCfg Handle, "IOBase", &io_base);2783 rc = CFGMR3QueryU16 (pCfg, "IOBase", &io_base); 2784 2784 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 2785 2785 io_base = 0x3f0; … … 2789 2789 } 2790 2790 2791 rc = CFGMR3QueryBool (pCfg Handle, "MemMapped", &mem_mapped);2791 rc = CFGMR3QueryBool (pCfg, "MemMapped", &mem_mapped); 2792 2792 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 2793 2793 mem_mapped = false; -
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r26165 r26173 2516 2516 * @interface_method_impl{PDMDEVREG,pfnConstruct} 2517 2517 */ 2518 static DECLCALLBACK(int) vmmdevConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)2518 static DECLCALLBACK(int) vmmdevConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 2519 2519 { 2520 2520 int rc; … … 2527 2527 * Validate and read the configuration. 2528 2528 */ 2529 if (!CFGMR3AreValuesValid(pCfg Handle,2529 if (!CFGMR3AreValuesValid(pCfg, 2530 2530 "GetHostTimeDisabled\0" 2531 2531 "BackdoorLogDisabled\0" … … 2535 2535 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 2536 2536 2537 rc = CFGMR3QueryBoolDef(pCfg Handle, "GetHostTimeDisabled", &pThis->fGetHostTimeDisabled, false);2537 rc = CFGMR3QueryBoolDef(pCfg, "GetHostTimeDisabled", &pThis->fGetHostTimeDisabled, false); 2538 2538 if (RT_FAILURE(rc)) 2539 2539 return PDMDEV_SET_ERROR(pDevIns, rc, 2540 2540 N_("Configuration error: Failed querying \"GetHostTimeDisabled\" as a boolean")); 2541 2541 2542 rc = CFGMR3QueryBoolDef(pCfg Handle, "BackdoorLogDisabled", &pThis->fBackdoorLogDisabled, false);2542 rc = CFGMR3QueryBoolDef(pCfg, "BackdoorLogDisabled", &pThis->fBackdoorLogDisabled, false); 2543 2543 if (RT_FAILURE(rc)) 2544 2544 return PDMDEV_SET_ERROR(pDevIns, rc, 2545 2545 N_("Configuration error: Failed querying \"BackdoorLogDisabled\" as a boolean")); 2546 2546 2547 rc = CFGMR3QueryBoolDef(pCfg Handle, "KeepCredentials", &pThis->fKeepCredentials, false);2547 rc = CFGMR3QueryBoolDef(pCfg, "KeepCredentials", &pThis->fKeepCredentials, false); 2548 2548 if (RT_FAILURE(rc)) 2549 2549 return PDMDEV_SET_ERROR(pDevIns, rc, 2550 2550 N_("Configuration error: Failed querying \"KeepCredentials\" as a boolean")); 2551 2551 2552 rc = CFGMR3QueryBoolDef(pCfg Handle, "HeapEnabled", &pThis->fHeapEnabled, true);2552 rc = CFGMR3QueryBoolDef(pCfg, "HeapEnabled", &pThis->fHeapEnabled, true); 2553 2553 if (RT_FAILURE(rc)) 2554 2554 return PDMDEV_SET_ERROR(pDevIns, rc, -
trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.cpp
r26166 r26173 1167 1167 * @copydoc FNPDMDRVCONSTRUCT 1168 1168 */ 1169 DECLCALLBACK(int) VMDisplay::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)1169 DECLCALLBACK(int) VMDisplay::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 1170 1170 { 1171 1171 PDRVMAINDISPLAY pData = PDMINS_2_DATA(pDrvIns, PDRVMAINDISPLAY); … … 1176 1176 * Validate configuration. 1177 1177 */ 1178 if (!CFGMR3AreValuesValid(pCfg Handle, "Object\0"))1178 if (!CFGMR3AreValuesValid(pCfg, "Object\0")) 1179 1179 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 1180 1180 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, … … 1209 1209 */ 1210 1210 void *pv; 1211 int rc = CFGMR3QueryPtr(pCfg Handle, "Object", &pv);1211 int rc = CFGMR3QueryPtr(pCfg, "Object", &pv); 1212 1212 if (RT_FAILURE(rc)) 1213 1213 { -
trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.h
r25966 r26173 69 69 70 70 static DECLCALLBACK(void*) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID); 71 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags);71 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags); 72 72 static DECLCALLBACK(int) displayResizeCallback(PPDMIDISPLAYCONNECTOR pInterface, uint32_t bpp, void *pvVRAM, uint32_t cbLine, uint32_t cx, uint32_t cy); 73 73 static DECLCALLBACK(void) displayUpdateCallback(PPDMIDISPLAYCONNECTOR pInterface, -
trunk/src/VBox/Frontends/VBoxBFE/KeyboardImpl.cpp
r26166 r26173 202 202 * @copydoc FNPDMDRVCONSTRUCT 203 203 */ 204 DECLCALLBACK(int) Keyboard::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)204 DECLCALLBACK(int) Keyboard::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 205 205 { 206 206 PDRVMAINKEYBOARD pData = PDMINS_2_DATA(pDrvIns, PDRVMAINKEYBOARD); … … 210 210 * Validate configuration. 211 211 */ 212 if (!CFGMR3AreValuesValid(pCfg Handle, "Object\0"))212 if (!CFGMR3AreValuesValid(pCfg, "Object\0")) 213 213 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 214 214 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, … … 237 237 */ 238 238 void *pv; 239 int rc = CFGMR3QueryPtr(pCfg Handle, "Object", &pv);239 int rc = CFGMR3QueryPtr(pCfg, "Object", &pv); 240 240 if (RT_FAILURE(rc)) 241 241 { -
trunk/src/VBox/Frontends/VBoxBFE/KeyboardImpl.h
r25966 r26173 57 57 58 58 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID); 59 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags);59 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags); 60 60 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns); 61 61 -
trunk/src/VBox/Frontends/VBoxBFE/MouseImpl.cpp
r26166 r26173 208 208 * @copydoc FNPDMDRVCONSTRUCT 209 209 */ 210 DECLCALLBACK(int) Mouse::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)210 DECLCALLBACK(int) Mouse::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 211 211 { 212 212 PDRVMAINMOUSE pData = PDMINS_2_DATA(pDrvIns, PDRVMAINMOUSE); … … 216 216 * Validate configuration. 217 217 */ 218 if (!CFGMR3AreValuesValid(pCfg Handle, "Object\0"))218 if (!CFGMR3AreValuesValid(pCfg, "Object\0")) 219 219 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 220 220 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, … … 241 241 */ 242 242 void *pv; 243 int rc = CFGMR3QueryPtr(pCfg Handle, "Object", &pv);243 int rc = CFGMR3QueryPtr(pCfg, "Object", &pv); 244 244 if (RT_FAILURE(rc)) 245 245 { -
trunk/src/VBox/Frontends/VBoxBFE/MouseImpl.h
r25966 r26173 69 69 70 70 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID); 71 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags);71 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags); 72 72 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns); 73 73 -
trunk/src/VBox/Frontends/VBoxBFE/StatusImpl.cpp
r26166 r26173 122 122 * @copydoc FNPDMDRVCONSTRUCT 123 123 */ 124 DECLCALLBACK(int) VMStatus::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)124 DECLCALLBACK(int) VMStatus::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 125 125 { 126 126 PDRVMAINSTATUS pData = PDMINS_2_DATA(pDrvIns, PDRVMAINSTATUS); … … 130 130 * Validate configuration. 131 131 */ 132 if (!CFGMR3AreValuesValid(pCfg Handle, "papLeds\0First\0Last\0"))132 if (!CFGMR3AreValuesValid(pCfg, "papLeds\0First\0Last\0")) 133 133 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 134 134 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, … … 145 145 * Read config. 146 146 */ 147 int rc = CFGMR3QueryPtr(pCfg Handle, "papLeds", (void **)&pData->papLeds);147 int rc = CFGMR3QueryPtr(pCfg, "papLeds", (void **)&pData->papLeds); 148 148 if (RT_FAILURE(rc)) 149 149 { … … 152 152 } 153 153 154 rc = CFGMR3QueryU32(pCfg Handle, "First", &pData->iFirstLUN);154 rc = CFGMR3QueryU32(pCfg, "First", &pData->iFirstLUN); 155 155 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 156 156 pData->iFirstLUN = 0; … … 161 161 } 162 162 163 rc = CFGMR3QueryU32(pCfg Handle, "Last", &pData->iLastLUN);163 rc = CFGMR3QueryU32(pCfg, "Last", &pData->iLastLUN); 164 164 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 165 165 pData->iLastLUN = 0; -
trunk/src/VBox/Frontends/VBoxBFE/StatusImpl.h
r25966 r26173 36 36 static DECLCALLBACK(void) drvUnitChanged(PPDMILEDCONNECTORS pInterface, unsigned iLUN); 37 37 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID); 38 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags);38 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags); 39 39 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns); 40 40 }; -
trunk/src/VBox/Frontends/VBoxBFE/VMMDevInterface.cpp
r26166 r26173 378 378 * @copydoc FNPDMDRVCONSTRUCT 379 379 */ 380 DECLCALLBACK(int) VMMDev::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)380 DECLCALLBACK(int) VMMDev::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 381 381 { 382 382 PDRVMAINVMMDEV pData = PDMINS_2_DATA(pDrvIns, PDRVMAINVMMDEV); … … 386 386 * Validate configuration. 387 387 */ 388 if (!CFGMR3AreValuesValid(pCfg Handle, "Object\0"))388 if (!CFGMR3AreValuesValid(pCfg, "Object\0")) 389 389 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 390 390 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, … … 435 435 */ 436 436 void *pv; 437 int rc = CFGMR3QueryPtr(pCfg Handle, "Object", &pv);437 int rc = CFGMR3QueryPtr(pCfg, "Object", &pv); 438 438 if (RT_FAILURE(rc)) 439 439 { -
trunk/src/VBox/Frontends/VBoxBFE/VMMDevInterface.h
r25966 r26173 64 64 65 65 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID); 66 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags);66 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags); 67 67 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns); 68 68 }; -
trunk/src/VBox/Main/AudioSnifferInterface.cpp
r26166 r26173 154 154 * @copydoc FNPDMDRVCONSTRUCT 155 155 */ 156 DECLCALLBACK(int) AudioSniffer::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)156 DECLCALLBACK(int) AudioSniffer::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 157 157 { 158 158 PDRVAUDIOSNIFFER pThis = PDMINS_2_DATA(pDrvIns, PDRVAUDIOSNIFFER); … … 164 164 * Validate configuration. 165 165 */ 166 if (!CFGMR3AreValuesValid(pCfg Handle, "Object\0"))166 if (!CFGMR3AreValuesValid(pCfg, "Object\0")) 167 167 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 168 168 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, … … 193 193 */ 194 194 void *pv; 195 int rc = CFGMR3QueryPtr(pCfg Handle, "Object", &pv);195 int rc = CFGMR3QueryPtr(pCfg, "Object", &pv); 196 196 if (RT_FAILURE(rc)) 197 197 { -
trunk/src/VBox/Main/ConsoleImpl.cpp
r26166 r26173 8162 8162 * @copydoc FNPDMDRVCONSTRUCT 8163 8163 */ 8164 DECLCALLBACK(int) Console::drvStatus_Construct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)8164 DECLCALLBACK(int) Console::drvStatus_Construct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 8165 8165 { 8166 8166 PDRVMAINSTATUS pData = PDMINS_2_DATA(pDrvIns, PDRVMAINSTATUS); … … 8171 8171 * Validate configuration. 8172 8172 */ 8173 if (!CFGMR3AreValuesValid(pCfg Handle, "papLeds\0First\0Last\0"))8173 if (!CFGMR3AreValuesValid(pCfg, "papLeds\0First\0Last\0")) 8174 8174 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 8175 8175 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, … … 8186 8186 * Read config. 8187 8187 */ 8188 int rc = CFGMR3QueryPtr(pCfg Handle, "papLeds", (void **)&pData->papLeds);8188 int rc = CFGMR3QueryPtr(pCfg, "papLeds", (void **)&pData->papLeds); 8189 8189 if (RT_FAILURE(rc)) 8190 8190 { … … 8193 8193 } 8194 8194 8195 rc = CFGMR3QueryU32(pCfg Handle, "First", &pData->iFirstLUN);8195 rc = CFGMR3QueryU32(pCfg, "First", &pData->iFirstLUN); 8196 8196 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 8197 8197 pData->iFirstLUN = 0; … … 8202 8202 } 8203 8203 8204 rc = CFGMR3QueryU32(pCfg Handle, "Last", &pData->iLastLUN);8204 rc = CFGMR3QueryU32(pCfg, "Last", &pData->iLastLUN); 8205 8205 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 8206 8206 pData->iLastLUN = 0; -
trunk/src/VBox/Main/DisplayImpl.cpp
r26166 r26173 3407 3407 * @copydoc FNPDMDRVCONSTRUCT 3408 3408 */ 3409 DECLCALLBACK(int) Display::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)3409 DECLCALLBACK(int) Display::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 3410 3410 { 3411 3411 PDRVMAINDISPLAY pData = PDMINS_2_DATA(pDrvIns, PDRVMAINDISPLAY); … … 3416 3416 * Validate configuration. 3417 3417 */ 3418 if (!CFGMR3AreValuesValid(pCfg Handle, "Object\0"))3418 if (!CFGMR3AreValuesValid(pCfg, "Object\0")) 3419 3419 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 3420 3420 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, … … 3469 3469 */ 3470 3470 void *pv; 3471 int rc = CFGMR3QueryPtr(pCfg Handle, "Object", &pv);3471 int rc = CFGMR3QueryPtr(pCfg, "Object", &pv); 3472 3472 if (RT_FAILURE(rc)) 3473 3473 { -
trunk/src/VBox/Main/KeyboardImpl.cpp
r26166 r26173 265 265 * @copydoc FNPDMDRVCONSTRUCT 266 266 */ 267 DECLCALLBACK(int) Keyboard::drvConstruct (PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)267 DECLCALLBACK(int) Keyboard::drvConstruct (PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 268 268 { 269 269 PDRVMAINKEYBOARD pData = PDMINS_2_DATA (pDrvIns, PDRVMAINKEYBOARD); … … 274 274 * Validate configuration. 275 275 */ 276 if (!CFGMR3AreValuesValid (pCfg Handle, "Object\0"))276 if (!CFGMR3AreValuesValid (pCfg, "Object\0")) 277 277 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 278 278 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, … … 301 301 */ 302 302 void *pv; 303 int rc = CFGMR3QueryPtr (pCfg Handle, "Object", &pv);303 int rc = CFGMR3QueryPtr (pCfg, "Object", &pv); 304 304 if (RT_FAILURE(rc)) 305 305 { -
trunk/src/VBox/Main/MouseImpl.cpp
r26166 r26173 392 392 * @copydoc FNPDMDRVCONSTRUCT 393 393 */ 394 DECLCALLBACK(int) Mouse::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)394 DECLCALLBACK(int) Mouse::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 395 395 { 396 396 PDRVMAINMOUSE pData = PDMINS_2_DATA(pDrvIns, PDRVMAINMOUSE); … … 401 401 * Validate configuration. 402 402 */ 403 if (!CFGMR3AreValuesValid(pCfg Handle, "Object\0"))403 if (!CFGMR3AreValuesValid(pCfg, "Object\0")) 404 404 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 405 405 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, … … 426 426 */ 427 427 void *pv; 428 int rc = CFGMR3QueryPtr(pCfg Handle, "Object", &pv);428 int rc = CFGMR3QueryPtr(pCfg, "Object", &pv); 429 429 if (RT_FAILURE(rc)) 430 430 { -
trunk/src/VBox/Main/include/AudioSnifferInterface.h
r25966 r26173 44 44 private: 45 45 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID); 46 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags);46 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags); 47 47 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns); 48 48 -
trunk/src/VBox/Main/include/ConsoleImpl.h
r26068 r26173 494 494 static DECLCALLBACK(void) drvStatus_UnitChanged(PPDMILEDCONNECTORS pInterface, unsigned iLUN); 495 495 static DECLCALLBACK(void) drvStatus_Destruct(PPDMDRVINS pDrvIns); 496 static DECLCALLBACK(int) drvStatus_Construct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags);496 static DECLCALLBACK(int) drvStatus_Construct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags); 497 497 498 498 int mcAudioRefs; -
trunk/src/VBox/Main/include/DisplayImpl.h
r25966 r26173 273 273 274 274 static DECLCALLBACK(void*) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID); 275 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags);275 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags); 276 276 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns); 277 277 static DECLCALLBACK(int) displayResizeCallback(PPDMIDISPLAYCONNECTOR pInterface, uint32_t bpp, void *pvVRAM, uint32_t cbLine, uint32_t cx, uint32_t cy); -
trunk/src/VBox/Main/include/KeyboardImpl.h
r25966 r26173 93 93 94 94 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID); 95 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags);95 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags); 96 96 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns); 97 97 -
trunk/src/VBox/Main/include/MouseImpl.h
r25966 r26173 93 93 94 94 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID); 95 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags);95 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags); 96 96 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns); 97 97 -
trunk/src/VBox/Main/include/VMMDev.h
r25966 r26173 60 60 private: 61 61 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID); 62 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags);62 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags); 63 63 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns); 64 64 static DECLCALLBACK(void) drvReset(PPDMDRVINS pDrvIns);
Note:
See TracChangeset
for help on using the changeset viewer.