mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
065dd231dd
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
15 lines
482 B
Go
15 lines
482 B
Go
// +build linux,amd64
|
|
|
|
package devmapper
|
|
|
|
import "C"
|
|
|
|
// Due to the way cgo works this has to be in a separate file, as devmapper.go has
|
|
// definitions in the cgo block, which is incompatible with using "//export"
|
|
|
|
//export DevmapperLogCallback
|
|
func DevmapperLogCallback(level C.int, file *C.char, line C.int, dm_errno_or_class C.int, message *C.char) {
|
|
if dmLogger != nil {
|
|
dmLogger.log(int(level), C.GoString(file), int(line), int(dm_errno_or_class), C.GoString(message))
|
|
}
|
|
}
|