comparison src/protocols/jabber/si.h @ 7395:b250288fa948

[gaim-migrate @ 7990] this would be the non-working start of file transfer (the real way) for jabber also approximately eleventy billion jabber tweaks committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 31 Oct 2003 02:43:58 +0000
parents
children b5dbd1839716
comparison
equal deleted inserted replaced
7394:c6ff3c1fb1b3 7395:b250288fa948
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_ */