github.com/igggame/nebulas-go@v2.1.0+incompatible/nf/nbre/cfuncs.go (about) 1 // Copyright (C) 2018 go-nebulas authors 2 // 3 // This file is part of the go-nebulas library. 4 // 5 // the go-nebulas library is free software: you can redistribute it and/or modify 6 // it under the terms of the GNU General Public License as published by 7 // the Free Software Foundation, either version 3 of the License, or 8 // (at your option) any later version. 9 // 10 // the go-nebulas library is distributed in the hope that it will be useful, 11 // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 // GNU General Public License for more details. 14 // 15 // You should have received a copy of the GNU General Public License 16 // along with the go-nebulas library. If not, see <http://www.gnu.org/licenses/>. 17 // 18 19 package nbre 20 21 /* 22 23 #include <stdint.h> 24 25 void NbreVersionFunc(int isc, void *holder, uint32_t major, uint32_t minor,uint32_t patch); 26 void NbreIrListFunc(int isc, void *holder, const char *ir_name_list); 27 void NbreIrVersionsFunc(int isc, void *holder, const char *ir_versions); 28 void NbreNrHandleFunc(int isc, void *holder, const char *nr_handle); 29 void NbreNrResultByhandleFunc(int isc, void *holder, const char *nr_result); 30 void NbreNrResultByHeightFunc(int isc, void *holder, const char *nr_result); 31 void NbreNrSumFunc(int isc, void *holder, const char *nr_sum); 32 void NbreDipRewardFunc(int isc, void *holder, const char *dip_reward); 33 34 void NbreVersionFunc_cgo(int isc, void *holder, uint32_t major, uint32_t minor,uint32_t patch) { 35 NbreVersionFunc(isc, holder, major, minor, patch); 36 }; 37 38 void NbreIrListFunc_cgo(int isc, void *holder, const char *ir_name_list) { 39 NbreIrListFunc(isc, holder, ir_name_list); 40 }; 41 42 void NbreIrVersionsFunc_cgo(int isc, void *holder, const char *ir_versions) { 43 NbreIrVersionsFunc(isc, holder, ir_versions); 44 }; 45 46 void NbreNrHandleFunc_cgo(int isc, void *holder, const char *nr_handle) { 47 NbreNrHandleFunc(isc, holder, nr_handle); 48 }; 49 50 void NbreNrResultByhandleFunc_cgo(int isc, void *holder, const char *nr_result) { 51 NbreNrResultByhandleFunc(isc, holder, nr_result); 52 }; 53 54 void NbreNrResultByHeightFunc_cgo(int isc, void *holder, const char *nr_result) { 55 NbreNrResultByHeightFunc(isc, holder, nr_result); 56 }; 57 58 void NbreNrSumFunc_cgo(int isc, void *holder, const char *nr_sum) { 59 NbreNrSumFunc(isc, holder, nr_sum); 60 }; 61 62 void NbreDipRewardFunc_cgo(int isc, void *holder, const char *dip_reward) { 63 NbreDipRewardFunc(isc, holder, dip_reward); 64 }; 65 66 */ 67 import "C"