From abf8cd813bb0ac4f4f5451d2af929279d816abac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 18 Apr 2018 23:04:26 +0300 Subject: core changes: - PROTOCOLDESCRIPTOR's implementation hidden inside mir_app; - Proto_RegisterModule now doesn't need a PROTOCOLDESCRIPTOR structure; - PROTOTYPE_PROTOWITHACCS type added for protos that work with accounts --- plugins/Watrack/proto/proto.pas | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'plugins/Watrack/proto/proto.pas') diff --git a/plugins/Watrack/proto/proto.pas b/plugins/Watrack/proto/proto.pas index 33098c7f42..3025ab76f3 100644 --- a/plugins/Watrack/proto/proto.pas +++ b/plugins/Watrack/proto/proto.pas @@ -318,13 +318,8 @@ begin end; procedure SetProtocol; -var - desc:TPROTOCOLDESCRIPTOR; begin - desc.cbSize:=SizeOf(desc); - desc.szName:=PluginShort; - desc._type :=PROTOTYPE_TRANSLATION; - Proto_RegisterModule(@desc); + Proto_RegisterModule(PROTOTYPE_TRANSLATION,PluginShort); hSRM:=CreateProtoServiceFunction(PluginShort,PSR_MESSAGE ,@ReceiveMessageProcW); end; -- cgit v1.2.3