Merge branch 'rs/xdiff-fast-hash-fix'
[gitweb.git] / xdiff / xdiff.h
index 09215afe6e0250fd29897390f074234a7b89f4d8..219a3bbca613192d8b127659e4bfc0d60f38cf10 100644 (file)
@@ -86,13 +86,17 @@ typedef struct s_xdemitcb {
 
 typedef long (*find_func_t)(const char *line, long line_len, char *buffer, long buffer_size, void *priv);
 
+typedef int (*xdl_emit_hunk_consume_func_t)(long start_a, long count_a,
+                                           long start_b, long count_b,
+                                           void *cb_data);
+
 typedef struct s_xdemitconf {
        long ctxlen;
        long interhunkctxlen;
        unsigned long flags;
        find_func_t find_func;
        void *find_func_priv;
-       void (*emit_func)();
+       xdl_emit_hunk_consume_func_t hunk_func;
 } xdemitconf_t;
 
 typedef struct s_bdiffparam {