Changeset 33524 in vbox for trunk/include
- Timestamp:
- Oct 27, 2010 4:44:37 PM (14 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxHDD-Plugin.h
r32536 r33524 61 61 62 62 /** 63 * Pointer to a NULL-terminated array of strings, containing the supported63 * Pointer to a NULL-terminated array, containing the supported 64 64 * file extensions. Note that some backends do not work on files, so this 65 65 * pointer may just contain NULL. 66 66 */ 67 const char * const *papszFileExtensions;67 PCVDFILEEXTENSION paFileExtensions; 68 68 69 69 /** … … 87 87 * @param pVDIfsDisk Pointer to the per-disk VD interface list. 88 88 * @param pVDIfsImage Pointer to the per-image VD interface list. 89 */ 90 DECLR3CALLBACKMEMBER(int, pfnCheckIfValid, (const char *pszFilename, PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage)); 89 * @param penmType Returns the supported device type on success. 90 */ 91 DECLR3CALLBACKMEMBER(int, pfnCheckIfValid, (const char *pszFilename, PVDINTERFACE pVDIfsDisk, 92 PVDINTERFACE pVDIfsImage, VDTYPE *penmType)); 91 93 92 94 /** … … 99 101 * @param pVDIfsDisk Pointer to the per-disk VD interface list. 100 102 * @param pVDIfsImage Pointer to the per-image VD interface list. 103 * @param enmType Requested type of the image. 101 104 * @param ppBackendData Opaque state data for this image. 102 105 */ 103 106 DECLR3CALLBACKMEMBER(int, pfnOpen, (const char *pszFilename, unsigned uOpenFlags, 104 107 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage, 105 void **ppBackendData));108 VDTYPE enmType, void **ppBackendData)); 106 109 107 110 /** -
trunk/include/VBox/VBoxHDD.h
r33205 r33524 247 247 /** @}*/ 248 248 249 /** @name VBox HDD container type. 250 * @{ 251 */ 252 typedef enum VDTYPE 253 { 254 /** Invalid. */ 255 VDTYPE_INVALID = 0, 256 /** HardDisk */ 257 VDTYPE_HDD, 258 /** CD/DVD */ 259 VDTYPE_DVD, 260 /** Floppy. */ 261 VDTYPE_FLOPPY 262 } VDTYPE; 263 /** @}*/ 264 249 265 /** 250 266 * Supported interface types. … … 1529 1545 1530 1546 /** 1547 * Structure describing a file extension. 1548 */ 1549 typedef struct VDFILEEXTENSION 1550 { 1551 /** Pointer to the NULL-terminated string containing the extension. */ 1552 const char *pszExtension; 1553 /** The device type the extension supports. */ 1554 VDTYPE enmType; 1555 } VDFILEEXTENSION; 1556 1557 /** Pointer to a structure describing a file extension. */ 1558 typedef VDFILEEXTENSION *PVDFILEEXTENSION; 1559 1560 /** Pointer to a const structure describing a file extension. */ 1561 typedef const VDFILEEXTENSION *PCVDFILEEXTENSION; 1562 1563 /** 1531 1564 * Data structure for returning a list of backend capabilities. 1532 1565 */ … … 1540 1573 * file extensions. Note that some backends do not work on files, so this 1541 1574 * pointer may just contain NULL. */ 1542 const char * const *papszFileExtensions;1575 PCVDFILEEXTENSION paFileExtensions; 1543 1576 /** Pointer to an array of structs describing each supported config key. 1544 1577 * Terminated by a NULL config key. Note that some backends do not support … … 2000 2033 * @return VBox status code. 2001 2034 * @param pVDIfsDisk Pointer to the per-disk VD interface list. 2035 * @param enmType Type of the image container. 2002 2036 * @param ppDisk Where to store the reference to HDD container. 2003 2037 */ 2004 VBOXDDU_DECL(int) VDCreate(PVDINTERFACE pVDIfsDisk, PVBOXHDD *ppDisk);2038 VBOXDDU_DECL(int) VDCreate(PVDINTERFACE pVDIfsDisk, VDTYPE enmType, PVBOXHDD *ppDisk); 2005 2039 2006 2040 /** … … 2024 2058 * @param ppszFormat Receives pointer of the UTF-8 string which contains the format name. 2025 2059 * The returned pointer must be freed using RTStrFree(). 2060 * @param penmType Where to store the type of the image. 2026 2061 */ 2027 2062 VBOXDDU_DECL(int) VDGetFormat(PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage, 2028 const char *pszFilename, char **ppszFormat );2063 const char *pszFilename, char **ppszFormat, VDTYPE *penmType); 2029 2064 2030 2065 /** -
trunk/include/VBox/settings.h
r33386 r33524 185 185 const USBDeviceFiltersList &ll, 186 186 bool fHostMode); 187 void buildHardDisk(xml::ElementNode &elmMedium, 188 const Medium &m, 189 uint32_t level); 187 void buildMedium(xml::ElementNode &elmMedium, 188 DeviceType_T devType, 189 const Medium &m, 190 uint32_t level); 190 191 void buildMediaRegistry(xml::ElementNode &elmParent, 191 192 const MediaRegistry &mr);
Note:
See TracChangeset
for help on using the changeset viewer.