| 74 #include <sasl/sasl.h> |
74 #include <sasl/sasl.h> |
| 75 #endif |
75 #endif |
| 76 |
76 |
| 77 #define CAPS0115_NODE "http://pidgin.im/" |
77 #define CAPS0115_NODE "http://pidgin.im/" |
| 78 |
78 |
| |
79 #define JABBER_DEFAULT_REQUIRE_TLS TRUE |
| |
80 |
| 79 /* Index into attention_types list */ |
81 /* Index into attention_types list */ |
| 80 #define JABBER_BUZZ 0 |
82 #define JABBER_BUZZ 0 |
| 81 |
|
| 82 extern PurplePlugin *jabber_plugin; |
|
| 83 |
83 |
| 84 typedef enum { |
84 typedef enum { |
| 85 JABBER_STREAM_OFFLINE, |
85 JABBER_STREAM_OFFLINE, |
| 86 JABBER_STREAM_CONNECTING, |
86 JABBER_STREAM_CONNECTING, |
| 87 JABBER_STREAM_INITIALIZING, |
87 JABBER_STREAM_INITIALIZING, |
| 191 char *gmail_last_time; |
191 char *gmail_last_time; |
| 192 char *gmail_last_tid; |
192 char *gmail_last_tid; |
| 193 |
193 |
| 194 char *serverFQDN; |
194 char *serverFQDN; |
| 195 |
195 |
| 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 |
196 #ifdef HAVE_CYRUS_SASL |
| 200 sasl_conn_t *sasl; |
197 sasl_conn_t *sasl; |
| 201 sasl_callback_t *sasl_cb; |
198 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; |
199 const char *current_mech; |
| 209 int auth_fail_count; |
200 int auth_fail_count; |
| 210 #endif |
|
| 211 |
201 |
| 212 int sasl_state; |
202 int sasl_state; |
| 213 int sasl_maxbuf; |
203 int sasl_maxbuf; |
| 214 GString *sasl_mechs; |
204 GString *sasl_mechs; |
| |
205 #endif |
| 215 |
206 |
| 216 gboolean unregistration; |
207 gboolean unregistration; |
| 217 PurpleAccountUnregistrationCb unregistration_cb; |
208 PurpleAccountUnregistrationCb unregistration_cb; |
| 218 void *unregistration_user_data; |
209 void *unregistration_user_data; |
| 219 |
210 |
| 385 |
376 |
| 386 void jabber_register_commands(void); |
377 void jabber_register_commands(void); |
| 387 void jabber_unregister_commands(void); |
378 void jabber_unregister_commands(void); |
| 388 |
379 |
| 389 void jabber_init_plugin(PurplePlugin *plugin); |
380 void jabber_init_plugin(PurplePlugin *plugin); |
| 390 void jabber_uninit_plugin(void); |
381 void jabber_uninit_plugin(PurplePlugin *plugin); |
| 391 |
382 |
| 392 #endif /* PURPLE_JABBER_H_ */ |
383 #endif /* PURPLE_JABBER_H_ */ |