export CFLAGS="$CFLAGS -D_GNU_SOURCE"
export CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE"
+%if "%{tizen_profile_name}" == "tv"
+ CFLAGS+=" -DTIZEN_TV_EXT"
+%endif
+
%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DBIN_DIR=%{_bindir} \
-DLIB_PATH=%{_lib} \
stc_db_initialize_once();
+#ifndef TIZEN_TV_EXT
EXEC(STC_ERROR_NONE, table_statistics_prepare(database));
EXEC(STC_ERROR_NONE, table_restrictions_prepare(database));
EXEC(STC_ERROR_NONE, table_counters_prepare(database));
+#endif
EXEC(STC_ERROR_NONE, table_firewall_prepare(database));
EXEC(STC_ERROR_NONE, stc_init_db_guard());
return TRUE; //LCOV_EXCL_LINE
}
+#ifndef TIZEN_TV_EXT
table_statistics_finalize();
table_restrictions_finalize();
table_counters_finalize();
+#endif
table_firewall_finalize();
sqlite3_close(database);
inotify_initialize();
inotify_register(INFO_STORAGE_DIR, __stc_inotify_handler);
+#ifndef TIZEN_TV_EXT
cgroup_set_release_agent(NET_CLS_SUBSYS, NET_RELEASE_AGENT);
+#endif
err = stc_db_initialize();
if (err != STC_ERROR_NONE) {
return NULL; //LCOV_EXCL_LINE
}
+#ifndef TIZEN_TV_EXT
stc_plugin_appstatus_init();
stc_plugin_exception_init();
stc_plugin_procfs_init();
stc_plugin_tether_init();
+#endif
stc_firewall_init();
+#ifndef TIZEN_TV_EXT
err = stc_monitor_init();
if (err != STC_ERROR_NONE) {
STC_LOGD("Failed to initialize stc manager"); //LCOV_EXCL_LINE
}
stc_plugin_procfs_load_pid();
+#endif
+
stc_manager_gdbus_init((gpointer)stc);
STC_LOGI("stc manager initialized");