Introduce log write buffering
[platform/core/system/dlog.git] / src / logger / dlogutil_line.h
1 #pragma once
2
3 #include <log_file.h>
4
5 struct buf_params {
6         int bytes;
7         int time;
8 };
9
10 struct dlogutil_line_params {
11         bool monitor;
12         bool is_dumping;
13         struct log_file file;
14         log_id_t buf_id;
15         char *file_path;
16         struct dlogutil_filter_options *filter;
17 };
18
19 bool initialize_dlogutil_line_params(struct dlogutil_line_params *params, struct buf_params buf);
20 int get_dlogutil_line_params(const char *cmdl, struct dlogutil_line_params *params);
21 void free_dlogutil_line_params(struct dlogutil_line_params *params);
22
23 void reset_getopt_internals(void *fake);