]>
git.proxmox.com Git - mirror_qemu.git/blob - include/sysemu/block-backend.h
4 * Copyright (C) 2014 Red Hat, Inc.
7 * Markus Armbruster <armbru@redhat.com>,
9 * This work is licensed under the terms of the GNU LGPL, version 2.1
10 * or later. See the COPYING.LIB file in the top-level directory.
13 #ifndef BLOCK_BACKEND_H
14 #define BLOCK_BACKEND_H
16 #include "qemu/typedefs.h"
17 #include "qapi/error.h"
19 BlockBackend
*blk_new(const char *name
, Error
**errp
);
20 BlockBackend
*blk_new_with_bs(const char *name
, Error
**errp
);
21 void blk_ref(BlockBackend
*blk
);
22 void blk_unref(BlockBackend
*blk
);
23 const char *blk_name(BlockBackend
*blk
);
24 BlockBackend
*blk_by_name(const char *name
);
25 BlockBackend
*blk_next(BlockBackend
*blk
);
27 BlockDriverState
*blk_bs(BlockBackend
*blk
);
29 void blk_hide_on_behalf_of_do_drive_del(BlockBackend
*blk
);