]> git.proxmox.com Git - libgit2.git/blob - src/diff_xdiff.h
push: remove own copy of callbacks
[libgit2.git] / src / diff_xdiff.h
1 /*
2 * Copyright (C) the libgit2 contributors. All rights reserved.
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
7 #ifndef INCLUDE_diff_xdiff_h__
8 #define INCLUDE_diff_xdiff_h__
9
10 #include "diff.h"
11 #include "diff_patch.h"
12 #include "xdiff/xdiff.h"
13
14 /* A git_xdiff_output is a git_diff_output with extra fields necessary
15 * to use libxdiff. Calling git_xdiff_init() will set the diff_cb field
16 * of the output to use xdiff to generate the diffs.
17 */
18 typedef struct {
19 git_diff_output output;
20
21 xdemitconf_t config;
22 xpparam_t params;
23 xdemitcb_t callback;
24 } git_xdiff_output;
25
26 void git_xdiff_init(git_xdiff_output *xo, const git_diff_options *opts);
27
28 #endif