| 74 #include <sasl/sasl.h> |
76 #include <sasl/sasl.h> |
| 75 #endif |
77 #endif |
| 76 |
78 |
| 77 #define CAPS0115_NODE "http://pidgin.im/" |
79 #define CAPS0115_NODE "http://pidgin.im/" |
| 78 |
80 |
| |
81 #define JABBER_DEFAULT_REQUIRE_TLS TRUE |
| |
82 |
| 79 /* Index into attention_types list */ |
83 /* Index into attention_types list */ |
| 80 #define JABBER_BUZZ 0 |
84 #define JABBER_BUZZ 0 |
| 81 |
|
| 82 extern PurplePlugin *jabber_plugin; |
|
| 83 |
85 |
| 84 typedef enum { |
86 typedef enum { |
| 85 JABBER_STREAM_OFFLINE, |
87 JABBER_STREAM_OFFLINE, |
| 86 JABBER_STREAM_CONNECTING, |
88 JABBER_STREAM_CONNECTING, |
| 87 JABBER_STREAM_INITIALIZING, |
89 JABBER_STREAM_INITIALIZING, |
| 191 char *gmail_last_time; |
193 char *gmail_last_time; |
| 192 char *gmail_last_tid; |
194 char *gmail_last_tid; |
| 193 |
195 |
| 194 char *serverFQDN; |
196 char *serverFQDN; |
| 195 |
197 |
| 196 /* OK, this stays at the end of the struct, so plugins can depend |
|
| 197 * on the rest of the stuff being in the right place |
|
| 198 */ |
|
| 199 #ifdef HAVE_CYRUS_SASL |
198 #ifdef HAVE_CYRUS_SASL |
| 200 sasl_conn_t *sasl; |
199 sasl_conn_t *sasl; |
| 201 sasl_callback_t *sasl_cb; |
200 sasl_callback_t *sasl_cb; |
| 202 #else /* keep the struct the same size */ |
|
| 203 void *sasl; |
|
| 204 void *sasl_cb; |
|
| 205 #endif |
|
| 206 /* did someone say something about the end of the struct? */ |
|
| 207 #ifdef HAVE_CYRUS_SASL |
|
| 208 const char *current_mech; |
201 const char *current_mech; |
| 209 int auth_fail_count; |
202 int auth_fail_count; |
| 210 #endif |
|
| 211 |
203 |
| 212 int sasl_state; |
204 int sasl_state; |
| 213 int sasl_maxbuf; |
205 int sasl_maxbuf; |
| 214 GString *sasl_mechs; |
206 GString *sasl_mechs; |
| |
207 #endif |
| 215 |
208 |
| 216 gboolean unregistration; |
209 gboolean unregistration; |
| 217 PurpleAccountUnregistrationCb unregistration_cb; |
210 PurpleAccountUnregistrationCb unregistration_cb; |
| 218 void *unregistration_user_data; |
211 void *unregistration_user_data; |
| 219 |
212 |
| 375 gboolean jabber_audio_enabled(JabberStream *js, const char *unused); |
368 gboolean jabber_audio_enabled(JabberStream *js, const char *unused); |
| 376 gboolean jabber_video_enabled(JabberStream *js, const char *unused); |
369 gboolean jabber_video_enabled(JabberStream *js, const char *unused); |
| 377 gboolean jabber_initiate_media(PurpleAccount *account, const char *who, |
370 gboolean jabber_initiate_media(PurpleAccount *account, const char *who, |
| 378 PurpleMediaSessionType type); |
371 PurpleMediaSessionType type); |
| 379 PurpleMediaCaps jabber_get_media_caps(PurpleAccount *account, const char *who); |
372 PurpleMediaCaps jabber_get_media_caps(PurpleAccount *account, const char *who); |
| |
373 gboolean jabber_can_receive_file(PurpleConnection *gc, const gchar *who); |
| 380 |
374 |
| 381 void jabber_register_commands(void); |
375 void jabber_register_commands(void); |
| 382 void jabber_unregister_commands(void); |
376 void jabber_unregister_commands(void); |
| 383 |
377 |
| 384 void jabber_init_plugin(PurplePlugin *plugin); |
378 void jabber_init_plugin(PurplePlugin *plugin); |
| 385 void jabber_uninit_plugin(void); |
379 void jabber_uninit_plugin(PurplePlugin *plugin); |
| 386 |
380 |
| 387 #endif /* PURPLE_JABBER_H_ */ |
381 #endif /* PURPLE_JABBER_H_ */ |