summaryrefslogtreecommitdiff
path: root/wocky/wocky-pep-service.c
AgeCommit message (Collapse)AuthorFilesLines
2012-04-04add missing config.h includesGuillaume Desmottes1-0/+4
2012-02-06Namespace debug flags.Will Thompson1-1/+1
For better or worse, we expose these to applications, so we should namespace them. (This isn't purely theoretical: the names clash with the same ones in Gibber within Salut.)
2012-02-06Move most of debug.h to debug-internal.hWill Thompson1-1/+1
Gabble uses a couple of bits of this API to turn on a little bit of Wocky's debug output for the purposes of the D-Bus debugging interface, so making debug.h internal-only is not going to fly. However, most of it really is internal-only.
2012-01-30PepService: update © years.Will Thompson1-1/+1
2012-01-30PepService::changed: pass <item> element to callbackWill Thompson1-3/+13
2012-01-30PepService: return <item> node from get()Will Thompson1-1/+21
2011-03-09pep-service: document everythingJonny Lamb1-1/+81
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-02-16Porter: make sender matching for handlers explicit.Will Thompson1-3/+3
Previously, passing from=NULL to wocky_porter_register_handler() made the handler match stanzas with any sender. Unfortunately, this was confused in a few places in Gabble—and once in WockyRoster, complete with a FIXME—with matching messages from the server, which should have no from='' attribute, or your own bare or full JID.
2010-10-20Use wocky_stanza_get_{from,to}Will Thompson1-2/+1
2010-10-04GSimpleAsyncResult source tags should be _asyncNicolas Dufresne1-2/+2
This makes Wocky closer to GAsyncResult conventions by using the _async function as source tag instead of _finish. (Bug #26770)
2010-05-28pep-service: discard suspicious event messsages (fdo #28232)Guillaume Desmottes1-0/+11
For some reason recent ejabberd are sending 'error' messages when we publish to a PEP node. That's probably an ejabberd bug (EJAB-1239) but Wocky should ignore those rather than parsing them as actual PEP updates.
2010-04-20Rename WockyXmppNode to WockyNodeSjoerd Simons1-2/+2
2010-04-20Use wocky_stanza_get_top_node instead of ->nodeSjoerd Simons1-1/+2
2010-04-20Rename WockyXmppStanza to WockyStanzaSjoerd Simons1-6/+6
2010-04-13Use G_TYPE_INSTANCE_GET_PRIVATE() correctly.Will Thompson1-20/+12
Rather than repeatedly calling that macro (which is reasonably expensive), it should be called once in the object's _init() function and stored in a pointer in the public structure. This patch changes the whole of Wocky to do this correctly!
2010-04-13Use ASCII mnemonics throughout.Will Thompson1-12/+12
2010-04-13Use G_GNUC_NULL_TERMINATED for build spec-cy functionsWill Thompson1-2/+2
Unfortunately, the functions' previous signatures were awkward for NULL-termination: because the first tag in the specification was an explicit non-pointer argument, if you didn't actually want the stanza to have a body you had to say: wocky_xmpp_stanza_build_iq_result (..., WOCKY_STANZA_END, NULL); You couldn't use NULL in place of WOCKY_STANZA_END because WockyBuildTag isn't a pointer type; and you couldn't omit it because then the varargs aren't NULL-terminated. So, this patch removes the explicit first tag argument. While this may be slightly worse from a documentation point of view, I think it's better than having to document the special case above.
2010-03-16pep-service: don't crash on disconnect during retrievalWill Thompson1-1/+4
If 'reply' is NULL, we shouldn't set it as the operation result with g_object_unref() as its destructor, since the latter doesn't like being passed NULL. I've checked other uses of g_simple_async_result_set_op_res_gpointer() in Wocky, and they're fine. Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2010-03-10_make_publish_stanza(): also return the <pubsub/> nodeWill Thompson1-1/+1
This brings it into line with the other make_foo_stanza() methods.
2010-03-08Extract publish stanza construction to a helperWill Thompson1-12/+2
This will be useful in WockyPubsubNode as well as in WockyPepService.
2010-02-23PEP: don't leak if pep_service_get_finish() isn't calledWill Thompson1-5/+5
2009-09-29wocky-pep-service: fix include of Wocky filesGuillaume Desmottes1-4/+4
2009-09-25wocky-pep-service: add a debug msgGuillaume Desmottes1-1/+7
2009-09-25wocky-pep-service: use Wocky's signal marshallersGuillaume Desmottes1-3/+2
2009-09-25import wocky-pep-service.[ch] from GabbleGuillaume Desmottes1-0/+362