summaryrefslogtreecommitdiff
path: root/_dbus_bindings/conn.c
Commit message (Collapse)AuthorAgeFilesLines
* Always include dbus_bindings-internal.h firstSimon McVittie2016-03-051-0/+1
| | | | | | | | | | | | This file includes <Python.h>, with some #defines that affect the interpretation of the Python headers (PY_SSIZE_T_CLEAN, PY_SIZE_T_CLEAN). In particular, <Python.h> transitively includes pyconfig.h, which defines _GNU_SOURCE, altering the version of struct stat used; this is potentially a problem if a struct stat is shared between files, although in practice we don't do that. Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749133
* This is the big one; it adds Python 3 support.Barry Warsaw2011-12-151-2/+30
|
* 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-1/+1
| | | | | 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.
* 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
|
* Fix signature and return value of Connection_tp_init (oops)Simon McVittie2010-02-181-1/+3
|
* fd.o#21172: avoid DeprecationWarning with Python 2.6Simon McVittie2010-02-181-1/+8
|
* Make DBusPyConnection_NewConsumingDBusConnection static now nobody else ↵Simon McVittie2008-07-151-1/+1
| | | | needs to call it
* _dbus_bindings._Connection: sort out constructorSimon McVittie2008-07-151-13/+27
| | | | | | | | | Accept a LibDBusConnection for the address (sic) parameter, so we can construct a Connection for a DBusConnection that already exists. The way all this works right now is a bit unfortunate, with hindsight, but most of it is fixable like this.
* Relicense Collabora code under the MIT/X11 license proposed for dbus core, ↵Simon McVittie2007-09-271-14/+17
| | | | removing all references to the LGPL as a result
* Remove trailing whitespace in C sourceSimon McVittie2007-04-241-1/+1
|
* Actually commit the numerous copyright-statement changes.Simon McVittie2007-02-071-7/+7
|
* Audit tp_dealloc callbacks to make sure they preserve the exception state.Simon McVittie2007-02-071-0/+5
| | | | | | * Connection: use PyErr_Fetch and PyErr_Restore to preserve exception state * MainLoop: add a comment indicating that the "free" callback needs to do the same if it might alter the exception state
* dbus, _dbus_bindings, _dbus_glib_bindings: remove accidentally duplicated ↵Simon McVittie2007-01-251-2/+0
| | | | lines in license statement
* conn.c: fix Connection setup in absence of main loop, and error handlingSimon McVittie2007-01-161-1/+4
| | | | | | | * Only set up a main loop if we actually have one (not None) * Don't double-close the DBusConnection (causing an assertion in libdbus) if we somehow fail to set up the main loop. Thanks to tsuraan <tsuraan at gmail.com> for the bug report.
* Don't require a main loop unless async calls, signal connections or exported ↵Simon McVittie2007-01-091-6/+2
| | | | objects are actually made. (Increases backwards compatibility with Pyrex-dbus-python)
* Fix recommendation given by exception message bringing it into sync with ↵Simon McVittie2006-12-211-1/+1
| | | | current API (spotted by Phil Thompson)
* Switch to autotools and test with Python 2.5 as well as 2.4.Simon McVittie2006-12-181-1/+3
| | | | | | | | | | | | | | In the process: HACKING.txt: update include/dbus-python.h: add some typedefs to make it saner bus.c, conn.c, conn-methods.c: further alter docstrings to keep epydoc happy exceptions.c: create exceptions in a more longwinded way for Python 2.5 compatibility message-get-args.c, bus/__init__.py: tweak docstrings dbus/introspect_parser.py: make docstring valid reStructuredText run-test.sh: simplify, since configure now does some of the work test/*.py: use paths from run-test.sh, cope with out-of-tree builds test-standalone.py: carry out additional sanity checks
* bus.c, conn-methods.c, conn.c: Alter format of signatures in docstrings to ↵Simon McVittie2006-12-181-2/+3
| | | | keep epydoc happy
* _dbus_bindings/conn.c: Fix broken weak reference handling, which caused a ↵Simon McVittie2006-12-131-12/+43
| | | | | | segfault on OLPC. Also add debug related to this.
* conn.c: Correct number of varargs to debug messageSimon McVittie2006-12-121-1/+1
|
* conn.c: Use __func__ instead of incorrect __FUNC__Simon McVittie2006-12-121-4/+4
|
* _dbus_bindings/bus.c, _dbus_bindings/conn-methods.c, _dbus_bindings/conn.c: ↵Simon McVittie2006-12-121-6/+25
| | | | Add lifecycle debugging and assertions
* Split out exceptions, pending call, message into separate .c filesSimon McVittie2006-12-111-7/+7
|
* _dbus_bindings: split out conn, conn-methods into separate translation unitsSimon McVittie2006-12-081-0/+390