Jeff King | be58e70 | 2008-10-05 17:43:21 -0400 | [diff] [blame] | 1 | #ifndef USERDIFF_H |
| 2 | #define USERDIFF_H |
| 3 | |
| 4 | struct userdiff_funcname { |
| 5 | const char *pattern; |
| 6 | int cflags; |
| 7 | }; |
| 8 | |
| 9 | struct userdiff_driver { |
| 10 | const char *name; |
| 11 | const char *external; |
Jeff King | 122aa6f | 2008-10-05 17:43:36 -0400 | [diff] [blame] | 12 | int binary; |
Jeff King | be58e70 | 2008-10-05 17:43:21 -0400 | [diff] [blame] | 13 | struct userdiff_funcname funcname; |
Thomas Rast | 80c49c3 | 2009-01-17 17:29:48 +0100 | [diff] [blame] | 14 | const char *word_regex; |
Jeff King | 9cb92c3 | 2008-10-05 17:43:45 -0400 | [diff] [blame] | 15 | const char *textconv; |
Jeff King | be58e70 | 2008-10-05 17:43:21 -0400 | [diff] [blame] | 16 | }; |
| 17 | |
Jeff King | c7534ef | 2008-10-26 00:45:55 -0400 | [diff] [blame] | 18 | int userdiff_config(const char *k, const char *v); |
Jeff King | be58e70 | 2008-10-05 17:43:21 -0400 | [diff] [blame] | 19 | struct userdiff_driver *userdiff_find_by_name(const char *name); |
| 20 | struct userdiff_driver *userdiff_find_by_path(const char *path); |
| 21 | |
| 22 | #endif /* USERDIFF */ |