diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2016-11-30 20:37:10 +0900 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2017-01-25 21:56:52 -0800 |
commit | 24899e2264dd187e7e452e0ffad9d2df1d490927 (patch) | |
tree | ef09dca1a268e5650a7b28adaff07573388a7c22 /src/connman.h | |
parent | a0eec7e1ef7d58d3cf490586dd1a4dbae2f99abf (diff) | |
download | connman-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/connman.h')
-rwxr-xr-x | src/connman.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h index 56f9dd9d..2217cc4e 100755 --- a/src/connman.h +++ b/src/connman.h @@ -1067,3 +1067,12 @@ void __connman_machine_cleanup(void); int __connman_util_get_random(uint64_t *val); int __connman_util_init(void); void __connman_util_cleanup(void); + +#ifdef TIZEN_EXT +__attribute__ ((unused)) static int __tizentvextension = -1; +#define TIZEN_TV_EXT (__builtin_expect(__tizentvextension != -1, 1) ? \ + __tizentvextension : \ + (__tizentvextension = connman_setting_get_bool("TizenTVExtension"))) +#else /* TIZEN_EXT */ +#define TIZEN_TV_EXT (0) /* Always False */ +#endif /* TIZEN_EXT */ |