+/*
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#ifndef __TIZEN_SYSTEM_USB_GADGET_H__
#define __TIZEN_SYSTEM_USB_GADGET_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
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
+ USB_GADGET_FUNC_NONE = 0x00,
+ USB_GADGET_FUNC_SDB = 0x01,
+ USB_GADGET_FUNC_MTP = 0x02,
+ USB_GADGET_FUNC_RNDIS = 0x04,
+ USB_GADGET_FUNC_ACM = 0x08,
+ USB_GADGET_FUNC_DIAG = 0x10,
+ USB_GADGET_FUNC_RMNET = 0x20,
};
+#ifdef __cplusplus
+}
+#endif
+
#endif __TIZEN_SYSTEM_USB_GADGET_H__