| Wocky Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
gchar * wocky_caps_hash_compute_from_lists (GPtrArray *features,GPtrArray *identities,GPtrArray *dataforms); gchar * wocky_caps_hash_compute_from_node (WockyNode *node);
gchar * wocky_caps_hash_compute_from_lists (GPtrArray *features,GPtrArray *identities,GPtrArray *dataforms);
Compute the hash as defined by the XEP-0115 from a list of features, identities and dataforms.
|
a GPtrArray of strings of features |
|
a GPtrArray of WockyDiscoIdentity structures |
|
a GPtrArray of WockyDataForm objects, or NULL
|
Returns : |
a newly allocated string of the caps hash which should be
freed using g_free()
|
gchar * wocky_caps_hash_compute_from_node (WockyNode *node);
Compute the hash as defined by the XEP-0115 from a received WockyNode.
node should be the top-level node from a disco response such as
the example given in XEP-0115 §5.3 "Complex Generation Example".
|
a WockyNode |
Returns : |
the hash. The called must free the returned hash with
g_free(). |