| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
If we don't find it, continue to reinvent it, but move the reinvention
to an internal header so it's at least the same in both files that want it.
|
| |
|
|
|
|
|
|
|
| |
- Disallow appending unicode objects with 'y' (bytes) signatures. This now
requires either a bytes object or an integer. Update the tests to reflect
- this change.
- Fix broken __all__ in Python 3.
|
| |
|
|
|
|
|
|
|
| |
2, since there are still some unconditional PyInt calls, which are not valid
in Python 3. However, it lays the framework for conditionalizing on Python 3
and using only PyLong in that case. Where it doesn't matter, PyLong is used
unconditionally.
|
| |
|
|
|
|
|
| |
PyString API. This makes the code compilable in Python 2.x (x >= 6) and
Python 3.
|
|
|
|
| |
- De-tabbify a few instances that "make check" complains about.
|
|
|
|
|
|
| |
Part of a patch for Python 3 compatibility.
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
| |
Based on part of a patch from Barry Warsaw.
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
| |
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Similar reasoning: we don't even want to look where the iterator is
pointing if the last call to dbus_signature_iter_next indicated "no more".
|
|
|
|
|
|
| |
In newer versions of libdbus, calling dbus_signature_iter_get_current_type
when the iterator is pointing at the ')' of a struct trips an assertion
failure, rather than just returning INVALID.
|
|
|
|
|
| |
This avoids (potentially fatal) warnings, with newer libdbus; it'll only
work if we were compiled against libdbus >= 1.3.0.
|
| |
|
| |
|
|
|
|
| |
removing all references to the LGPL as a result
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
__dict__ on deallocation.
* Use a fixed-size struct for String (unicode objects are in fact fixed-size)
and store its variant_level that way.
* Don't store Struct, _LongBase, _StrBase variant_level and Struct signature
in a __dict__, but instead have a global dict mapping object IDs to variant
levels, and a global dict mapping Struct IDs to signatures. This is a bit
strange, but easier than correctly freeing the __dict__ (which is stored
at the end of a variable-length struct, so somewhat hard to get at).
* With this change, allocating objects in a loop no longer leaks memory, and
neither does the test case supplied by Luka Renko.
|
|
|
|
| |
lines in license statement
|
|
|
|
| |
64-bit archs
|
|
|
|
|
|
|
|
|
|
|
| |
cases.
This avoids us getting kicked off the bus when trying to put the wrong
number of things in a struct - this used to happen, but was masked by the fact
that the tests ran with service activation, so the service was just killed and
reactivated. Forthcoming changes to get_object make this automatic reactivation
not happen (messages will be directed to the unique name by default, so
stateful communication can work).
|
|
|
|
| |
attribute are serialized as that object path. Add that attribute to ProxyObject, dbus.Interface and dbus.service.Object.
|
|
|
|
| |
variants containing byte, not an array of variants containing string
|
|
|
|
| |
debugging other things, they're too verbose
|
|
|
|
| |
parentheses around arguments
|
|
validation into separate translation units - no *-impl.h remaining
|