usb-gadget: relocate declarations of enum 00/273800/1 accepted/tizen/6.5/unified/20220418.141324 submit/tizen_6.5/20220415.045405
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 14 Apr 2022 02:13:46 +0000 (11:13 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 14 Apr 2022 02:33:48 +0000 (02:33 +0000)
Move USB_FUNCTION_IDX_* from hal-api-device to deviced.
Move USB_FUNCTION_* from hal-api-device to capi-system-device.

Change-Id: Ia595e8e5c9fb73a7b108f0c1c850e9268e73ae48
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 826a5286ce745617e757d175f1b7fd32d13e17be)

include/usb-gadget.h [new file with mode: 0644]

diff --git a/include/usb-gadget.h b/include/usb-gadget.h
new file mode 100644 (file)
index 0000000..8617d97
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef __TIZEN_SYSTEM_USB_GADGET_H__
+#define __TIZEN_SYSTEM_USB_GADGET_H__
+
+enum {
+       USB_FUNCTION_NONE = 0,
+       USB_FUNCTION_MTP =  0x1,
+       USB_FUNCTION_ACM =  0x2,
+       USB_FUNCTION_SDB =  0x4,
+       USB_FUNCTION_RNDIS = 0x8,
+       USB_FUNCTION_DIAG = 0x10,
+       USB_FUNCTION_CONN_GADGET = 0x20,
+       USB_FUNCTION_DM = 0x40,
+       USB_FUNCTION_RMNET = 0x80
+};
+
+#endif __TIZEN_SYSTEM_USB_GADGET_H__