Mercurial > pidgin
diff libpurple/protocols/jabber/data.h @ 29793:399756f65c88
propagate from branch 'im.pidgin.pidgin' (head 46ae10a850bb3c3ce9a3bb47a7de9edd4becdb93)
to branch 'im.pidgin.cpw.malu.ft_thumbnails' (head e1429716d38c7e085c82406c5ed9d8feeeb3c7bb)
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Tue, 28 Jul 2009 20:51:56 +0000 |
parents | b6dda7d483a2 |
children | 7763697a85c8 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/data.h Tue Jul 28 20:03:28 2009 +0000 +++ b/libpurple/protocols/jabber/data.h Tue Jul 28 20:51:56 2009 +0000 @@ -29,16 +29,21 @@ char *type; gsize size; gpointer data; + gboolean ephemeral; } JabberData; /* creates a JabberData instance from raw data */ JabberData *jabber_data_create_from_data(gconstpointer data, gsize size, - const char *type, JabberStream *js); + const char *type, gboolean ephemeral, JabberStream *js); /* create a JabberData instance from an XML "data" element (as defined by XEP 0231 */ JabberData *jabber_data_create_from_xml(xmlnode *tag); +/* destroy a JabberData instance, NOT to be used on data that has been + associated, since they get "owned" */ +void jabber_data_destroy(JabberData *data); + const char *jabber_data_get_cid(const JabberData *data); const char *jabber_data_get_type(const JabberData *data);