Function type for callbacks from git_odb_foreach.
an id of an object in the object database
the payload from the initial call to git_odb_foreach
0 on success, or an error code