Changeset 70777 in vbox
- Timestamp:
- Jan 28, 2018 10:02:45 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120550
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/testcase/tstVDIo.cpp
r69500 r70777 263 263 static DECLCALLBACK(int) vdScriptHandlerResize(PVDSCRIPTARG paScriptArgs, void *pvUser); 264 264 static DECLCALLBACK(int) vdScriptHandlerSetFileBackend(PVDSCRIPTARG paScriptArgs, void *pvUser); 265 static DECLCALLBACK(int) vdScriptHandlerLoadPlugin(PVDSCRIPTARG paScriptArgs, void *pvUser); 265 266 266 267 #ifdef VBOX_TSTVDIO_WITH_LOG_REPLAY … … 475 476 { 476 477 VDSCRIPTTYPE_STRING /* new file backend */ 478 }; 479 480 /* Load plugin. */ 481 const VDSCRIPTTYPE g_aArgLoadPlugin[] = 482 { 483 VDSCRIPTTYPE_STRING /* plugin name */ 477 484 }; 478 485 … … 509 516 {"resize", VDSCRIPTTYPE_VOID, g_aArgResize, RT_ELEMENTS(g_aArgResize), vdScriptHandlerResize}, 510 517 {"setfilebackend", VDSCRIPTTYPE_VOID, g_aArgSetFileBackend, RT_ELEMENTS(g_aArgSetFileBackend), vdScriptHandlerSetFileBackend}, 518 {"loadplugin", VDSCRIPTTYPE_VOID, g_aArgLoadPlugin, RT_ELEMENTS(g_aArgLoadPlugin), vdScriptHandlerLoadPlugin} 511 519 }; 512 520 … … 2042 2050 } 2043 2051 2052 static DECLCALLBACK(int) vdScriptHandlerLoadPlugin(PVDSCRIPTARG paScriptArgs, void *pvUser) 2053 { 2054 RT_NOREF(pvUser); 2055 const char *pcszPlugin = paScriptArgs[0].psz; 2056 2057 return VDPluginLoadFromFilename(pcszPlugin); 2058 } 2059 2044 2060 static DECLCALLBACK(int) tstVDIoFileOpen(void *pvUser, const char *pszLocation, 2045 2061 uint32_t fOpen,
Note:
See TracChangeset
for help on using the changeset viewer.