]> git.proxmox.com Git - qemu.git/blame - include/qemu-io.h
qga: Fix compiler warnings (missing format attribute, wrong format strings)
[qemu.git] / include / qemu-io.h
CommitLineData
e3aff4f6
AL
1/*
2 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
8167ee88 15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
e3aff4f6 16 */
e3aff4f6 17
3d21994f
KW
18#ifndef QEMU_IO_H
19#define QEMU_IO_H
734c3b85 20
3d21994f 21#include "qemu-common.h"
e3aff4f6 22
3d21994f 23#define CMD_FLAG_GLOBAL ((int)0x80000000) /* don't iterate "args" */
734c3b85
KW
24
25typedef int (*cfunc_t)(BlockDriverState *bs, int argc, char **argv);
e3aff4f6
AL
26typedef void (*helpfunc_t)(void);
27
28typedef struct cmdinfo {
3d21994f
KW
29 const char* name;
30 const char* altname;
31 cfunc_t cfunc;
32 int argmin;
33 int argmax;
34 int canpush;
35 int flags;
36 const char *args;
37 const char *oneline;
38 helpfunc_t help;
e3aff4f6
AL
39} cmdinfo_t;
40
3d21994f 41bool qemuio_command(BlockDriverState *bs, const char *cmd);
e3aff4f6 42
3d21994f 43void qemuio_add_command(const cmdinfo_t *ci);
c2cdf5c5 44int qemuio_command_usage(const cmdinfo_t *ci);
e3aff4f6 45
3d21994f 46#endif /* QEMU_IO_H */