Mercurial > pidgin
comparison libpurple/protocols/jabber/ibb.h @ 25952:5f9a24d1c25e
Remove some extra trailing whitespace I noticed after merging mlundblad's
xmpp branches.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Mon, 02 Mar 2009 06:37:05 +0000 |
parents | 151b4054ce40 |
children | 50ff0162fe26 |
comparison
equal
deleted
inserted
replaced
25951:13574de83636 | 25952:5f9a24d1c25e |
---|---|
1 /* | 1 /* |
2 * This program is free software; you can redistribute it and/or modify | 2 * This program is free software; you can redistribute it and/or modify |
3 * it under the terms of the GNU General Public License as published by | 3 * it under the terms of the GNU General Public License as published by |
4 * the Free Software Foundation; either version 2 of the License, or | 4 * the Free Software Foundation; either version 2 of the License, or |
5 * (at your option) any later version. | 5 * (at your option) any later version. |
6 * | 6 * |
7 * This program is distributed in the hope that it will be useful, | 7 * This program is distributed in the hope that it will be useful, |
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
10 * GNU Library General Public License for more details. | 10 * GNU Library General Public License for more details. |
11 * | 11 * |
12 * You should have received a copy of the GNU General Public License | 12 * You should have received a copy of the GNU General Public License |
13 * along with this program; if not, write to the Free Software | 13 * along with this program; if not, write to the Free Software |
14 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA | 14 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA |
15 */ | 15 */ |
16 | 16 |
17 #ifndef _PURPLE_JABBER_IBB_H_ | 17 #ifndef _PURPLE_JABBER_IBB_H_ |
18 #define _PURPLE_JABBER_IBB_H_ | 18 #define _PURPLE_JABBER_IBB_H_ |
19 | 19 |
20 #include "jabber.h" | 20 #include "jabber.h" |
21 #include "iq.h" | 21 #include "iq.h" |
22 | 22 |
23 #define XEP_0047_NAMESPACE "http://jabber.org/protocol/ibb" | 23 #define XEP_0047_NAMESPACE "http://jabber.org/protocol/ibb" |
24 | 24 |
25 typedef struct _JabberIBBSession JabberIBBSession; | 25 typedef struct _JabberIBBSession JabberIBBSession; |
26 | 26 |
27 typedef void | 27 typedef void |
28 (JabberIBBDataCallback)(JabberIBBSession *, const gpointer data, gsize size); | 28 (JabberIBBDataCallback)(JabberIBBSession *, const gpointer data, gsize size); |
29 | 29 |
30 typedef void (JabberIBBOpenedCallback)(JabberIBBSession *); | 30 typedef void (JabberIBBOpenedCallback)(JabberIBBSession *); |
31 typedef void (JabberIBBClosedCallback)(JabberIBBSession *); | 31 typedef void (JabberIBBClosedCallback)(JabberIBBSession *); |
32 typedef void (JabberIBBErrorCallback)(JabberIBBSession *); | 32 typedef void (JabberIBBErrorCallback)(JabberIBBSession *); |
47 gchar *sid; | 47 gchar *sid; |
48 gchar *id; | 48 gchar *id; |
49 guint16 send_seq; | 49 guint16 send_seq; |
50 guint16 recv_seq; | 50 guint16 recv_seq; |
51 gsize block_size; | 51 gsize block_size; |
52 | 52 |
53 /* session state */ | 53 /* session state */ |
54 JabberIBBSessionState state; | 54 JabberIBBSessionState state; |
55 | 55 |
56 /* user data (f.ex. a handle to a PurpleXfer) */ | 56 /* user data (f.ex. a handle to a PurpleXfer) */ |
57 gpointer user_data; | 57 gpointer user_data; |
58 | 58 |
59 /* callbacks */ | 59 /* callbacks */ |
60 JabberIBBOpenedCallback *opened_cb; | 60 JabberIBBOpenedCallback *opened_cb; |
61 JabberIBBSentCallback *data_sent_cb; | 61 JabberIBBSentCallback *data_sent_cb; |
62 JabberIBBClosedCallback *closed_cb; | 62 JabberIBBClosedCallback *closed_cb; |
63 /* callback for receiving data */ | 63 /* callback for receiving data */ |
64 JabberIBBDataCallback *data_received_cb; | 64 JabberIBBDataCallback *data_received_cb; |
65 JabberIBBErrorCallback *error_cb; | 65 JabberIBBErrorCallback *error_cb; |
66 | 66 |
67 /* store the last sent IQ (to permit cancel of callback) */ | 67 /* store the last sent IQ (to permit cancel of callback) */ |
68 gchar *last_iq_id; | 68 gchar *last_iq_id; |
69 }; | 69 }; |
70 | 70 |
71 JabberIBBSession *jabber_ibb_session_create(JabberStream *js, const gchar *sid, | 71 JabberIBBSession *jabber_ibb_session_create(JabberStream *js, const gchar *sid, |