summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2005-03-15 Joe Shaw <joeshaw@novell.com>dbus-0.23-branchJoe Shaw2005-03-152-4/+11
| | | | | * mono/ProxyBuilder.cs (BuildFinalizer): Fix some invalid IL when generating the finalizer. Fixes from Ben Maurer.
* 2005-03-13 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-03-133-8/+20
| | | | | | | | | * mono/ProxyBuilder.cs (BuildConstructor): Decalre a local variable for storing our callback in. Update the allocation comments. * mono/Service.cs (Module): Revert some accidentally committed code.
* 2005-03-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-03-132-0/+6
| | | | | * mono/ProxyBuilder.cs (BuildFinalizer): Need to load arg 0 onto the eval stack when removing the delegate.
* 2005-03-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-03-132-4/+46
| | | | | | | | * mono/ProxyBuilder.cs: Add a finalizer to the generated proxy classes that disconnects the signal handler delegate from the service object. Fixes a big leak of proxy objects on the client side of things. Patch from Ben Maurer <bmaurer@ximian.com>
* 2005-03-11 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-03-114-2/+16
| | | | | | * NEWS: Update for 0.23.4 * configure.in: Release 0.23.4
* 2005-03-11 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-03-112-3/+12
| | | | | | | * dbus/dbus-connection.c (dbus_connection_send_with_reply): Remove this unref; it doesn't match up evenly in some codepaths. (_dbus_connection_block_pending_call): Unref at every exitpoint; this evenly matches with the ref near the top of this function.
* 2005-03-9 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-03-093-1/+13
| | | | | | * NEWS: Update for 0.23.3 * configure.in: Release 0.23.3
* 2005-03-09 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-03-092-1/+12
| | | | | | | * dbus/dbus-object-tree.c (_dbus_object_tree_unregister_and_unlock): If checks are enabled and we try to unregister a path that's not registered, still go through the process of unlocking and don't just return.
* 2005-03-08 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-03-098-110/+215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bunch of lifecycle and memory management problems in the mono bindings. * mono/Arguments.cs (Arguments): Implement IDisposable * mono/Bus.cs (Bus): Don't allow public instantiation. This is strictly a static class. * mono/Connection.cs: Move the DBusObjectPathVTable and associated delegates into this file. (Connection): Implement IDisposable. (Dispose): Disconnect the connection and set the raw connection pointer to IntPtr.Zero. (~Connection): Call Dispose(). (RegisterObjectPath): Added. Manages the registration of object paths so we can cleanly disconnect them at dispose/finalize time. (UnregisterObjectPath): Ditto. (set_RawConnection): Unregister all of the object paths when changing the underlying DBusConnection. Add them back onto the new connection, if any. * mono/Handler.cs: Don't implement IDisposable; it doesn't use any more unmanaged resources anymore, so it's not necessary. Move all the DBusObjectPathVTable stuff out of here. (Handler): Save references to our delegates so that they don't get finalized. Call Connection.RegisterObjectPath() instead of dbus_connection_register_object_path() directly. (Message_Called): Dispose the message after we're finished with it. * mono/Message.cs (Message): Implement IDisposable. (Dispose): Dispose the Arguments, and set the RawMessage to IntPtr.Zero. (SendWithReplyAndBlock): We own the ref to the reply that comes back from dbus_connection_send_with_reply_and_block() so add a comment about that and unref it after we've constructed a managed MethodReturn class around it. Fixes a big, big leak. * mono/ProxyBuilder.cs: Reflect into Message to get the Dispose method. (BuildSignalHandler): After we've sent the Signal message, dispose of it. (BuildMethod): Dispose of the method call and reply messages after we've sent the message and extracted the data we want from the reply. * mono/Service.cs (UnregisterObject): Don't call handler.Dispose() anymore. (Service_FilterCalled): Dispose of the message after we're finished with it.
* 2005-03-08 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-03-086-5/+87
| | | | | | | | | | | | | | | | | | | | | | | * dbus/dbus-connection.c (dbus_connection_send_with_reply): After we attach our pending call to the connection, unref it. Fixes a leak. * dbus/dbus-pending-call.c (dbus_pending_call_get_reply): Add this back. Accidentally broke API/ABI compat. * mono/Connection.cs (set_RawConnection): Disconnect our filter and match callbacks from the old connection and reconnect them to the new connection, if any. * mono/DBusType/ObjectPath.cs (ctor): Don't leak the object path that we get back from unmanaged code. (Append): Don't leak the object path that we pass into unmanaged code. * mono/DBusType/String.cs (ctor): Don't leak the string that we get back from unmanaged code. (Append): Don't leak the string that we pass into unmanaged code.
* 2005-02-22 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-02-222-1/+8
| | | | | | | * python/dbus_bindings.pyx.in: API changed, so call dbus_pending_call_steal_reply() rather than dbus_pending_call_get_reply(). Bug and patch from Jan de Groot.
* 2005-02-18 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-02-185-5/+25
| | | | | | | | * NEWS: Update for 0.23.2 * configure.in: Release 0.23.2 2005-02-16 Joe Shaw <joeshaw@novell.com>
* 2005-02-16 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-02-1611-370/+1013
| | | | | | | | | | | * dbus/dbus-connection-internal.h, dbus/dbus-connection.[ch], dbus/dbus-pending-call.[ch], dbus/dbus-server-protected.h, dbus/dbus-server-unix.c, dbus/dbus-server.c, dbus/dbus-transport-unix.c, dbus/dbus-transport.c: Backport a ton of thread-related fixes from HEAD to this branch. * glib/dbus-gproxy.c: Update dbus_pending_call_get_reply() to dbus_pending_call_steal_reply().
* 2005-02-11 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-02-123-49/+79
| | | | | | | | | | * mono/Connection.cs: The unpredictability of finalizers in mono prevents us from deterministically disconnecting the filters from the Service class's finalizer, so move tracking of filters and matches here. Add API for that. * mono/Service.cs: Remove the code, add code which calls the methods now on the Connection class.
* 2005-02-11 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-02-113-1/+15
| | | | | | * NEWS: Update for 0.23.1 * configure.in: Release 0.23.1
* 2005-02-10 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-02-103-22/+114
| | | | | | | | | | | | | | | | | | | | | | | | * dbus/dbus-connection.c (_dbus_connection_queue_received_message_link, _dbus_connection_message_sent): Add the path to the verbose output. (_dbus_connection_send_preallocated_and_unlock): Added. Calls _dbus_connection_send_preallocated_unlocked(), updated the dispatch status, and unlocks. Fixes a bug where certain situations (like a broken pipe) could cause a Disconnect message to not be sent, tricking the bus into thinking a service was still there when the process had quit. (_dbus_connection_send_preallocated): Call _dbus_connection_send_preallocated_and_unlock(). (_dbus_connection_send_and_unlock): Added. Calls _dbus_connection_send_preallocated_and_unlock(). (dbus_connection_send): Call _dbus_connection_send_and_unlock(). (dbus_connection_send_with_reply): Update the dispatch status and unlock. * mono/Service.cs (~Service): Added. Removes the filter so that we don't get unmanaged code calling back into a GCed delegate. (RemoveFilter); Added.
* This commit was manufactured by cvs2svn to create branch 'dbus-0-23'.Ryan Lortie2005-01-120-0/+0
|
* 2005-01-12 Joe Shaw <joeshaw@novell.com>dbus-0.23Joe Shaw2005-01-123-1/+36
| | | | | | * NEWS: Update for 0.23. * configure.in: Release 0.23.
* 2005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-122-2/+2
| | | | | | * mono/Makefile.am, mono/example/Makefile.am: Always build the dbus DLL with --debug. Clean up after the .mdb files this leaves behind.
* 2005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-123-5/+6
| | | | | | * mono/Makefile.am, mono/example/Makefile.am: Always build the dbus DLL with --debug. Clean up after the .mdb files this leaves behind.
* 2005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-122-0/+8
| | | | | * mono/doc/Makefile.am: Need to uninstall the docs on "make uninstall"
* 2005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-122-4/+5
| | | | | * mono/Makefile.am, mono/example/Makefile.am: Always build the dbus DLL with --debug.
* 2005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-123-2/+12
| | | | | | | | * mono/Makefile.am: Always build the dbus DLL with --debug. * mono/Arguments.cs (GetDBusTypeConstructor): If the type is an enum, get the enum's underlying type. Another mono 1.1.3 fix.
* fix doh! in test for double parsingHavoc Pennington2005-01-111-2/+2
|
* 2005-01-11 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-113-4/+7
| | | | | | | Patch from Sjoerd Simons <sjoerd@luon.net> * mono/Makefile.am, mono/example/Makefile.am: Don't redefine DESTDIR. It breaks stuff.
* 2005-01-11 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-113-1/+17
| | | | | | | | | | | | Patch from Tambet Ingo <tambet@ximian.com> * mono/DBusType/Array.cs (Get): Get the underlying element type by calling type.GetElementType(). The code previously depended on broken Mono behavior, which was fixed in Mono 1.1.3. * mono/DBusType/Dict.cs (constructor): Fix the parameters for Activator.CreateInstance() so that the class's constructor is called with the right parameters.
* 2005-01-11 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-112-13/+13
| | | | | | | | | | | Patch from Timo Teräs <ext-timo.teras@nokia.com> * dbus/dbus-connection.c (_dbus_connection_queue_received_message_link): Call _dbus_connection_remove_timeout() instead of the _locked() variant, since it's always called from _dbus_connection_handle_watch(), which handles the locking. Removed the _locked() variant since it's no longer used.
* 2005-01-03 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-032-1/+6
| | | | | * dbus/dbus-internals.h: I'm an idiot, _dbus_assert certainly can return
* 2004-12-26 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-032-1/+5
| | | | * dbus/dbus-internals.h: add _DBUS_GNUC_NORETURN to _dbus_assert
* add a file to hold the validation routinesHavoc Pennington2005-01-033-3/+84
|
* 2005-01-03 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-034-2/+48
| | | | | | | * dbus/dbus-sysdeps.c (_dbus_sysdeps_test): fix using == on floating point * dbus/dbus-string.c (_dbus_string_insert_alignment): new function
* finish off my TODO list for stuff needed to port dbus-message.c. NextHavoc Pennington2005-01-034-192/+486
| | | | step is to do so.
* just when the file was looking all beautiful, add horrible hacky code toHavoc Pennington2005-01-033-136/+816
| | | | fixup array lengths after setting a value somewhere within the array.
* cleanup args to read func in test suiteHavoc Pennington2005-01-031-40/+40
|
* checkpoint set_variable_length workHavoc Pennington2005-01-032-175/+348
|
* values-only DBusTypeWriterHavoc Pennington2005-01-022-51/+171
|
* minor cleanupHavoc Pennington2005-01-022-49/+77
|
* clean up the naming of dbus_marshal functionsHavoc Pennington2005-01-023-152/+149
|
* delete some more noise, put args in consistent order (a big bug trap sadly),Havoc Pennington2005-01-024-688/+806
| | | | and work on the set value stuff some
* cleanups and fixesHavoc Pennington2005-01-022-98/+139
|
* implement _dbus_type_writer_write_reader() (to copy a block of values)Havoc Pennington2005-01-024-108/+300
| | | | | which is the first step toward a sane reimplementation of all that delete/modify and realign nonsense in dbus-message.c
* change strings to be marshaled consistently with the other basic types ↵Havoc Pennington2005-01-022-14/+19
| | | | (address of the value passed in, so char**)
* make reader const-correctHavoc Pennington2005-01-022-55/+91
|
* extend unit test to display progress and to verify that we are inserting not ↵Havoc Pennington2005-01-021-73/+225
| | | | appending in all cases
* add DBusTypeMarkHavoc Pennington2005-01-024-68/+272
|
* 2005-01-01 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-012-0/+9
| | | | * configure.in: add -Wfloat-equal
* chop dbus-marshal-basic in half and move it to be insertion rather than ↵Havoc Pennington2005-01-014-2314/+662
| | | | append based
* voc Pennington <hp@redhat.com>Havoc Pennington2005-01-013-0/+24
| | | | | * dbus/dbus-sysdeps.h: add _DBUS_DOUBLES_BITWISE_EQUAL macro, for a variety of reasons '==' doesn't do this.
* all types now unit tested and working.Havoc Pennington2005-01-012-55/+604
|
* add more "subclassing" to the test node classesHavoc Pennington2005-01-011-236/+106
|