📄 dsmpcc.h
字号:
//// (S)imple (M)odule (P)rocedure (C)all//// Version 1.1.3//// SIC Dynamics Copyright(C) - 1999//// SMPC C API//#ifndef __DSMPCC_H#define __DSMPCC_H#include <smpc/dsmpcdef.h>// SMPC protocoltypedef void* Smpc;// SMPC servertypedef struct _smpc_server { dword type; // service type char* about; // service about text int (*serv)(struct _smpc_server*, dword, void*, dword, void*, dword*); void (*post)(struct _smpc_server*, dword, int); void (*kill)(struct _smpc_server*);} SmpcServer;#ifdef __cplusplusextern "C" {#endif// SMPC protocol functionsextern const char* cdecl smpc_error(int);extern Smpc cdecl smpc_create(void);extern void cdecl smpc_delete(Smpc);// SMPC client functionsextern int cdecl smpc_call(Smpc, dword, dword*, dword, DSmpcParam*, dword, DSmpcParam*, dword);extern int cdecl smpc_about(Smpc, dword, dword*, char*, dword);// SMPC server functionsextern int cdecl smpc_add(Smpc, dword, SmpcServer*);extern int cdecl smpc_sub(Smpc, dword);extern int cdecl smpc_sid(Smpc, dword, dword);extern int cdecl smpc_run(Smpc);#ifdef __cplusplus};#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -