target-i386: Fix eflags.TF/#DB handling of syscall/sysret insns
[qemu/ar7.git] / include / qemu-io.h
blob4d402b9b01203f2dfa25b62eba763c6b7b5bb69a
1 /*
2 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
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/>.
18 #ifndef QEMU_IO_H
19 #define QEMU_IO_H
21 #include "qemu-common.h"
23 #define CMD_FLAG_GLOBAL ((int)0x80000000) /* don't iterate "args" */
25 typedef int (*cfunc_t)(BlockBackend *blk, int argc, char **argv);
26 typedef void (*helpfunc_t)(void);
28 typedef struct cmdinfo {
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;
39 } cmdinfo_t;
41 extern bool qemuio_misalign;
43 bool qemuio_command(BlockBackend *blk, const char *cmd);
45 void qemuio_add_command(const cmdinfo_t *ci);
46 int qemuio_command_usage(const cmdinfo_t *ci);
47 void qemuio_complete_command(const char *input,
48 void (*fn)(const char *cmd, void *opaque),
49 void *opaque);
51 #endif /* QEMU_IO_H */