8 int (*fetch_ref
)(struct walker
*, struct ref
*ref
);
9 void (*prefetch
)(struct walker
*, unsigned char *sha1
);
10 int (*fetch
)(struct walker
*, unsigned char *sha1
);
11 void (*cleanup
)(struct walker
*);
15 int corrupt_object_found
;
18 /* Report what we got under get_verbosely */
19 __attribute__((format (printf
, 2, 3)))
20 void walker_say(struct walker
*walker
, const char *fmt
, ...);
22 /* Load pull targets from stdin */
23 int walker_targets_stdin(char ***target
, const char ***write_ref
);
25 /* Free up loaded targets */
26 void walker_targets_free(int targets
, char **target
, const char **write_ref
);
28 /* If write_ref is set, the ref filename to write the target value to. */
29 /* If write_ref_log_details is set, additional text will appear in the ref log. */
30 int walker_fetch(struct walker
*impl
, int targets
, char **target
,
31 const char **write_ref
, const char *write_ref_log_details
);
33 void walker_free(struct walker
*walker
);
35 struct walker
*get_http_walker(const char *url
);