blob: 5ec95f660c36c1a849825496342e0ca05a6db768 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
/**
* @file dzl_setting.h
* @brief Generation of configuration for docker and images
* Copyright (c) 2017 Samsung Electronics Co., Ltd.
* This software is the confidential and proprietary information
* of Samsung Electronics, Inc. ("Confidential Information"). You
* shall not disclose such Confidential Information and shall use
* it only in accordance with the terms of the license agreement
* you entered into with Samsung.
*/
#ifndef __DZL_SETTING_H__
#define __DZL_SETTING_H__
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#define FILE_CNT_MAX 10
#define FILE_PATH_MAX 1024
/**
* @fn int dzl_setting_get_docker_info(char **dockerd_opt_cmd)
* @brief this function to get docker info
* @param **dockerd_opt_cmd [out] option for docker engine
* @return int result of fucntion
*/
int dzl_setting_get_docker_info(char **dockerd_opt_cmd);
/**
* @fn int dzl_setting_get_system_agent_info(container_create_info_s **create_info_p)
* @brief this function to get agent config info
* @param *create_info_p [out] agent service info from config
* @return int result of fucntion
*/
int dzl_setting_get_system_agent_info(container_create_info_s ** create_info_p);
/**
* @fn int dzl_setting_get_service_agent_info(container_create_info_s **create_info_p)
* @brief this function to get agent config info
* @param *create_info_p [out] agent service info from config
* @return int result of fucntion
*/
int dzl_setting_get_service_agent_info(container_create_info_s ** create_info_p);
/**
* @fn dzl_setting_get_image_load_info(image_load_info_s **load_info_p)
* @brief this function to get loading config info
* @param *load_info_p [out] loading info from config
* @return int result of fucntion
*/
int dzl_setting_get_image_load_info(image_load_info_s ** load_info_p);
/**
* @fn int dzl_setting_get_service_lists(container_create_info_s **lists)
* @brief this function to get service list
* @param **lists [out] services lists from config
* @return int result of fucntion
*/
int dzl_setting_get_service_lists(container_create_info_s ** lists);
/**
* @fn int dzl_setting_get_factory_init_done(void)
* @brief callback function to check status
* @return int result of fucntion
*/
int dzl_setting_get_factory_init_done(void);
/**
* @fn int dzl_setting_set_factory_init_done(int flag)
* @brief this function to set factory init
* @param flag [in] value for setting factory init
* @return int result of fucntion
*/
int dzl_setting_set_factory_init_done(int flag);
/**
* @fn int dzl_setting_get_pre_installed_file_cnt(void)
* @brief this function to get count of pre_installed files
* @return int result of fucntion
*/
int dzl_setting_get_pre_installed_file_cnt(void);
/**
* @fn int dzl_setting_get_pre_installed_filename(int index, char file_name[])
* @brief this function to get file name of pre_installed files
* @param int [in] index of file
* @param char[] [out] file name of index
* @return int result of fucntion
*/
int dzl_setting_get_pre_installed_filename(int index, char file_name[]);
#ifdef __cplusplus
}
#endif
#endif /* __DZL_SETTING_H__ */
|