]> git.proxmox.com Git - qemu.git/blobdiff - cmd.h
qemu-io: Move functions for registering and running commands
[qemu.git] / cmd.h
diff --git a/cmd.h b/cmd.h
index 5b6f61b9ad2a4aab038a11db107ea4ef9d11ddf5..0d01a33e978fc2f518782e8a00729a61edca2de3 100644 (file)
--- a/cmd.h
+++ b/cmd.h
@@ -39,23 +39,16 @@ typedef struct cmdinfo {
        helpfunc_t      help;
 } cmdinfo_t;
 
-extern cmdinfo_t       *cmdtab;
-extern int             ncmds;
-
 typedef int (*checkfunc_t)(BlockDriverState *bs, const cmdinfo_t *ci);
 
-void add_command(const cmdinfo_t *ci);
+void qemuio_add_command(const cmdinfo_t *ci);
 void add_user_command(char *optarg);
 void add_check_command(checkfunc_t cf);
 
-const cmdinfo_t *find_command(const char *cmd);
-
 void command_loop(void);
-int command_usage(const cmdinfo_t *ci);
-int command(const cmdinfo_t *ci, int argc, char **argv);
+int qemuio_command_usage(const cmdinfo_t *ci);
 
 /* from input.h */
-char **breakline(char *input, int *count);
 char *fetchline(void);
 
 void cvtstr(double value, char *str, size_t sz);