mirror of
https://github.com/status-im/status-keycard-go.git
synced 2025-02-24 12:08:38 +00:00
Merge pull request #1 from status-im/desktop-app-need
`Free` and `SetSignalEventCallback` added to the list of exported functions
This commit is contained in:
commit
15f654ce3a
@ -1,11 +1,15 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
// #cgo LDFLAGS: -shared
|
// #cgo LDFLAGS: -shared
|
||||||
|
// #include <stdlib.h>
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"unsafe"
|
||||||
|
|
||||||
skg "github.com/status-im/status-keycard-go"
|
skg "github.com/status-im/status-keycard-go"
|
||||||
|
"github.com/status-im/status-keycard-go/signal"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {}
|
func main() {}
|
||||||
@ -67,3 +71,13 @@ func KeycardCancelFlow() *C.char {
|
|||||||
err := globalFlow.Cancel()
|
err := globalFlow.Cancel()
|
||||||
return retErr(err)
|
return retErr(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//export Free
|
||||||
|
func Free(param unsafe.Pointer) {
|
||||||
|
C.free(param)
|
||||||
|
}
|
||||||
|
|
||||||
|
//export KeycardSetSignalEventCallback
|
||||||
|
func KeycardSetSignalEventCallback(cb unsafe.Pointer) {
|
||||||
|
signal.KeycardSetSignalEventCallback(cb)
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user