/[qemu]/qemu/block.c
ViewVC logotype

Diff of /qemu/block.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by bellard, Wed Sep 29 21:27:57 2004 UTC revision 1.15 by bellard, Tue Nov 16 01:45:27 2004 UTC
# Line 348  void bdrv_set_type_hint(BlockDriverState Line 348  void bdrv_set_type_hint(BlockDriverState
348                        type == BDRV_TYPE_FLOPPY));                        type == BDRV_TYPE_FLOPPY));
349  }  }
350    
351    void bdrv_set_translation_hint(BlockDriverState *bs, int translation)
352    {
353        bs->translation = translation;
354    }
355    
356  void bdrv_get_geometry_hint(BlockDriverState *bs,  void bdrv_get_geometry_hint(BlockDriverState *bs,
357                              int *pcyls, int *pheads, int *psecs)                              int *pcyls, int *pheads, int *psecs)
358  {  {
# Line 361  int bdrv_get_type_hint(BlockDriverState Line 366  int bdrv_get_type_hint(BlockDriverState
366      return bs->type;      return bs->type;
367  }  }
368    
369    int bdrv_get_translation_hint(BlockDriverState *bs)
370    {
371        return bs->translation;
372    }
373    
374  int bdrv_is_removable(BlockDriverState *bs)  int bdrv_is_removable(BlockDriverState *bs)
375  {  {
376      return bs->removable;      return bs->removable;

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26