summaryrefslogtreecommitdiff
path: root/_dbus_bindings/server.c
Commit message (Collapse)AuthorAgeFilesLines
* Consistently use the str type for identifier-like (ASCII) stringsSimon McVittie2012-01-111-2/+2
| | | | | | | | | | | | | | | | | 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).
* This is the big one; it adds Python 3 support.Barry Warsaw2011-12-151-10/+30
|
* In preparation for Python 3 support, use the Python 2 PyBytes aliases for theBarry Warsaw2011-12-141-3/+3
| | | | | PyString API. This makes the code compilable in Python 2.x (x >= 6) and Python 3.
* For pendantic correctness, and future Python 3 compatibility, explicitlyBarry Warsaw2011-12-131-0/+1
| | | | initialize the weaklist slots.
* Don't leak the fast_seq object.Barry Warsaw2011-12-131-1/+4
|
* Additional PyObject_HEAD_INIT -> PyVarObject_HEAD_INIT changes in preparationBarry Warsaw2011-12-131-2/+1
| | | | for Python 3 support.
* Use Py_TYPE() rather than thing->ob_type, for Python 3 portabilitySimon McVittie2011-12-131-1/+1
| | | | | | 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/+2
| | | | | | | 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-9/+9
|
* DbusPyServer: construct connections by calling the type, so the object will ↵Simon McVittie2008-07-151-8/+20
| | | | be fully initialized
* Actually create objects of class Server->conn_classSimon McVittie2008-07-141-3/+4
|
* Rename _dbus_bindings.Server to _dbus_bindings._ServerSimon McVittie2008-07-141-4/+5
|
* DBusPyServer: construct a user-specified subtype of ConnectionSimon McVittie2008-07-141-7/+25
|
* DBusPyServer initialization: remove some debugging printfsSimon McVittie2008-07-141-5/+3
|
* DBusPyServer get_address, get_id: correct docs, these return str not StringSimon McVittie2008-07-141-2/+2
|
* DBusPyServer tp_dealloc: remove a stray debugging printfSimon McVittie2008-07-141-1/+0
|
* DBusPyServer: correctly unref the partially constructed DBusPyServer on errorsSimon McVittie2008-07-141-1/+2
|
* DBusPyServer: correctly unref the weakref object on errorsSimon McVittie2008-07-141-1/+2
|
* DBusPyServer: fix a typoSimon McVittie2008-07-141-1/+1
|
* DBusPyServer: Fix refcounting of the main loopSimon McVittie2008-07-141-2/+4
|
* DBusPyServer: if there's no main loop, throw an exceptionSimon McVittie2008-07-141-1/+7
| | | | | The code starting at the "err" label assumes that an exception has been set already.
* Document that DBusPyServer_NewDBusServer consumes a reference to the server.Simon McVittie2008-07-141-5/+9
| | | | Rename it to DBusPyServer_NewConsumingDBusServer to make this clearer.
* DBusPyServer: remove some stray debugging printfsSimon McVittie2008-07-141-3/+0
|
* DBusPyServer: refactor set_auth_mechanismsSimon McVittie2008-07-141-23/+29
| | | | | | | | | * save a malloc * return a boolean * don't crash if the sequence isn't a sequence * don't coerce items to strings too hard (we only want to accept str or unicode, accepting FooObject and trying to use it as an authentication method "<FooObject at 0xdeadbeef>" would be silly)
* Initial support for DBusServer class (#14322).Mathias Hasselmann2008-07-141-0/+535