David 'Digit' Turner | 910aea9 | 2014-01-15 16:53:38 +0100 | [diff] [blame] | 1 | /* THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY */ |
| 2 | |
| 3 | /* |
| 4 | * schema-defined QAPI function prototypes |
| 5 | * |
| 6 | * Copyright IBM, Corp. 2011 |
| 7 | * |
| 8 | * Authors: |
| 9 | * Anthony Liguori <aliguori@us.ibm.com> |
| 10 | * |
| 11 | * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. |
| 12 | * See the COPYING.LIB file in the top-level directory. |
| 13 | * |
| 14 | */ |
| 15 | |
| 16 | #ifndef QMP_COMMANDS_H |
| 17 | #define QMP_COMMANDS_H |
| 18 | |
| 19 | #include "qapi-types.h" |
| 20 | #include "qapi/qmp/qdict.h" |
| 21 | #include "qapi/error.h" |
| 22 | |
| 23 | void qmp_add_client(const char * protocol, const char * fdname, bool has_skipauth, bool skipauth, bool has_tls, bool tls, Error **errp); |
| 24 | int qmp_marshal_input_add_client(Monitor *mon, const QDict *qdict, QObject **ret); |
| 25 | NameInfo * qmp_query_name(Error **errp); |
| 26 | int qmp_marshal_input_query_name(Monitor *mon, const QDict *qdict, QObject **ret); |
| 27 | VersionInfo * qmp_query_version(Error **errp); |
| 28 | int qmp_marshal_input_query_version(Monitor *mon, const QDict *qdict, QObject **ret); |
| 29 | KvmInfo * qmp_query_kvm(Error **errp); |
| 30 | int qmp_marshal_input_query_kvm(Monitor *mon, const QDict *qdict, QObject **ret); |
| 31 | StatusInfo * qmp_query_status(Error **errp); |
| 32 | int qmp_marshal_input_query_status(Monitor *mon, const QDict *qdict, QObject **ret); |
| 33 | UuidInfo * qmp_query_uuid(Error **errp); |
| 34 | int qmp_marshal_input_query_uuid(Monitor *mon, const QDict *qdict, QObject **ret); |
| 35 | ChardevInfoList * qmp_query_chardev(Error **errp); |
| 36 | int qmp_marshal_input_query_chardev(Monitor *mon, const QDict *qdict, QObject **ret); |
| 37 | void qmp_ringbuf_write(const char * device, const char * data, bool has_format, DataFormat format, Error **errp); |
| 38 | int qmp_marshal_input_ringbuf_write(Monitor *mon, const QDict *qdict, QObject **ret); |
| 39 | char * qmp_ringbuf_read(const char * device, int64_t size, bool has_format, DataFormat format, Error **errp); |
| 40 | int qmp_marshal_input_ringbuf_read(Monitor *mon, const QDict *qdict, QObject **ret); |
| 41 | CommandInfoList * qmp_query_commands(Error **errp); |
| 42 | int qmp_marshal_input_query_commands(Monitor *mon, const QDict *qdict, QObject **ret); |
| 43 | EventInfoList * qmp_query_events(Error **errp); |
| 44 | int qmp_marshal_input_query_events(Monitor *mon, const QDict *qdict, QObject **ret); |
| 45 | MigrationInfo * qmp_query_migrate(Error **errp); |
| 46 | int qmp_marshal_input_query_migrate(Monitor *mon, const QDict *qdict, QObject **ret); |
| 47 | void qmp_migrate_set_capabilities(MigrationCapabilityStatusList * capabilities, Error **errp); |
| 48 | int qmp_marshal_input_migrate_set_capabilities(Monitor *mon, const QDict *qdict, QObject **ret); |
| 49 | MigrationCapabilityStatusList * qmp_query_migrate_capabilities(Error **errp); |
| 50 | int qmp_marshal_input_query_migrate_capabilities(Monitor *mon, const QDict *qdict, QObject **ret); |
| 51 | MouseInfoList * qmp_query_mice(Error **errp); |
| 52 | int qmp_marshal_input_query_mice(Monitor *mon, const QDict *qdict, QObject **ret); |
| 53 | CpuInfoList * qmp_query_cpus(Error **errp); |
| 54 | int qmp_marshal_input_query_cpus(Monitor *mon, const QDict *qdict, QObject **ret); |
| 55 | BlockInfoList * qmp_query_block(Error **errp); |
| 56 | int qmp_marshal_input_query_block(Monitor *mon, const QDict *qdict, QObject **ret); |
| 57 | BlockStatsList * qmp_query_blockstats(Error **errp); |
| 58 | int qmp_marshal_input_query_blockstats(Monitor *mon, const QDict *qdict, QObject **ret); |
| 59 | VncInfo * qmp_query_vnc(Error **errp); |
| 60 | int qmp_marshal_input_query_vnc(Monitor *mon, const QDict *qdict, QObject **ret); |
| 61 | SpiceInfo * qmp_query_spice(Error **errp); |
| 62 | int qmp_marshal_input_query_spice(Monitor *mon, const QDict *qdict, QObject **ret); |
| 63 | BalloonInfo * qmp_query_balloon(Error **errp); |
| 64 | int qmp_marshal_input_query_balloon(Monitor *mon, const QDict *qdict, QObject **ret); |
| 65 | PciInfoList * qmp_query_pci(Error **errp); |
| 66 | int qmp_marshal_input_query_pci(Monitor *mon, const QDict *qdict, QObject **ret); |
| 67 | BlockJobInfoList * qmp_query_block_jobs(Error **errp); |
| 68 | int qmp_marshal_input_query_block_jobs(Monitor *mon, const QDict *qdict, QObject **ret); |
| 69 | void qmp_quit(Error **errp); |
| 70 | int qmp_marshal_input_quit(Monitor *mon, const QDict *qdict, QObject **ret); |
| 71 | void qmp_stop(Error **errp); |
| 72 | int qmp_marshal_input_stop(Monitor *mon, const QDict *qdict, QObject **ret); |
| 73 | void qmp_system_reset(Error **errp); |
| 74 | int qmp_marshal_input_system_reset(Monitor *mon, const QDict *qdict, QObject **ret); |
| 75 | void qmp_system_powerdown(Error **errp); |
| 76 | int qmp_marshal_input_system_powerdown(Monitor *mon, const QDict *qdict, QObject **ret); |
| 77 | void qmp_cpu(int64_t index, Error **errp); |
| 78 | int qmp_marshal_input_cpu(Monitor *mon, const QDict *qdict, QObject **ret); |
| 79 | void qmp_cpu_add(int64_t id, Error **errp); |
| 80 | int qmp_marshal_input_cpu_add(Monitor *mon, const QDict *qdict, QObject **ret); |
| 81 | void qmp_memsave(int64_t val, int64_t size, const char * filename, bool has_cpu_index, int64_t cpu_index, Error **errp); |
| 82 | int qmp_marshal_input_memsave(Monitor *mon, const QDict *qdict, QObject **ret); |
| 83 | void qmp_pmemsave(int64_t val, int64_t size, const char * filename, Error **errp); |
| 84 | int qmp_marshal_input_pmemsave(Monitor *mon, const QDict *qdict, QObject **ret); |
| 85 | void qmp_cont(Error **errp); |
| 86 | int qmp_marshal_input_cont(Monitor *mon, const QDict *qdict, QObject **ret); |
| 87 | void qmp_system_wakeup(Error **errp); |
| 88 | int qmp_marshal_input_system_wakeup(Monitor *mon, const QDict *qdict, QObject **ret); |
| 89 | void qmp_inject_nmi(Error **errp); |
| 90 | int qmp_marshal_input_inject_nmi(Monitor *mon, const QDict *qdict, QObject **ret); |
| 91 | void qmp_set_link(const char * name, bool up, Error **errp); |
| 92 | int qmp_marshal_input_set_link(Monitor *mon, const QDict *qdict, QObject **ret); |
| 93 | void qmp_block_passwd(const char * device, const char * password, Error **errp); |
| 94 | int qmp_marshal_input_block_passwd(Monitor *mon, const QDict *qdict, QObject **ret); |
| 95 | void qmp_balloon(int64_t value, Error **errp); |
| 96 | int qmp_marshal_input_balloon(Monitor *mon, const QDict *qdict, QObject **ret); |
| 97 | void qmp_block_resize(const char * device, int64_t size, Error **errp); |
| 98 | int qmp_marshal_input_block_resize(Monitor *mon, const QDict *qdict, QObject **ret); |
| 99 | void qmp_transaction(TransactionActionList * actions, Error **errp); |
| 100 | int qmp_marshal_input_transaction(Monitor *mon, const QDict *qdict, QObject **ret); |
| 101 | void qmp_blockdev_snapshot_sync(const char * device, const char * snapshot_file, bool has_format, const char * format, bool has_mode, NewImageMode mode, Error **errp); |
| 102 | int qmp_marshal_input_blockdev_snapshot_sync(Monitor *mon, const QDict *qdict, QObject **ret); |
| 103 | void qmp_blockdev_snapshot_internal_sync(const char * device, const char * name, Error **errp); |
| 104 | int qmp_marshal_input_blockdev_snapshot_internal_sync(Monitor *mon, const QDict *qdict, QObject **ret); |
| 105 | SnapshotInfo * qmp_blockdev_snapshot_delete_internal_sync(const char * device, bool has_id, const char * id, bool has_name, const char * name, Error **errp); |
| 106 | int qmp_marshal_input_blockdev_snapshot_delete_internal_sync(Monitor *mon, const QDict *qdict, QObject **ret); |
| 107 | char * qmp_human_monitor_command(const char * command_line, bool has_cpu_index, int64_t cpu_index, Error **errp); |
| 108 | int qmp_marshal_input_human_monitor_command(Monitor *mon, const QDict *qdict, QObject **ret); |
| 109 | void qmp_block_commit(const char * device, bool has_base, const char * base, const char * top, bool has_speed, int64_t speed, Error **errp); |
| 110 | int qmp_marshal_input_block_commit(Monitor *mon, const QDict *qdict, QObject **ret); |
| 111 | void qmp_drive_backup(const char * device, const char * target, bool has_format, const char * format, MirrorSyncMode sync, bool has_mode, NewImageMode mode, bool has_speed, int64_t speed, bool has_on_source_error, BlockdevOnError on_source_error, bool has_on_target_error, BlockdevOnError on_target_error, Error **errp); |
| 112 | int qmp_marshal_input_drive_backup(Monitor *mon, const QDict *qdict, QObject **ret); |
| 113 | void qmp_drive_mirror(const char * device, const char * target, bool has_format, const char * format, MirrorSyncMode sync, bool has_mode, NewImageMode mode, bool has_speed, int64_t speed, bool has_granularity, uint32_t granularity, bool has_buf_size, int64_t buf_size, bool has_on_source_error, BlockdevOnError on_source_error, bool has_on_target_error, BlockdevOnError on_target_error, Error **errp); |
| 114 | int qmp_marshal_input_drive_mirror(Monitor *mon, const QDict *qdict, QObject **ret); |
| 115 | void qmp_migrate_cancel(Error **errp); |
| 116 | int qmp_marshal_input_migrate_cancel(Monitor *mon, const QDict *qdict, QObject **ret); |
| 117 | void qmp_migrate_set_downtime(double value, Error **errp); |
| 118 | int qmp_marshal_input_migrate_set_downtime(Monitor *mon, const QDict *qdict, QObject **ret); |
| 119 | void qmp_migrate_set_speed(int64_t value, Error **errp); |
| 120 | int qmp_marshal_input_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret); |
| 121 | void qmp_migrate_set_cache_size(int64_t value, Error **errp); |
| 122 | int qmp_marshal_input_migrate_set_cache_size(Monitor *mon, const QDict *qdict, QObject **ret); |
| 123 | int64_t qmp_query_migrate_cache_size(Error **errp); |
| 124 | int qmp_marshal_input_query_migrate_cache_size(Monitor *mon, const QDict *qdict, QObject **ret); |
| 125 | ObjectPropertyInfoList * qmp_qom_list(const char * path, Error **errp); |
| 126 | int qmp_marshal_input_qom_list(Monitor *mon, const QDict *qdict, QObject **ret); |
| 127 | void qmp_set_password(const char * protocol, const char * password, bool has_connected, const char * connected, Error **errp); |
| 128 | int qmp_marshal_input_set_password(Monitor *mon, const QDict *qdict, QObject **ret); |
| 129 | void qmp_expire_password(const char * protocol, const char * time, Error **errp); |
| 130 | int qmp_marshal_input_expire_password(Monitor *mon, const QDict *qdict, QObject **ret); |
| 131 | void qmp_eject(const char * device, bool has_force, bool force, Error **errp); |
| 132 | int qmp_marshal_input_eject(Monitor *mon, const QDict *qdict, QObject **ret); |
| 133 | void qmp_change_vnc_password(const char * password, Error **errp); |
| 134 | int qmp_marshal_input_change_vnc_password(Monitor *mon, const QDict *qdict, QObject **ret); |
| 135 | void qmp_change(const char * device, const char * target, bool has_arg, const char * arg, Error **errp); |
| 136 | int qmp_marshal_input_change(Monitor *mon, const QDict *qdict, QObject **ret); |
| 137 | void qmp_block_set_io_throttle(const char * device, int64_t bps, int64_t bps_rd, int64_t bps_wr, int64_t iops, int64_t iops_rd, int64_t iops_wr, bool has_bps_max, int64_t bps_max, bool has_bps_rd_max, int64_t bps_rd_max, bool has_bps_wr_max, int64_t bps_wr_max, bool has_iops_max, int64_t iops_max, bool has_iops_rd_max, int64_t iops_rd_max, bool has_iops_wr_max, int64_t iops_wr_max, bool has_iops_size, int64_t iops_size, Error **errp); |
| 138 | int qmp_marshal_input_block_set_io_throttle(Monitor *mon, const QDict *qdict, QObject **ret); |
| 139 | void qmp_block_stream(const char * device, bool has_base, const char * base, bool has_speed, int64_t speed, bool has_on_error, BlockdevOnError on_error, Error **errp); |
| 140 | int qmp_marshal_input_block_stream(Monitor *mon, const QDict *qdict, QObject **ret); |
| 141 | void qmp_block_job_set_speed(const char * device, int64_t speed, Error **errp); |
| 142 | int qmp_marshal_input_block_job_set_speed(Monitor *mon, const QDict *qdict, QObject **ret); |
| 143 | void qmp_block_job_cancel(const char * device, bool has_force, bool force, Error **errp); |
| 144 | int qmp_marshal_input_block_job_cancel(Monitor *mon, const QDict *qdict, QObject **ret); |
| 145 | void qmp_block_job_pause(const char * device, Error **errp); |
| 146 | int qmp_marshal_input_block_job_pause(Monitor *mon, const QDict *qdict, QObject **ret); |
| 147 | void qmp_block_job_resume(const char * device, Error **errp); |
| 148 | int qmp_marshal_input_block_job_resume(Monitor *mon, const QDict *qdict, QObject **ret); |
| 149 | void qmp_block_job_complete(const char * device, Error **errp); |
| 150 | int qmp_marshal_input_block_job_complete(Monitor *mon, const QDict *qdict, QObject **ret); |
| 151 | ObjectTypeInfoList * qmp_qom_list_types(bool has_implements, const char * implements, bool has_abstract, bool abstract, Error **errp); |
| 152 | int qmp_marshal_input_qom_list_types(Monitor *mon, const QDict *qdict, QObject **ret); |
| 153 | DevicePropertyInfoList * qmp_device_list_properties(const char * q_typename, Error **errp); |
| 154 | int qmp_marshal_input_device_list_properties(Monitor *mon, const QDict *qdict, QObject **ret); |
| 155 | void qmp_migrate(const char * uri, bool has_blk, bool blk, bool has_inc, bool inc, bool has_detach, bool detach, Error **errp); |
| 156 | int qmp_marshal_input_migrate(Monitor *mon, const QDict *qdict, QObject **ret); |
| 157 | void qmp_xen_save_devices_state(const char * filename, Error **errp); |
| 158 | int qmp_marshal_input_xen_save_devices_state(Monitor *mon, const QDict *qdict, QObject **ret); |
| 159 | void qmp_xen_set_global_dirty_log(bool enable, Error **errp); |
| 160 | int qmp_marshal_input_xen_set_global_dirty_log(Monitor *mon, const QDict *qdict, QObject **ret); |
| 161 | void qmp_device_del(const char * id, Error **errp); |
| 162 | int qmp_marshal_input_device_del(Monitor *mon, const QDict *qdict, QObject **ret); |
| 163 | void qmp_dump_guest_memory(bool paging, const char * protocol, bool has_begin, int64_t begin, bool has_length, int64_t length, Error **errp); |
| 164 | int qmp_marshal_input_dump_guest_memory(Monitor *mon, const QDict *qdict, QObject **ret); |
| 165 | void qmp_netdev_del(const char * id, Error **errp); |
| 166 | int qmp_marshal_input_netdev_del(Monitor *mon, const QDict *qdict, QObject **ret); |
| 167 | void qmp_getfd(const char * fdname, Error **errp); |
| 168 | int qmp_marshal_input_getfd(Monitor *mon, const QDict *qdict, QObject **ret); |
| 169 | void qmp_closefd(const char * fdname, Error **errp); |
| 170 | int qmp_marshal_input_closefd(Monitor *mon, const QDict *qdict, QObject **ret); |
| 171 | MachineInfoList * qmp_query_machines(Error **errp); |
| 172 | int qmp_marshal_input_query_machines(Monitor *mon, const QDict *qdict, QObject **ret); |
| 173 | CpuDefinitionInfoList * qmp_query_cpu_definitions(Error **errp); |
| 174 | int qmp_marshal_input_query_cpu_definitions(Monitor *mon, const QDict *qdict, QObject **ret); |
| 175 | AddfdInfo * qmp_add_fd(bool has_fdset_id, int64_t fdset_id, bool has_opaque, const char * opaque, Error **errp); |
| 176 | int qmp_marshal_input_add_fd(Monitor *mon, const QDict *qdict, QObject **ret); |
| 177 | void qmp_remove_fd(int64_t fdset_id, bool has_fd, int64_t fd, Error **errp); |
| 178 | int qmp_marshal_input_remove_fd(Monitor *mon, const QDict *qdict, QObject **ret); |
| 179 | FdsetInfoList * qmp_query_fdsets(Error **errp); |
| 180 | int qmp_marshal_input_query_fdsets(Monitor *mon, const QDict *qdict, QObject **ret); |
| 181 | TargetInfo * qmp_query_target(Error **errp); |
| 182 | int qmp_marshal_input_query_target(Monitor *mon, const QDict *qdict, QObject **ret); |
| 183 | void qmp_send_key(KeyValueList * keys, bool has_hold_time, int64_t hold_time, Error **errp); |
| 184 | int qmp_marshal_input_send_key(Monitor *mon, const QDict *qdict, QObject **ret); |
| 185 | void qmp_screendump(const char * filename, Error **errp); |
| 186 | int qmp_marshal_input_screendump(Monitor *mon, const QDict *qdict, QObject **ret); |
| 187 | void qmp_nbd_server_start(SocketAddress * addr, Error **errp); |
| 188 | int qmp_marshal_input_nbd_server_start(Monitor *mon, const QDict *qdict, QObject **ret); |
| 189 | void qmp_nbd_server_add(const char * device, bool has_writable, bool writable, Error **errp); |
| 190 | int qmp_marshal_input_nbd_server_add(Monitor *mon, const QDict *qdict, QObject **ret); |
| 191 | void qmp_nbd_server_stop(Error **errp); |
| 192 | int qmp_marshal_input_nbd_server_stop(Monitor *mon, const QDict *qdict, QObject **ret); |
| 193 | ChardevReturn * qmp_chardev_add(const char * id, ChardevBackend * backend, Error **errp); |
| 194 | int qmp_marshal_input_chardev_add(Monitor *mon, const QDict *qdict, QObject **ret); |
| 195 | void qmp_chardev_remove(const char * id, Error **errp); |
| 196 | int qmp_marshal_input_chardev_remove(Monitor *mon, const QDict *qdict, QObject **ret); |
| 197 | TpmModelList * qmp_query_tpm_models(Error **errp); |
| 198 | int qmp_marshal_input_query_tpm_models(Monitor *mon, const QDict *qdict, QObject **ret); |
| 199 | TpmTypeList * qmp_query_tpm_types(Error **errp); |
| 200 | int qmp_marshal_input_query_tpm_types(Monitor *mon, const QDict *qdict, QObject **ret); |
| 201 | TPMInfoList * qmp_query_tpm(Error **errp); |
| 202 | int qmp_marshal_input_query_tpm(Monitor *mon, const QDict *qdict, QObject **ret); |
| 203 | CommandLineOptionInfoList * qmp_query_command_line_options(bool has_option, const char * option, Error **errp); |
| 204 | int qmp_marshal_input_query_command_line_options(Monitor *mon, const QDict *qdict, QObject **ret); |
| 205 | RxFilterInfoList * qmp_query_rx_filter(bool has_name, const char * name, Error **errp); |
| 206 | int qmp_marshal_input_query_rx_filter(Monitor *mon, const QDict *qdict, QObject **ret); |
| 207 | void qmp_blockdev_add(BlockdevOptions * options, Error **errp); |
| 208 | int qmp_marshal_input_blockdev_add(Monitor *mon, const QDict *qdict, QObject **ret); |
| 209 | |
| 210 | #endif |