Diff for /qemu/block.h between versions and

version, 2018/04/24 18:24:23 version, 2018/04/24 18:34:16
Line 142  BlockDriverAIOCB *bdrv_aio_ioctl(BlockDr Line 142  BlockDriverAIOCB *bdrv_aio_ioctl(BlockDr
         BlockDriverCompletionFunc *cb, void *opaque);          BlockDriverCompletionFunc *cb, void *opaque);
 /* Ensure contents are flushed to disk.  */  /* Ensure contents are flushed to disk.  */
 void bdrv_flush(BlockDriverState *bs);  int bdrv_flush(BlockDriverState *bs);
 void bdrv_flush_all(void);  void bdrv_flush_all(void);
 void bdrv_close_all(void);  void bdrv_close_all(void);
   int bdrv_discard(BlockDriverState *bs, int64_t sector_num, int nb_sectors);
 int bdrv_has_zero_init(BlockDriverState *bs);  int bdrv_has_zero_init(BlockDriverState *bs);
 int bdrv_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors,  int bdrv_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors,
         int *pnum);          int *pnum);
Line 181  int bdrv_is_locked(BlockDriverState *bs) Line 182  int bdrv_is_locked(BlockDriverState *bs)
 void bdrv_set_locked(BlockDriverState *bs, int locked);  void bdrv_set_locked(BlockDriverState *bs, int locked);
 int bdrv_eject(BlockDriverState *bs, int eject_flag);  int bdrv_eject(BlockDriverState *bs, int eject_flag);
 void bdrv_set_change_cb(BlockDriverState *bs,  void bdrv_set_change_cb(BlockDriverState *bs,
                         void (*change_cb)(void *opaque), void *opaque);                          void (*change_cb)(void *opaque, int reason),
                           void *opaque);
 void bdrv_get_format(BlockDriverState *bs, char *buf, int buf_size);  void bdrv_get_format(BlockDriverState *bs, char *buf, int buf_size);
 BlockDriverState *bdrv_find(const char *name);  BlockDriverState *bdrv_find(const char *name);
 BlockDriverState *bdrv_next(BlockDriverState *bs);  BlockDriverState *bdrv_next(BlockDriverState *bs);
Line 211  int bdrv_snapshot_goto(BlockDriverState  Line 213  int bdrv_snapshot_goto(BlockDriverState 
 int bdrv_snapshot_delete(BlockDriverState *bs, const char *snapshot_id);  int bdrv_snapshot_delete(BlockDriverState *bs, const char *snapshot_id);
 int bdrv_snapshot_list(BlockDriverState *bs,  int bdrv_snapshot_list(BlockDriverState *bs,
                        QEMUSnapshotInfo **psn_info);                         QEMUSnapshotInfo **psn_info);
   int bdrv_snapshot_load_tmp(BlockDriverState *bs,
                              const char *snapshot_name);
 char *bdrv_snapshot_dump(char *buf, int buf_size, QEMUSnapshotInfo *sn);  char *bdrv_snapshot_dump(char *buf, int buf_size, QEMUSnapshotInfo *sn);
 char *get_human_readable_size(char *buf, int buf_size, int64_t size);  char *get_human_readable_size(char *buf, int buf_size, int64_t size);
Line 225  int bdrv_save_vmstate(BlockDriverState * Line 229  int bdrv_save_vmstate(BlockDriverState *
 int bdrv_load_vmstate(BlockDriverState *bs, uint8_t *buf,  int bdrv_load_vmstate(BlockDriverState *bs, uint8_t *buf,
                       int64_t pos, int size);                        int64_t pos, int size);
   int bdrv_img_create(const char *filename, const char *fmt,
                       const char *base_filename, const char *base_fmt,
                       char *options, uint64_t img_size, int flags);
 void bdrv_set_dirty_tracking(BlockDriverState *bs, int enable);  void bdrv_set_dirty_tracking(BlockDriverState *bs, int enable);
Line 233  void bdrv_reset_dirty(BlockDriverState * Line 241  void bdrv_reset_dirty(BlockDriverState *
                       int nr_sectors);                        int nr_sectors);
 int64_t bdrv_get_dirty_count(BlockDriverState *bs);  int64_t bdrv_get_dirty_count(BlockDriverState *bs);
   void bdrv_set_in_use(BlockDriverState *bs, int in_use);
   int bdrv_in_use(BlockDriverState *bs);
 typedef enum {  typedef enum {

Removed from v.  
changed lines
  Added in v.