From: Youngjae Cho Date: Thu, 14 Apr 2022 05:08:39 +0000 (+0900) Subject: usb-gadget: rename ane rearrange enum X-Git-Tag: accepted/tizen/unified/20220505.134715^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F273817%2F3;p=platform%2Fcore%2Fapi%2Fdevice.git usb-gadget: rename ane rearrange enum Removed unused usb-gadget functions, DM and CONN_GADGET. Change-Id: Ibd8c5fdc18901dd52b489e05731ed03bc3e7d8ce Signed-off-by: Youngjae Cho --- diff --git a/include/usb-gadget.h b/include/usb-gadget.h index 8617d97..19a191e 100644 --- a/include/usb-gadget.h +++ b/include/usb-gadget.h @@ -1,16 +1,38 @@ +/* + * 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__