diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-03 16:56:45 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-03 16:56:45 +0300 |
commit | f9883d97b3a586663f85075206fe7e07b41ed366 (patch) | |
tree | 1aa3f212a908eda296de192129df8e49cc10cb13 /include | |
parent | 9613f96e6a6f96ad02a0fc926054132811ae2bb1 (diff) |
unneeded size fields removed
Diffstat (limited to 'include')
-rw-r--r-- | include/delphi/m_protocols.inc | 3 | ||||
-rw-r--r-- | include/m_protocols.h | 7 |
2 files changed, 3 insertions, 7 deletions
diff --git a/include/delphi/m_protocols.inc b/include/delphi/m_protocols.inc index c4038e9600..76796c06ed 100644 --- a/include/delphi/m_protocols.inc +++ b/include/delphi/m_protocols.inc @@ -47,7 +47,6 @@ type type
PACKDATA = ^TACKDATA;
TACKDATA = record
- cbSize : int;
szModule: PAnsiChar; // the name of the protocol module which initiated this ack
hContact: TMCONTACT;
_type : int; // an ACKTYPE_* constant
@@ -119,7 +118,6 @@ type // especially for Miranda 9.0+
PPROTOFILETRANSFERSTATUS = ^TPROTOFILETRANSFERSTATUS;
TPROTOFILETRANSFERSTATUS = record
- cbSize : size_t;
hContact : TMCONTACT;
flags : dword; // one of PFTS_* constants
files : ^TCHAR;
@@ -241,7 +239,6 @@ type PPROTOACCOUNT = ^TPROTOACCOUNT;
PPPROTOACCOUNT = ^PPROTOACCOUNT;
TPROTOACCOUNT = record
- cbSize :int; // sizeof this structure
szModuleName :PAnsiChar; // unique physical account name (matches database module name)
tszAccountName :TChar; // user-defined account name
szProtoName :PAnsiChar; // physical protocol name
diff --git a/include/m_protocols.h b/include/m_protocols.h index 55b2b28cc0..3aaf125906 100644 --- a/include/m_protocols.h +++ b/include/m_protocols.h @@ -34,12 +34,13 @@ struct PROTO_INTERFACE; #include <m_core.h>
#include <m_system_cpp.h>
-typedef struct {
+struct CCSDATA
+{
MCONTACT hContact;
const char *szProtoService; // a PS_ constant
WPARAM wParam;
LPARAM lParam;
-} CCSDATA;
+};
/////////////////////////////////////////////////////////////////////////////////////////
// a general network 'ack'
@@ -85,7 +86,6 @@ typedef struct { struct ACKDATA
{
- int cbSize;
const char *szModule; // the name of the protocol module which initiated this ack
MCONTACT hContact;
int type; // an ACKTYPE_ constant
@@ -111,7 +111,6 @@ struct ACKDATA struct PROTOFILETRANSFERSTATUS
{
- size_t cbSize;
MCONTACT hContact;
DWORD flags; // one of PFTS_* constants
MAllStringArray pszFiles;
|