blob: 69f7114d2f63407fa319919ff1f3faeabdaa3d61 [file] [log] [blame]
/* AUTOMATICALLY GENERATED, DO NOT MODIFY */
/*
* Schema-defined QAPI/QMP events
*
* Copyright (c) 2014 Wenchao Xia
* Copyright (c) 2015-2018 Red Hat Inc.
*
* This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
* See the COPYING.LIB file in the top-level directory.
*/
#ifndef QAPI_EVENTS_BLOCK_CORE_H
#define QAPI_EVENTS_BLOCK_CORE_H
#include "qapi-events-common.h"
#include "qapi-events-crypto.h"
#include "qapi-events-sockets.h"
#include "qapi/util.h"
#include "qapi-types-block-core.h"
void 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, Error **errp);
void 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, Error **errp);
void qapi_event_send_block_job_completed(BlockJobType type, const char *device, int64_t len, int64_t offset, int64_t speed, bool has_error, const char *error, Error **errp);
void qapi_event_send_block_job_cancelled(BlockJobType type, const char *device, int64_t len, int64_t offset, int64_t speed, Error **errp);
void qapi_event_send_block_job_error(const char *device, IoOperationType operation, BlockErrorAction action, Error **errp);
void qapi_event_send_block_job_ready(BlockJobType type, const char *device, int64_t len, int64_t offset, int64_t speed, Error **errp);
void qapi_event_send_block_job_pending(BlockJobType type, const char *id, Error **errp);
void qapi_event_send_block_write_threshold(const char *node_name, uint64_t amount_exceeded, uint64_t write_threshold, Error **errp);
#endif /* QAPI_EVENTS_BLOCK_CORE_H */