summaryrefslogtreecommitdiffstats
path: root/log.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:12:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:12:14 +0000
commit4b8a0f3f3dcf60dac2ce308ea08d413a535af29f (patch)
tree0f09c0ad2a4d0f535d89040a63dc3a866a6606e6 /log.h
parentInitial commit. (diff)
downloadreprepro-4b8a0f3f3dcf60dac2ce308ea08d413a535af29f.tar.xz
reprepro-4b8a0f3f3dcf60dac2ce308ea08d413a535af29f.zip
Adding upstream version 5.4.4.upstream/5.4.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'log.h')
-rw-r--r--log.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/log.h b/log.h
new file mode 100644
index 0000000..4d0faf7
--- /dev/null
+++ b/log.h
@@ -0,0 +1,30 @@
+#ifndef REPREPRO_LOG_H
+#define REPREPRO_LOG_H
+
+#ifndef REPREPRO_STRLIST_H
+#include "strlist.h"
+#endif
+#ifndef REPREPRO_HOOKS_H
+#include "hooks.h"
+#endif
+
+struct target;
+struct logger;
+
+retvalue logger_init(struct configiterator *, /*@out@*/struct logger **);
+void logger_free(/*@only@*/struct logger *);
+
+retvalue logger_prepare(struct logger *logger);
+bool logger_isprepared(/*@null@*/const struct logger *logger);
+
+void logger_logchanges(struct logger *, const char * /*codename*/, const char * /*name*/, const char * /*version*/, const char * /*safefilename*/, /*@null@*/const char * /*changesfilekey*/);
+
+void logger_log(struct logger *, struct target *, const char * /*name*/, /*@null@*/const char * /*version*/, /*@null@*/const char */*oldversion*/, /*@null@*/const struct strlist * /*filekeys*/, /*@null@*/const struct strlist * /*oldfilekeys*/, /*@null@*/const char * /*causingrule*/, /*@null@*/const char * /*suitefrom*/);
+
+bool logger_rerun_needs_target(const struct logger *, const struct target *);
+retvalue logger_reruninfo(struct logger *, struct target *, const char * /*name*/, const char * /*version*/, /*@null@*/const struct strlist * /*filekeys*/);
+
+/* wait for all jobs to finish */
+void logger_wait(void);
+void logger_warn_waiting(void);
+#endif