summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/icq_proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-02-06 23:31:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-02-06 23:31:56 +0300
commitf7cfd1068128e6a7da7d69d1de035b6c70028e17 (patch)
treef6ddc1206a47661f1e4c95541c15bfdbbd5b5930 /protocols/IcqOscarJ/src/icq_proto.h
parent17d8c0bb68eef6817c1f03a2abd5752e01b93ce9 (diff)
strange hand-made array removed
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_proto.h')
-rw-r--r--protocols/IcqOscarJ/src/icq_proto.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/protocols/IcqOscarJ/src/icq_proto.h b/protocols/IcqOscarJ/src/icq_proto.h
index b15b3cd210..09e273793c 100644
--- a/protocols/IcqOscarJ/src/icq_proto.h
+++ b/protocols/IcqOscarJ/src/icq_proto.h
@@ -800,13 +800,11 @@ struct CIcqProto : public PROTO<CIcqProto>
//----| oscar_filetransfer.cpp |------------------------------------------------------
mir_cs oftMutex;
- int fileTransferCount;
- basic_filetransfer** fileTransferList;
+ LIST<basic_filetransfer> m_arFileTransfers;
oscar_filetransfer* CreateOscarTransfer();
filetransfer *CreateIcqFileTransfer();
- void ReleaseFileTransfer(void *ft);
- void SafeReleaseFileTransfer(void **ft);
+ void SafeReleaseFileTransfer(basic_filetransfer **ft);
oscar_filetransfer* FindOscarTransfer(MCONTACT hContact, DWORD dwID1, DWORD dwID2);
oscar_listener* CreateOscarListener(oscar_filetransfer *ft, NETLIBNEWCONNECTIONPROC_V2 handler);
@@ -816,9 +814,8 @@ struct CIcqProto : public PROTO<CIcqProto>
void CloseOscarConnection(oscar_connection *oc);
int CreateOscarProxyConnection(oscar_connection *oc);
- int getFileTransferIndex(void *ft);
- int IsValidFileTransfer(void *ft);
- int IsValidOscarTransfer(void *ft);
+ int IsValidFileTransfer(basic_filetransfer *ft);
+ int IsValidOscarTransfer(basic_filetransfer *ft);
void handleRecvServMsgOFT(BYTE *buf, size_t wLen, DWORD dwUin, char *szUID, DWORD dwID1, DWORD dwID2, WORD wCommand);
void handleRecvServResponseOFT(BYTE *buf, size_t wLen, DWORD dwUin, char *szUID, void* ft);