Sun, 04 Jan 2004 23:07:41 +0000
[gaim-migrate @ 8676]
this fixes the add/remove button showing up incorrectly for jabber chat rooms
when you add or remove a chat, the button doesn't automagically update in the
chat window. i'm too hungry to figure that out right now, so someone else
should do it.
| 7395 | 1 | /** |
| 2 | * @file jutil.h utility functions | |
| 3 | * | |
| 4 | * gaim | |
| 5 | * | |
| 6 | * Copyright (C) 2003 Nathan Walp <faceprint@faceprint.com> | |
| 7 | * | |
| 8 | * This program is free software; you can redistribute it and/or modify | |
| 9 | * it under the terms of the GNU General Public License as published by | |
| 10 | * the Free Software Foundation; either version 2 of the License, or | |
| 11 | * (at your option) any later version. | |
| 12 | * | |
| 13 | * This program is distributed in the hope that it will be useful, | |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 16 | * GNU General Public License for more details. | |
| 17 | * | |
| 18 | * You should have received a copy of the GNU General Public License | |
| 19 | * along with this program; if not, write to the Free Software | |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 21 | */ | |
| 22 | #ifndef _GAIM_JABBER_SI_H_ | |
| 23 | #define _GAIM_JABBER_SI_H_ | |
| 24 | ||
| 25 | #include "ft.h" | |
| 26 | ||
| 27 | #include "jabber.h" | |
| 28 | ||
| 29 | typedef struct _JabberSIXfer { | |
| 30 | JabberStream *js; | |
| 31 | ||
| 32 | char *id; | |
| 33 | char *resource; | |
| 34 | ||
| 35 | enum { | |
| 36 | STREAM_METHOD_UNKNOWN, | |
| 37 | STREAM_METHOD_BYTESTREAMS, | |
| 38 | STREAM_METHOD_IBB, | |
| 39 | STREAM_METHOD_UNSUPPORTED | |
| 40 | } stream_method; | |
| 41 | } JabberSIXfer; | |
| 42 | ||
| 43 | void jabber_si_parse(JabberStream *js, xmlnode *packet); | |
| 44 | ||
| 45 | void jabber_si_xfer_init(GaimXfer *xfer); | |
| 46 | void jabber_si_xfer_start(GaimXfer *xfer); | |
| 47 | void jabber_si_xfer_end(GaimXfer *xfer); | |
| 48 | void jabber_si_xfer_cancel_send(GaimXfer *xfer); | |
| 49 | void jabber_si_xfer_cancel_recv(GaimXfer *xfer); | |
| 50 | void jabber_si_xfer_ack(GaimXfer *xfer, const char *buffer, size_t size); | |
| 51 | ||
| 52 | ||
| 53 | #endif /* _GAIM_JABBER_SI_H_ */ |