Changeset 38469 in vbox for trunk/src/VBox/Storage/testcase/tstVD-2.cpp
- Timestamp:
- Aug 16, 2011 10:34:32 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 73520
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/testcase/tstVD-2.cpp
r33567 r38469 76 76 return VINF_SUCCESS; 77 77 } 78 79 80 VDINTERFACECONFIG icc = {81 sizeof(VDINTERFACECONFIG),82 VDINTERFACETYPE_CONFIG,83 tstAreKeysValid,84 tstQuerySize,85 tstQuery86 };87 78 88 79 static const char *tstVDDeviceType(VDTYPE enmType) … … 194 185 RTPrintf("\n"); 195 186 196 VDINTERFACE ic; 197 ic.cbSize = sizeof(ic); 198 ic.enmInterface = VDINTERFACETYPE_CONFIG; 199 ic.pCallbacks = &icc; 187 PVDINTERFACE pVDIfs = NULL; 188 VDINTERFACECONFIG ic; 189 190 ic.pfnAreKeysValid = tstAreKeysValid; 191 ic.pfnQuerySize = tstQuerySize; 192 ic.pfnQuery = tstQuery; 193 194 rc = VDInterfaceAdd(&ic.Core, "tstVD-2_Config", VDINTERFACETYPE_CONFIG, 195 NULL, sizeof(VDINTERFACECONFIG), &pVDIfs); 196 AssertRC(rc); 197 200 198 char *pszLocation, *pszName; 201 rc = aVDInfo[i].pfnComposeLocation( &ic, &pszLocation);199 rc = aVDInfo[i].pfnComposeLocation(pVDIfs, &pszLocation); 202 200 CHECK("pfnComposeLocation()"); 203 201 if (pszLocation) … … 210 208 } 211 209 } 212 rc = aVDInfo[i].pfnComposeName( &ic, &pszName);210 rc = aVDInfo[i].pfnComposeName(pVDIfs, &pszName); 213 211 CHECK("pfnComposeName()"); 214 212 if (pszName)
Note:
See TracChangeset
for help on using the changeset viewer.