2 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
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.
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.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
21 #include "qemu-common.h"
23 #define CMD_FLAG_GLOBAL ((int)0x80000000) /* don't iterate "args" */
25 typedef int (*cfunc_t
)(BlockDriverState
*bs
, int argc
, char **argv
);
26 typedef void (*helpfunc_t
)(void);
28 typedef struct cmdinfo
{
41 bool qemuio_command(BlockDriverState
*bs
, const char *cmd
);
43 void qemuio_add_command(const cmdinfo_t
*ci
);
44 int qemuio_command_usage(const cmdinfo_t
*ci
);
46 #endif /* QEMU_IO_H */