diff options
author | Pawel Szewczyk <p.szewczyk@samsung.com> | 2015-02-12 16:01:52 +0100 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2015-03-06 16:12:07 +0100 |
commit | 737a58a08c7e915c18d16a46a968d765b8416dec (patch) | |
tree | b1d67085af0d947339e7c02ed44c196b2dc36fd6 /include | |
parent | 9f7091ec49df7ed454eb9435070865fa5a0903f3 (diff) | |
download | libusbg-737a58a08c7e915c18d16a46a968d765b8416dec.tar.gz libusbg-737a58a08c7e915c18d16a46a968d765b8416dec.tar.bz2 libusbg-737a58a08c7e915c18d16a46a968d765b8416dec.zip |
libusbg: tests: Add simulation of configfs for gadget attrs get/set
Before executing libusbg functions which get and set gadget attributes,
we must prepare virtual filesystem to behave as expected.
push_* and pull_* functions take arguments similar to usbg functions
which will be called after them, e.g. push_gadget_attrs(g, a)
will prepare for calling usbg_get_gadget_attrs on gadget matching g,
where a is value passed to be read.
Change-Id: I805544dbd35a1a7f8c2e4073f9f4607d9c70bb95
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Reviewed-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/usbg/usbg_internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/usbg/usbg_internal.h b/include/usbg/usbg_internal.h index a27a1db..9d99952 100644 --- a/include/usbg/usbg_internal.h +++ b/include/usbg/usbg_internal.h @@ -155,6 +155,10 @@ static inline int file_select(const struct dirent *dent) int usbg_translate_error(int error); +/** + * @brief Names of gadget attributes + */ +extern const char *gadget_attr_names[]; #endif /* USBG_INTERNAL_H */ |