| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
removing all references to the LGPL as a result
|
| |
|
|
|
|
|
| |
They were never used, and didn't make a great deal of sense. I now believe the
right direction for pure-Python mainloop support is to define a Pythonic main
loop abstraction and coerce libdbus to fit into it, rather than pretending
the objects in libdbus' abstraction are Python objects.
|
| | |
|
| |
|
|
|
|
| |
send_message_with_reply and send_message_with_reply_and_block.
(bugs.fd.o #11489; thanks to Marco Pesenti Gritti for report and initial patch)
|
| | |
|
| | |
|
| |
|
|
| |
This is equivalent to dbus_connection_list_registered() in libdbus.
|
| |
|
|
| |
keyword argument
|
| |
|
|
|
|
|
|
|
| |
* Move get_unique_name to Connection (it can be useful for connections which
aren't to a real bus daemon but partially emulate one, like Telepathy's
Tubes)
* Add set_unique_name to Connection (same reason)
* Convert BusImplementation.__new__ into Connection._new_for_bus
* Have dbus.Bus subclass _dbus_bindings.Connection directly
|
| |
|
|
|
| |
This reduces the need to have _dbus_bindings.BusImplementation and makes
peer-to-peer connections easier to implement.
|
| | |
|
| | |
|
| |
|
|
| |
These are on by default for git builds, off by default for releases.
|
| | |
|
| |
|
|
|
|
| |
This is a workaround for the fact that trying to use the object path
/org/freedesktop/DBus/Local in a message header (e.g. when introspecting
trackerd with dbus-inspector) causes us to be disconnected by the bus daemon.
|
| |
|
|
|
| |
It's not guaranteed to be non-NULL, and Python checks there are no arguments
so we don't have to.
|
| | |
|
| |
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
__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.
|
| |
|
|
| |
I can't find it)
|
| | |
|
| | |
|
| |
|
|
| |
half-participating in the int free list (which would result in _IntBase instances leaking)
|
| |
|
|
| |
objects
|
| |
|
|
|
| |
Also fix a leak of references to Py_None (unlikely to be a practical problem,
but best to be correct).
|
| |
|
|
| |
lines in license statement
|
| |
|
|
|
|
| |
As well as being conventional, this seems to be necessary to avoid having
dbus_py_test.so installed, while still having it be a Libtool shared library
(noinst libraries are helpfully made static).
|
| |
|
|
|
|
| |
Also change send_message_with_reply() to not demand a main loop by default
(since you can call block() on the returned object, like blocking introspection
does).
|
| |
|
|
|
|
|
| |
* 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.
|
| |
|
|
| |
64-bit archs
|
| |
|
|
| |
no longer exists
|
| |
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
| |
attribute are serialized as that object path. Add that attribute to ProxyObject, dbus.Interface and dbus.service.Object.
|
| |
|
|
| |
complete types
|
| |
|
|
| |
variants containing byte, not an array of variants containing string
|
| | |
|
| |
|
|
| |
UTF8String from the API.
|
| |
|
|
| |
astonishment). Also document how to get a ByteArray from the API
|
| |
|
|
| |
objects are actually made. (Increases backwards compatibility with Pyrex-dbus-python)
|
| | |
|
| |
|
|
| |
current API (spotted by Phil Thompson)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
keep epydoc happy
|
| |
|
|
|
| |
_dbus_bindings/conn-internal.h, _dbus_bindings/dbus_bindings-internal.h,
_dbus_glib_bindings/module.c: Use dbus-python.h instead of dbus_bindings.h
|
| |
|
|
|
|
|
|
| |
In newer versions the PyGILState API is allowed even when threads haven't been
initialized yet, but in 2.4.1 it causes a crash. It's desirable to avoid
initializing threads until just before the second thread is created, since
this creates locking overhead which isn't needed until the app actually goes
multi-threaded.
|
| |
|
|
| |
debugging other things, they're too verbose
|
| |
|
|
|
|
| |
segfault on OLPC.
Also add debug related to this.
|
| | |
|
| | |
|
| | |
|