]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Provide the basic Gitish framework
authorPrasad Joshi <prasadjoshi124@gmail.com>
Fri, 8 Apr 2011 16:43:08 +0000 (17:43 +0100)
committerPekka Enberg <penberg@kernel.org>
Fri, 8 Apr 2011 16:48:36 +0000 (19:48 +0300)
commit65d20b35aa4da21aec9230adc2cbdbd0fecd9d3e
treea3ffa6bf78c908b685cda020aacc67372ba3cb42
parent828d429609023af323e9e49cd5d48a0864905821
kvm tools: Provide the basic Gitish framework

- kvm-cmd.h: Adds a new structure cmd_struct to create a table of commands
  and callback function. The structure was copied from tools/perf

- kvm-cmd.c: implements two main functions for command processing.
  kvm_get_command(): searches table for specific command.
  handle_command(): invokes the callback function for a given command.

- kvm-help.[ch] Implements the kvm help command. The function
  list_common_cmds_help() is a copy of similar function in tools/perf.

[ penberg@kernel.org: Add CREDITS-Git file for proper attributions. ]
Signed-off-by: Prasad Joshi <prasadjoshi124@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/CREDITS-Git [new file with mode: 0644]
tools/kvm/include/kvm/kvm-cmd.h [new file with mode: 0644]
tools/kvm/include/kvm/kvm-help.h [new file with mode: 0644]
tools/kvm/kvm-cmd.c [new file with mode: 0644]
tools/kvm/kvm-help.c [new file with mode: 0644]