Revision 8d278467 block.h

b/block.h
152 152
int bdrv_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors,
153 153
	int *pnum);
154 154

  
155
#define BDRV_TYPE_HD     0
156
#define BDRV_TYPE_CDROM  1
157
#define BDRV_TYPE_FLOPPY 2
158 155
#define BIOS_ATA_TRANSLATION_AUTO   0
159 156
#define BIOS_ATA_TRANSLATION_NONE   1
160 157
#define BIOS_ATA_TRANSLATION_LBA    2
......
163 160

  
164 161
void bdrv_set_geometry_hint(BlockDriverState *bs,
165 162
                            int cyls, int heads, int secs);
166
void bdrv_set_type_hint(BlockDriverState *bs, int type);
167 163
void bdrv_set_translation_hint(BlockDriverState *bs, int translation);
168 164
void bdrv_get_geometry_hint(BlockDriverState *bs,
169 165
                            int *pcyls, int *pheads, int *psecs);
......
177 173
void bdrv_get_floppy_geometry_hint(BlockDriverState *bs, int *nb_heads,
178 174
                                   int *max_track, int *last_sect,
179 175
                                   FDriveType drive_in, FDriveType *drive);
180
int bdrv_get_type_hint(BlockDriverState *bs);
181 176
int bdrv_get_translation_hint(BlockDriverState *bs);
182 177
void bdrv_set_on_error(BlockDriverState *bs, BlockErrorAction on_read_error,
183 178
                       BlockErrorAction on_write_error);

Also available in: Unified diff