internal static extern int Server_SendSignal(NativeServer server, string intfName, IntPtr[] msgs, int numArgs);//NativeServer server, NativeSignal signal);
internal static extern void Server_SetSignalHandler(NativeServer server, ChatSignal func);
internal static extern void Server_RegisterSignalHandler(NativeServer server, string intfName);
internal static extern bool Server_AddInterfaceMember(NativeServer server, string name, string inputSig, string outSig, string argNames, int memberType); // 0 signal, 1 method
internal static extern void Server_SetMethodHandler(NativeServer server, ChatMethod func);
internal static extern bool Server_RegisterCallbacks(NativeServer server, CreateInterfaceCallback createInterfaceHandler);
internal static extern int Server_Stop(NativeServer engine);
internal static extern int Server_Initialize(NativeServer engine);
internal static extern void Server_Destroy(NativeServer engine);
internal static extern bool Server_RegisterTypeCallbacks(NativeServer server, SendStringArg arg);