Files
Amerigo Wang f6677a1dec kvm tools: implement "help xxx" command
'kvm run --help' works fine but 'kvm help run' shows nothing,
this patch implements it.

Acked-by: Prasad Joshi <prasadjoshi124@gmail.com>
Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
2015-06-01 16:39:44 +01:00

18 lines
391 B
C

#ifndef __KVM_CMD_H__
#define __KVM_CMD_H__
struct cmd_struct {
const char *cmd;
int (*fn)(int, const char **, const char *);
void (*help)(void);
int option;
};
extern struct cmd_struct kvm_commands[];
struct cmd_struct *kvm_get_command(struct cmd_struct *command,
const char *cmd);
int handle_command(struct cmd_struct *command, int argc, const char **argv);
#endif