Mercurial > pidgin.yaz
annotate src/protocols/msn/slplink.h @ 10843:dd7f59f5252d
[gaim-migrate @ 12515]
sf patch #1185594, from Richard Laager
"This cleans up a couple error messages."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 19 Apr 2005 03:31:50 +0000 |
parents | f52ab405f1ab |
children | 442b23efba54 |
rev | line source |
---|---|
9198
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
1 /** |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
2 * @file slplink.h MSNSLP Link support |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
3 * |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
4 * gaim |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
5 * |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
6 * Gaim is the legal property of its developers, whose names are too numerous |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
7 * to list here. Please refer to the COPYRIGHT file distributed with this |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
8 * source distribution. |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
9 * |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
10 * This program is free software; you can redistribute it and/or modify |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
11 * it under the terms of the GNU General Public License as published by |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
12 * the Free Software Foundation; either version 2 of the License, or |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
13 * (at your option) any later version. |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
14 * |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
15 * This program is distributed in the hope that it will be useful, |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
18 * GNU General Public License for more details. |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
19 * |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
20 * You should have received a copy of the GNU General Public License |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
21 * along with this program; if not, write to the Free Software |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
23 */ |
9193 | 24 #ifndef _MSN_SLPLINK_H_ |
25 #define _MSN_SLPLINK_H_ | |
26 | |
27 typedef struct _MsnSlpLink MsnSlpLink; | |
28 | |
29 #include "session.h" | |
30 #include "directconn.h" | |
31 #include "slpcall.h" | |
32 #include "slpmsg.h" | |
33 | |
10345 | 34 #include "switchboard.h" |
35 | |
9193 | 36 #include "ft.h" |
37 | |
38 struct _MsnSlpLink | |
39 { | |
40 MsnSession *session; | |
10345 | 41 MsnSwitchBoard *swboard; |
9193 | 42 |
43 char *local_user; | |
44 char *remote_user; | |
45 | |
46 int slp_seq_id; | |
47 | |
48 MsnDirectConn *directconn; | |
49 | |
50 GList *slp_calls; | |
51 GList *slp_sessions; | |
52 GList *slp_msgs; | |
53 | |
54 GQueue *slp_msg_queue; | |
55 }; | |
56 | |
57 MsnSlpLink *msn_slplink_new(MsnSession *session, const char *username); | |
58 void msn_slplink_destroy(MsnSlpLink *slplink); | |
59 MsnSlpLink *msn_session_find_slplink(MsnSession *session, | |
10345 | 60 const char *who); |
9193 | 61 MsnSlpLink *msn_session_get_slplink(MsnSession *session, const char *username); |
62 MsnSlpSession *msn_slplink_find_slp_session(MsnSlpLink *slplink, | |
10345 | 63 long session_id); |
10602 | 64 void msn_slplink_add_slpcall(MsnSlpLink *slplink, MsnSlpCall *slpcall); |
65 void msn_slplink_remove_slpcall(MsnSlpLink *slplink, MsnSlpCall *slpcall); | |
9193 | 66 MsnSlpCall *msn_slplink_find_slp_call(MsnSlpLink *slplink, |
10345 | 67 const char *id); |
9193 | 68 MsnSlpCall *msn_slplink_find_slp_call_with_session_id(MsnSlpLink *slplink, long id); |
69 void msn_slplink_send_msg(MsnSlpLink *slplink, MsnMessage *msg); | |
10345 | 70 void msn_slplink_release_slpmsg(MsnSlpLink *slplink, |
71 MsnSlpMessage *slpmsg); | |
9193 | 72 void msn_slplink_queue_slpmsg(MsnSlpLink *slplink, MsnSlpMessage *slpmsg); |
73 void msn_slplink_send_slpmsg(MsnSlpLink *slplink, | |
10345 | 74 MsnSlpMessage *slpmsg); |
9193 | 75 void msn_slplink_unleash(MsnSlpLink *slplink); |
76 void msn_slplink_send_ack(MsnSlpLink *slplink, MsnMessage *msg); | |
77 void msn_slplink_process_msg(MsnSlpLink *slplink, MsnMessage *msg); | |
10092 | 78 MsnSlpMessage *msn_slplink_message_find(MsnSlpLink *slplink, long session_id, long id); |
9193 | 79 void msn_slplink_append_slp_msg(MsnSlpLink *slplink, MsnSlpMessage *slpmsg); |
80 void msn_slplink_remove_slp_msg(MsnSlpLink *slplink, | |
10345 | 81 MsnSlpMessage *slpmsg); |
9193 | 82 void msn_slplink_request_ft(MsnSlpLink *slplink, GaimXfer *xfer); |
83 | |
84 void msn_slplink_request_object(MsnSlpLink *slplink, | |
10345 | 85 const char *info, |
86 MsnSlpCb cb, | |
87 MsnSlpEndCb end_cb, | |
88 const MsnObject *obj); | |
9193 | 89 |
90 MsnSlpCall *msn_slp_process_msg(MsnSlpLink *slplink, MsnSlpMessage *slpmsg); | |
91 | |
92 #endif /* _MSN_SLPLINK_H_ */ |