diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2014-10-29 13:58:59 +0100 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2014-10-29 17:31:09 +0100 |
commit | 45e258cfbef33a28127fc8d1a9d82ec895ddaebe (patch) | |
tree | 57990fb08981e3c8ff4c34845b5c032ad77cfd1c /include | |
parent | 4e3f1ed110a19dc6c5f6dfbe0c2e851f5fdb462b (diff) | |
download | libusbg-45e258cfbef33a28127fc8d1a9d82ec895ddaebe.tar.gz libusbg-45e258cfbef33a28127fc8d1a9d82ec895ddaebe.tar.bz2 libusbg-45e258cfbef33a28127fc8d1a9d82ec895ddaebe.zip |
libusbg: Move gadget schemes functionality to separate file
Having wholle code in one file hurts code readability.
It would be more convenient to split this large file
into a few smaller. This commits move whole functinality
related to gadget schemes to separate file.
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/usbg/usbg_internal.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/usbg/usbg_internal.h b/include/usbg/usbg_internal.h index 4c0f449..a6e8fc2 100644 --- a/include/usbg/usbg_internal.h +++ b/include/usbg/usbg_internal.h @@ -128,3 +128,14 @@ struct usbg_udc #define STRINGS_DIR "strings" #define CONFIGS_DIR "configs" #define FUNCTIONS_DIR "functions" + +static inline int file_select(const struct dirent *dent) +{ + if ((strcmp(dent->d_name, ".") == 0) || (strcmp(dent->d_name, "..") == 0)) + return 0; + else + return 1; +} + +int usbg_translate_error(int error); + |