Init basesystem source codes.
[staging/basesystem.git] / video_in_hal / stub / diag_record / library_record_api / src / DiagRecordAPI.cpp
1 /*
2  * @copyright Copyright (c) 2019-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 #include "PFDREC_API.h"
18
19 RET_PFDREC_API PFDREC_FuncStartStop(E_PFDREC_FUNC status) {
20   /*
21    *  Note.
22    *  This feature needs to be implemented by the vendor.
23    */
24     return RET_PFDREC_NORMAL;
25 }
26
27 RET_PFDREC_API PFDREC_DeleteData(PFDREC_CALLBACK_FUNC func) {
28   /*
29    *  Note.
30    *  This feature needs to be implemented by the vendor.
31    */
32     return RET_PFDREC_NORMAL;
33 }
34
35 RET_PFDREC_API PFDREC_DeleteIndividual(E_PFDREC_CATEGORY_TYPE category) {
36   /*
37    *  Note.
38    *  This feature needs to be implemented by the vendor.
39    */
40     return RET_PFDREC_NORMAL;
41 }
42
43 RET_PFDREC_API PFDREC_ComDataBackup(E_PFDREC_CATEGORY_TYPE category,
44                                     time_t   time_info,
45                                     uint32_t frame_num,
46                                     uint8_t* data) {
47   /*
48    *  Note.
49    *  This feature needs to be implemented by the vendor.
50    */
51     return RET_PFDREC_NORMAL;
52 }
53
54 RET_PFDREC_API PFDREC_ReadMemData(E_PFDREC_CATEGORY_TYPE category,
55                                     uint32_t offset,
56                                     uint32_t read_num,
57                                     uint8_t* data,
58                                     uint32_t* out_num) {
59   /*
60    *  Note.
61    *  This feature needs to be implemented by the vendor.
62    */
63     return RET_PFDREC_NORMAL;
64 }
65
66 RET_PFDREC_API PFDREC_GetDataInfo(E_PFDREC_CATEGORY_TYPE category,
67                                     uint32_t* frame_num) {
68   /*
69    *  Note.
70    *  This feature needs to be implemented by the vendor.
71    */
72     return RET_PFDREC_NORMAL;
73 }
74
75 RET_PFDREC_API PFDREC_GetFuncStartStop(E_PFDREC_FUNC* status) {
76   /*
77    *  Note.
78    *  This feature needs to be implemented by the vendor.
79    */
80     return RET_PFDREC_NORMAL;
81 }
82
83 RET_PFDREC_API PFDREC_OutputData(void) {
84   /*
85    *  Note.
86    *  This feature needs to be implemented by the vendor.
87    */
88     return RET_PFDREC_NORMAL;
89 }
90
91 RET_PFDREC_API PFDREC_ReadData(E_PFDREC_CATEGORY_TYPE category,
92                                 uint64_t unique_id,
93                                 uint32_t read_num,
94                                 uint8_t* data,
95                                 uint32_t* out_num,
96                                 uint64_t* end_unique_id) {
97   /*
98    *  Note.
99    *  This feature needs to be implemented by the vendor.
100    */
101     return RET_PFDREC_NORMAL;
102 }
103
104 RET_PFDREC_API PFDREC_SearchData(E_PFDREC_CATEGORY_TYPE category,
105                                     time_t time_info,
106                                     uint64_t* unique_id,
107                                     uint8_t*  data) {
108   /*
109    *  Note.
110    *  This feature needs to be implemented by the vendor.
111    */
112     return RET_PFDREC_NORMAL;
113 }
114 RET_PFDREC_API PFDREC_OpenSession(HANDLE h_app) {
115   /*
116    *  Note.
117    *  This feature needs to be implemented by the vendor.
118    */
119     return RET_PFDREC_NORMAL;
120 }
121
122 RET_PFDREC_API PFDREC_CloseSession(HANDLE h_app) {
123   /*
124    *  Note.
125    *  This feature needs to be implemented by the vendor.
126    */
127     return RET_PFDREC_NORMAL;
128 }
129
130 RET_PFDREC_API PFDREC_OverwriteData(E_PFDREC_CATEGORY_TYPE category,
131                                     uint32_t offset,
132                                     uint8_t* data) {
133   /*
134    *  Note.
135    *  This feature needs to be implemented by the vendor.
136    */
137     return RET_PFDREC_NORMAL;
138 }
139
140 RET_PFDREC_API PFDREC_SetExtractionMode(const E_PFDREC_CATEGORY_TYPE category,
141                                         const E_PFDREC_EXTRACT_MODE mode) {
142   /*
143    *  Note.
144    *  This feature needs to be implemented by the vendor.
145    */
146     return RET_PFDREC_NORMAL;
147 }
148
149 RET_PFDREC_API PFDREC_SetExtractionMode_Exp(const E_PFDREC_CATEGORY_TYPE category,
150                                             const E_PFDREC_EXTRACT_MODE mode) {
151   /*
152    *  Note.
153    *  This feature needs to be implemented by the vendor.
154    */
155     return RET_PFDREC_NORMAL;
156 }
157
158 RET_PFDREC_API PFDREC_ComDataBackupY2K38(E_PFDREC_CATEGORY_TYPE category,
159                                             uint32_t time_info,
160                                             uint32_t frame_num,
161                                             uint8_t* data) {
162   /*
163    *  Note.
164    *  This feature needs to be implemented by the vendor.
165    */
166     return RET_PFDREC_NORMAL;
167 }
168
169 RET_PFDREC_API PFDREC_SearchDataY2K38(E_PFDREC_CATEGORY_TYPE category,
170                                         uint32_t  time_info,
171                                         uint64_t* unique_id,
172                                         uint8_t*  data) {
173   /*
174    *  Note.
175    *  This feature needs to be implemented by the vendor.
176    */
177     return RET_PFDREC_NORMAL;
178 }