export ConnectionChange (#685)
This commit is contained in:
parent
b2580c79d7
commit
59e77571bc
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue