summaryrefslogtreecommitdiff
path: root/wocky/wocky-debug.h
Commit message (Collapse)AuthorAgeFilesLines
* Add a debug flag for Jingle stuff.Will Thompson2012-12-131-0/+1
| | | | | It's called "media" so that GABBLE_DEBUG=media will still work, if that matters to anyone.
* Namespace debug flags.Will Thompson2012-02-061-22/+22
| | | | | | 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.)
* Include wocky-debug.h from wocky.hWill Thompson2012-02-061-2/+2
|
* Always define WockyDebugFlags and wocky_debug_set_flags()Will Thompson2012-02-061-8/+0
| | | | | If wocky-debug.h is to contain API for applications, that API should probably always be defined.
* Move most of debug.h to debug-internal.hWill Thompson2012-02-061-64/+0
| | | | | | | 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.
* Make #include <wocky/wocky.h> the only legal import.Will Thompson2012-02-061-0/+3
|
* Replace stub DEBUG macros with no-op static inline functionsWill Thompson2011-07-081-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | Previously, if --disable-debug was passed to configure, DEBUG (and DEBUG_STANZA and DEBUG_NODE_TREE) were defined to expand to 'do { } while (0)'. This meant that the arguments passed to them were not actually present in the pre-processed C source, which often triggered warnings about assigning to variables and never reading from them. Instead, we define them to be variadic static inline functions. The compiler should optimize this away, but since we do not use -Wunused-arguments the call should still count as reading from the variable, and thus set-but-unused warnings will not be triggered. This means we don't have to mess around wrapping code to initialize variables only used in debug messages with #ifdef ENABLE_DEBUG any more. It's true that, if the compiler is insufficiently smart, this might cause a small amount of unnecessary work to be done at runtime—for instance, ping_iq_cb retrieves the from='' attribute of the stanza it's replying to—but none of these are likely to be too expensive (compared to the cost of constantly calling wocky_debug(), which is the real reason that --disable-debug exists). I am proud of this trick.
* Merge branch 'meta-porter'Jonny Lamb2011-03-221-0/+1
|\ | | | | | | | | | | | | | | | | Conflicts: docs/reference/wocky-docs.sgml wocky/wocky-debug.h Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
| * connection-factory: add filesJonny Lamb2011-03-011-0/+1
| | | | | | | | | | | | | | Perhaps this should be called ll-connection-factory, to emphasize the link-local emphasis? Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | debug: make flag enum values privateJonny Lamb2011-03-081-0/+1
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | debug: rename DebugFlags enum to WockyDebugFlagsJonny Lamb2011-03-081-7/+7
|/ | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* caps-cache: copy over from Gabble with s/gabble/wocky/gJonny Lamb2011-01-181-0/+1
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Add a GSource wrapping libiphb.Will Thompson2010-10-251-0/+1
| | | | | | | | | | | | | The Loudmouth patch to add libiphb support for Maemo 5 intertwingled it with other keepalive logic, but I think separating it out makes it cleaner. libiphb is part of DSME (http://gitorious.org/dsme/) which is now LGPL v2.1 (note: not "or later"). This is an optional dependency, so doesn't impact Wocky's license in general. Currently the source is completely inert if we don't have iphb support; it'll be fixed to fall back to acting as a timeout source later.
* Fix DEBUGGING macro to call wocky_debug_flag_is_set()Will Thompson2010-10-251-1/+1
| | | | Hey, looks like no-one's used this before in Wocky. ;-)
* Add utility to print debug from varargs.Cosimo Cecchi2010-07-221-0/+4
|
* adding "ping" debug flagSenko Rasic2010-05-131-1/+2
|
* rename sasl debug flag to authEitan Isaacson2010-05-071-1/+1
|
* Add debug helpers for node treesSjoerd Simons2010-04-201-0/+10
|
* Rename WockyXmppStanza to WockyStanzaSjoerd Simons2010-04-201-2/+2
|
* Rename WockyDataForms to WockyDataFormWill Thompson2010-03-241-1/+1
| | | | While XEP-0004 is plural, the class in Wocky represents a singular form.
* add dataforms debug domainGuillaume Desmottes2010-02-221-0/+1
|
* Fixes calls to wocky_xmpp_connection_force_close_async. DEBUG gives file+line.Vivek Dasmohapatra2009-10-221-1/+2
| | | | | | | | | | | | Never put more than 1 wocky_xmpp_connection_force_close_async in flight for a given connection. g_object_ref the wocky porter passed in as the user_data to the call so that it is guaranteed to still be alive when the callback happens. Report an error in idle if we try to force a shutdown twice. DEBUG gives file + line now.
* add pubsub debug flagGuillaume Desmottes2009-09-251-0/+1
|
* Namespace wocky-debug header file #ifdefSjoerd Simons2009-09-201-2/+2
|
* wocky-tls debugging via DEBUGGuillaume Desmottes2009-08-201-0/+1
|
* Add barebones of WockyContact class.Jonny Lamb2009-08-131-0/+1
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Add debug flag for connectorVivek Dasmohapatra2009-07-141-0/+1
| | | | Last round of cleanups introduced a couple of build warnings/breakages. Fixed.
* rename WockyXmppScheduler to WockyPorterGuillaume Desmottes2009-06-291-1/+1
|
* add xmpp-scheduler debug domainGuillaume Desmottes2009-06-091-0/+1
|
* Define stub DEBUG macros when !ENABLE_DEBUGWill Thompson2009-03-171-3/+6
| | | | | | | | | | Defining DEBUG(...) to expand to nothing trips warnings for code like this: if (foo) DEBUG(...); It could be worked around by using {}s, but better to fix the macros
* wocky-debug.h: G_BEGIN_DECLS has to be outside the #ifdef ENABLE_DEBUGGuillaume Desmottes2009-03-171-3/+2
|
* wocky-debug.h: remove wocky_goto_if_reached and wocky_goto_if_fail as they ↵Guillaume Desmottes2009-03-171-22/+0
| | | | don't really make sense
* wocky-debug.h: fix wocky_debug_set_flags_from_env prototypeGuillaume Desmottes2009-03-171-1/+1
|
* Added Marco's file transfer code.Jonny Lamb2009-03-171-0/+1
| | | | 20080715185636-8ed0e-06775a31a2c94b716db41375af32db8248b9e8d3.gz
* Make wocky conform to telepathy coding styleSjoerd Simons2009-03-171-2/+2
| | | | 20080604092840-93b9a-aee2061241cb08f169ce5b8e9834aaf1ab65cf9a.gz
* resolve conflictsGuillaume Desmottes2009-03-171-0/+3
| | | | 20070613092129-7fe3f-2b6baa02dcd135f33a8f7b8a9c02d8453d962d23.gz
* add bytestream flag in wocky-debugGuillaume Desmottes2009-03-171-1/+0
| | | | 20070611101431-7fe3f-d1f9d74df54bc1e246ab75826b931d6bd9695999.gz
* wocky-debug: add wocky_goto_if_reached and wocky_goto_if_fail macrosGuillaume Desmottes2009-03-171-0/+22
| | | | 20070613084950-7fe3f-279be93f5843f3e83cf19c8ea065266813e27e44.gz
* move DEBUG_STANZA to wocky-debugGuillaume Desmottes2009-03-171-0/+11
| | | | 20070611181748-7fe3f-e4fe05a3b32cde8da6bbafc991d35af099fd2f4f.gz
* Move SalutMucConnection to wocky as WockyMucConnectionSjoerd Simons2009-03-171-0/+1
| | | | 20070612160901-93b9a-3c886d3735de02ed4b8193747040b2d2aff41ae0.gz
* wocky-debug: Add a specific rmulticast debugging categorySjoerd Simons2009-03-171-1/+2
| | | | 20070604065329-b58c9-068df8879b1a105a2989f236df4bb093276a8e9e.gz
* Add debug category for the multicast senderSjoerd Simons2009-03-171-6/+7
| | | | 20070521115157-93b9a-2300e537dcec6524cef474128ad490b38999bea5.gz
* wocky-debug.h: Fix typo in __DEBUG_H__ defineSjoerd Simons2009-03-171-1/+1
| | | | 20070301144917-93b9a-28b4ed528b50e24b899889e30576e620069476aa.gz
* Implement an SSL transport for wockySjoerd Simons2009-03-171-0/+1
| | | | 20070215160633-93b9a-bbb1468c182c157f593dcf07ef21d5bed09e8f7f.gz
* Added SASL authentication helper for wocky (just digest-md5 for now)Sjoerd Simons2009-03-171-0/+1
| | | | 20070215105501-93b9a-f19f851129b23241b015579541e73f827e5ff373.gz
* Push received transport data through handler functions instead of signalsSjoerd Simons2009-03-171-3/+4
| | | | 20070213132633-93b9a-25678d8680408e6e7ecb88289afd577cb1163734.gz
* Add xmpp debugging categoriesSjoerd Simons2009-03-171-0/+4
| | | | 20070208154534-93b9a-be8e1257a1ccf376fd7134229d62d5187219f7cb.gz
* Refactor xmpp magic into it's own seperate librarySjoerd Simons2009-03-171-0/+49
20070202133711-93b9a-4dec550fce51511f5f452fa5e1c2158049fdc2f6.gz