diff options
Diffstat (limited to 'tests/libgit2/filter/custom_helpers.h')
-rw-r--r-- | tests/libgit2/filter/custom_helpers.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/libgit2/filter/custom_helpers.h b/tests/libgit2/filter/custom_helpers.h new file mode 100644 index 000000000..0936c581b --- /dev/null +++ b/tests/libgit2/filter/custom_helpers.h @@ -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); |