| 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 * |