Set the callbacks for a packbuilder
Function to call with progress information during pack building. Be aware that this is called inline with pack building operations, so performance may be affected. When progress_cb returns an error, the pack building process will be aborted and the error will be returned from the invoked function. pb
must then be freed.
Payload for progress callback.
0 or an error code