#ifndef CONNECTED_H #define CONNECTED_H struct object_id; struct transport; /* * Take callback data, and return next object name in the buffer. * When called after returning the name for the last object, return -1 * to signal EOF, otherwise return 0. */ oid_iterate_fn; /* * Named-arguments struct for check_connected. All arguments are * optional, and can be left to defaults as set by CHECK_CONNECTED_INIT. */ struct check_connected_options { … }; #define CHECK_CONNECTED_INIT … /* * Make sure that all given objects and all objects reachable from them * either exist in our object store or (if the repository is a partial * clone) are promised to be available. * * Return 0 if Ok, non zero otherwise (i.e. some missing objects) * * If "opt" is NULL, behaves as if CHECK_CONNECTED_INIT was passed. */ int check_connected(oid_iterate_fn fn, void *cb_data, struct check_connected_options *opt); #endif /* CONNECTED_H */