qapi.h (8f4699d873bef81cec95db6da53d4c33f8caf4b9) qapi.h (d5a8ee60a0fbc20a2c2d02f3bda1bb1bd365f1ee)
1/*
2 * Block layer qmp and info dump related functions
3 *
4 * Copyright (c) 2003-2008 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 15 unchanged lines hidden (view full) ---

24
25#ifndef BLOCK_QAPI_H
26#define BLOCK_QAPI_H
27
28#include "qapi-types.h"
29#include "block/block.h"
30#include "block/snapshot.h"
31
1/*
2 * Block layer qmp and info dump related functions
3 *
4 * Copyright (c) 2003-2008 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 15 unchanged lines hidden (view full) ---

24
25#ifndef BLOCK_QAPI_H
26#define BLOCK_QAPI_H
27
28#include "qapi-types.h"
29#include "block/block.h"
30#include "block/snapshot.h"
31
32BlockDeviceInfo *bdrv_block_device_info(BlockDriverState *bs);
32BlockDeviceInfo *bdrv_block_device_info(BlockDriverState *bs, Error **errp);
33int bdrv_query_snapshot_info_list(BlockDriverState *bs,
34 SnapshotInfoList **p_list,
35 Error **errp);
36void bdrv_query_image_info(BlockDriverState *bs,
37 ImageInfo **p_info,
38 Error **errp);
39
40void bdrv_snapshot_dump(fprintf_function func_fprintf, void *f,
41 QEMUSnapshotInfo *sn);
42void bdrv_image_info_specific_dump(fprintf_function func_fprintf, void *f,
43 ImageInfoSpecific *info_spec);
44void bdrv_image_info_dump(fprintf_function func_fprintf, void *f,
45 ImageInfo *info);
46#endif
33int bdrv_query_snapshot_info_list(BlockDriverState *bs,
34 SnapshotInfoList **p_list,
35 Error **errp);
36void bdrv_query_image_info(BlockDriverState *bs,
37 ImageInfo **p_info,
38 Error **errp);
39
40void bdrv_snapshot_dump(fprintf_function func_fprintf, void *f,
41 QEMUSnapshotInfo *sn);
42void bdrv_image_info_specific_dump(fprintf_function func_fprintf, void *f,
43 ImageInfoSpecific *info_spec);
44void bdrv_image_info_dump(fprintf_function func_fprintf, void *f,
45 ImageInfo *info);
46#endif