summaryrefslogtreecommitdiff
path: root/src/diff_output.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-11-20 16:36:06 -0800
committerBen Straub <bs@github.com>2012-11-27 13:18:28 -0800
commit793c4385597d0786242e17c8ef37cdfa83f1865c (patch)
tree22e9b48db487577d865a174bc5b21a13a176c78f /src/diff_output.h
parent54b2a37ac7715c74e5b06b76eb2b631987d7b6f8 (diff)
downloadlibgit2-793c4385597d0786242e17c8ef37cdfa83f1865c.tar.gz
Update diff callback param order
This makes the diff functions that take callbacks both take the payload parameter after the callback function pointers and pass the payload as the last argument to the callback function instead of the first. This should make them consistent with other callbacks across the API.
Diffstat (limited to 'src/diff_output.h')
-rw-r--r--src/diff_output.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/diff_output.h b/src/diff_output.h
index 8d7b5e472..13f2a120d 100644
--- a/src/diff_output.h
+++ b/src/diff_output.h
@@ -30,9 +30,9 @@ typedef struct {
git_diff_file_cb file_cb;
git_diff_hunk_cb hunk_cb;
git_diff_data_cb data_cb;
- void *cb_data;
- int cb_error;
- git_diff_range cb_range;
+ void *payload;
+ int error;
+ git_diff_range range;
xdemitconf_t xdiff_config;
xpparam_t xdiff_params;
} diff_context;
@@ -86,7 +86,7 @@ typedef struct {
extern int git_diff__paired_foreach(
git_diff_list *idx2head,
git_diff_list *wd2idx,
- int (*cb)(void *cbref, git_diff_delta *i2h, git_diff_delta *w2i),
- void *cbref);
+ int (*cb)(git_diff_delta *i2h, git_diff_delta *w2i, void *payload),
+ void *payload);
#endif