mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-23 06:28:00 +00:00
f6677a1dec
'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>
18 lines
391 B
C
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
|