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>
This commit is contained in:

committed by
Junio C Hamano

parent
e54c347c1c
commit
c99a4c2db3
@ -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.
|
||||
|
Reference in New Issue
Block a user