MCPcopy Create free account
hub / github.com/libgit2/git2go / sidebandProgressCallback

Function sidebandProgressCallback

remote.go:344–357  ·  view source on GitHub ↗

export sidebandProgressCallback

(errorMessage **C.char, _str *C.char, _len C.int, handle unsafe.Pointer)

Source from the content-addressed store, hash-verified

342
343//export sidebandProgressCallback
344func sidebandProgressCallback(errorMessage **C.char, _str *C.char, _len C.int, handle unsafe.Pointer) C.int {
345 data := pointerHandles.Get(handle).(*remoteCallbacksData)
346 if data.callbacks.SidebandProgressCallback == nil {
347 return C.int(ErrorCodeOK)
348 }
349 err := data.callbacks.SidebandProgressCallback(C.GoStringN(_str, _len))
350 if err != nil {
351 if data.errorTarget != nil {
352 *data.errorTarget = err
353 }
354 return setCallbackError(errorMessage, err)
355 }
356 return C.int(ErrorCodeOK)
357}
358
359//export completionCallback
360func completionCallback(errorMessage **C.char, completionType C.git_remote_completion_type, handle unsafe.Pointer) C.int {

Callers 1

Calls 2

setCallbackErrorFunction · 0.85
GetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…