Init basesystem source codes.
[staging/basesystem.git] / vehicleservice / positioning / server / include / ServiceInterface / BackupMgrIf.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
19  *    BackupMgrIf.h
20  * @brief
21  *    BackupMgr service-to-service interface
22  */
23 #ifndef POSITIONING_SERVER_INCLUDE_SERVICEINTERFACE_BACKUPMGRIF_H_
24 #define POSITIONING_SERVER_INCLUDE_SERVICEINTERFACE_BACKUPMGRIF_H_
25
26 /*---------------------------------------------------------------------------------*
27  * Incluce                                                                         *
28  *---------------------------------------------------------------------------------*/
29 #include <native_service/frameworkunified_types.h>
30 #include <native_service/frameworkunified_framework_if.h>
31 #include <native_service/ns_backup.h>
32 #include <native_service/ns_backup_id.h>
33
34 #include <vehicle_service/positioning_base_library.h>
35
36 /*---------------------------------------------------------------------------------*
37  * Definition                                                                      *
38  *---------------------------------------------------------------------------------*/
39
40 /*---------------------------------------------------------------------------------*
41  * Typedef declaration                                                             *
42  *---------------------------------------------------------------------------------*/
43
44 /*---------------------------------------------------------------------------------*
45  * Struct declaration                                                              *
46  *---------------------------------------------------------------------------------*/
47
48 /*---------------------------------------------------------------------------------*
49  * Prototype Declaration                                                           *
50  *---------------------------------------------------------------------------------*/
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 EFrameworkunifiedStatus BackupMgrIfNotifyOnBackupMgrAvailability(CbFuncPtr fp_on_cmd);
55 void BackupMgrIfSetAvailability(BOOL b_is_available);
56 BOOL BackupMgrIf_GetAvailability(void);
57 EFrameworkunifiedStatus BackupMgrIfBackupDataRd(PCSTR tag_id, uint32_t ui_offset, \
58     void *pv_buf, uint32_t ui_size, BOOL* pb_is_available);
59 EFrameworkunifiedStatus BackupMgrIfBackupDataWt(PCSTR tag_id, void *pv_buf, \
60     uint32_t ui_offset, uint32_t ui_size, BOOL* pb_is_available);
61 #ifdef __cplusplus
62 }
63 #endif
64
65 #endif  // POSITIONING_SERVER_INCLUDE_SERVICEINTERFACE_BACKUPMGRIF_H_