diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-14 17:54:25 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-08-24 20:29:39 +0200 |
| commit | e03e71da56608f60770eb80767dcd94e698cdcae (patch) | |
| tree | 934f1fe3e0441aaa96d0a91609e30f898d1ac8c8 /src/transport.h | |
| parent | bffa852f89268390d6bc3e6f99f5f0cccdc88f63 (diff) | |
| download | libgit2-e03e71da56608f60770eb80767dcd94e698cdcae.tar.gz | |
network: add sideband support
This lets us notify the user of what the remote end is doing while we
wait for it to start sending us the packfile.
Diffstat (limited to 'src/transport.h')
| -rw-r--r-- | src/transport.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/transport.h b/src/transport.h index c4306165c..ff3a58d13 100644 --- a/src/transport.h +++ b/src/transport.h @@ -21,11 +21,15 @@ #define GIT_CAP_OFS_DELTA "ofs-delta" #define GIT_CAP_MULTI_ACK "multi_ack" +#define GIT_CAP_SIDE_BAND "side-band" +#define GIT_CAP_SIDE_BAND_64K "side-band-64k" typedef struct git_transport_caps { int common:1, ofs_delta:1, - multi_ack: 1; + multi_ack: 1, + side_band:1, + side_band_64k:1; } git_transport_caps; #ifdef GIT_SSL @@ -84,6 +88,7 @@ struct git_transport { gitno_buffer buffer; GIT_SOCKET socket; git_transport_caps caps; + void *cb_data; /** * Connect and store the remote heads */ @@ -113,6 +118,11 @@ struct git_transport { * Free the associated resources */ void (*free)(struct git_transport *transport); + /** + * Callbacks for the progress and error output + */ + void (*progress_cb)(const char *str, int len, void *data); + void (*error_cb)(const char *str, int len, void *data); }; |
