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

Function smartSubtransportCloseCallback

transport.go:403–416  ·  view source on GitHub ↗

export smartSubtransportCloseCallback

(errorMessage **C.char, t *C.git_smart_subtransport)

Source from the content-addressed store, hash-verified

401
402//export smartSubtransportCloseCallback
403func smartSubtransportCloseCallback(errorMessage **C.char, t *C.git_smart_subtransport) C.int {
404 subtransport := getSmartSubtransportInterface(t)
405
406 subtransport.currentManagedStream = nil
407
408 if subtransport.underlying != nil {
409 err := subtransport.underlying.Close()
410 if err != nil {
411 return setCallbackError(errorMessage, err)
412 }
413 }
414
415 return C.int(ErrorCodeOK)
416}
417
418//export smartSubtransportFreeCallback
419func smartSubtransportFreeCallback(t *C.git_smart_subtransport) {

Callers 1

Calls 3

setCallbackErrorFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…