function object: add to function object pointer to usbg_function

Change-Id: I3d748b9d3a8cea29a9451e8eae2246b48c18140f
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
function object: add serial function interface

add serial function interface  with properties
of all serial functions (serial,acm,obex)

Change-Id: I60e8fcef9c228a86345c0106836976d78c56ea36
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
gadget object: add config manager interface

Change-Id: Ie4dc3b6c0efd9031065eccaea9830946479b381d
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
config manager: add create config handler

Change-Id: I7c77bbc5ebd438c548a5faacc882bc8a067cfaab
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
function object & manager: add "Function" string

add "Function" string to object path

Change-Id: I46660279e31cd38306cc40fdb426528700e5d29b
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
gadget daemon: add gadgetd config dbus object

Change-Id: Iecb70a0a8617693a624f22464b17a82e89b7a8ad
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
config object: add config pointer

Change-Id: Ie60a6621727e8f9631cbed7fc983c2edd47ba95e
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
config: Fix doc in sample configuration file

Change-Id: I2703fe972033e5c1b0ad29e08948253d2e504314
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
common: Add container_of() macro

Change-Id: I926cf0af1732e01797046e4316ffc710311c96df
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
core: Add internal API as core of daemon.

DBUS shouldn't directly use all usbg function
and implement abstraction layer for kernel and FFS
functions.

Change-Id: I6da9f4328f70bde0bb9a2beb066156b53af7da57
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
core: Rework DBUS functions to use gadgetd core API

Change-Id: I54898ee65092d4db8bb00e534ef3e7b4fec7d38b
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
config object: add gadget config interface to dbus config object

Change-Id: I5239d5823e272dcad3204d6ea04cec77efb084d0
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
core: Allow to unregister all function types with one call

Change-Id: I3266012f93c1f4e1f473840beceb77ee7695418e
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
core: Register all available in kernel function types

Change-Id: I046cd811ad3c1a292f0308f6b851f84c24b769b8
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
core: Allow to list available function types

Change-Id: I13888e4093a89c023fe3319b3a5ec4ff4f00e72e
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
gadget manager: Implement list functions handler

Change-Id: Ia987e6b71f60634de9aed469f6accd5800f59f4f
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
common: Add ARRAY_SIZE() macro

Change-Id: Ifae1c49e7cb328a1308c6e51c203e30fdfa96c67
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
gadget descriptors: Rework interface to use gd_gadget

Use gd_gadget structure instead of gadget name.
Use simpler usbg functions to get and set properties.

Change-Id: I8f18bdbef7cd9787f6af0dd1e44dfbd0c3c56c8b
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
gadget strings: Rework interface to use gd_gadget

Change-Id: If2aa7170e8ed816d002e845cb9905541ba060242
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
function manager: Rework interface to use gd_gadget

Change-Id: If13daa7ad6b63a581445100a004de9863d8c2aa1
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>