summaryrefslogtreecommitdiff
path: root/src/muc-channel.c
Commit message (Collapse)AuthorAgeFilesLines
* muc-channel: fix WockyMuc::permissions callback signatureGuillaume Desmottes2014-06-031-2/+2
|
* muc-channel: remove unread assignmentsGuillaume Desmottes2014-06-031-4/+4
|
* muc-channel: take WockyMuc object as first signal cb argGuillaume Desmottes2014-06-031-19/+16
| | | | Makes Tartan happier.
* Stop using TpTubeType enumGuillaume Desmottes2013-10-041-12/+12
| | | | It has been removed in Telepathy 1.0 so redefine it ourself.
* MUC: stop sending chat states after <error type=wait>Will Thompson2013-02-221-2/+23
| | | | Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=43166#c0
* Update Wocky snapshotWill Thompson2013-02-221-18/+9
| | | | | | | | | | | The improvements are: * A new error code, WOCKY_XMPP_ERROR_POLICY_VIOLATION, added in RFC 6120 and used by Prosody's MUC rate-limiting; * Fixes to the error parsing code when error conditions are not recognised; * Tweaks to WockyMuc's error signals to include the full GError and WockyXmppErrorType in both.
* muc-channel: include error message in delivery reportsWill Thompson2013-02-221-3/+15
|
* muc-channel: pass full error into _receiveWill Thompson2013-02-151-10/+9
|
* muc-channel: pull extracting stanza errors upWill Thompson2013-02-151-9/+17
| | | | | Really, WockyMuc::message-error should give the error text too, not just the error code, but we'll come to that.
* Rename most of GabbleJingle* to WockyJingle*Will Thompson2012-12-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This renames the classes I'm moving to Wocky, and updates all the remaining code to cope. A few things are missed out because it's only reasonable to change them when the code is in Wocky: • GABBLE_TYPE_STUN_SERVER_SOURCE (the GEnum for WockyStunServerSource) can't be renamed easily because it is generated by Gabble's enumtype thing. • GABBLE_DEBUG_MEDIA. Here's the program I used, for posterity. #!/usr/bin/perl -pi use strict; BEGIN { undef $/; } my @Classes = qw(Factory Session Transport_Iface Transport_IceUdp Transport_RawUdp Transport_Google Content Info Media_Rtp Relay); for my $Class (@Classes) { my $FullClass = "Jingle$Class"; $FullClass =~ s/_//g; my $under_class = "jingle_" . lc($Class); my $UNDER_CLASS = uc($under_class); s/Gabble$FullClass/Wocky$FullClass/g; s/gabble_$under_class/wocky_$under_class/g; s/GABBLE_$UNDER_CLASS/WOCKY_$UNDER_CLASS/g; s/GABBLE_TYPE_$UNDER_CLASS/WOCKY_TYPE_$UNDER_CLASS/g; s/GABBLE_IS_$UNDER_CLASS/WOCKY_IS_$UNDER_CLASS/g; } s/GabbleGoogleRelay/WockyGoogleRelay/g; s/gabble_google_relay/wocky_google_relay/g; s/GABBLE_N_JINGLE_RELAY_TYPES/WOCKY_N_JINGLE_RELAY_TYPES/g; s/gabble_stun_server/wocky_stun_server/g; s/GABBLE_STUN_SERVER/WOCKY_STUN_SERVER/g; # Can't rename GABBLE_TYPE_STUN_SERVER_SOURCE because it's generated. Blah. s/GabbleStunServer/WockyStunServer/g; my @Blah_Blah = qw(Candidate State Action Content_Senders Transport_Type Transport_Protocol Candidate_Type Reason Transport_State Dialect Content_State Media_Type Codec Media_Description Feedback_Message Rtp_Header_Extension Media_Profile); for my $Class (@Blah_Blah) { my $FullClass = "Jingle$Class"; $FullClass =~ s/_//g; my $under_class = "jingle_" . lc($Class); my $UNDER_CLASS = uc($under_class); s/\b$FullClass/Wocky$FullClass/g; s/\b_$FullClass/_Wocky$FullClass/g; s/\b$under_class/wocky_$under_class/g; s/\b$UNDER_CLASS/WOCKY_$UNDER_CLASS/g; } s/MAX_JINGLE_STATES/WOCKY_N_JINGLE_STATES/g; s/JINGLE_IS_GOOGLE_DIALECT/WOCKY_JINGLE_DIALECT_IS_GOOGLE/g;
* Don't use add_child_with_content with NULL/"" contentWill Thompson2012-11-271-1/+1
| | | | | This is harmless, but looks messy. It's leftover clutter from the loudmouth era.
* Remove useless tp_handle_unref()Xavier Claessens2012-09-111-2/+0
|
* Stop accessing sealed tp-glib structsXavier Claessens2012-09-111-19/+28
|
* Merge branch 'only-one-tube'Jonny Lamb2012-08-281-108/+494
|\ | | | | | | | | | | | | | | Conflicts: src/tubes-channel.c src/tubes-channel.h Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * muc-channel: remove ::appeared signal, replace with is_respawning checkJonny Lamb2012-07-201-11/+0
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * tubes: use 64bit uints for tube IDs everywhereJonny Lamb2012-07-201-18/+16
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * muc-channel: disappear from the bus when not requestedJonny Lamb2012-07-201-2/+91
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * muc-channel: use TP_PROP more than appending the property to an iface nameJonny Lamb2012-07-201-3/+3
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * muc-channel: remove "tube" propertyJonny Lamb2012-07-201-12/+0
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * muc-channel: enable SI stream requests againJonny Lamb2012-07-201-0/+61
| | | | | | | | | | | | This code came from GabbleTubesChannel. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * muc-channel: remove unused methodsJonny Lamb2012-07-201-34/+0
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * muc-channel: send Tube presence where appropriateJonny Lamb2012-07-201-27/+226
| | | | | | | | | | | | This was removed GabbleTubesChannel. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * muc-channel: add way to request single Tube channelsJonny Lamb2012-07-201-32/+120
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * muc-channel: store Tube channels hereJonny Lamb2012-07-201-1/+9
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | Use meta-headers for everythingSimon McVittie2012-05-301-6/+2
|/ | | | | Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49384
* Stop using tp_handle_ref/unrefXavier Claessens2012-05-101-24/+0
|
* Use TpMessageMixin to implement ChatStateXavier Claessens2012-05-091-65/+28
|
* Use non-deprecated TpIntset APIsSimon McVittie2012-05-071-9/+9
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49596 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
* Use TP_ERROR instead of deprecated TP_ERRORSSimon McVittie2012-05-071-16/+16
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49596 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
* Stop using deprecated debug-ansi.hSimon McVittie2012-05-071-4/+2
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49596 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
* Allow to disable VoIP-related code with --disable-voipMarco Barisione2012-03-221-2/+21
|
* Merge branch 'master' into call1Will Thompson2012-02-061-61/+52
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/Makefile.am For reasons I don't fully understand (presumably headers moving around a bit?) I had to add includes of <telepathy-glib/gtypes.h> or <telepathy-glib/interfaces.h> to: • src/call-content.c • src/private-tubes-factory.c • src/protocol.c • src/util.c But otherwise this has been an uneventful merge!
| * Update Wocky snapshot for One Big Header.Will Thompson2012-02-061-3/+1
| | | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=27489
| * muc: move to WockyNodeIterWill Thompson2012-01-311-3/+4
| |
| * Remove LmHandlerResultWill Thompson2012-01-271-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The callback type for _gabble_connection_send_with_reply returned one of these. All instances, bar two, returned LM_HANDLER_RESULT_REMOVE_MESSAGE, which makes sense, because if you send an IQ you had better be prepared to handle the reply. When I removed lm_connection_send_with_reply(), I stopped _gabble_connection_send_with_reply() paying attention to the return value, with no apparent ill effects. The two which returned LM_HANDLER_RESULT_ALLOW_MORE_HANDLERS were: • the disco pipeline's reply handler, in the case where the request is no longer in the pipeline (such as in a timeout). I checked, and as far as I can tell nothing is trying to scrape any information out of zombie disco replies. • the request pipeline's reply handler, in the same case. I couldn't be bothered to check for this, but I don't think it will pose any ill effects because normally the handler is the highest-priority callback, so anyone trying to catch these would not catch the ones which were not cancelled… which seems unlikely.
| * Delete LmMessage{,Type,SubType} typedefsWill Thompson2012-01-271-13/+13
| |
| * Remove lm_message_new[_with_subtype]Will Thompson2012-01-271-19/+18
| |
| * Remove lm_message_get_[sub_]type.Will Thompson2012-01-271-1/+1
| | | | | | | | | | Wocky is a little less convenient here, but wocky_stanza_extract_errors() comes to the rescue.
| * Expunge lm_message_ref and lm_message_unref.Will Thompson2012-01-261-2/+2
| | | | | | | | And also a couple of uses of lm_message_get_node().
| * Merge branch 'master' into BYE-BYE-LOUDMOUTHWill Thompson2012-01-261-992/+924
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/connection.c src/connection.h src/ft-manager.c src/jingle-content.c src/jingle-factory.c src/jingle-session.c src/message-util.c src/muc-channel.c src/muc-channel.h
| * | Remove GabbleXmppError.Will Thompson2011-05-031-20/+10
| | | | | | | | | | | | There is a FIXME buried in here … but the tests pass.
| * | Remove three redundant node functions from util.[ch]Will Thompson2011-05-021-2/+2
| | | | | | | | | | | | | | | lm_message_node_has_namespace(), wocky_node_get_child_any_ns() and lm_message_node_get_namespace() have exact equivalents in Wocky.
| * | stop using LmMessageNode wrapperJonny Lamb2011-05-021-62/+61
| | | | | | | | | | | | | | | | | | WockyNode is the future. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | | Make call-muc-re-re-request.py test passOlivier Crête2012-01-301-6/+10
| |/ |/|
* | Make gabble cross compile with mingw32Siraj Razick2012-01-031-1/+1
| | | | | | | | | | | | | | | | | | | | The patch provides the changes required to make gabble compile under mingw32. - Index is replaced with strchr since index is deprecated and not included in mingw32 sdk - D_WIN32_WINNT=0x0501 is defined to make getnameinfo work - And other compile fixes
* | Remove gabble_decode_jid in favour of wocky_decode_jid.Andre Moreira Magalhaes (andrunko)2011-11-171-3/+3
| |
* | Use _unref instead of _free _destroy when possible.unrefXavier Claessens2011-11-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | Replace g_(ptr_)array_free (foo, TRUE) and g_hash_table_destroy with respectively g_(ptr_)array_unref (foo) and g_hash_table_unref. I used this command to generate this patch: for f in `find -name "*.c"`; do sed -i $f -re 's/g_ptr_array_free \(([^ ,]+), TRUE\)/g_ptr_array_unref \(\1\)/'; done See Danielle's blog for explanation of possible bug _free can do: http://blogs.gnome.org/danni/2011/11/16/mistakes-with-g_value_set_boxed/
* | Return the appropriate value in the case of an unknown timestampDanielle Madeley2011-11-071-3/+4
| | | | | | | | | | | | This updates Gabble for the latest spec. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=42652
* | [muc-channel] WockyMuc now signals timestamps as GDateTime instead of time_tDanielle Madeley2011-10-181-13/+16
| | | | | | | | Fixes assumptions in the code where timestamp was assumed to be gint64.
* | [muc-channel] timestamp is a time_t not a gint64Danielle Madeley2011-10-171-1/+1
| | | | | | | | | | | | | | Cast to the correct type so that Gabble compiles correctly on 32-bit. I propose fixing this properly by using either gint64 or GDateTime in Wocky, but not tonight.