Skip to content

Commit

Permalink
[libc] refs #105 Restore function `SKY_params_Distribution_GetAddress…
Browse files Browse the repository at this point in the history
…es` to export GoSlice
  • Loading branch information
Maykel Arias Torres committed Sep 14, 2019
1 parent 03ccbce commit ecf5710
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cgo/libsky_handle_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func SKY_Handle_Strings_Get(handle C.Strings__Handle, arg0 *[]string) uint32 {
if !ok {
return SKY_BAD_HANDLE
}
*arg0 = obj
arg0 = &obj
return SKY_OK
}

Expand Down
4 changes: 2 additions & 2 deletions lib/cgo/params.distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ func SKY_params_Distribution_SetUnlockTimeInterval(_d C.Distribution__Handle, _a
}

//export SKY_params_Distribution_GetAddresses
func SKY_params_Distribution_GetAddresses(_d C.Distribution__Handle, _arg0 *C.Strings__Handle) (____error_code uint32) {
func SKY_params_Distribution_GetAddresses(_d C.Distribution__Handle, __return_strings *[]string) (____error_code uint32) {
d, ok := lookupDistributionHandle(_d)
if !ok {
____error_code = SKY_BAD_HANDLE
return
}
*_arg0 = registerStringsHandle(d.Addresses)
*__return_strings = d.Addresses
return
}

Expand Down

0 comments on commit ecf5710

Please sign in to comment.