VirtualBox

Changeset 81591 in vbox for trunk/src/VBox/Devices/Samples


Ignore:
Timestamp:
Oct 30, 2019 2:14:10 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134346
Message:

Devices: Use PDMDEVINS_2_DATA and PDMDEVINS_2_DATA. bugref:9218

Location:
trunk/src/VBox/Devices/Samples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Samples/DevPlayground.cpp

    r81031 r81591  
    130130static DECLCALLBACK(int) devPlaygroundSaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)
    131131{
    132     PVBOXPLAYGROUNDDEVICE pThis = PDMINS_2_DATA(pDevIns, PVBOXPLAYGROUNDDEVICE);
     132    PVBOXPLAYGROUNDDEVICE pThis = PDMDEVINS_2_DATA(pDevIns, PVBOXPLAYGROUNDDEVICE);
    133133
    134134    /* dummy (real devices would need to save their state here) */
     
    158158static DECLCALLBACK(int) devPlaygroundLoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass)
    159159{
    160     PVBOXPLAYGROUNDDEVICE pThis = PDMINS_2_DATA(pDevIns, PVBOXPLAYGROUNDDEVICE);
     160    PVBOXPLAYGROUNDDEVICE pThis = PDMDEVINS_2_DATA(pDevIns, PVBOXPLAYGROUNDDEVICE);
    161161
    162162    if (uVersion > PLAYGROUND_SSM_VERSION)
     
    193193     * Initialize the instance data so that the destructor won't mess up.
    194194     */
    195     PVBOXPLAYGROUNDDEVICE pThis = PDMINS_2_DATA(pDevIns, PVBOXPLAYGROUNDDEVICE);
     195    PVBOXPLAYGROUNDDEVICE pThis = PDMDEVINS_2_DATA(pDevIns, PVBOXPLAYGROUNDDEVICE);
    196196
    197197    /*
  • trunk/src/VBox/Devices/Samples/VBoxSampleDevice.cpp

    r80704 r81591  
    6666     * Initialize the instance data so that the destructor won't mess up.
    6767     */
    68     PVBOXSAMPLEDEVICE pThis = PDMINS_2_DATA(pDevIns, PVBOXSAMPLEDEVICE);
     68    PVBOXSAMPLEDEVICE pThis = PDMDEVINS_2_DATA(pDevIns, PVBOXSAMPLEDEVICE);
    6969    pThis->Whatever = 0;
    7070
Note: See TracChangeset for help on using the changeset viewer.

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