| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
It's called "media" so that GABBLE_DEBUG=media will still work, if that
matters to anyone.
|
|
|
|
|
|
| |
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.)
|
| |
|
|
|
|
|
| |
If wocky-debug.h is to contain API for applications, that API should
probably always be defined.
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| | |
Perhaps this should be called ll-connection-factory, to emphasize the
link-local emphasis?
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
|
| |
| |
| |
| | |
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
|
|/
|
|
| |
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
|
|
|
|
| |
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Hey, looks like no-one's used this before in Wocky. ;-)
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
While XEP-0004 is plural, the class in Wocky represents a singular form.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
|
|
|
|
| |
Last round of cleanups introduced a couple of build warnings/breakages. Fixed.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
don't really make sense
|
| |
|
|
|
|
| |
20080715185636-8ed0e-06775a31a2c94b716db41375af32db8248b9e8d3.gz
|
|
|
|
| |
20080604092840-93b9a-aee2061241cb08f169ce5b8e9834aaf1ab65cf9a.gz
|
|
|
|
| |
20070613092129-7fe3f-2b6baa02dcd135f33a8f7b8a9c02d8453d962d23.gz
|
|
|
|
| |
20070611101431-7fe3f-d1f9d74df54bc1e246ab75826b931d6bd9695999.gz
|
|
|
|
| |
20070613084950-7fe3f-279be93f5843f3e83cf19c8ea065266813e27e44.gz
|
|
|
|
| |
20070611181748-7fe3f-e4fe05a3b32cde8da6bbafc991d35af099fd2f4f.gz
|
|
|
|
| |
20070612160901-93b9a-3c886d3735de02ed4b8193747040b2d2aff41ae0.gz
|
|
|
|
| |
20070604065329-b58c9-068df8879b1a105a2989f236df4bb093276a8e9e.gz
|
|
|
|
| |
20070521115157-93b9a-2300e537dcec6524cef474128ad490b38999bea5.gz
|
|
|
|
| |
20070301144917-93b9a-28b4ed528b50e24b899889e30576e620069476aa.gz
|
|
|
|
| |
20070215160633-93b9a-bbb1468c182c157f593dcf07ef21d5bed09e8f7f.gz
|
|
|
|
| |
20070215105501-93b9a-f19f851129b23241b015579541e73f827e5ff373.gz
|
|
|
|
| |
20070213132633-93b9a-25678d8680408e6e7ecb88289afd577cb1163734.gz
|
|
|
|
| |
20070208154534-93b9a-be8e1257a1ccf376fd7134229d62d5187219f7cb.gz
|
|
20070202133711-93b9a-4dec550fce51511f5f452fa5e1c2158049fdc2f6.gz
|