summaryrefslogtreecommitdiff
path: root/src/usbg.c
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2016-12-16 13:10:30 +0100
committerKrzysztof Opasiak <k.opasiak@samsung.com>2017-03-03 14:02:27 +0100
commitb656ce0845abba50b71f5b5fad989c82bf02cd16 (patch)
tree3be682dcb5f911410a8dc63d181df2afcbf7d97a /src/usbg.c
parent784e693fe5b397516b8b8521386205512e989c70 (diff)
downloadlibusbg-b656ce0845abba50b71f5b5fad989c82bf02cd16.tar.gz
libusbg-b656ce0845abba50b71f5b5fad989c82bf02cd16.tar.bz2
libusbg-b656ce0845abba50b71f5b5fad989c82bf02cd16.zip
libusbgx: Add support for HID function
HID function has been ported to ConfigFS interface quite long time ago so let's add support for it also in libusbgx. Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'src/usbg.c')
-rw-r--r--src/usbg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/usbg.c b/src/usbg.c
index fb6ee4b..3a2c674 100644
--- a/src/usbg.c
+++ b/src/usbg.c
@@ -50,6 +50,7 @@ extern struct usbg_function_type usbg_f_type_midi;
extern struct usbg_function_type usbg_f_type_ms;
extern struct usbg_function_type usbg_f_type_phonet;
extern struct usbg_function_type usbg_f_type_loopback;
+extern struct usbg_function_type usbg_f_type_hid;
/**
* @var function_types
@@ -69,6 +70,7 @@ struct usbg_function_type* function_types[] = {
[USBG_F_MASS_STORAGE] = &usbg_f_type_ms,
[USBG_F_PHONET] = &usbg_f_type_phonet,
[USBG_F_LOOPBACK] = &usbg_f_type_loopback,
+ [USBG_F_HID] = &usbg_f_type_hid,
};
ARRAY_SIZE_SENTINEL(function_types, USBG_FUNCTION_TYPE_MAX);