/[qemu]/qemu/vl.h
ViewVC logotype

Diff of /qemu/vl.h

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

revision 1.1 by bellard, Mon Jun 30 10:03:06 2003 UTC revision 1.2 by bellard, Sun Jul 6 17:15:21 2003 UTC
# Line 24  Line 24 
24  #ifndef VL_H  #ifndef VL_H
25  #define VL_H  #define VL_H
26    
27    /* vl.c */
28    void *get_mmap_addr(unsigned long size);
29    
30  /* block.c */  /* block.c */
31  typedef struct BlockDriverState BlockDriverState;  typedef struct BlockDriverState BlockDriverState;
32    
33  BlockDriverState *bdrv_open(const char *filename);  BlockDriverState *bdrv_open(const char *filename, int snapshot);
34  void bdrv_close(BlockDriverState *bs);  void bdrv_close(BlockDriverState *bs);
35  int bdrv_read(BlockDriverState *bs, int64_t sector_num,  int bdrv_read(BlockDriverState *bs, int64_t sector_num,
36                uint8_t *buf, int nb_sectors);                uint8_t *buf, int nb_sectors);
37  int bdrv_write(BlockDriverState *bs, int64_t sector_num,  int bdrv_write(BlockDriverState *bs, int64_t sector_num,
38                 const uint8_t *buf, int nb_sectors);                 const uint8_t *buf, int nb_sectors);
39  void bdrv_get_geometry(BlockDriverState *bs, int64_t *nb_sectors_ptr);  void bdrv_get_geometry(BlockDriverState *bs, int64_t *nb_sectors_ptr);
40    int bdrv_commit(BlockDriverState *bs);
41    
42    /* user mode linux compatible COW file */
43    #define COW_MAGIC 0x4f4f4f4d  /* MOOO */
44    #define COW_VERSION 2
45    
46    struct cow_header_v2 {
47        uint32_t magic;
48        uint32_t  long version;
49        char backing_file[1024];
50        int32_t mtime;
51        uint64_t size;
52        uint32_t sectorsize;
53    };
54    
55  #endif /* VL_H */  #endif /* VL_H */

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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