blame: use built-in xdiff
[git/git.git] / xdiff-interface.h
CommitLineData
d9ea73e0
JH
1#ifndef XDIFF_INTERFACE_H
2#define XDIFF_INTERFACE_H
3
4#include "xdiff/xdiff.h"
5
6struct xdiff_emit_state;
7
8typedef void (*xdiff_emit_consume_fn)(void *, char *, unsigned long);
9
10struct xdiff_emit_state {
11 xdiff_emit_consume_fn consume;
12 char *remainder;
13 unsigned long remainder_size;
14};
15
16int xdiff_outf(void *priv_, mmbuffer_t *mb, int nbuf);
c1e335a4
JH
17int parse_hunk_header(char *line, int len,
18 unsigned int *ob, unsigned int *on,
19 unsigned int *nb, unsigned int *nn);
d9ea73e0
JH
20
21#endif