summaryrefslogtreecommitdiffstats
path: root/checks.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 /checks.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 'checks.h')
-rw-r--r--checks.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/checks.h b/checks.h
new file mode 100644
index 0000000..ed5a167
--- /dev/null
+++ b/checks.h
@@ -0,0 +1,16 @@
+#ifndef REPREPRO_CHECKS_H
+#define REPREPRO_CHECKS_H
+
+/* return NULL if no problem, statically allocated string otherwise */
+
+typedef const char *checkfunc(const char *);
+
+const char *checkfordirectoryandidentifier(const char *);
+#define checkforcomponent checkfordirectoryandidentifier
+#define checkforcodename checkfordirectoryandidentifier
+const char *checkforidentifierpart(const char *);
+#define checkforarchitecture checkforidentifierpart
+
+/* not yet used */
+static inline void checkerror_free(UNUSED(const char *dummy)) {};
+#endif