diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2015-08-10 11:47:38 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-10 12:57:14 -0700 |
commit | c99a4c2db3053e4fb6a43870f5c747f858b0f58f (patch) | |
tree | b481895c6cee3a3ddf964e4a7f06e1453ce9824d /lockfile.h | |
parent | e54c347c1c444c0f37b64b8735c50a66ee0527e9 (diff) | |
download | git-c99a4c2db3053e4fb6a43870f5c747f858b0f58f.tar.gz |
lockfile: add accessors get_lock_file_fd() and get_lock_file_fp()
We are about to move those members, so change client code to read them
through accessor functions.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'lockfile.h')
-rw-r--r-- | lockfile.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lockfile.h b/lockfile.h index a483cc9ff3..d9dfbc999c 100644 --- a/lockfile.h +++ b/lockfile.h @@ -203,6 +203,9 @@ extern NORETURN void unable_to_lock_die(const char *path, int err); */ extern FILE *fdopen_lock_file(struct lock_file *lk, const char *mode); +extern int get_lock_file_fd(struct lock_file *lk); +extern FILE *get_lock_file_fp(struct lock_file *lk); + /* * Return the path of the file that is locked by the specified * lock_file object. The caller must free the memory. |