This is to fit Tizen's guidelines better.
Change-Id: I3ec3548bd61346b94c76fd07b522b1f0129a7992
src_tests_fd_info_SOURCES = src/tests/fd_info.c src/shared/fd_info.c
src_tests_fd_info_CFLAGS = $(check_CFLAGS)
-src_tests_fd_info_LDFLAGS = $(AM_LDFLAGS) -Wl,--wrap=sort_vector_push,--wrap=malloc,--wrap=free,--wrap=close,--wrap=dlogutil_entry_ts,--wrap=log_should_print_line
+src_tests_fd_info_LDFLAGS = $(AM_LDFLAGS) -Wl,--wrap=sort_vector_push,--wrap=malloc,--wrap=free,--wrap=close,--wrap=dlogutil_entry_get_ts,--wrap=log_should_print_line
src_tests_fdi_logger_SOURCES = src/tests/fdi_logger.c src/shared/fdi_logger.c src/shared/ptrs_list.c src/shared/logcommon.c
src_tests_fdi_logger_CFLAGS = $(check_CFLAGS)
src_tests_log_file_SOURCES = src/tests/log_file.c src/shared/log_file.c
src_tests_log_file_CFLAGS = $(check_CFLAGS)
-src_tests_log_file_LDFLAGS = $(AM_LDFLAGS) -Wl,--wrap=strdup,--wrap=free,--wrap=memcpy,--wrap=snprintf,--wrap=open,--wrap=fstat,--wrap=rename,--wrap=dlogutil_entry_ts,--wrap=log_print_log_line,--wrap=dlogutil_entry_get_tag,--wrap=isatty
+src_tests_log_file_LDFLAGS = $(AM_LDFLAGS) -Wl,--wrap=strdup,--wrap=free,--wrap=memcpy,--wrap=snprintf,--wrap=open,--wrap=fstat,--wrap=rename,--wrap=dlogutil_entry_get_ts,--wrap=log_print_log_line,--wrap=dlogutil_entry_get_tag,--wrap=isatty
src_tests_queued_entry_SOURCES = src/tests/queued_entry.c src/shared/queued_entry.c src/shared/queued_entry_timestamp.c src/shared/parsers.c src/shared/translate_syslog.c src/shared/logconfig.c src/shared/logcommon.c
src_tests_queued_entry_CFLAGS = $(check_CFLAGS)
void add_recv_timestamp(dlogutil_entry_s *le);
void copy_recv_timestamp(dlogutil_entry_s *le);
bool log_entry_is_earlier(const dlogutil_sorting_order_e sort_by, const dlogutil_entry_s *lhs, const dlogutil_entry_s *rhs);
-struct timespec dlogutil_entry_ts(const dlogutil_entry_s *le, dlogutil_sorting_order_e stamp_type);
+struct timespec dlogutil_entry_get_ts(const dlogutil_entry_s *le, dlogutil_sorting_order_e stamp_type);
clockid_t get_proper_clock(dlogutil_sorting_order_e sort_by);
#endif /* _QUEUED_ENTRY_TIMESTAMP_H */
int r;
if (IS_VECTOR_SIZE_SORTABLE(logs->size)) {
- struct timespec ts = dlogutil_entry_ts(temp, logs->sort_by);
+ struct timespec ts = dlogutil_entry_get_ts(temp, logs->sort_by);
/* check if new entry is newer than util's start moment */
if (ts.tv_sec > logs->start.tv_sec || (ts.tv_sec == logs->start.tv_sec && ts.tv_nsec > logs->start.tv_nsec))
int written_bytes = 0;
- struct timespec ts = dlogutil_entry_ts(e, sort_by);
+ struct timespec ts = dlogutil_entry_get_ts(e, sort_by);
if (ts.tv_sec < file->prev_sec || (ts.tv_sec == file->prev_sec && ts.tv_nsec < file->prev_nsec)) {
struct dlogutil_entry_with_msg msg;
continue;
const dlogutil_entry_s *const le = fdi->ops->peek_entry(fdi);
- struct timespec current_ts = dlogutil_entry_ts(le, sort_by);
+ struct timespec current_ts = dlogutil_entry_get_ts(le, sort_by);
if (best_fdi && ((current_ts.tv_sec > best_ts.tv_sec) || (current_ts.tv_sec == best_ts.tv_sec && current_ts.tv_nsec > best_ts.tv_nsec)))
continue;
return l_sec < r_sec || (l_sec == r_sec && l_nsec < r_nsec);
}
-struct timespec dlogutil_entry_ts(const dlogutil_entry_s *le, dlogutil_sorting_order_e stamp_type)
+struct timespec dlogutil_entry_get_ts(const dlogutil_entry_s *le, dlogutil_sorting_order_e stamp_type)
{
assert(le);
if (sort_vector_empty(logs))
return 0;
- struct timespec now, oldest = dlogutil_entry_ts(sort_vector_back(logs), logs->sort_by);
+ struct timespec now, oldest = dlogutil_entry_get_ts(sort_vector_back(logs), logs->sort_by);
clock_gettime(get_proper_clock(logs->sort_by), &now);
diff_s = now.tv_sec - oldest.tv_sec;
if (timeout != -1) {
- struct timespec log_ts = dlogutil_entry_ts(e, stamp_type);
+ struct timespec log_ts = dlogutil_entry_get_ts(e, stamp_type);
long s = reference_ts.tv_sec - log_ts.tv_sec;
long ns = reference_ts.tv_nsec - log_ts.tv_nsec;
return fail_extract ? NULL : (dlogutil_entry_s *) 0xBADFEEL;
}
-struct timespec __wrap_dlogutil_entry_ts(const dlogutil_entry_s *le, dlogutil_sorting_order_e stamp_type)
+struct timespec __wrap_dlogutil_entry_get_ts(const dlogutil_entry_s *le, dlogutil_sorting_order_e stamp_type)
{
assert(le == (dlogutil_entry_s *)0xBADFEEL);
return (struct timespec) {
return -1;
}
-struct timespec __wrap_dlogutil_entry_ts(const dlogutil_entry_s *le, dlogutil_sorting_order_e stamp_type)
+struct timespec __wrap_dlogutil_entry_get_ts(const dlogutil_entry_s *le, dlogutil_sorting_order_e stamp_type)
{
assert(stamp_type == DLOGUTIL_SORT_SENT_MONO);
assert(le == (dlogutil_entry_s *) 0xBA5EBALL);
.sec_recv_real = 7,
.nsec_recv_real = 8,
};
- ts = dlogutil_entry_ts(&le, DLOGUTIL_SORT_SENT_MONO);
+ ts = dlogutil_entry_get_ts(&le, DLOGUTIL_SORT_SENT_MONO);
assert(ts.tv_sec == le. sec_sent_mono);
assert(ts.tv_nsec == le.nsec_sent_mono);
- ts = dlogutil_entry_ts(&le, DLOGUTIL_SORT_RECV_REAL);
+ ts = dlogutil_entry_get_ts(&le, DLOGUTIL_SORT_RECV_REAL);
assert(ts.tv_sec == le. sec_recv_real);
assert(ts.tv_nsec == le.nsec_recv_real);
- ts = dlogutil_entry_ts(&le, DLOGUTIL_SORT_SENT_REAL);
+ ts = dlogutil_entry_get_ts(&le, DLOGUTIL_SORT_SENT_REAL);
assert(ts.tv_sec == le. sec_sent_real);
assert(ts.tv_nsec == le.nsec_sent_real);
- ts = dlogutil_entry_ts(&le, DLOGUTIL_SORT_RECV_MONO);
+ ts = dlogutil_entry_get_ts(&le, DLOGUTIL_SORT_RECV_MONO);
assert(ts.tv_sec == le. sec_recv_mono);
assert(ts.tv_nsec == le.nsec_recv_mono);