]> Git Repo - qemu.git/blame - include/sysemu/block-backend.h
block: Connect BlockBackend to BlockDriverState
[qemu.git] / include / sysemu / block-backend.h
CommitLineData
26f54e9a
MA
1/*
2 * QEMU Block backends
3 *
4 * Copyright (C) 2014 Red Hat, Inc.
5 *
6 * Authors:
7 * Markus Armbruster <[email protected]>,
8 *
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.
11 */
12
13#ifndef BLOCK_BACKEND_H
14#define BLOCK_BACKEND_H
15
16#include "qemu/typedefs.h"
17#include "qapi/error.h"
18
19BlockBackend *blk_new(const char *name, Error **errp);
7e7d56d9 20BlockBackend *blk_new_with_bs(const char *name, Error **errp);
26f54e9a
MA
21void blk_ref(BlockBackend *blk);
22void blk_unref(BlockBackend *blk);
23const char *blk_name(BlockBackend *blk);
24BlockBackend *blk_by_name(const char *name);
25BlockBackend *blk_next(BlockBackend *blk);
26
7e7d56d9
MA
27BlockDriverState *blk_bs(BlockBackend *blk);
28
29void blk_hide_on_behalf_of_do_drive_del(BlockBackend *blk);
30
26f54e9a 31#endif
This page took 0.024824 seconds and 4 git commands to generate.