| Jeff King | be58e70 | 2008-10-05 21:43:21 | [diff] [blame] | 1 | #ifndef USERDIFF_H |
| 2 | #define USERDIFF_H |
| 3 | |
| Jeff King | d9bae1a | 2010-04-02 00:12:15 | [diff] [blame] | 4 | #include "notes-cache.h" |
| 5 | |
| Jeff King | be58e70 | 2008-10-05 21:43:21 | [diff] [blame] | 6 | struct userdiff_funcname { |
| 7 | const char *pattern; |
| 8 | int cflags; |
| 9 | }; |
| 10 | |
| 11 | struct userdiff_driver { |
| 12 | const char *name; |
| 13 | const char *external; |
| Jeff King | 122aa6f | 2008-10-05 21:43:36 | [diff] [blame] | 14 | int binary; |
| Jeff King | be58e70 | 2008-10-05 21:43:21 | [diff] [blame] | 15 | struct userdiff_funcname funcname; |
| Thomas Rast | 80c49c3 | 2009-01-17 16:29:48 | [diff] [blame] | 16 | const char *word_regex; |
| Jeff King | 9cb92c3 | 2008-10-05 21:43:45 | [diff] [blame] | 17 | const char *textconv; |
| Jeff King | d9bae1a | 2010-04-02 00:12:15 | [diff] [blame] | 18 | struct notes_cache *textconv_cache; |
| 19 | int textconv_want_cache; |
| Jeff King | be58e70 | 2008-10-05 21:43:21 | [diff] [blame] | 20 | }; |
| 21 | |
| Jeff King | c7534ef | 2008-10-26 04:45:55 | [diff] [blame] | 22 | int userdiff_config(const char *k, const char *v); |
| Jeff King | be58e70 | 2008-10-05 21:43:21 | [diff] [blame] | 23 | struct userdiff_driver *userdiff_find_by_name(const char *name); |
| 24 | struct userdiff_driver *userdiff_find_by_path(const char *path); |
| 25 | |
| Jeff King | 3813e69 | 2011-05-23 20:30:14 | [diff] [blame] | 26 | struct userdiff_driver *userdiff_get_textconv(struct userdiff_driver *driver); |
| 27 | |
| Jeff King | be58e70 | 2008-10-05 21:43:21 | [diff] [blame] | 28 | #endif /* USERDIFF */ |