Changeset 54340 in vbox for trunk/include
- Timestamp:
- Feb 20, 2015 6:51:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vd.h
r52830 r54340 242 242 /** @}*/ 243 243 244 /** @name VBox HDD container filter flags 245 * @{ 246 */ 247 /** The filter is applied during writes. */ 248 #define VD_FILTER_FLAGS_WRITE RT_BIT(0) 249 /** The filter is applied during reads. */ 250 #define VD_FILTER_FLAGS_READ RT_BIT(1) 251 /** Default set of filter flags. */ 252 #define VD_FILTER_FLAGS_DEFAULT (VD_FILTER_FLAGS_WRITE | VD_FILTER_FLAGS_READ) 253 /** Mask of valid flags. */ 254 #define VD_FILTER_FLAGS_MASK (VD_FILTER_FLAGS_WRITE | VD_FILTER_FLAGS_READ) 255 /** @} */ 256 244 257 /** 245 258 * Helper functions to handle open flags. … … 641 654 * @param pDisk Pointer to the HDD container which should use the filter. 642 655 * @param pszFilter Name of the filter backend to use (case insensitive). 656 * @param fFlags Flags which apply to the filter, combination of VD_FILTER_FLAGS_* 657 * defines. 643 658 * @param pVDIfsFilter Pointer to the per-filter VD interface list. 644 659 */ 645 VBOXDDU_DECL(int) VDFilterAdd(PVBOXHDD pDisk, const char *pszFilter, 660 VBOXDDU_DECL(int) VDFilterAdd(PVBOXHDD pDisk, const char *pszFilter, uint32_t fFlags, 646 661 PVDINTERFACE pVDIfsFilter); 647 662 … … 907 922 908 923 /** 909 * Removes the last added filter in the HDD container .924 * Removes the last added filter in the HDD container from the specified chain. 910 925 * 911 926 * @return VBox status code. 912 927 * @retval VERR_VD_NOT_OPENED if no filter is present for the disk. 913 928 * @param pDisk Pointer to HDD container. 914 */ 915 VBOXDDU_DECL(int) VDFilterRemove(PVBOXHDD pDisk); 929 * @param fFlags Combination of VD_FILTER_FLAGS_* defines. 930 */ 931 VBOXDDU_DECL(int) VDFilterRemove(PVBOXHDD pDisk, uint32_t fFlags); 916 932 917 933 /**
Note:
See TracChangeset
for help on using the changeset viewer.