| 17 * |
17 * |
| 18 * You should have received a copy of the GNU General Public License |
18 * You should have received a copy of the GNU General Public License |
| 19 * along with this program; if not, write to the Free Software |
19 * along with this program; if not, write to the Free Software |
| 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 21 */ |
21 */ |
| 22 #ifndef _PURPLE_JABBER_H_ |
22 #ifndef PURPLE_JABBER_H_ |
| 23 #define _PURPLE_JABBER_H_ |
23 #define PURPLE_JABBER_H_ |
| 24 |
24 |
| 25 typedef enum { |
25 typedef enum { |
| 26 JABBER_CAP_NONE = 0, |
26 JABBER_CAP_NONE = 0, |
| 27 JABBER_CAP_XHTML = 1 << 0, |
27 JABBER_CAP_XHTML = 1 << 0, |
| 28 JABBER_CAP_COMPOSING = 1 << 1, |
28 JABBER_CAP_COMPOSING = 1 << 1, |
| 280 void jabber_send(JabberStream *js, xmlnode *data); |
281 void jabber_send(JabberStream *js, xmlnode *data); |
| 281 void jabber_send_raw(JabberStream *js, const char *data, int len); |
282 void jabber_send_raw(JabberStream *js, const char *data, int len); |
| 282 |
283 |
| 283 void jabber_stream_set_state(JabberStream *js, JabberStreamState state); |
284 void jabber_stream_set_state(JabberStream *js, JabberStreamState state); |
| 284 |
285 |
| 285 void jabber_register_parse(JabberStream *js, xmlnode *packet); |
286 void jabber_register_parse(JabberStream *js, const char *from, |
| |
287 JabberIqType type, const char *id, xmlnode *query); |
| 286 void jabber_register_start(JabberStream *js); |
288 void jabber_register_start(JabberStream *js); |
| 287 |
289 |
| 288 char *jabber_get_next_id(JabberStream *js); |
290 char *jabber_get_next_id(JabberStream *js); |
| 289 |
291 |
| 290 /** Parse an error into a human-readable string and optionally a disconnect |
292 /** Parse an error into a human-readable string and optionally a disconnect |
| 326 PurpleMediaSessionType type); |
328 PurpleMediaSessionType type); |
| 327 PurpleMediaCaps jabber_get_media_caps(PurpleConnection *gc, const char *who); |
329 PurpleMediaCaps jabber_get_media_caps(PurpleConnection *gc, const char *who); |
| 328 void jabber_register_commands(void); |
330 void jabber_register_commands(void); |
| 329 void jabber_init_plugin(PurplePlugin *plugin); |
331 void jabber_init_plugin(PurplePlugin *plugin); |
| 330 |
332 |
| 331 #endif /* _PURPLE_JABBER_H_ */ |
333 #endif /* PURPLE_JABBER_H_ */ |