userdiff.hon commit rebase: fix incompatible options error message (72ee673)
   1#ifndef USERDIFF_H
   2#define USERDIFF_H
   3
   4#include "notes-cache.h"
   5
   6struct index_state;
   7
   8struct userdiff_funcname {
   9        const char *pattern;
  10        int cflags;
  11};
  12
  13struct userdiff_driver {
  14        const char *name;
  15        const char *external;
  16        int binary;
  17        struct userdiff_funcname funcname;
  18        const char *word_regex;
  19        const char *textconv;
  20        struct notes_cache *textconv_cache;
  21        int textconv_want_cache;
  22};
  23
  24int userdiff_config(const char *k, const char *v);
  25struct userdiff_driver *userdiff_find_by_name(const char *name);
  26struct userdiff_driver *userdiff_find_by_path(struct index_state *istate,
  27                                              const char *path);
  28
  29/*
  30 * Initialize any textconv-related fields in the driver and return it, or NULL
  31 * if it does not have textconv enabled at all.
  32 */
  33struct userdiff_driver *userdiff_get_textconv(struct userdiff_driver *driver);
  34
  35#endif /* USERDIFF */