1/* AUTOMATICALLY GENERATED, DO NOT MODIFY */
2
3/*
4 * Schema-defined QAPI/QMP events
5 *
6 * Copyright (c) 2014 Wenchao Xia
7 * Copyright (c) 2015-2018 Red Hat Inc.
8 *
9 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
10 * See the COPYING.LIB file in the top-level directory.
11 */
12
13#ifndef QAPI_EVENTS_BLOCK_CORE_H
14#define QAPI_EVENTS_BLOCK_CORE_H
15
16#include "qapi-events-common.h"
17#include "qapi-events-crypto.h"
18#include "qapi-events-job.h"
19#include "qapi-events-sockets.h"
20#include "qapi/util.h"
21#include "qapi-types-block-core.h"
22
23void qapi_event_send_block_image_corrupted(const char *device, bool has_node_name, const char *node_name, const char *msg, bool has_offset, int64_t offset, bool has_size, int64_t size, bool fatal);
24
25void qapi_event_send_block_io_error(const char *device, bool has_node_name, const char *node_name, IoOperationType operation, BlockErrorAction action, bool has_nospace, bool nospace, const char *reason);
26
27void qapi_event_send_block_job_completed(JobType type, const char *device, int64_t len, int64_t offset, int64_t speed, bool has_error, const char *error);
28
29void qapi_event_send_block_job_cancelled(JobType type, const char *device, int64_t len, int64_t offset, int64_t speed);
30
31void qapi_event_send_block_job_error(const char *device, IoOperationType operation, BlockErrorAction action);
32
33void qapi_event_send_block_job_ready(JobType type, const char *device, int64_t len, int64_t offset, int64_t speed);
34
35void qapi_event_send_block_job_pending(JobType type, const char *id);
36
37void qapi_event_send_block_write_threshold(const char *node_name, uint64_t amount_exceeded, uint64_t write_threshold);
38
39#endif /* QAPI_EVENTS_BLOCK_CORE_H */
40