/* AUTOMATICALLY GENERATED by qapi-gen.py DO NOT MODIFY */

/*
 * Schema-defined QAPI/QMP commands
 *
 * Copyright IBM, Corp. 2011
 * Copyright (C) 2014-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_COMMANDS_INJECTION_H
#define QAPI_COMMANDS_INJECTION_H

#include "qapi-types-injection.h"

ReadValue *qmp_read_mem(int64_t addr, int64_t size, bool has_cpu, int64_t cpu, const char *qom, Error **errp);
void qmp_marshal_read_mem(QDict *args, QObject **ret, Error **errp);
void qmp_write_mem(int64_t addr, int64_t val, int64_t size, bool has_cpu, int64_t cpu, const char *qom, bool debug, Error **errp);
void qmp_marshal_write_mem(QDict *args, QObject **ret, Error **errp);
void qmp_trigger_event(int64_t time_ns, int64_t event_id, Error **errp);
void qmp_marshal_trigger_event(QDict *args, QObject **ret, Error **errp);
void qmp_inject_gpio(const char *device_name, const char *gpio, int64_t num, int64_t val, Error **errp);
void qmp_marshal_inject_gpio(QDict *args, QObject **ret, Error **errp);

#endif /* QAPI_COMMANDS_INJECTION_H */
