diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-18 11:53:24 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-24 11:00:51 +0200 |
commit | 062804570c3e25170b52f849da173f8266b5e33e (patch) | |
tree | 549b2179523a84912e45cbf9490733474dc49b5c /src/filebuf.h | |
parent | 3a495c19bd280f5455047a9ac0e936f2c2f2f9a9 (diff) | |
download | libgit2-062804570c3e25170b52f849da173f8266b5e33e.tar.gz |
Join typedef and struct definitions in single file.
Diffstat (limited to 'src/filebuf.h')
-rw-r--r-- | src/filebuf.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/filebuf.h b/src/filebuf.h index 044af5405..2bd18dc35 100644 --- a/src/filebuf.h +++ b/src/filebuf.h @@ -25,11 +25,12 @@ #define GIT_FILELOCK_EXTENSION ".lock\0" #define GIT_FILELOCK_EXTLENGTH 6 +typedef struct git_filebuf git_filebuf; struct git_filebuf { char *path_original; char *path_lock; - int (*write)(struct git_filebuf *file, void *source, size_t len); + int (*write)(git_filebuf *file, void *source, size_t len); bool compute_digest; git_hash_ctx digest; @@ -47,8 +48,6 @@ struct git_filebuf { int last_error; }; -typedef struct git_filebuf git_filebuf; - #define GIT_FILEBUF_INIT {0} /* |