VirtualBox

Changeset 63878 in vbox


Ignore:
Timestamp:
Sep 19, 2016 11:27:20 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
110742
Message:

Devices/Sample: some cleanups of the sample device and driver

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

Legend:

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

    r62508 r63878  
    2121*********************************************************************************************************************************/
    2222#define LOG_GROUP LOG_GROUP_MISC
    23 #include <VBox/vmm/pdmifs.h>
    2423#include <VBox/vmm/pdmdrv.h>
     24#include <VBox/vmm/pdmstorageifs.h>
    2525#include <VBox/log.h>
    2626
  • trunk/src/VBox/Devices/Samples/VBoxSampleDevice.cpp

    r62508 r63878  
    4343
    4444
    45 
    46     FNPDMDEVCONSTRUCT  pfnConstruct;
    47     /** Destruct instance - optional. */
    48     FNPDMDEVDESTRUCT   pfnDestruct;
    49 
    5045static DECLCALLBACK(int) devSampleDestruct(PPDMDEVINS pDevIns)
    5146{
     
    6964
    7065    /*
    71      * Initialize the instance data so that the destructure won't mess up.
     66     * Initialize the instance data so that the destructor won't mess up.
    7267     */
    7368    PVBOXSAMPLEDEVICE pThis = PDMINS_2_DATA(pDevIns, PVBOXSAMPLEDEVICE);
     
    8277        return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES;
    8378
     79    /*
     80     * Use the instance number if necessary (not for this device, which in
     81     * g_DeviceSample below declares a maximum instance count of 1).
     82     */
     83    NOREF(iInstance);
    8484
    8585    return VINF_SUCCESS;
     
    144144
    145145/**
    146  * Register builtin devices.
     146 * Register devices provided by the plugin.
    147147 *
    148148 * @returns VBox status code.
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