Skip to content

Commit

Permalink
[cgo] refs fibercrypto#116 Added typedata SortableTransactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Maykel Arias Torres committed Jan 17, 2020
1 parent 1987b56 commit 6c41926
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/cgo/libsky_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,20 @@ func lookupTransactionsHandle(handle C.Transactions__Handle) (*coin.Transactions
return nil, false
}

func registerSortableTransactionsHandle(obj *coin.SortableTransactions) C.SortableTransactions__Handle {
return (C.Transactions__Handle)(registerHandle(obj))
}

func lookupSortableTransactionsHandle(handle C.SortableTransactions__Handle) (*coin.SortableTransactions, bool) {
obj, ok := lookupHandle(C.Handle(handle))
if ok {
if obj, isOK := (obj).(*coin.SortableTransactions); isOK {
return obj, true
}
}
return nil, false
}

func registerBlockHandle(obj *coin.Block) C.Block__Handle {
return (C.Block__Handle)(registerHandle(obj))
}
Expand Down

0 comments on commit 6c41926

Please sign in to comment.