summaryrefslogtreecommitdiff
path: root/src/util.c
AgeCommit message (Collapse)AuthorFilesLines
2011-05-02Merge branch 'caps-hash'Jonny Lamb1-133/+1
2011-04-08Presence: genericise specifying a client type preferenceWill Thompson1-1/+1
2011-02-01JingleCandidate store int rather than double.David Laban1-2/+1
Change internal representation to use ints rather than floats.
2011-01-24disco-identity: removeJonny Lamb1-133/+1
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-01-11use telepathy-yell generated codeJonny Lamb1-2/+2
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-10-05Merge branches contact-list-fixes, contact-list-merge, really-enumSimon McVittie1-0/+131
Reviewed-by: David Laban <david.laban@collabora.co.uk> Conflicts: tests/twisted/Makefile.am
2010-10-04Remove dependency to libuuidNicolas Dufresne1-7/+51
Remove dependency on external libuuid by implementing an RFC4122 compliant UUID generator. (bugs.fd.o #28990)
2010-10-01Merge branch 'telepathy-gabble-0.10'Will Thompson1-6/+3
Conflicts: NEWS configure.ac
2010-10-01Always slice-allocate GabbleDiscoIdentityWill Thompson1-6/+3
gabble_disco_identity_new() returns slice-allocated GabbleDiscoIdentitys; gabble_disco_identity_free() slice-frees its argument. So we need to slice-allocate them when we copy them, too.
2010-09-30Merge remote branch 'upstream/master' into contact-list-mergeSimon McVittie1-0/+45
Conflicts: src/connection.c src/roster-channel.c src/roster.c src/util.c src/util.h tests/twisted/Makefile.am tests/twisted/constants.py
2010-09-23Merge branch 'telepathy-gabble-0.10'Simon McVittie1-0/+6
Conflicts: NEWS configure.ac
2010-09-22gabble_call_candidates_to_array: document types and ownershipSimon McVittie1-0/+6
2010-09-21Merge branch 'client-types'Jonny Lamb1-0/+26
Conflicts: src/connection.c src/debug.c src/debug.h src/presence-cache.c Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-09-17util: add gabble_flag_from_nickJonny Lamb1-0/+26
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-08-26gabble_simple_async_countdown, roster: make the refcounting more obviousSimon McVittie1-0/+5
2010-08-05add comments for gabble_normalize_contact()Senko Rasic1-0/+13
In particular, document that repo argument may be NULL
2010-08-03Add gabble_simple_async_succeed_or_fail_in_idleSimon McVittie1-0/+33
2010-08-03gabble_simple_async_countdown_new, _inc, _dec: new utility codeSimon McVittie1-0/+93
This encapsulates a common pattern for "plural" asynchronous operations that are implemented as a set of parallel protocol operations: finish only when all sub-operations have finished, with success if and only if all sub-operations succeeded. If this functionality proves to be useful, it should be added to telepathy-glib, or even to GLib.
2010-06-22fd.o #27966: replace gabble_value_array_build with tp_value_array_buildSimon McVittie1-37/+1
2010-06-08Fix indentation of GabbleDiscoIdentity functions.Will Thompson1-38/+43
Also, use gtk-doc markup not doxygen markup. If these comments are ever parsed, it'll be by gtk-doc in Wocky.
2010-06-08Slice-allocate GabbleDiscoIdentityWill Thompson1-2/+2
2010-06-04plugin API: Improved API for array of GabbleDiscoIdentity.Andre Moreira Magalhaes (andrunko)1-2/+36
Added gabble_disco_identity_array_new which creates a GPtrArray and set it's free element func. Also set the free element func for arrays copied using gabble_disco_identity_array_free.
2010-06-03plugin API: Added GabbleDiscoIdentity type and helper methods.Andre Moreira Magalhaes (andrunko)1-0/+97
GabbleDiscoIdentity will be used by plugins that want to set their own caps containing identities.
2010-06-03Replace silly #defines with a DevicePreference enumWill Thompson1-1/+1
2010-06-02Prefer phones when picking resource for Jingle callsWill Thompson1-0/+1
2010-05-21Merge branch 'muc-calls'Sjoerd Simons1-0/+15
Conflicts: src/muc-channel.c tests/twisted/jingle/call-codecoffer.py
2010-05-12Remove debug spam from _get_child_with_namespaceWill Thompson1-3/+0
Reviewed-by: Senko Rašić <senko.rasic@collabora.co.uk>
2010-04-27Make libuuid a required dependencyDanielle Madeley1-13/+1
Signed-off-by: Will Thompson <will.thompson@collabora.co.uk>
2010-04-23Remove some debugging spewSjoerd Simons1-3/+0
2010-04-20Merge branch 'master' into muc-callsSjoerd Simons1-18/+11
2010-04-20No need to special-case xmlns and xml:langSjoerd Simons1-6/+1
lm_message_node_set_attribute already special-cases xmlns and xml:lang for us, so code calling it shouldn't have to do that
2010-04-20Rename to WockyStanza, WockyNode and related changesSjoerd Simons1-7/+12
2010-04-01Pass the jingle factory a full jid instead of the resourceSjoerd Simons1-0/+15
With Muji coming up and the ability to call bare jids on SIP gateways we can call full jids from mucs, full jids for contacts and bare jids. This means that juggling around the resource gets very error-prone. Luckily all the code that wants to start a session already knows which jid it's for, so let them do the hard work and have the API's just take jids directly
2010-02-25lm_message_node_unlink: removeSimon McVittie1-7/+0
This function is no longer used by the vCard manager, which is just as well, since it manipulated internal data fields in the message nodes.
2010-01-06Represent bare jids as resource = NULL, not resource = ""Simon McVittie1-26/+33
The RFCs don't explicitly say anywhere that the empty string is not a valid resource... also, it's cleaner this way. However, this does mean changing a couple of function signatures. Also move the definition of SESSION_MAP_KEY_FORMAT close to its only use.
2010-01-05jingle_pick_best_resource: allow the bare JID (resource = "") to be chosenSimon McVittie1-8/+29
2010-01-05jingle_pick_best_content_type: allow the resource to be "" (bare JID)Simon McVittie1-2/+12
2009-12-23Remove duplicate second definition of TWICESjoerd Simons1-2/+0
2009-12-07Add a utility function to convert a list of candidates to the a GPtrArraySjoerd Simons1-0/+39
2009-12-07Add utility function to build GValueArraysSjoerd Simons1-0/+39
2009-12-07Move _pick_best_content_type to utils.cSjoerd Simons1-0/+36
2009-12-07Move jingle resource selection to utilsSjoerd Simons1-0/+140
2009-11-23util: allow GabbleConnection to be NULL in _normalize_roomJonny Lamb1-8/+18
The handle test, test-handles, has no connection, but calls this function. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2009-11-23normalize_room: use gabble_decode_jid to shorten the functionJonny Lamb1-19/+5
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2009-11-23fd.o#22456: util: get the canonical room name in gabble_normalize_roomJonny Lamb1-10/+26
This means that both RequestHandles and the TargetID property set during a call to CreateChannel will use the canonical room name. Previously, it only ever did this in a RequestHandles call. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2009-09-25util: add ensure_bare_contact_from_jidGuillaume Desmottes1-0/+10
2009-09-11util.c: lm_message_node_add_build_va: use the right wocky api when setting ↵Guillaume Desmottes1-0/+2
xml:lang
2009-09-11util.c: re-implement lm_message_node_get_attribute_with_namespace using the ↵Guillaume Desmottes1-49/+1
proper wocky API
2009-09-11util.c: lm_message_node_get_name: wocky should handle that just fineGuillaume Desmottes1-6/+1
2009-09-11util.c: gabble_decode_jid use wocky_decode_jid directlyGuillaume Desmottes1-112/+2