Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-07-09 04:25:01 +0400
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-08-02 23:42:03 +0400
commit7d0cdf82be73ea8c0dce07e5e0ed3c7fdcd4707e (patch)
treecc467dc0e29c52fbeb4663285150f470fee58ec1 /src/mwindow.h
parentab525a7463492aa64c936b59165ab33f6264f1a8 (diff)
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.h4
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);