VirtualBox

Changeset 26173 in vbox for trunk/src/VBox/Frontends/VBoxBFE


Ignore:
Timestamp:
Feb 2, 2010 9:11:09 PM (15 years ago)
Author:
vboxsync
Message:

PDM: s/pCfgHandle/pCfg/g - part 2.

Location:
trunk/src/VBox/Frontends/VBoxBFE
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.cpp

    r26166 r26173  
    11671167 * @copydoc FNPDMDRVCONSTRUCT
    11681168 */
    1169 DECLCALLBACK(int) VMDisplay::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags)
     1169DECLCALLBACK(int) VMDisplay::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    11701170{
    11711171    PDRVMAINDISPLAY pData = PDMINS_2_DATA(pDrvIns, PDRVMAINDISPLAY);
     
    11761176     * Validate configuration.
    11771177     */
    1178     if (!CFGMR3AreValuesValid(pCfgHandle, "Object\0"))
     1178    if (!CFGMR3AreValuesValid(pCfg, "Object\0"))
    11791179        return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES;
    11801180    AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER,
     
    12091209     */
    12101210    void *pv;
    1211     int rc = CFGMR3QueryPtr(pCfgHandle, "Object", &pv);
     1211    int rc = CFGMR3QueryPtr(pCfg, "Object", &pv);
    12121212    if (RT_FAILURE(rc))
    12131213    {
  • trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.h

    r25966 r26173  
    6969
    7070    static DECLCALLBACK(void*) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID);
    71     static DECLCALLBACK(int)   drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags);
     71    static DECLCALLBACK(int)   drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
    7272    static DECLCALLBACK(int)   displayResizeCallback(PPDMIDISPLAYCONNECTOR pInterface, uint32_t bpp, void *pvVRAM, uint32_t cbLine, uint32_t cx, uint32_t cy);
    7373    static DECLCALLBACK(void)  displayUpdateCallback(PPDMIDISPLAYCONNECTOR pInterface,
  • trunk/src/VBox/Frontends/VBoxBFE/KeyboardImpl.cpp

    r26166 r26173  
    202202 * @copydoc FNPDMDRVCONSTRUCT
    203203 */
    204 DECLCALLBACK(int) Keyboard::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags)
     204DECLCALLBACK(int) Keyboard::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    205205{
    206206    PDRVMAINKEYBOARD pData = PDMINS_2_DATA(pDrvIns, PDRVMAINKEYBOARD);
     
    210210     * Validate configuration.
    211211     */
    212     if (!CFGMR3AreValuesValid(pCfgHandle, "Object\0"))
     212    if (!CFGMR3AreValuesValid(pCfg, "Object\0"))
    213213        return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES;
    214214    AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER,
     
    237237     */
    238238    void *pv;
    239     int rc = CFGMR3QueryPtr(pCfgHandle, "Object", &pv);
     239    int rc = CFGMR3QueryPtr(pCfg, "Object", &pv);
    240240    if (RT_FAILURE(rc))
    241241    {
  • trunk/src/VBox/Frontends/VBoxBFE/KeyboardImpl.h

    r25966 r26173  
    5757
    5858    static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID);
    59     static DECLCALLBACK(int)    drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags);
     59    static DECLCALLBACK(int)    drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
    6060    static DECLCALLBACK(void)   drvDestruct(PPDMDRVINS pDrvIns);
    6161
  • trunk/src/VBox/Frontends/VBoxBFE/MouseImpl.cpp

    r26166 r26173  
    208208 * @copydoc FNPDMDRVCONSTRUCT
    209209 */
    210 DECLCALLBACK(int) Mouse::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags)
     210DECLCALLBACK(int) Mouse::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    211211{
    212212    PDRVMAINMOUSE pData = PDMINS_2_DATA(pDrvIns, PDRVMAINMOUSE);
     
    216216     * Validate configuration.
    217217     */
    218     if (!CFGMR3AreValuesValid(pCfgHandle, "Object\0"))
     218    if (!CFGMR3AreValuesValid(pCfg, "Object\0"))
    219219        return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES;
    220220    AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER,
     
    241241     */
    242242    void *pv;
    243     int rc = CFGMR3QueryPtr(pCfgHandle, "Object", &pv);
     243    int rc = CFGMR3QueryPtr(pCfg, "Object", &pv);
    244244    if (RT_FAILURE(rc))
    245245    {
  • trunk/src/VBox/Frontends/VBoxBFE/MouseImpl.h

    r25966 r26173  
    6969
    7070    static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID);
    71     static DECLCALLBACK(int)    drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags);
     71    static DECLCALLBACK(int)    drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
    7272    static DECLCALLBACK(void)   drvDestruct(PPDMDRVINS pDrvIns);
    7373
  • trunk/src/VBox/Frontends/VBoxBFE/StatusImpl.cpp

    r26166 r26173  
    122122 * @copydoc FNPDMDRVCONSTRUCT
    123123 */
    124 DECLCALLBACK(int) VMStatus::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags)
     124DECLCALLBACK(int) VMStatus::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    125125{
    126126    PDRVMAINSTATUS pData = PDMINS_2_DATA(pDrvIns, PDRVMAINSTATUS);
     
    130130     * Validate configuration.
    131131     */
    132     if (!CFGMR3AreValuesValid(pCfgHandle, "papLeds\0First\0Last\0"))
     132    if (!CFGMR3AreValuesValid(pCfg, "papLeds\0First\0Last\0"))
    133133        return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES;
    134134    AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER,
     
    145145     * Read config.
    146146     */
    147     int rc = CFGMR3QueryPtr(pCfgHandle, "papLeds", (void **)&pData->papLeds);
     147    int rc = CFGMR3QueryPtr(pCfg, "papLeds", (void **)&pData->papLeds);
    148148    if (RT_FAILURE(rc))
    149149    {
     
    152152    }
    153153
    154     rc = CFGMR3QueryU32(pCfgHandle, "First", &pData->iFirstLUN);
     154    rc = CFGMR3QueryU32(pCfg, "First", &pData->iFirstLUN);
    155155    if (rc == VERR_CFGM_VALUE_NOT_FOUND)
    156156        pData->iFirstLUN = 0;
     
    161161    }
    162162
    163     rc = CFGMR3QueryU32(pCfgHandle, "Last", &pData->iLastLUN);
     163    rc = CFGMR3QueryU32(pCfg, "Last", &pData->iLastLUN);
    164164    if (rc == VERR_CFGM_VALUE_NOT_FOUND)
    165165        pData->iLastLUN = 0;
  • trunk/src/VBox/Frontends/VBoxBFE/StatusImpl.h

    r25966 r26173  
    3636    static DECLCALLBACK(void)   drvUnitChanged(PPDMILEDCONNECTORS pInterface, unsigned iLUN);
    3737    static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID);
    38     static DECLCALLBACK(int)    drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags);
     38    static DECLCALLBACK(int)    drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
    3939    static DECLCALLBACK(void)   drvDestruct(PPDMDRVINS pDrvIns);
    4040};
  • trunk/src/VBox/Frontends/VBoxBFE/VMMDevInterface.cpp

    r26166 r26173  
    378378 * @copydoc FNPDMDRVCONSTRUCT
    379379 */
    380 DECLCALLBACK(int) VMMDev::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags)
     380DECLCALLBACK(int) VMMDev::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    381381{
    382382    PDRVMAINVMMDEV pData = PDMINS_2_DATA(pDrvIns, PDRVMAINVMMDEV);
     
    386386     * Validate configuration.
    387387     */
    388     if (!CFGMR3AreValuesValid(pCfgHandle, "Object\0"))
     388    if (!CFGMR3AreValuesValid(pCfg, "Object\0"))
    389389        return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES;
    390390    AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER,
     
    435435     */
    436436    void *pv;
    437     int rc = CFGMR3QueryPtr(pCfgHandle, "Object", &pv);
     437    int rc = CFGMR3QueryPtr(pCfg, "Object", &pv);
    438438    if (RT_FAILURE(rc))
    439439    {
  • trunk/src/VBox/Frontends/VBoxBFE/VMMDevInterface.h

    r25966 r26173  
    6464
    6565    static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID);
    66     static DECLCALLBACK(int)    drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags);
     66    static DECLCALLBACK(int)    drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
    6767    static DECLCALLBACK(void)   drvDestruct(PPDMDRVINS pDrvIns);
    6868};
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette