Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/protocols/msn/msnslp.h Sun Sep 07 22:06:55 2003 +0000 +++ b/src/protocols/msn/msnslp.h Sun Sep 07 22:35:00 2003 +0000 @@ -22,38 +22,23 @@ #ifndef _MSN_SLP_H_ #define _MSN_SLP_H_ -typedef struct -{ - long session_id; - long id; - long offset; - long total_size; - long length; - long flags; - long prev_id; - long prev_f9; - long prev_total_size; +typedef struct _MsnSlpSession MsnSlpSession; -} MsnSlpHeader; - -typedef struct -{ - long app_id; - -} MsnSlpFooter; +#include "msnobject.h" +#include "user.h" #include "switchboard.h" -typedef struct +struct _MsnSlpSession { gboolean local_initiated; MsnSwitchBoard *swboard; - int session_id; - int prev_msg_id; - -} MsnSlpSession; + long session_id; + long base_id; + long prev_msg_id; +}; /** * Creates a MSNSLP session. @@ -76,6 +61,17 @@ void msn_slp_session_destroy(MsnSlpSession *slpsession); /** + * Notifies the MSNSLP session handle that a message was received. + * + * @param slpsession The MSNSLP session. + * @param msg The message. + * + * @return TRUE if the session was closed, or FALSE otherwise. + */ +gboolean msn_slp_session_msg_received(MsnSlpSession *slpsession, + MsnMessage *msg); + +/** * Sends a message over a MSNSLP session. * * @param slpsession The MSNSLP session to send the message over. @@ -83,4 +79,27 @@ */ void msn_slp_session_send_msg(MsnSlpSession *session, MsnMessage *msg); +/** + * Requests a User Display image over a MSNSLP session. + * + * @param slpsession The MSNSLP session to request the image over. + * @param localUser The local user initiating the invite. + * @param remoteUser The remote user the invite is sent to. + * @param obj The MSNObject representing the user display info. + */ +void msn_slp_session_request_user_display(MsnSlpSession *session, + const MsnUser *localUser, + const MsnUser *remoteUser, + const MsnObject *obj); + +/** + * Processes application/x-msnmsgrp2p messages. + * + * @param servconn The server connection. + * @param msg The message. + * + * @return TRUE + */ +gboolean msn_p2p_msg(MsnServConn *servconn, MsnMessage *msg); + #endif /* _MSN_SLP_H_ */