summaryrefslogtreecommitdiff
path: root/_dbus_bindings/message-append.c
Commit message (Collapse)AuthorAgeFilesLines
* Relicense Collabora code under the MIT/X11 license proposed for dbus core, ↵Simon McVittie2007-09-271-15/+18
| | | | removing all references to the LGPL as a result
* Remove trailing whitespace in C sourceSimon McVittie2007-04-241-3/+3
|
* Fix memory leak where Struct, _LongBase, _StrBase, String leaked their ↵Simon McVittie2007-02-071-2/+4
| | | | | | | | | | | | | | __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.
* dbus, _dbus_bindings, _dbus_glib_bindings: remove accidentally duplicated ↵Simon McVittie2007-01-251-2/+0
| | | | lines in license statement
* Switch types from int to Py_ssize_t to be compatible with Python 2.5 on ↵Simon McVittie2007-01-161-4/+4
| | | | 64-bit archs
* Ensure we put the right number of items in a struct or message and add test ↵Simon McVittie2007-01-161-19/+36
| | | | | | | | | | | 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).
* Add special case to serialization: objects with a __dbus_object_path__ ↵Simon McVittie2007-01-101-24/+96
| | | | attribute are serialized as that object path. Add that attribute to ProxyObject, dbus.Interface and dbus.service.Object.
* When putting a ByteArray into a variant array, serialise it as an array of ↵Simon McVittie2007-01-091-1/+25
| | | | variants containing byte, not an array of variants containing string
* message-append.c, message-get-args.c: Turn off debug messages even when ↵Simon McVittie2006-12-131-0/+1
| | | | debugging other things, they're too verbose
* Whitespace consistency: Don't put a space between function name and ↵Simon McVittie2006-12-111-46/+46
| | | | parentheses around arguments
* Convert generic glue, main loop integration, message append/get_args, ↵Simon McVittie2006-12-111-0/+975
validation into separate translation units - no *-impl.h remaining