2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.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
8 * http://www.tizenopensource.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;
55 unsigned long sqlite_flush_max;
73 char *vconf_sys_cluster;
74 int max_pended_ctx_events;
77 char *provider_method;
79 int overwrite_content;
83 extern struct conf g_conf;
85 extern int conf_loader(void);
87 #define BASE_W g_conf.base_width
88 #define BASE_H g_conf.base_height
93 #define USE_SW_BACKEND g_conf.use_sw_backend
94 #define PROVIDER_METHOD g_conf.provider_method
95 #define DEBUG_MODE g_conf.debug_mode
96 #define OVERWRITE_CONTENT g_conf.overwrite_content
97 #define COM_CORE_THREAD g_conf.com_core_thread
99 #define MINIMUM_PERIOD g_conf.minimum_period
101 #define DEFAULT_SCRIPT g_conf.default_conf.script
102 #define DEFAULT_ABI g_conf.default_conf.abi
103 #define DEFAULT_GROUP g_conf.default_conf.pd_group
104 #define NO_CHANGE g_conf.default_conf.period
105 #define DEFAULT_PERIOD g_conf.default_conf.period
107 #define BUNDLE_SLAVE_NAME g_conf.launch_key.name
108 #define BUNDLE_SLAVE_SECURED g_conf.launch_key.secured
109 #define BUNDLE_SLAVE_ABI g_conf.launch_key.abi
110 #define PACKET_TIME g_conf.default_packet_time
111 #define CONTENT_NO_CHANGE g_conf.empty_content
112 #define TITLE_NO_CHANGE g_conf.empty_title
113 #define DEFAULT_TITLE g_conf.default_title
114 #define DEFAULT_CONTENT g_conf.default_content
115 #define MINIMUM_SPACE g_conf.minimum_space
117 #define IMAGE_PATH g_conf.path.image
118 #define SCRIPT_PATH g_conf.path.script
119 #define SCRIPT_PORT_PATH g_conf.path.script_port
120 #define CONF_PATH g_conf.path.conf
121 #define ROOT_PATH g_conf.path.root
122 #define SLAVE_LOG_PATH g_conf.path.slave_log
124 #define REPLACE_TAG_APPID g_conf.replace_tag
125 #define SLAVE_TTL g_conf.slave_ttl
127 #define MAX_LOG_LINE g_conf.max_log_line
128 #define MAX_LOG_FILE g_conf.max_log_file
130 #define SQLITE_FLUSH_MAX g_conf.sqlite_flush_max
131 #define DBFILE g_conf.path.db
133 #define SLAVE_MAX_LOAD g_conf.slave_max_load
134 #define DEFAULT_PING_TIME g_conf.ping_time
135 #define PAUSED_FILE "/tmp/.live.paused"
138 #define MAX_PKGNAME 512
139 #define DELAY_TIME 0.0000001f
140 #define DEFAULT_CLUSTER "user,created"
141 #define MINIMUM_REACTIVATION_TIME 10
143 #define SYS_CLUSTER_KEY g_conf.vconf_sys_cluster
145 #define MAX_PENDED_CTX_EVENTS g_conf.max_pended_ctx_events
146 #define HAPI __attribute__((visibility("hidden")))