Init basesystem source codes.
[staging/basesystem.git] / systemservice / interface_unified / library / include / system_service / ss_devicedetection_service_protocol.h
1 /*
2  * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /**
18  * @file ss_devicedetection_service_protocol.h
19  * @brief This file supports the Device Detection service.
20  */
21
22 /** @addtogroup BaseSystem
23  *  @{
24  */
25 /** @addtogroup system_service
26  *  @ingroup BaseSystem
27  *  @{
28  */
29 /** @addtogroup device_detection_service
30  *  @ingroup system_service
31  *  @{
32  */
33
34 #ifndef _SS_DEVICEDETECTION_SERVICE_PROTOCOL_H_  // NOLINT (build/header_guard)
35 #define _SS_DEVICEDETECTION_SERVICE_PROTOCOL_H_
36
37 #include <native_service/frameworkunified_types.h>
38 #include <native_service/frameworkunified_service_protocol.h>
39 #include "system_service/ss_devicedetection_service.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 /**
46  * \~english Event type (USB/SD/...etc  event)
47  */
48 typedef enum _DeviceDetectionServerEvents {
49   /**
50    * \~english Notify whenever a USB MassStorage device is connected/removed
51    */
52   SS_DEV_DETECT_ANY_USB_EV = 121,
53   /**
54    * \~english Notify whenever a SD device is connected/removed
55    */
56   SS_DEV_DETECT_ANY_SD_EV = 122,
57   /**
58    * \~english Notify all events for all devices
59    */
60   SS_DEV_DETECT_FILEPATHNAME_EV = 123,
61   /**
62    * \~english Notify whenever a Navi Emmc device is connected/removed
63    */
64   SS_DEV_DETECT_ANY_EMMC_NAV_EV = 124,
65   /**
66    * \~english Notify whenever a USB device is connected/removed
67    */
68   SS_DEV_INFO_ANY_USB_EV = 125,
69   /**
70    * \~english Notify whenever a DISC(block) device is connected/removed
71    */
72   SS_DEV_DETECT_ANY_DISC_EV = 126,
73   /**
74    * \~english Notify whenever a USB NCM device is connected/removed
75    */
76   SS_DEV_DETECT_ANY_USB_NCM_EV = 127,
77   /**
78    * \~english Notify whenever a USB _CWORD57_ device is connected/removed
79    */
80   SS_DEV_DETECT_ANY_USB__CWORD57__EV = 128,
81   /**
82    * \~english Notify whenever a USB ACM device is connected/removed (for DCM)
83    */
84   SS_DEV_DETECT_ANY_USB_ACM_EV = 129,
85   /**
86    * \~english Notify whenever a USB Device Management device is connected/removed (for DCM)
87    */
88   SS_DEV_DETECT_ANY_USB_DEV_MNG_EV = 130,
89   /**
90    * \~english Notify whenever a USB Vics Control device is connected/removed (for DCM)
91    */
92   SS_DEV_DETECT_ANY_USB_VEHICLE_CTRL_EV = 131,
93   /**
94    * \~english Notify whenever a USB DSRC Application device is connected/removed (for DSRC)
95    */
96   SS_DEV_DETECT_ANY_USB_DSRC_APP_EV = 132,
97   /**
98    * \~english Notify whenever a USB DSRC Control device is connected/removed (for DSRC)
99    */
100   SS_DEV_DETECT_ANY_USB_DSRC_CTRL_EV = 133,
101   /**
102    * \~english Notify whenever a USB IR Vics Data device is connected/removed (for DSRC)
103    */
104   SS_DEV_DETECT_ANY_USB_IR_VICS_DATA_EV = 134,
105   /**
106    * \~english Notify whenever USB Over Current is Detected
107    */
108   SS_DEV_ERR_USB_OVER_CURRENT_EV = 135,
109   /**
110    * \~english Notify whenever USB MTP Device is Detected
111    */
112   SS_DEV_DETECT_ANY_USB_MTP_EV = 136,
113   /**
114    * \~english Notify whenever USB Authentication Error Notify
115    */
116   SS_DEV_INFO_ANY_USB_NOTIFY_EV = 137,
117   /**
118    * \~english Notify whenever a USB _CWORD57_ device is connected/removed after RoleSW.
119    */
120   SS_DEV_DETECT_ANY_USB__CWORD57__ROLE_EV = 138,
121   /**
122    * \~english Notify whenever SD is formated.
123    */
124   SS_DEV_INFO_SD_FORMAT_COMP_EV = 139,
125   /**
126    * \~english Notify whenever a USB NCM device is connected/removed (for DCM)
127    */
128   SS_DEV_DETECT_ANY_USB_DCM_NCM_EV = 140,
129   /**
130    * \~english Notify whenever a DVD-P device is connected/removed
131    */
132   SS_DEV_INFO_ANY_USB_DVDP_EV = 141,
133 } SS_DeviceDetectionServerEvents;
134
135 #ifdef __cplusplus
136 }
137 #endif
138
139 #endif /* _SS_DEVICEDETECTION_SERVICE_PROTOCOL_H_ */  // NOLINT (build/header_guard)
140
141 /** @}*/  // end of device_detection_service
142 /** @}*/  // end of system_service
143 /** @}*/  // end of BaseSystem