2 * Copyright 2013 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (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
8 * http://floralicense.org/license/
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.
23 double minimum_period;
38 double default_packet_time;
43 char *default_content;
46 unsigned long minimum_space;
51 double slave_activate_time;
52 double slave_relaunch_time;
53 int slave_relaunch_count;
58 unsigned long sqlite_flush_max;
81 char *provider_method;
83 int overwrite_content;
88 extern struct conf g_conf;
90 extern int conf_loader(void);
92 #define BASE_W g_conf.base_width
93 #define BASE_H g_conf.base_height
98 #define USE_XMONITOR g_conf.use_xmonitor
99 #define USE_SW_BACKEND g_conf.use_sw_backend
100 #define PROVIDER_METHOD g_conf.provider_method
101 #define DEBUG_MODE g_conf.debug_mode
102 #define OVERWRITE_CONTENT g_conf.overwrite_content
103 #define COM_CORE_THREAD g_conf.com_core_thread
105 #define MINIMUM_PERIOD g_conf.minimum_period
107 #define DEFAULT_SCRIPT g_conf.default_conf.script
108 #define DEFAULT_ABI g_conf.default_conf.abi
109 #define DEFAULT_GROUP g_conf.default_conf.pd_group
110 #define DEFAULT_PERIOD g_conf.default_conf.period
111 #define PRIORITY_NO_CHANGE -1.0f
113 #define BUNDLE_SLAVE_NAME g_conf.launch_key.name
114 #define BUNDLE_SLAVE_SECURED g_conf.launch_key.secured
115 #define BUNDLE_SLAVE_ABI g_conf.launch_key.abi
116 #define PACKET_TIME g_conf.default_packet_time
117 #define CONTENT_NO_CHANGE g_conf.empty_content
118 #define TITLE_NO_CHANGE g_conf.empty_title
119 #define DEFAULT_TITLE g_conf.default_title
120 #define DEFAULT_CONTENT g_conf.default_content
121 #define MINIMUM_SPACE g_conf.minimum_space
123 #define IMAGE_PATH g_conf.path.image
124 #define SCRIPT_PATH g_conf.path.script
125 #define SCRIPT_PORT_PATH g_conf.path.script_port
126 #define CONF_PATH g_conf.path.conf
127 #define ROOT_PATH g_conf.path.root
128 #define SLAVE_LOG_PATH g_conf.path.slave_log
129 #define READER_PATH g_conf.path.reader
130 #define ALWAYS_PATH g_conf.path.always
131 #define MODULE_PATH g_conf.path.module
132 #define INPUT_PATH g_conf.path.input
134 #define REPLACE_TAG_APPID g_conf.replace_tag
135 #define SLAVE_TTL g_conf.slave_ttl
136 #define SLAVE_ACTIVATE_TIME g_conf.slave_activate_time
137 #define SLAVE_RELAUNCH_TIME g_conf.slave_relaunch_time
138 #define SLAVE_RELAUNCH_COUNT g_conf.slave_relaunch_count
140 #define MAX_LOG_LINE g_conf.max_log_line
141 #define MAX_LOG_FILE g_conf.max_log_file
143 #define SQLITE_FLUSH_MAX g_conf.sqlite_flush_max
144 #define DBFILE g_conf.path.db
146 #define SLAVE_MAX_LOAD g_conf.slave_max_load
147 #define DEFAULT_PING_TIME g_conf.ping_time
150 #define MAX_PKGNAME 512
151 #define DELAY_TIME 0.0000001f
152 #define DEFAULT_CLUSTER "user,created"
153 #define MINIMUM_REACTIVATION_TIME 10
155 #define HAPI __attribute__((visibility("hidden")))
158 #if !defined(LOCALEDIR)
159 #define LOCALEDIR "/usr/share/locale"
163 #if !defined(PACKAGE)
164 #define PACKAGE "data-provider-slave"
167 #define DATA_MASTER "data-provider-master"
169 #define DEFAULT_LIFE_TIMER 20
170 #define DEFAULT_LOAD_TIMER 20
171 #define MINIMUM_UPDATE_INTERVAL 0.1f
175 * NO_ALARM is used for disabling the alarm code
176 * This will turn off the alarm for checking the return of livebox functions
182 * This is default action.
183 * This will enable the 'alarm' for checking the return time of livebox functions
187 //#define DLAPI __attribute__((visibility("default")))