summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2005-03-152005-03-15 Joe Shaw <joeshaw@novell.com>dbus-0.23-branchJoe Shaw2-4/+11
* mono/ProxyBuilder.cs (BuildFinalizer): Fix some invalid IL when generating the finalizer. Fixes from Ben Maurer.
2005-03-132005-03-13 Joe Shaw <joeshaw@novell.com>Joe Shaw3-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-132005-03-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2-0/+6
* mono/ProxyBuilder.cs (BuildFinalizer): Need to load arg 0 onto the eval stack when removing the delegate.
2005-03-132005-03-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2-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-112005-03-11 Joe Shaw <joeshaw@novell.com>Joe Shaw4-2/+16
* NEWS: Update for 0.23.4 * configure.in: Release 0.23.4
2005-03-112005-03-11 Joe Shaw <joeshaw@novell.com>Joe Shaw2-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-092005-03-9 Joe Shaw <joeshaw@novell.com>Joe Shaw3-1/+13
* NEWS: Update for 0.23.3 * configure.in: Release 0.23.3
2005-03-092005-03-09 Joe Shaw <joeshaw@novell.com>Joe Shaw2-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-092005-03-08 Joe Shaw <joeshaw@novell.com>Joe Shaw8-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-082005-03-08 Joe Shaw <joeshaw@novell.com>Joe Shaw6-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-222005-02-22 Joe Shaw <joeshaw@novell.com>Joe Shaw2-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-182005-02-18 Joe Shaw <joeshaw@novell.com>Joe Shaw5-5/+25
* NEWS: Update for 0.23.2 * configure.in: Release 0.23.2 2005-02-16 Joe Shaw <joeshaw@novell.com>
2005-02-162005-02-16 Joe Shaw <joeshaw@novell.com>Joe Shaw11-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-122005-02-11 Joe Shaw <joeshaw@novell.com>Joe Shaw3-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-112005-02-11 Joe Shaw <joeshaw@novell.com>Joe Shaw3-1/+15
* NEWS: Update for 0.23.1 * configure.in: Release 0.23.1
2005-02-102005-02-10 Joe Shaw <joeshaw@novell.com>Joe Shaw3-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.
2005-01-12This commit was manufactured by cvs2svn to create branch 'dbus-0-23'.Ryan Lortie0-0/+0
2005-01-122005-01-12 Joe Shaw <joeshaw@novell.com>dbus-0.23Joe Shaw3-1/+36
* NEWS: Update for 0.23. * configure.in: Release 0.23.
2005-01-122005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2-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-122005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw3-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-122005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2-0/+8
* mono/doc/Makefile.am: Need to uninstall the docs on "make uninstall"
2005-01-122005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2-4/+5
* mono/Makefile.am, mono/example/Makefile.am: Always build the dbus DLL with --debug.
2005-01-122005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw3-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.
2005-01-11fix doh! in test for double parsingHavoc Pennington1-2/+2
2005-01-112005-01-11 Joe Shaw <joeshaw@novell.com>Joe Shaw3-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-112005-01-11 Joe Shaw <joeshaw@novell.com>Joe Shaw3-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-112005-01-11 Joe Shaw <joeshaw@novell.com>Joe Shaw2-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-032005-01-03 Havoc Pennington <hp@redhat.com>Havoc Pennington2-1/+6
* dbus/dbus-internals.h: I'm an idiot, _dbus_assert certainly can return
2005-01-032004-12-26 Havoc Pennington <hp@redhat.com>Havoc Pennington2-1/+5
* dbus/dbus-internals.h: add _DBUS_GNUC_NORETURN to _dbus_assert
2005-01-03add a file to hold the validation routinesHavoc Pennington3-3/+84
2005-01-032005-01-03 Havoc Pennington <hp@redhat.com>Havoc Pennington4-2/+48
* dbus/dbus-sysdeps.c (_dbus_sysdeps_test): fix using == on floating point * dbus/dbus-string.c (_dbus_string_insert_alignment): new function
2005-01-03finish off my TODO list for stuff needed to port dbus-message.c. NextHavoc Pennington4-192/+486
step is to do so.
2005-01-03just when the file was looking all beautiful, add horrible hacky code toHavoc Pennington3-136/+816
fixup array lengths after setting a value somewhere within the array.
2005-01-03cleanup args to read func in test suiteHavoc Pennington1-40/+40
2005-01-03checkpoint set_variable_length workHavoc Pennington2-175/+348
2005-01-02values-only DBusTypeWriterHavoc Pennington2-51/+171
2005-01-02minor cleanupHavoc Pennington2-49/+77
2005-01-02clean up the naming of dbus_marshal functionsHavoc Pennington3-152/+149
2005-01-02delete some more noise, put args in consistent order (a big bug trap sadly),Havoc Pennington4-688/+806
and work on the set value stuff some
2005-01-02cleanups and fixesHavoc Pennington2-98/+139
2005-01-02implement _dbus_type_writer_write_reader() (to copy a block of values)Havoc Pennington4-108/+300
which is the first step toward a sane reimplementation of all that delete/modify and realign nonsense in dbus-message.c
2005-01-02change strings to be marshaled consistently with the other basic types ↵Havoc Pennington2-14/+19
(address of the value passed in, so char**)
2005-01-02make reader const-correctHavoc Pennington2-55/+91
2005-01-02extend unit test to display progress and to verify that we are inserting not ↵Havoc Pennington1-73/+225
appending in all cases
2005-01-02add DBusTypeMarkHavoc Pennington4-68/+272
2005-01-012005-01-01 Havoc Pennington <hp@redhat.com>Havoc Pennington2-0/+9
* configure.in: add -Wfloat-equal
2005-01-01chop dbus-marshal-basic in half and move it to be insertion rather than ↵Havoc Pennington4-2314/+662
append based
2005-01-01voc Pennington <hp@redhat.com>Havoc Pennington3-0/+24
* dbus/dbus-sysdeps.h: add _DBUS_DOUBLES_BITWISE_EQUAL macro, for a variety of reasons '==' doesn't do this.
2005-01-01all types now unit tested and working.Havoc Pennington2-55/+604
2005-01-01add more "subclassing" to the test node classesHavoc Pennington1-236/+106