summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2016-11-30 20:37:10 +0900
committerMyungJoo Ham <myungjoo.ham@samsung.com>2017-01-25 21:56:52 -0800
commit24899e2264dd187e7e452e0ffad9d2df1d490927 (patch)
treeef09dca1a268e5650a7b28adaff07573388a7c22 /src/main.c
parenta0eec7e1ef7d58d3cf490586dd1a4dbae2f99abf (diff)
downloadconnman-24899e2264dd187e7e452e0ffad9d2df1d490927.tar.gz
connman-24899e2264dd187e7e452e0ffad9d2df1d490927.tar.bz2
connman-24899e2264dd187e7e452e0ffad9d2df1d490927.zip
Remove Profile Build Dependency (1/2): do it at runtime
- This is for Tizen 4.0. : Tizen 4.0 Configurability and Build Blocks require to remove all profile-depending build options in spec files. (No More profile macros) - It is recommended to distinguish features/profiles at runtime. unless it incurs too much overhead, which requires you to create multiple binaries and subpackages. - Now it reads if it is TV based on the /etc/ conf file. Change-Id: Id9d2f6e9db7814ab06f5d166ef2299a1a8aacb51 Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f622d8f1..28e3edbc 100755
--- a/src/main.c
+++ b/src/main.c
@@ -78,6 +78,7 @@ static struct {
bool enable_6to4;
#if defined TIZEN_EXT
char **cellular_interfaces;
+ bool tizen_tv_extension;
#endif
} connman_settings = {
.bg_scan = true,
@@ -95,6 +96,7 @@ static struct {
.enable_6to4 = false,
#if defined TIZEN_EXT
.cellular_interfaces = NULL,
+ .tizen_tv_extension = false,
#endif
};
@@ -113,6 +115,7 @@ static struct {
#define CONF_ENABLE_6TO4 "Enable6to4"
#if defined TIZEN_EXT
#define CONF_CELLULAR_INTERFACE "NetworkCellularInterfaceList"
+#define CONF_TIZEN_TV_EXT "TizenTVExtension"
#endif
static const char *supported_options[] = {
@@ -131,6 +134,7 @@ static const char *supported_options[] = {
CONF_ENABLE_6TO4,
#if defined TIZEN_EXT
CONF_CELLULAR_INTERFACE,
+ CONF_TIZEN_TV_EXT,
#endif
NULL
};
@@ -251,6 +255,7 @@ static void check_Tizen_configuration(GKeyFile *config)
{
GError *error = NULL;
char **cellular_interfaces;
+ bool boolean;
gsize len;
cellular_interfaces = g_key_file_get_string_list(config, "General",
@@ -260,6 +265,13 @@ static void check_Tizen_configuration(GKeyFile *config)
connman_settings.cellular_interfaces = cellular_interfaces;
g_clear_error(&error);
+
+ boolean = __connman_config_get_bool(config, "General",
+ CONF_TIZEN_TV_EXT, &error);
+ if (!error)
+ connman_settings.tizen_tv_extension = boolean;
+
+ g_clear_error(&error);
}
static void set_nofile_inc(void)