libpurple/protocols/jabber/jabber.h

branch
soc.2008.vv
changeset 26106
afdca955b6f4
parent 23975
8ee397f04ca9
parent 23716
e1a9c55075ba
child 26108
8d0fd2f195aa
equal deleted inserted replaced
24011:0cff24bf7dba 26106:afdca955b6f4
51 #include <libxml/parser.h> 51 #include <libxml/parser.h>
52 #include <glib.h> 52 #include <glib.h>
53 #include "circbuffer.h" 53 #include "circbuffer.h"
54 #include "connection.h" 54 #include "connection.h"
55 #include "dnssrv.h" 55 #include "dnssrv.h"
56 #include "media.h"
57 #include "mediamanager.h"
56 #include "roomlist.h" 58 #include "roomlist.h"
57 #include "sslconn.h" 59 #include "sslconn.h"
58 60
59 #include "jutil.h" 61 #include "jutil.h"
60 #include "xmlnode.h" 62 #include "xmlnode.h"
234 int keepalive_timeout; 236 int keepalive_timeout;
235 237
236 PurpleSrvResponse *srv_rec; 238 PurpleSrvResponse *srv_rec;
237 guint srv_rec_idx; 239 guint srv_rec_idx;
238 guint max_srv_rec_idx; 240 guint max_srv_rec_idx;
241
242 #ifdef USE_VV
243 /* keep a hash table of JingleSessions */
244 GHashTable *sessions;
245 #endif
239 }; 246 };
240 247
241 typedef gboolean (JabberFeatureEnabled)(JabberStream *js, const gchar *shortname, const gchar *namespace); 248 typedef gboolean (JabberFeatureEnabled)(JabberStream *js, const gchar *shortname, const gchar *namespace);
242 249
243 typedef struct _JabberFeature 250 typedef struct _JabberFeature
301 int jabber_prpl_send_raw(PurpleConnection *gc, const char *buf, int len); 308 int jabber_prpl_send_raw(PurpleConnection *gc, const char *buf, int len);
302 GList *jabber_actions(PurplePlugin *plugin, gpointer context); 309 GList *jabber_actions(PurplePlugin *plugin, gpointer context);
303 void jabber_register_commands(void); 310 void jabber_register_commands(void);
304 void jabber_init_plugin(PurplePlugin *plugin); 311 void jabber_init_plugin(PurplePlugin *plugin);
305 312
313 #ifdef USE_VV
314 PurpleMedia *jabber_initiate_media(PurpleConnection *gc, const char *who, PurpleMediaStreamType type);
315 gboolean jabber_can_do_media(PurpleConnection *gc, const char *who, PurpleMediaStreamType type);
316 #endif
317
306 #endif /* _PURPLE_JABBER_H_ */ 318 #endif /* _PURPLE_JABBER_H_ */

mercurial