Init basesystem source codes.
[staging/basesystem.git] / video_in_hal / nsframework / backup_manager / server / include / bkup_param.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 #ifndef BACKUP_MANAGER_SERVER_INCLUDE_BKUP_PARAM_H_
18 #define BACKUP_MANAGER_SERVER_INCLUDE_BKUP_PARAM_H_
19
20 typedef struct {
21   int id;
22   int size;
23   void *opt;
24   bool nand;
25   bool cache_dram;
26   bool backup_dram;
27   bool sync;
28   bool encrypt;
29   int backup_cycle;
30   char category_name[64];
31 } bkup_query_result_t;
32
33 int BckupParamInit(void);
34
35 int BkupParamGet(const char *item_name, bkup_query_result_t *result);
36 int BkupParamGetNumid(uint32_t num_id, bkup_query_result_t *result, char *item_name, size_t item_name_size);
37 void *BkupParamSetOpt(const char *item_name, void *opt);
38
39 #endif  // BACKUP_MANAGER_SERVER_INCLUDE_BKUP_PARAM_H_