Mercurial > pidgin
comparison plugins/icq/stdpackets.c @ 1977:7b3f1eb1ef7d
[gaim-migrate @ 1987]
updated icqlib. fixed import dialog (watch debug window for errors). adam's (not mid's) patch for oscar.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Sat, 09 Jun 2001 14:46:51 +0000 |
| parents | 8ed70631ed15 |
| children |
comparison
equal
deleted
inserted
replaced
| 1976:24aed1c31342 | 1977:7b3f1eb1ef7d |
|---|---|
| 1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 | 2 |
| 3 /* | 3 /* |
| 4 * $Id: stdpackets.c 1987 2001-06-09 14:46:51Z warmenhoven $ | |
| 5 * | |
| 4 * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and | 6 * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and |
| 5 * Bill Soudan <soudan@kde.org> | 7 * Bill Soudan <soudan@kde.org> |
| 6 * | 8 * |
| 7 * This program is free software; you can redistribute it and/or modify | 9 * This program is free software; you can redistribute it and/or modify |
| 8 * it under the terms of the GNU General Public License as published by | 10 * it under the terms of the GNU General Public License as published by |
| 95 ICQ_TCP_MSG_REAL); | 97 ICQ_TCP_MSG_REAL); |
| 96 | 98 |
| 97 return p; | 99 return p; |
| 98 } | 100 } |
| 99 | 101 |
| 102 icq_Packet *icq_TCPCreateAwayReqPacket(icq_TCPLink *plink, WORD statusMode) | |
| 103 { | |
| 104 icq_Packet *p=icq_TCPCreateStdPacket( | |
| 105 plink, | |
| 106 ICQ_TCP_MESSAGE, | |
| 107 statusMode, //one of the icq_tcp_msg_read... constants | |
| 108 "", | |
| 109 0, /* status */ | |
| 110 0); | |
| 111 | |
| 112 return p; | |
| 113 } | |
| 114 | |
| 100 icq_Packet *icq_TCPCreateURLPacket(icq_TCPLink *plink, const char *message, | 115 icq_Packet *icq_TCPCreateURLPacket(icq_TCPLink *plink, const char *message, |
| 101 const char *url) | 116 const char *url) |
| 102 { | 117 { |
| 103 icq_Packet *p; | 118 icq_Packet *p; |
| 104 unsigned char *str=(unsigned char*)malloc(strlen(message)+strlen(url)+2); | 119 unsigned char *str=(unsigned char*)malloc(strlen(message)+strlen(url)+2); |
