VirtualBox

Ignore:
Timestamp:
Dec 3, 2008 7:28:03 PM (16 years ago)
Author:
vboxsync
Message:

#3162: Added pfnComposeLocation and pfnComposeName callbacks to VDBACKENDINFO as well as a corresponding tests to tstVD-2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VBoxHDD-new.cpp

    r14928 r14954  
    761761    }
    762762
    763      for (unsigned i = 0; i < g_cBackends; i++)
    764      {
    765          pEntries[i].pszBackend = g_apBackends[i]->pszBackendName;
    766          pEntries[i].uBackendCaps = g_apBackends[i]->uBackendCaps;
    767          pEntries[i].papszFileExtensions = g_apBackends[i]->papszFileExtensions;
    768          pEntries[i].paConfigInfo = g_apBackends[i]->paConfigInfo;
    769      }
     763    for (unsigned i = 0; i < g_cBackends; i++)
     764    {
     765        pEntries[i].pszBackend = g_apBackends[i]->pszBackendName;
     766        pEntries[i].uBackendCaps = g_apBackends[i]->uBackendCaps;
     767        pEntries[i].papszFileExtensions = g_apBackends[i]->papszFileExtensions;
     768        pEntries[i].pfnComposeLocation = g_apBackends[i]->pfnComposeLocation;
     769        pEntries[i].pfnComposeName = g_apBackends[i]->pfnComposeName;
     770    }
    770771
    771772    LogFlowFunc(("returns %Rrc *pcEntriesUsed=%u\n", rc, cEntries));
     
    35523553}
    35533554
     3555#if 0
     3556/** @copydoc VBOXHDDBACKEND::pfnComposeLocation */
     3557int genericFileComposeLocation(PVDINTERFACE pConfig, char **pszLocation)
     3558{
     3559    return NULL;
     3560}
     3561
     3562
     3563/** @copydoc VBOXHDDBACKEND::pfnComposeName */
     3564int genericFileComposeName(PVDINTERFACE pConfig, char **pszName)
     3565{
     3566    return NULL;
     3567}
     3568#endif
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