2011-09-02 23:33:22 +00:00
|
|
|
#ifndef CONNECTED_H
|
|
|
|
#define CONNECTED_H
|
|
|
|
|
2013-05-26 01:16:17 +00:00
|
|
|
struct transport;
|
|
|
|
|
2011-09-02 23:33:22 +00:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
typedef int (*sha1_iterate_fn)(void *, unsigned char [20]);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Make sure that our object store has all the commits necessary to
|
|
|
|
* connect the ancestry chain to some of our existing refs, and all
|
|
|
|
* the trees and blobs that these commits use.
|
|
|
|
*
|
|
|
|
* Return 0 if Ok, non zero otherwise (i.e. some missing objects)
|
|
|
|
*/
|
|
|
|
extern int check_everything_connected(sha1_iterate_fn, int quiet, void *cb_data);
|
2013-05-26 01:16:17 +00:00
|
|
|
extern int check_everything_connected_with_transport(sha1_iterate_fn, int quiet,
|
|
|
|
void *cb_data,
|
|
|
|
struct transport *transport);
|
2011-09-02 23:33:22 +00:00
|
|
|
|
|
|
|
#endif /* CONNECTED_H */
|