xref: /kvmtool/include/kvm/kvm-cmd.h (revision f6677a1decac9ff0b48fa59f1a684387352e72bd)
1 #ifndef __KVM_CMD_H__
2 #define __KVM_CMD_H__
3 
4 struct cmd_struct {
5 	const char *cmd;
6 	int (*fn)(int, const char **, const char *);
7 	void (*help)(void);
8 	int option;
9 };
10 
11 extern struct cmd_struct kvm_commands[];
12 struct cmd_struct *kvm_get_command(struct cmd_struct *command,
13                 const char *cmd);
14 
15 int handle_command(struct cmd_struct *command, int argc, const char **argv);
16 
17 #endif
18