Mercurial > pidgin
comparison src/protocols/msn/msnslp.h @ 6786:8efafdc38718
[gaim-migrate @ 7325]
It won't work yet, but this is part of the framework for the MSN User
Display image stuff.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 07 Sep 2003 22:35:00 +0000 |
parents | b7e113a59b51 |
children | 8f228a7d5076 |
comparison
equal
deleted
inserted
replaced
6785:eb8f949095a5 | 6786:8efafdc38718 |
---|---|
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 */ | 21 */ |
22 #ifndef _MSN_SLP_H_ | 22 #ifndef _MSN_SLP_H_ |
23 #define _MSN_SLP_H_ | 23 #define _MSN_SLP_H_ |
24 | 24 |
25 typedef struct | 25 typedef struct _MsnSlpSession MsnSlpSession; |
26 { | |
27 long session_id; | |
28 long id; | |
29 long offset; | |
30 long total_size; | |
31 long length; | |
32 long flags; | |
33 long prev_id; | |
34 long prev_f9; | |
35 long prev_total_size; | |
36 | 26 |
37 } MsnSlpHeader; | 27 #include "msnobject.h" |
38 | 28 #include "user.h" |
39 typedef struct | |
40 { | |
41 long app_id; | |
42 | |
43 } MsnSlpFooter; | |
44 | 29 |
45 #include "switchboard.h" | 30 #include "switchboard.h" |
46 | 31 |
47 typedef struct | 32 struct _MsnSlpSession |
48 { | 33 { |
49 gboolean local_initiated; | 34 gboolean local_initiated; |
50 | 35 |
51 MsnSwitchBoard *swboard; | 36 MsnSwitchBoard *swboard; |
52 | 37 |
53 int session_id; | 38 long session_id; |
54 int prev_msg_id; | 39 long base_id; |
55 | 40 long prev_msg_id; |
56 } MsnSlpSession; | 41 }; |
57 | 42 |
58 /** | 43 /** |
59 * Creates a MSNSLP session. | 44 * Creates a MSNSLP session. |
60 * | 45 * |
61 * @param swboard The switchboard. | 46 * @param swboard The switchboard. |
74 * @param slpsession The MSNSLP session to destroy. | 59 * @param slpsession The MSNSLP session to destroy. |
75 */ | 60 */ |
76 void msn_slp_session_destroy(MsnSlpSession *slpsession); | 61 void msn_slp_session_destroy(MsnSlpSession *slpsession); |
77 | 62 |
78 /** | 63 /** |
64 * Notifies the MSNSLP session handle that a message was received. | |
65 * | |
66 * @param slpsession The MSNSLP session. | |
67 * @param msg The message. | |
68 * | |
69 * @return TRUE if the session was closed, or FALSE otherwise. | |
70 */ | |
71 gboolean msn_slp_session_msg_received(MsnSlpSession *slpsession, | |
72 MsnMessage *msg); | |
73 | |
74 /** | |
79 * Sends a message over a MSNSLP session. | 75 * Sends a message over a MSNSLP session. |
80 * | 76 * |
81 * @param slpsession The MSNSLP session to send the message over. | 77 * @param slpsession The MSNSLP session to send the message over. |
82 * @param msg The message to send. | 78 * @param msg The message to send. |
83 */ | 79 */ |
84 void msn_slp_session_send_msg(MsnSlpSession *session, MsnMessage *msg); | 80 void msn_slp_session_send_msg(MsnSlpSession *session, MsnMessage *msg); |
85 | 81 |
82 /** | |
83 * Requests a User Display image over a MSNSLP session. | |
84 * | |
85 * @param slpsession The MSNSLP session to request the image over. | |
86 * @param localUser The local user initiating the invite. | |
87 * @param remoteUser The remote user the invite is sent to. | |
88 * @param obj The MSNObject representing the user display info. | |
89 */ | |
90 void msn_slp_session_request_user_display(MsnSlpSession *session, | |
91 const MsnUser *localUser, | |
92 const MsnUser *remoteUser, | |
93 const MsnObject *obj); | |
94 | |
95 /** | |
96 * Processes application/x-msnmsgrp2p messages. | |
97 * | |
98 * @param servconn The server connection. | |
99 * @param msg The message. | |
100 * | |
101 * @return TRUE | |
102 */ | |
103 gboolean msn_p2p_msg(MsnServConn *servconn, MsnMessage *msg); | |
104 | |
86 #endif /* _MSN_SLP_H_ */ | 105 #endif /* _MSN_SLP_H_ */ |