diff plugins/icq/stdpackets.h @ 1912:8ed70631ed15

[gaim-migrate @ 1922] new icqlib committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 29 May 2001 10:32:53 +0000
parents 4c510ca3563f
children 7b3f1eb1ef7d
line wrap: on
line diff
--- a/plugins/icq/stdpackets.h	Tue May 29 09:46:05 2001 +0000
+++ b/plugins/icq/stdpackets.h	Tue May 29 10:32:53 2001 +0000
@@ -1,4 +1,25 @@
 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+
+/*
+ * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and
+ *                          Bill Soudan <soudan@kde.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ */
+
 #ifndef _ICQTCPPACKETS_H
 #define _ICQTCPPACKETS_H
 
@@ -53,26 +74,24 @@
 #define ICQ_TCP_STATUS_FREE_CHAT   ICQ_TCP_STATUS_ONLINE
 #define ICQ_TCP_STATUS_INVISIBLE   ICQ_TCP_STATUS_ONLINE
 
-#include "icqpacket.h"
 #include "tcplink.h"
 
 icq_Packet *icq_TCPCreateInitPacket(icq_TCPLink *plink);
 icq_Packet *icq_TCPCreateStdPacket(icq_TCPLink *plink, WORD icq_TCPCommand,
-               WORD type, const unsigned char *msg, WORD status, 
-               WORD msg_command);
-icq_Packet *icq_TCPCreateMessagePacket(icq_TCPLink *plink, const unsigned char *message);
+               WORD type, const char *msg, WORD status, WORD msg_command);
+icq_Packet *icq_TCPCreateMessagePacket(icq_TCPLink *plink, const char *message);
 icq_Packet *icq_TCPCreateURLPacket(icq_TCPLink *plink, const char *message,
    const char *url);
-icq_Packet *icq_TCPCreateChatReqPacket(icq_TCPLink *plink,  const unsigned char *message);
+icq_Packet *icq_TCPCreateChatReqPacket(icq_TCPLink *plink, const char *message);
 icq_Packet *icq_TCPCreateFileReqPacket(icq_TCPLink *plink, 
    const char *message, const char *filename, DWORD size);
-void icq_TCPAppendSequence(ICQLINK *link, icq_Packet *p);
-void icq_TCPAppendSequenceN(ICQLINK *link, icq_Packet *p, DWORD seq);
+void icq_TCPAppendSequence(icq_Link *icqlink, icq_Packet *p);
+void icq_TCPAppendSequenceN(icq_Link *icqlink, icq_Packet *p, DWORD seq);
 
-icq_Packet *icq_TCPCreateMessageAck(icq_TCPLink *plink, const unsigned char *message);
-icq_Packet *icq_TCPCreateURLAck(icq_TCPLink *plink, const unsigned char *message);
-icq_Packet *icq_TCPCreateContactListAck(icq_TCPLink *plink, const unsigned char *message);
-icq_Packet *icq_TCPCreateWebPagerAck(icq_TCPLink *plink, const unsigned char *message);
+icq_Packet *icq_TCPCreateMessageAck(icq_TCPLink *plink, const char *message);
+icq_Packet *icq_TCPCreateURLAck(icq_TCPLink *plink, const char *message);
+icq_Packet *icq_TCPCreateContactListAck(icq_TCPLink *plink, const char *message);
+icq_Packet *icq_TCPCreateWebPagerAck(icq_TCPLink *plink, const char *message);
 icq_Packet *icq_TCPCreateChatReqAck(icq_TCPLink *plink, WORD port);
 icq_Packet *icq_TCPCreateChatReqCancel(icq_TCPLink *plink, WORD port);
 icq_Packet *icq_TCPCreateChatReqRefuse(icq_TCPLink *plink, WORD port,
@@ -96,8 +115,8 @@
 icq_Packet *icq_TCPCreateFile05Packet(DWORD speed);
 icq_Packet *icq_TCPCreateFile06Packet(int length, void *data);
 
-icq_Packet *icq_UDPCreateStdPacket(ICQLINK *link, WORD cmd);
-icq_Packet *icq_UDPCreateStdSeqPacket(ICQLINK *link, WORD cmd, WORD seq);
+icq_Packet *icq_UDPCreateStdPacket(icq_Link *icqlink, WORD cmd);
+icq_Packet *icq_UDPCreateStdSeqPacket(icq_Link *icqlink, WORD cmd, WORD seq);
 
 #endif /* _ICQTCPPACKETS_H */