]> git.proxmox.com Git - libgit2.git/blobdiff - tests/libgit2/filter/custom_helpers.h
Merge https://salsa.debian.org/debian/libgit2 into proxmox/bullseye
[libgit2.git] / tests / libgit2 / filter / custom_helpers.h
diff --git a/tests/libgit2/filter/custom_helpers.h b/tests/libgit2/filter/custom_helpers.h
new file mode 100644 (file)
index 0000000..0936c58
--- /dev/null
@@ -0,0 +1,19 @@
+#include "git2/sys/filter.h"
+
+extern git_filter *create_bitflip_filter(void);
+extern git_filter *create_reverse_filter(const char *attr);
+extern git_filter *create_erroneous_filter(const char *attr);
+
+extern int bitflip_filter_apply(
+       git_filter     *self,
+       void          **payload,
+       git_str        *to,
+       const git_str  *from,
+       const git_filter_source *source);
+
+extern int reverse_filter_apply(
+       git_filter     *self,
+       void          **payload,
+       git_str        *to,
+       const git_str  *from,
+       const git_filter_source *source);