summaryrefslogtreecommitdiff
path: root/_dbus_bindings/message-get-args.c
Commit message (Collapse)AuthorAgeFilesLines
* Always include dbus_bindings-internal.h firstSimon McVittie2016-03-051-1/+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
* Use DBusBasicValue instead of reinventing it, if dbus is new enoughSimon McVittie2012-02-241-34/+22
| | | | | 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.
* 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).
* This is the big one; it adds Python 3 support.Barry Warsaw2011-12-151-2/+25
|
* 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.
* 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>
* _message_iter_get_pyobject: if UTF-8 from libdbus is invalid, don't crashSimon McVittie2011-12-131-3/+7
| | | | | | Based on part of a patch from Barry Warsaw. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* _message_iter_get_pyobject: fix whitespaceSimon McVittie2011-05-181-1/+1
|
* UnixFd: don't close file descriptors passed to the constructor as an intSimon McVittie2011-05-181-2/+7
| | | | | | | | Elvis agreed that this shouldn't differ from our handling of objects with a fileno(). This means that _message_iter_get_pyobject does need to close the fd itself, so do that.
* Added Unix Fd support to dbus-pythonElvis Pfützenreuter2011-05-181-0/+11
|
* Use Py_CLEAR for greater robustnessSimon McVittie2010-12-021-22/+20
|
* fd.o #21831: deserialize empty ByteArray objects correctlySimon McVittie2010-11-231-0/+6
| | | | | | For some reason libdbus gives us NULL instead of a pointer to a zero-length object (i.e. any random place in the message would do), which Py_BuildValue doesn't interpret the way we'd want it to.
* 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
* Actually commit the numerous copyright-statement changes.Simon McVittie2007-02-071-8/+8
|
* Fix a couple of memory leaks - D-Bus signature strings, and decoded Unicode ↵Simon McVittie2007-02-051-7/+11
| | | | objects
* 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-2/+5
| | | | 64-bit archs
* Improve documentation of type conversion from D-Bus to PythonSimon McVittie2007-01-091-11/+12
|
* Improve various type docstringsSimon McVittie2006-12-211-1/+1
|
* Switch to autotools and test with Python 2.5 as well as 2.4.Simon McVittie2006-12-181-4/+5
| | | | | | | | | | | | | | 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
* 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-2/+2
| | | | parentheses around arguments
* Convert generic glue, main loop integration, message append/get_args, ↵Simon McVittie2006-12-111-0/+512
validation into separate translation units - no *-impl.h remaining