export ConnectionChange (#685)

This commit is contained in:
Roman Volosovskyi 2018-02-20 16:22:15 +08:00 committed by Igor Mandrigin
parent b2580c79d7
commit 59e77571bc
1 changed files with 1 additions and 0 deletions

View File

@ -452,6 +452,7 @@ func AddPeer(enode *C.char) *C.char {
// ConnectionChange handles network state changes as reported // ConnectionChange handles network state changes as reported
// by ReactNative (see https://facebook.github.io/react-native/docs/netinfo.html) // by ReactNative (see https://facebook.github.io/react-native/docs/netinfo.html)
//export ConnectionChange
func ConnectionChange(typ *C.char, expensive C.int) { func ConnectionChange(typ *C.char, expensive C.int) {
statusAPI.ConnectionChange(C.GoString(typ), expensive == 1) statusAPI.ConnectionChange(C.GoString(typ), expensive == 1)
} }