Name: stc-iptables
Summary: STC(Smart Traffic Control) iptables
-Version: 0.0.21
+Version: 0.0.22
Release: 0
Group: Network & Connectivity/Other
License: GPL-2.0 and Apache-2.0
va_end(ap);
}
-gboolean helper_log_sync(gpointer data)
-{
- if (log_file) {
- fflush(log_file);
- fsync(log_file->_fileno);
- }
-
-#ifdef TIZEN_GTESTS
- void __gcov_flush(void);
- __gcov_flush();
-#endif
-
- return TRUE;
-}
-
void helper_log_cleanup(void)
{
if (log_file == NULL)
#define __STC_HELPER_LOG_H__
void helper_log(const char *format, ...);
-gboolean helper_log_sync(gpointer data);
void helper_log_cleanup(void);
#define __LOG(level, format, arg...) \
__FUNCTION__, __LINE__, ##arg); \
} while(0)
-#define LOG_SYNC_TIME 1500
-
#define LOG_INFO "I"
#define LOG_WARN "W"
#define LOG_ERROR "E"
{
GMainLoop *main_loop = NULL;
gint32 ret = -1;
- int sync_timer = 0;
STC_LOGI("Smart Traffic Control Iptables");
g_type_init();
#endif
- sync_timer = g_timeout_add(LOG_SYNC_TIME,
- helper_log_sync, NULL);
-
/* Crate the GLIB main loop */
main_loop = g_main_loop_new(NULL, FALSE);
ret = 0;
fail:
-
- if (sync_timer > 0)
- g_source_remove(sync_timer);
-
helper_log_cleanup();
__stc_iptables_deinit();