forked from fibercrypto/libfibercrypto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cgo] refs fibercrypto#5 Added
coin.mocks.TransactionIterator
- Loading branch information
Maykel Arias Torres
committed
Mar 24, 2020
1 parent
675efc8
commit 152ba34
Showing
4 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package main | ||
|
||
/* | ||
#include <string.h> | ||
#include <stdlib.h> | ||
#include "fctypes.h" | ||
*/ | ||
import "C" | ||
|
||
//export FC_mocks_TransactionIterator_HasNext | ||
func FC_mocks_TransactionIterator_HasNext(__m *C.TransactionIteratorMocks__Handle, _arg0 *bool) (____error_code uint32) { | ||
_m, ok_m := lookupTransactionIteratorMocksHandle(*__m) | ||
if !ok_m { | ||
____error_code = FC_BAD_HANDLE | ||
return | ||
} | ||
__arg0 := _m.HasNext() | ||
*_arg0 = __arg0 | ||
return | ||
} | ||
|
||
//export FC_mocks_TransactionIterator_Next | ||
func FC_mocks_TransactionIterator_Next(__m *C.TransactionIteratorMocks__Handle, _arg0 *bool) (____error_code uint32) { | ||
_m, ok_m := lookupTransactionIteratorMocksHandle(*__m) | ||
if !ok_m { | ||
____error_code = FC_BAD_HANDLE | ||
return | ||
} | ||
__arg0 := _m.Next() | ||
*_arg0 = __arg0 | ||
return | ||
} | ||
|
||
//export FC_mocks_TransactionIterator_Value | ||
func FC_mocks_TransactionIterator_Value(__m *C.TransactionIteratorMocks__Handle, _arg0 *C.Transaction__Handle) (____error_code uint32) { | ||
_m, ok_m := lookupTransactionIteratorMocksHandle(*__m) | ||
if !ok_m { | ||
____error_code = FC_BAD_HANDLE | ||
return | ||
} | ||
__arg0 := _m.Value() | ||
*_arg0 = registerTransactionHandle(&__arg0) | ||
return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters