libpurple/protocols/jabber/caps.h

branch
cpw.darkrain42.xmpp.bosh
changeset 24732
7d4f758b7b0a
parent 24724
54e94c5f6978
child 24736
42ffd8ecdb6e
equal deleted inserted replaced
24731:c0a5e4f2bed5 24732:7d4f758b7b0a
37 37
38 #if 0 38 #if 0
39 typedef struct _JabberCapsClientInfo JabberCapsValueExt; 39 typedef struct _JabberCapsClientInfo JabberCapsValueExt;
40 #endif 40 #endif
41 41
42 typedef struct _JabberDataFormField {
43 gchar *var;
44 GList *values;
45 } JabberDataFormField;
46
47 typedef struct _JabberCapsKey {
48 char *node;
49 char *ver;
50 char *hash;
51 } JabberCapsKey;
52
53 typedef void (*jabber_caps_get_info_cb)(JabberCapsClientInfo *info, gpointer user_data); 42 typedef void (*jabber_caps_get_info_cb)(JabberCapsClientInfo *info, gpointer user_data);
54 43
55 void jabber_caps_init(void); 44 void jabber_caps_init(void);
56 45
57 void jabber_caps_destroy_key(gpointer value); 46 void jabber_caps_destroy_key(gpointer value);
58 47
59 /** 48 /**
60 * Main entity capabilites function to get the capabilities of a contact. 49 * Main entity capabilites function to get the capabilities of a contact.
61 */ 50 */
62 void jabber_caps_get_info(JabberStream *js, const char *who, const char *node, const char *ver, const char *hash, jabber_caps_get_info_cb cb, gpointer user_data); 51 void jabber_caps_get_info(JabberStream *js, const char *who, const char *node, const char *ver, const char *hash, jabber_caps_get_info_cb cb, gpointer user_data);
63 void jabber_caps_free_clientinfo(JabberCapsClientInfo *clientinfo);
64
65 /**
66 * Processes a query-node and returns a JabberCapsClientInfo object with all relevant info.
67 *
68 * @param query A query object.
69 * @return A JabberCapsClientInfo object.
70 */
71 JabberCapsClientInfo *jabber_caps_parse_client_info(xmlnode *query);
72 52
73 /** 53 /**
74 * Takes a JabberCapsClientInfo pointer and returns the caps hash according to 54 * Takes a JabberCapsClientInfo pointer and returns the caps hash according to
75 * XEP-0115 Version 1.5. 55 * XEP-0115 Version 1.5.
76 * 56 *

mercurial