Mercurial > pidgin
diff libpurple/protocols/bonjour/jabber.h @ 21437:db7fa42845f6
Patch from some Intel folks to implement file transfer in Bonjour using XEP-0096 and 0065. This hopefully will work with Gaijm (haven't yet tested) and, of course, between libpurple instances; it will not work with Adium or iChat.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 12 Nov 2007 03:37:14 +0000 |
parents | 44b4e8bd759b |
children | e489c81e1f6f |
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/jabber.h Mon Nov 12 02:43:06 2007 +0000 +++ b/libpurple/protocols/bonjour/jabber.h Mon Nov 12 03:37:14 2007 +0000 @@ -75,4 +75,24 @@ void bonjour_jabber_stop(BonjourJabber *data); +typedef enum { + XEP_IQ_SET, + XEP_IQ_GET, + XEP_IQ_RESULT, + XEP_IQ_ERROR, + XEP_IQ_NONE +} XepIqType; + +typedef struct _XepIq { + XepIqType type; + char *id; + xmlnode *node; + char *to; + void *data; +} XepIq; + +XepIq *xep_iq_new(void *data, XepIqType type, const gchar *to, const gchar *id); +int xep_iq_send(XepIq *iq); +char *purple_network_get_my_ip_ext2(int fd); + #endif /* _BONJOUR_JABBER_H_ */