fsck.hon commit Remove unused object-ref code (7914053)
   1#ifndef GIT_FSCK_H
   2#define GIT_FSCK_H
   3
   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
  11 */
  12typedef int (*fsck_walk_func)(struct object *obj, int type, void *data);
  13
  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
  20 */
  21int fsck_walk(struct object *obj, fsck_walk_func walk, void *data);
  22
  23#endif