diff: clarify textconv interface
[git/git.git] / userdiff.h
CommitLineData
be58e70d
JK
1#ifndef USERDIFF_H
2#define USERDIFF_H
3
d9bae1a1
JK
4#include "notes-cache.h"
5
be58e70d
JK
6struct userdiff_funcname {
7 const char *pattern;
8 int cflags;
9};
10
11struct userdiff_driver {
12 const char *name;
13 const char *external;
122aa6f9 14 int binary;
be58e70d 15 struct userdiff_funcname funcname;
80c49c3d 16 const char *word_regex;
9cb92c39 17 const char *textconv;
d9bae1a1
JK
18 struct notes_cache *textconv_cache;
19 int textconv_want_cache;
be58e70d
JK
20};
21
c7534ef4 22int userdiff_config(const char *k, const char *v);
be58e70d
JK
23struct userdiff_driver *userdiff_find_by_name(const char *name);
24struct userdiff_driver *userdiff_find_by_path(const char *path);
25
a64e6a44
JK
26/*
27 * Initialize any textconv-related fields in the driver and return it, or NULL
28 * if it does not have textconv enabled at all.
29 */
3813e690
JK
30struct userdiff_driver *userdiff_get_textconv(struct userdiff_driver *driver);
31
be58e70d 32#endif /* USERDIFF */