plugins/icq/tcplink.h

changeset 1912
77d18e17199b
parent 1498
de75cc6a6d34
child 1977
a6bfa19d6884
--- a/plugins/icq/tcplink.h	Tue May 29 09:46:05 2001 +0000
+++ b/plugins/icq/tcplink.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 _TCP_LINK_H_
 #define _TCP_LINK_H_
 
@@ -9,13 +30,10 @@
 #ifdef _WIN32
 #include <winsock.h>
 #else
-#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #endif
 
-#include <time.h>
-
 #include "icq.h"
 #include "icqpacket.h"
 #include "timeout.h"
@@ -43,7 +61,7 @@
 struct icq_TCPLink_s {
 
    /* icq_TCPLink ICQLINK, type, mode, and session */
-   ICQLINK *icqlink;
+   icq_Link *icqlink;
    int type;
    int mode;
    int proxy_status;
@@ -59,8 +77,8 @@
    int buffer_count;
 
    /* packet queues */
-   list *received_queue;
-   list *send_queue;
+   icq_List *received_queue;
+   icq_List *send_queue;
 
    /* icq specific data, initialized by hello packet */
    unsigned long id;
@@ -73,10 +91,10 @@
 
 };
 
-icq_TCPLink *icq_TCPLinkNew(ICQLINK *link);
+icq_TCPLink *icq_TCPLinkNew(icq_Link *icqlink);
 void icq_TCPLinkDelete(void *p);
 void icq_TCPLinkClose(icq_TCPLink *p);
-void icq_TCPLinkNodeDelete(list_node *p);
+void icq_TCPLinkNodeDelete(icq_ListNode *p);
 
 int icq_TCPLinkConnect(icq_TCPLink *plink, DWORD uin, int port);
 icq_TCPLink *icq_TCPLinkAccept(icq_TCPLink *plink);
@@ -93,7 +111,7 @@
 
 void icq_TCPLinkProcessReceived(icq_TCPLink *plink);
 
-icq_TCPLink *icq_FindTCPLink(ICQLINK *link, unsigned long uin, int type);
+icq_TCPLink *icq_FindTCPLink(icq_Link *icqlink, unsigned long uin, int type);
 
 void icq_ChatRusConv_n(const char to[4], char *t_in, int t_len);
 

mercurial