fsck: give the error function a chance to see the fsck_options
We will need this in the next commit, where fsck will be taught to optionally name the objects when reporting issues about them. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
7b35efd734
commit
1cd772cc41
6
fsck.h
6
fsck.h
@ -23,9 +23,11 @@ int is_valid_msg_type(const char *msg_id, const char *msg_type);
|
||||
typedef int (*fsck_walk_func)(struct object *obj, int type, void *data, struct fsck_options *options);
|
||||
|
||||
/* callback for fsck_object, type is FSCK_ERROR or FSCK_WARN */
|
||||
typedef int (*fsck_error)(struct object *obj, int type, const char *message);
|
||||
typedef int (*fsck_error)(struct fsck_options *o,
|
||||
struct object *obj, int type, const char *message);
|
||||
|
||||
int fsck_error_function(struct object *obj, int type, const char *message);
|
||||
int fsck_error_function(struct fsck_options *o,
|
||||
struct object *obj, int type, const char *message);
|
||||
|
||||
struct fsck_options {
|
||||
fsck_walk_func walk;
|
||||
|
Reference in New Issue
Block a user