builtin-fsck: reports missing parent commits
[git/dscho.git] / fsck.h
blobba5514a818d90d23be06bd00474465797a61dc5a
1 #ifndef GIT_FSCK_H
2 #define GIT_FSCK_H
4 /*
5 * callback function for fsck_walk
6 * type is the expected type of the object or OBJ_ANY
7 * the return value is:
8 * 0 everything OK
9 * <0 error signaled and abort
10 * >0 error signaled and do not abort
12 typedef int (*fsck_walk_func)(struct object *obj, int type, void *data);
14 /* descend in all linked child objects
15 * the return value is:
16 * -1 error in processing the object
17 * <0 return value of the callback, which lead to an abort
18 * >0 return value of the first sigaled error >0 (in the case of no other errors)
19 * 0 everything OK
21 int fsck_walk(struct object *obj, fsck_walk_func walk, void *data);
23 #endif