comparison libpurple/protocols/msn/slpmsg.h @ 31558:ce968e115c95

propagate from branch 'im.pidgin.cpw.masca.p2p' (head 33ca865dacb9e5bcf763d06f6a42cbaca337cc64) to branch 'im.pidgin.pidgin' (head 92f47f4e8b0cbb107fd97e1ab814d1cedbf109ad)
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 06 May 2011 06:25:14 +0000
parents 34da321b60f1
children 182d7b49236c
comparison
equal deleted inserted replaced
31557:f021d93a1f9b 31558:ce968e115c95
43 { 43 {
44 MsnSlpCall *slpcall; /**< The slpcall to which this slp message belongs (if applicable). */ 44 MsnSlpCall *slpcall; /**< The slpcall to which this slp message belongs (if applicable). */
45 MsnSlpLink *slplink; /**< The slplink through which this slp message is being sent. */ 45 MsnSlpLink *slplink; /**< The slplink through which this slp message is being sent. */
46 MsnSession *session; 46 MsnSession *session;
47 47
48 MsnP2PHeader *header; 48 MsnP2PInfo *p2p_info;
49 MsnP2PFooter *footer;
50 49
51 long id; 50 long id;
52
53 gboolean sip; /**< A flag that states if this is a SIP slp message. */
54 51
55 gboolean ft; 52 gboolean ft;
56 PurpleStoredImage *img; 53 PurpleStoredImage *img;
57 guchar *buffer; 54 guchar *buffer;
58 55
92 void msn_slpmsg_set_slplink(MsnSlpMessage *slpmsg, MsnSlpLink *slplink); 89 void msn_slpmsg_set_slplink(MsnSlpMessage *slpmsg, MsnSlpLink *slplink);
93 90
94 void msn_slpmsg_set_body(MsnSlpMessage *slpmsg, const char *body, 91 void msn_slpmsg_set_body(MsnSlpMessage *slpmsg, const char *body,
95 long long size); 92 long long size);
96 void msn_slpmsg_set_image(MsnSlpMessage *slpmsg, PurpleStoredImage *img); 93 void msn_slpmsg_set_image(MsnSlpMessage *slpmsg, PurpleStoredImage *img);
97 void msn_slpmsg_open_file(MsnSlpMessage *slpmsg,
98 const char *file_name);
99 MsnSlpMessage * msn_slpmsg_sip_new(MsnSlpCall *slpcall, int cseq, 94 MsnSlpMessage * msn_slpmsg_sip_new(MsnSlpCall *slpcall, int cseq,
100 const char *header, 95 const char *header,
101 const char *branch, 96 const char *branch,
102 const char *content_type, 97 const char *content_type,
103 const char *content); 98 const char *content);
107 * 102 *
108 * @param header the value of the header in this slpmsg. 103 * @param header the value of the header in this slpmsg.
109 * 104 *
110 * @return A new SlpMessage with ACK headers 105 * @return A new SlpMessage with ACK headers
111 */ 106 */
112 MsnSlpMessage *msn_slpmsg_ack_new(MsnP2PHeader *header); 107 MsnSlpMessage *msn_slpmsg_ack_new(MsnP2PInfo *info);
113 108
114 /** 109 /**
115 * Create a new SLP message for MsnObject data. 110 * Create a new SLP message for MsnObject data.
116 * 111 *
117 * @param slpcall The slpcall that manages this message. 112 * @param slpcall The slpcall that manages this message.
123 118
124 /** 119 /**
125 * Create a new SLP message for data preparation. 120 * Create a new SLP message for data preparation.
126 * 121 *
127 * @param slpcall The slpcall that manages this message. 122 * @param slpcall The slpcall that manages this message.
128 * 123 *
129 * @return A new SlpMessage with data preparation info. 124 * @return A new SlpMessage with data preparation info.
130 */ 125 */
131 MsnSlpMessage *msn_slpmsg_dataprep_new(MsnSlpCall *slpcall); 126 MsnSlpMessage *msn_slpmsg_dataprep_new(MsnSlpCall *slpcall);
132 127
133 /** 128 /**