When --recursive flag is used, functions are also printed.
Change-Id: I3d58c53111cd1db2e934b46cb4cc89a852b74451
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
-INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/include )
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/include
+ ${CMAKE_SOURCE_DIR}/function/include )
SET( GADGET_SRC
${CMAKE_CURRENT_SOURCE_DIR}/src/gadget.c
#include "backend.h"
#include "common.h"
#include "settings.h"
+#include "function.h"
/**
* @brief Get implicite gadget
{
usbg_gadget_attrs g_attrs;
usbg_udc *u;
+ usbg_function *f;
int usbg_ret;
const char *name;
if (opts & GT_VERBOSE)
print_gadget_attrs(&g_attrs, NULL);
- /* TODO --recursive*/
+ if (opts & GT_RECURSIVE) {
+ usbg_for_each_function(f, g) {
+ gt_print_function_libusbg(f, opts);
+ }
+
+ /* TODO print config */
+ }
return 0;
}