Change-Id: I4f42d7e29fd9be4be5eb7ac192a2b002796a478f
void logfile_do_rotate(struct log_file *file);
int logfile_write_with_rotation(const dlogutil_entry_s *e, struct log_file *file, dlogutil_sorting_order_e sort_by);
-struct logfile_callback_data
-{
- struct log_file *file;
- dlogutil_sorting_order_e sort_by;
-};
-int logfile_callback(const dlogutil_entry_s *e, void *userdata);
-
#ifdef __cplusplus
}
#endif
return 0;
}
-int logfile_callback(const dlogutil_entry_s *e, void *userdata)
-{
- struct logfile_callback_data *data = userdata;
- return logfile_write_with_rotation(e, data->file, data->sort_by);
-}
-
/**
* @}
*/