Skip to content

Commit

Permalink
[cgo] refs #105 Added function helper SKY_Handle_Strings_Get
Browse files Browse the repository at this point in the history
  • Loading branch information
Maykel Arias Torres committed Sep 12, 2019
1 parent bc876e3 commit 03ccbce
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/cgo/libsky_handle_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,17 @@ func SKY_Handle_Strings_SetAt(handle C.Strings__Handle, index int, str *string)
return SKY_OK
}

//nolint megacheck
//export SKY_Handle_Strings_Get
func SKY_Handle_Strings_Get(handle C.Strings__Handle, arg0 *[]string) uint32 {
obj, ok := lookupStringsHandle(handle)
if !ok {
return SKY_BAD_HANDLE
}
*arg0 = obj
return SKY_OK
}

//export SKY_api_Handle_Client_GetWalletDir
func SKY_api_Handle_Client_GetWalletDir(handle C.Client__Handle, walletDir *C.GoString_) uint32 {
client, ok := lookupClientHandle(handle)
Expand Down

0 comments on commit 03ccbce

Please sign in to comment.