function: Add explicit show command
authorPawel Szewczyk <p.szewczyk@samsung.com>
Tue, 14 Jul 2015 10:16:18 +0000 (12:16 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 28 Jul 2015 16:07:11 +0000 (18:07 +0200)
commitd6f5943fdf316933b72cb05cf79fab4e71139cf1
tree88bb1b49f506acef5cee8131097036b2b0228155
parent04861318a326c344e2c699abb3b6fd08fcff9b15
function: Add explicit show command

Using default behavior of 'gt func' command as only way of showing
functions is solution far from ideal. E.g. in following example second
command is ambiguous:

$ gt create rm
$ gt func rm

Even if gadget names like 'rm' will not be commonly used, we cannot forbid
them. To prevent situations like that, this commit introduce  explicit
'func show' command for showing functions.

Previous default behavior for 'gt func' command is preserved.

Change-Id: Ifa5d5fbb3e78174cfb69231da7272ad8fa72c568
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
source/function/include/function.h
source/function/src/function.c
source/function/src/function_gadgetd.c
source/function/src/function_libusbg.c
source/function/src/function_not_implemented.c