diff options
author | Ben Straub <bs@github.com> | 2012-10-20 06:23:32 +0400 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-10-20 06:36:23 +0400 |
commit | 7bcd9e23e8f64c8622e9213ee0fa3d75d058053b (patch) | |
tree | 42d73408bb7e3df8d487d38ecfaf0efb9c0531c6 /src/netops.h | |
parent | 25e8b20169a6f6919ad49cf32220975ab96b35c8 (diff) |
gitno_buffer: callback on each packet
The fetch code takes advantage of this to implement a
progress callback every 100kb of transfer.
Diffstat (limited to 'src/netops.h')
-rw-r--r-- | src/netops.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/netops.h b/src/netops.h index 7c53fd0dc..64da7fba9 100644 --- a/src/netops.h +++ b/src/netops.h @@ -20,6 +20,8 @@ struct gitno_buffer { #endif int (*recv)(gitno_buffer *buffer); void *cb_data; + void (*packetsize_cb)(int received, void *payload); + void *packetsize_payload; }; void gitno_buffer_setup(git_transport *t, gitno_buffer *buf, char *data, size_t len); |