summaryrefslogtreecommitdiffstats
path: root/byhandhook.h
diff options
context:
space:
mode:
Diffstat (limited to 'byhandhook.h')
-rw-r--r--byhandhook.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/byhandhook.h b/byhandhook.h
new file mode 100644
index 0000000..dd72e02
--- /dev/null
+++ b/byhandhook.h
@@ -0,0 +1,26 @@
+#ifndef REPREPRO_BYHANDHOOK_H
+#define REPREPRO_BYHANDHOOK_H
+
+#ifndef REPREPRO_ERROR_H
+#include "error.h"
+#warning "What's hapening here?"
+#endif
+
+#ifndef REPREPRO_ERROR_H
+#include "error.h"
+#warning "What's hapening here?"
+#endif
+
+struct byhandhook;
+
+retvalue byhandhooks_parse(struct configiterator *, /*@out@*/struct byhandhook **);
+
+/* 2nd argument starts as NULL, returns true as long as there are hooks */
+bool byhandhooks_matched(const struct byhandhook *, const struct byhandhook **, const char * /*section*/, const char * /*priority*/, const char * /*name*/);
+
+retvalue byhandhook_call(const struct byhandhook *, const char * /*codename*/, const char * /*section*/, const char * /*priority*/, const char * /*basename*/, const char * /*fullfilename*/);
+
+void byhandhooks_free(/*@null@*//*@only@*/struct byhandhook *);
+
+#endif
+