summaryrefslogtreecommitdiff
path: root/_dbus_bindings
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* fd.o #15013: expose dbus.lowlevel.MESSAGE_TYPE_SIGNAL and friendsSimon McVittie2010-02-181-2/+0
|
* 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".
* Avoid some compiler warningsSimon McVittie2008-07-231-0/+1
|
* Merge branch 'master' into serverSimon McVittie2008-07-151-0/+1
|\
| * Bugfix for: if using Connection.add_message_filter, only the last filter ↵Huang Peng2008-07-151-0/+1
| | | | | | | | will be called
* | Initialize LibDBusConnection correctlySimon McVittie2008-07-151-0/+2
| |
* | Make DBusPyConnection_NewConsumingDBusConnection static now nobody else ↵Simon McVittie2008-07-151-1/+1
| | | | | | | | needs to call it
* | DbusPyServer: construct connections by calling the type, so the object will ↵Simon McVittie2008-07-151-8/+20
| | | | | | | | be fully initialized
* | Refactor DBusPyConnection_NewForBus and make it go via ↵Simon McVittie2008-07-151-26/+59
| | | | | | | | | | | | | | | | DbusPyConnection_Type.tp_new Now that we have the LibDBusConnection temporary objects, we don't have to do strange sideways inheritance, we can just chain up to the superclass constructor.
* | _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.
* | [trivial] un-extern Struct_tp_getattroSimon McVittie2008-07-151-1/+1
| |
* | Add LibDBusConnection in _dbus_bindingsSimon McVittie2008-07-154-3/+143
| |
* | Actually create objects of class Server->conn_classSimon McVittie2008-07-141-3/+4
| |
* | Hook DBusServer into the build system.Simon McVittie2008-07-144-0/+30
| | | | | | | | Based on parts of the patch by Huang Peng <phuang@redhat.com>
* | 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
|/
* Relicense Collabora code under the MIT/X11 license proposed for dbus core, ↵Simon McVittie2007-09-2724-354/+427
| | | | removing all references to the LGPL as a result
* _dbus_bindings/mainloop.c: Remove Watch and Timeout.Simon McVittie2007-07-311-357/+0
| | | | | | | 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.
* Avoid cpp directives inside macro calls, to be nice to old gcc versionsSimon McVittie2007-07-122-19/+1
|
* Use PyArg_ParseTuple correctly, fixing the timeout in ↵Simon McVittie2007-07-111-2/+2
| | | | | | 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)
* _dbus_bindings: add DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE etc.Simon McVittie2007-06-211-0/+9
|
* Avoid using deprecated dbus_watch_get_fd()Simon McVittie2007-06-211-1/+7
|
* _dbus_bindings/conn-methods.c: add list_exported_child_objects().Simon McVittie2007-05-291-0/+62
| | | | This is equivalent to dbus_connection_list_registered() in libdbus.
* Implement DBusException in pure Python; add get_dbus_name() method and name= ↵Simon McVittie2007-05-166-53/+67
| | | | keyword argument
* Remove BusImplementation, removing its remaining functionality to Connection.Simon McVittie2007-04-304-95/+76
| | | | | | | | | * 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
* Implement o.fd.DBus method wrappers in Python instead of C.Simon McVittie2007-04-301-235/+0
| | | | | This reduces the need to have _dbus_bindings.BusImplementation and makes peer-to-peer connections easier to implement.
* _dbus_bindings/module.c: Add some useful constantsSimon McVittie2007-04-271-0/+17
|
* Remove trailing whitespace in C sourceSimon McVittie2007-04-248-13/+13
|
* Add optional checks for coding style (mainly whitespace at the moment).Simon McVittie2007-04-241-0/+3
| | | | These are on by default for git builds, off by default for releases.
* _dbus_bindings/message.c: untabifySimon McVittie2007-04-241-30/+30
|
* If send_with_reply() returns TRUE but with pending call NULL, cope gracefully.Simon McVittie2007-02-211-0/+7
| | | | | | 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.
* Don't examine args for functions declared METH_NOARGS.Simon McVittie2007-02-211-6/+3
| | | | | It's not guaranteed to be non-NULL, and Python checks there are no arguments so we don't have to.
* Actually commit the numerous copyright-statement changes.Simon McVittie2007-02-0721-152/+152
|
* Audit tp_dealloc callbacks to make sure they preserve the exception state.Simon McVittie2007-02-072-1/+7
| | | | | | * 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
* Fix memory leak where Struct, _LongBase, _StrBase, String leaked their ↵Simon McVittie2007-02-075-108/+309
| | | | | | | | | | | | | | __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.
* Close a couple of reference leaks in String (there's another somewhere, but ↵Simon McVittie2007-02-051-8/+22
| | | | I can't find it)