diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-07-09 02:25:01 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-08-02 21:42:03 +0200 |
commit | 7d0cdf82be73ea8c0dce07e5e0ed3c7fdcd4707e (patch) | |
tree | cc467dc0e29c52fbeb4663285150f470fee58ec1 /src/mwindow.h | |
parent | ab525a7463492aa64c936b59165ab33f6264f1a8 (diff) | |
download | libgit2-7d0cdf82be73ea8c0dce07e5e0ed3c7fdcd4707e.tar.gz |
Make packfile_unpack_header more generic
On the way, store the fd and the size in the mwindow file.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/mwindow.h')
-rw-r--r-- | src/mwindow.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mwindow.h b/src/mwindow.h index 971d1eee8..6c29307a7 100644 --- a/src/mwindow.h +++ b/src/mwindow.h @@ -40,6 +40,8 @@ typedef struct git_mwindow { typedef struct git_mwindow_file { git_mwindow *windows; + int fd; + off_t size; } git_mwindow_file; typedef struct git_mwindow_ctl { @@ -56,7 +58,7 @@ typedef struct git_mwindow_ctl { int git_mwindow_contains(git_mwindow *win, off_t offset); void git_mwindow_free_all(git_mwindow_file *mwf); -unsigned char *git_mwindow_open(git_mwindow_file *mwf, git_mwindow **cursor, git_file fd, size_t size, off_t offset, int extra, unsigned int *left); +unsigned char *git_mwindow_open(git_mwindow_file *mwf, git_mwindow **cursor, off_t offset, int extra, unsigned int *left); void git_mwindow_scan_lru(git_mwindow_file *mwf, git_mwindow **lru_w, git_mwindow **lru_l); int git_mwindow_file_register(git_mwindow_file *mwf); void git_mwindow_close(git_mwindow **w_cursor); |