github.com/cheng762/platon-go@v1.8.17-0.20190529111256-7deff2d7be26/mpc/platonvmsdk.h (about) 1 #ifndef _PLATONVMSDK_H 2 #define _PLATONVMSDK_H 3 4 #ifdef _WIN32 5 # if defined(PLATONMPCVMSDK_STATIC) 6 # define PLATONMPCVMSDK_DLL_API 7 # else 8 # if defined(PLATONMPCVMSDK_EXPORTS) 9 # define PLATONMPCVMSDK_DLL_API __declspec(dllexport) 10 # else 11 # define PLATONMPCVMSDK_DLL_API __declspec(dllimport) 12 # endif 13 # endif 14 #else 15 # define PLATONMPCVMSDK_DLL_API 16 #endif 17 18 /* 19 return 0 is success, other is failed 20 ERR_NO_ERROR 0 21 ERR_INIT_ENGINE 1 22 ERR_COMMIT_TASK 2 23 ERR_NOT_INIT 3 24 */ 25 #if __cplusplus 26 extern "C" { 27 #endif 28 29 // new 30 int PLATONMPCVMSDK_DLL_API notify_security_init(const char* icecfg, const char* url); 31 int PLATONMPCVMSDK_DLL_API notify_security_commit(const char* taskid, const char* pubkey, const char* address, 32 const char* ir_address, const char* method, const char* extra); 33 34 // old 35 int PLATONMPCVMSDK_DLL_API notify_security_calculation(const char* taskid, const char* pubkey, const char* address, 36 const char* ir_address, const char* method, const char* extra); 37 38 #if __cplusplus 39 } 40 #endif 41 42 #endif //!_PLATONVMSDK_H 43 44