[PATCH 14/20] fwts_clog: add fwts_clog_scan
Marcello Sylvester Bauer
info at marcellobauer.com
Wed Jun 20 12:14:40 UTC 2018
Signed-off-by: Marcello Sylvester Bauer <info at marcellobauer.com>
---
src/lib/include/fwts_clog.h | 4 ++++
src/lib/src/fwts_clog.c | 10 ++++++++++
2 files changed, 14 insertions(+)
diff --git a/src/lib/include/fwts_clog.h b/src/lib/include/fwts_clog.h
index f29aaa3f..4ef58cf1 100644
--- a/src/lib/include/fwts_clog.h
+++ b/src/lib/include/fwts_clog.h
@@ -23,7 +23,11 @@
#include "fwts.h"
+typedef void (*fwts_clog_progress_func)(fwts_framework *fw, int percent);
+typedef void (*fwts_clog_scan_func)(fwts_framework *fw, char *line, int repeated, char *prevline, void *private, int *errors);
+
void fwts_clog_free(fwts_list *list);
fwts_list *fwts_clog_read(void);
+int fwts_clog_scan(fwts_framework *fw, fwts_list *clog, fwts_clog_scan_func callback, fwts_clog_progress_func progress, void *private, int *errors);
#endif
diff --git a/src/lib/src/fwts_clog.c b/src/lib/src/fwts_clog.c
index fe04e090..cc72a4ca 100644
--- a/src/lib/src/fwts_clog.c
+++ b/src/lib/src/fwts_clog.c
@@ -48,3 +48,13 @@ fwts_list *fwts_clog_read(void)
return list;
}
+
+int fwts_clog_scan(fwts_framework *fw,
+ fwts_list *clog,
+ fwts_clog_scan_func scan_func,
+ fwts_clog_progress_func progress_func,
+ void *private,
+ int *match)
+{
+ return fwts_log_scan(fw, clog, scan_func, progress_func, private, match, false);
+}
--
2.16.4
More information about the fwts-devel
mailing list