diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-03-02 15:44:15 -0800 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-03-02 15:44:15 -0800 |
| commit | e3d55b2add24e3074501176270082aa1802218bc (patch) | |
| tree | 5827e9ddbd956c4d17846be323c91759a5a571fc /src/fileops.h | |
| parent | 17b3d9b92b9132be116e4ecfae736de025c5158f (diff) | |
| parent | ce49c7a8a902bd3a74a59a356dd11886e83d2e92 (diff) | |
| download | libgit2-e3d55b2add24e3074501176270082aa1802218bc.tar.gz | |
Merge pull request #575 from libgit2/filters
Filters, yo
Diffstat (limited to 'src/fileops.h')
| -rw-r--r-- | src/fileops.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/fileops.h b/src/fileops.h index 4c114026b..43ef21521 100644 --- a/src/fileops.h +++ b/src/fileops.h @@ -17,17 +17,8 @@ * * Read whole files into an in-memory buffer for processing */ -#define GIT_FBUFFER_INIT {NULL, 0} - -typedef struct { /* file io buffer */ - void *data; /* data bytes */ - size_t len; /* data length */ -} git_fbuffer; - -extern int git_futils_readbuffer(git_fbuffer *obj, const char *path); -extern int git_futils_readbuffer_updated(git_fbuffer *obj, const char *path, time_t *mtime, int *updated); -extern void git_futils_freebuffer(git_fbuffer *obj); -extern void git_futils_fbuffer_rtrim(git_fbuffer *obj); +extern int git_futils_readbuffer(git_buf *obj, const char *path); +extern int git_futils_readbuffer_updated(git_buf *obj, const char *path, time_t *mtime, int *updated); /** * File utils |
