Mercurial > pidgin.yaz
annotate src/protocols/msn/slplink.h @ 9580:b8d8571877df
[gaim-migrate @ 10423]
"I have attached two i18n patches:
i18n68.patch:
- added src/protocols/yahoo/ycht.c to po/POTFILES.in
i18n69.patch:
- added POTFILES.in.noi18n to po/.cvsignore
- a POTFILES.in.noi18n file will be placed in po/ if "update.pl -M"
detects files in po/POTFILES.in which do not contain any i18n string"
--Bjoern Voigt
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 23 Jul 2004 12:25:01 +0000 |
parents | ab6636c5a136 |
children | 1843023b8189 |
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 | |
34 #include "ft.h" | |
35 | |
36 struct _MsnSlpLink | |
37 { | |
38 MsnSession *session; | |
39 | |
40 char *local_user; | |
41 char *remote_user; | |
42 | |
43 int slp_seq_id; | |
44 | |
45 MsnDirectConn *directconn; | |
46 | |
47 GList *slp_calls; | |
48 GList *slp_sessions; | |
49 GList *slp_msgs; | |
50 | |
51 GQueue *slp_msg_queue; | |
52 }; | |
53 | |
54 MsnSlpLink *msn_slplink_new(MsnSession *session, const char *username); | |
55 void msn_slplink_destroy(MsnSlpLink *slplink); | |
56 MsnSlpLink *msn_session_find_slplink(MsnSession *session, | |
57 const char *who); | |
58 MsnSlpLink *msn_session_get_slplink(MsnSession *session, const char *username); | |
59 MsnSlpSession *msn_slplink_find_slp_session(MsnSlpLink *slplink, | |
60 long session_id); | |
61 MsnSlpCall *msn_slplink_find_slp_call(MsnSlpLink *slplink, | |
62 const char *id); | |
63 MsnSlpCall *msn_slplink_find_slp_call_with_session_id(MsnSlpLink *slplink, long id); | |
64 void msn_slplink_send_msg(MsnSlpLink *slplink, MsnMessage *msg); | |
65 void msn_slplink_release_msg(MsnSlpLink *slplink, | |
66 MsnSlpMessage *slpmsg); | |
67 void msn_slplink_queue_slpmsg(MsnSlpLink *slplink, MsnSlpMessage *slpmsg); | |
68 void msn_slplink_send_slpmsg(MsnSlpLink *slplink, | |
69 MsnSlpMessage *slpmsg); | |
70 void msn_slplink_unleash(MsnSlpLink *slplink); | |
71 void msn_slplink_send_ack(MsnSlpLink *slplink, MsnMessage *msg); | |
72 void msn_slplink_process_msg(MsnSlpLink *slplink, MsnMessage *msg); | |
73 MsnSlpMessage *msn_slplink_message_find(MsnSlpLink *slplink, long id); | |
74 void msn_slplink_append_slp_msg(MsnSlpLink *slplink, MsnSlpMessage *slpmsg); | |
75 void msn_slplink_remove_slp_msg(MsnSlpLink *slplink, | |
76 MsnSlpMessage *slpmsg); | |
77 void msn_slplink_request_ft(MsnSlpLink *slplink, GaimXfer *xfer); | |
78 | |
79 void msn_slplink_request_object(MsnSlpLink *slplink, | |
80 const char *info, | |
81 MsnSlpCb cb, | |
82 const MsnObject *obj); | |
83 | |
84 MsnSlpCall *msn_slp_process_msg(MsnSlpLink *slplink, MsnSlpMessage *slpmsg); | |
85 | |
86 #endif /* _MSN_SLPLINK_H_ */ |