summaryrefslogtreecommitdiff
path: root/_dbus_bindings/message.c
Commit message (Collapse)AuthorAgeFilesLines
* Use native 'int' (whatever that means) for variant_level etc.Simon McVittie2012-01-111-1/+1
| | | | | This reverts the Python 2 API to be in terms of PyInt, leaving the Python 3 API in terms of PyLong (which is called 'int' in Python code).
* Consistently use the str type for identifier-like (ASCII) stringsSimon McVittie2012-01-111-6/+6
| | | | | | | | | | | | | | | | | Porting to Python 3 left these methods returning unicode, which is arguably an API break in Python 2: * Message.get_member * Message.get_path_decomposed (array of unicode) * Message.get_sender * Message.get_destination * Message.get_interface * Message.get_error_name * Server.get_address * Server.get_id Instead, make them return whatever the natural str type is (bytes in Python 2, unicode in Python 3).
* SignalMessage.__repr__: include the destination and abbreviate "interface" ↵Simon McVittie2012-01-111-2/+5
| | | | | | more conventionally Yes, signals can have a destination. The default is to broadcast.
* This is the big one; it adds Python 3 support.Barry Warsaw2011-12-151-8/+52
|
* First round of PyInt -> PyLong changes. These are only compatible with PythonBarry Warsaw2011-12-141-1/+1
| | | | | | | 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.
* In preparation for Python 3 support, use the Python 2 PyBytes aliases for theBarry Warsaw2011-12-141-6/+6
| | | | | PyString API. This makes the code compilable in Python 2.x (x >= 6) and Python 3.
* Additional PyObject_HEAD_INIT -> PyVarObject_HEAD_INIT changes in preparationBarry Warsaw2011-12-131-10/+5
| | | | for Python 3 support.
* Use Py_TYPE() rather than thing->ob_type, for Python 3 portabilitySimon McVittie2011-12-131-2/+2
| | | | | | Based on part of a patch from Barry Warsaw. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* fd.o #23831: make sure to ref types passed to PyModule_AddObjectSimon McVittie2010-12-021-0/+7
| | | | | | | This avoids these static types wrongly being deallocated. Python implements static types as having one initial reference, which is never meant to be released, but if you get your refcounting wrong they'll be "deallocated" (causing a crash) during Py_Finalize.
* Use Py_CLEAR for greater robustnessSimon McVittie2010-12-021-8/+6
|
* Message.set_sender: allow org.freedesktop.DBusHuang Peng2008-09-301-1/+1
| | | | | | I found Message.set_sender method only accepts unique bus name. But in my project, I need implement a simple dbus daemon, it need set the sender as "org.freedesktop.DBus".
* 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
* Implement DBusException in pure Python; add get_dbus_name() method and name= ↵Simon McVittie2007-05-161-3/+3
| | | | keyword argument
* Remove trailing whitespace in C sourceSimon McVittie2007-04-241-1/+1
|
* _dbus_bindings/message.c: untabifySimon McVittie2007-04-241-30/+30
|
* Actually commit the numerous copyright-statement changes.Simon McVittie2007-02-071-7/+7
|
* dbus, _dbus_bindings, _dbus_glib_bindings: remove accidentally duplicated ↵Simon McVittie2007-01-251-2/+0
| | | | lines in license statement
* Improve various type docstringsSimon McVittie2006-12-211-8/+27
|
* Whitespace consistency: Don't put a space between function name and ↵Simon McVittie2006-12-111-102/+102
| | | | parentheses around arguments
* Convert generic glue, main loop integration, message append/get_args, ↵Simon McVittie2006-12-111-49/+42
| | | | validation into separate translation units - no *-impl.h remaining
* Split out exceptions, pending call, message into separate .c filesSimon McVittie2006-12-111-0/+1050