summaryrefslogtreecommitdiffstats
path: root/hooks.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 /hooks.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 'hooks.h')
-rw-r--r--hooks.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/hooks.h b/hooks.h
new file mode 100644
index 0000000..dc3681f
--- /dev/null
+++ b/hooks.h
@@ -0,0 +1,16 @@
+#ifndef REPREPRO_HOOKS_H
+#define REPREPRO_HOOKS_H
+
+#ifndef REPREPRO_ATOMS_H
+#include "atoms.h"
+#endif
+
+/* the command currently processed (may not changed till all loggers are run) */
+extern command_t causingcommand;
+/* file causing the current actions (may change so may need to be saved for queued actions)*/
+extern /*@null@*/ const char *causingfile;
+
+/* for other hooks */
+void sethookenvironment(/*@null@*/const char *, /*@null@*/const char *, /*@null@*/const char *, /*@null@*/const char *);
+
+#endif