Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/jabber.h @ 17563:95affacf6f82
Added the ability to define extensions to caps
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Wed, 06 Jun 2007 01:19:49 +0000 |
parents | 6ab1089e2101 |
children | 0370da969e8a |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.h Wed Jun 06 00:04:29 2007 +0000 +++ b/libpurple/protocols/jabber/jabber.h Wed Jun 06 01:19:49 2007 +0000 @@ -71,6 +71,12 @@ JABBER_STREAM_CONNECTED } JabberStreamState; +typedef struct _JabberFeature +{ + gchar *shortname; + gchar *namespace; +} JabberFeature; + typedef struct _JabberStream { int fd; @@ -149,7 +155,9 @@ GString *sasl_mechs; #endif char *serverFQDN; - + + /* what kind of additional features as returned from disco#info are supported? */ + GList *features; } JabberStream; void jabber_process_packet(JabberStream *js, xmlnode *packet); @@ -165,6 +173,9 @@ char *jabber_parse_error(JabberStream *js, xmlnode *packet); +void jabber_add_feature(JabberStream *js, const gchar *shortname, const gchar *namespace); +void jabber_remove_feature(JabberStream *js, const gchar *shortname); + /** PRPL functions */ const char *jabber_list_icon(PurpleAccount *a, PurpleBuddy *b); const char* jabber_list_emblem(PurpleBuddy *b);