1. 16 Aug, 2006 1 commit
    • John Palmieri's avatar
      * dbus/dbus-threads.c: Add static DBusList *uninitialized_mutex_list and · 14cc7d28
      John Palmieri authored
              static DBusList *uninitialized_condvar_list to support new late
              initialization threading model.  In this model threads can be initialized
              even after the D-Bus API has been used but still needs to be initialized
              before the second thread has been started.  Mutexes and condvar addresses
              are stored in the two static lists and are replaced with actuall locks
              when threads are initalized.
              (_dbus_mutex_new_at_location): New method for creating a mutex and placing
              the location into the static list
              (_dbus_mutex_free_at_location): New method for removing a mutex location
              from the static list and freeing the mutex
              (_dbus_condvar_new_at_location): New method for creating a conditional
              variable and placing the location into the static list
              (_dbus_condvar_free_at_location): New method for removing a conditional
              variable location from the static list and freeing the conditional variable
              (init_uninitialized_locks): Atomic method which goes through the static
              lists of mutex and condvar location and updates them with actuall locks
              (init_global_locks): changed to init_locks
              * dbus/dbus-connection.c:
              (_dbus_connection_test_get_locks): New method for tests to check connections
              (_dbus_connection_new_for_transport): Use the new at_location mutex and
              condvar API
              (dbus_connection_allocate_data_slot): Pass in the global lock address
              to _dbus_data_slot_allocator_alloc
              * dbus/dbus-dataslot.c:
              (_dbus_data_slot_allocator_alloc): Use the address of the mutex
              instead of the mutex itself
              * dbus/dbus-message.c:
              (dbus_message_allocate_data_slot): Pass in the global lock address
              to _dbus_data_slot_allocator_alloc
              * dbus/dbus-pending-call.c:
              (dbus_pending_call_allocate_data_slot): Pass in the global lock address
              to _dbus_data_slot_allocator_alloc
              * dbus/dbus-server.c:
              (_dbus_server_init_base): Use the new at_location mutex API
              (dbus_server_allocate_data_slot): Pass in the global lock address
              to _dbus_data_slot_allocator_alloc
              * test/name-test/test-threads-init.c: New test case for late thread
  2. 04 Aug, 2006 1 commit
    • John Palmieri's avatar
      * configure.in: add -Wdeclaration-after-statement · 222bd07e
      John Palmieri authored
      * dbus/dbus-connection.c: change all the pending call stuff to
        reflect the fact that pending call operations use the connection
      * dbus/dbus-pending-call.c: add locking here
      * dbus/dbus-errors.c (struct DBusRealError): don't make the name
        field const consistent with how message field is done
  3. 21 Jul, 2006 1 commit
  4. 16 Jul, 2006 1 commit
  5. 14 Jul, 2006 1 commit
    • John Palmieri's avatar
      * dbus-connection.c (dbus_connection_send_with_reply): return TRUE · 5efe8e7f
      John Palmieri authored
        and set pending_reply out arg to NULL is connection is disconnected
        (connection_timeout_and_complete_all_pending_calls_unlocked): New
        static method for cleaning up pending calls on disconnect
        (_dbus_connection_get_dispatch_status_unlocked): If we have pending
        calls queued timeouts on disconnect
      * dbus/dbus-pending-call.ci (_dbus_pending_call_set_connection):
  6. 12 Jul, 2006 1 commit
  7. 16 Feb, 2005 1 commit
    • Havoc Pennington's avatar
      2005-02-15 Havoc Pennington <hp@redhat.com> · 9e445087
      Havoc Pennington authored
      	* dbus/dbus-connection.c (dbus_connection_dispatch): always
      	complete a pending call, don't run filters first.
      	* glib/dbus-gproxy.c (dbus_g_proxy_end_call): change to use
      	* dbus/dbus-pending-call.c (dbus_pending_call_block): just call
      	(dbus_pending_call_get_reply): change to steal_reply and return a
      	* dbus/dbus-connection.c
      	(dbus_connection_send_with_reply_and_block): port to work in terms
      	of DBusPendingCall
      	(_dbus_connection_block_pending_call): replace block_for_reply
      	with this
  8. 30 Jan, 2005 1 commit
    • Havoc Pennington's avatar
      2005-01-30 Havoc Pennington <hp@redhat.com> · 1dcacffc
      Havoc Pennington authored
      	* glib/dbus-glib.c (dbus_g_pending_call_set_notify): new function
      	(dbus_g_pending_call_cancel): new function
      	* dbus/dbus-glib.h: move GType decls for connection/message here;
      	* dbus/dbus-glib.c: move all the g_type and ref/unref stuff in
      	here, just kind of rationalizing how we handle all that
      	* tools/dbus-names-model.c: new file for a tree model listing the
      	services on a bus
      	* tools/dbus-tree-view.c (model_new): use proper typing on the
      	model rows
  9. 17 Jan, 2005 1 commit
    • Havoc Pennington's avatar
      2005-01-16 Havoc Pennington <hp@redhat.com> · aad6fa89
      Havoc Pennington authored
      	* dbus/dbus-internals.c (_dbus_real_assert): print the function
      	name the assertion failed in
      	* dbus/dbus-internals.h (_dbus_return_if_fail)
      	(_dbus_return_val_if_fail): assert that the name of the function
      	containing the check doesn't start with '_', since we only want to
      	use checks on public functions
      	* dbus/dbus-connection.c (_dbus_connection_ref_unlocked): change
      	checks to assertions
      	* dbus/dbus-marshal-header.c (_dbus_header_set_field_basic):
      	change checks to asserts for private function
      	* dbus/dbus-message.c (_dbus_message_set_serial): checks
      	to asserts for private function
      	* dbus/dbus-marshal-recursive.c (skip_one_complete_type): remove
      	broken assertion that was breaking make check
      	(_dbus_type_reader_array_is_empty): remove this rather than fix
      	it, was only used in assertions
  10. 10 Aug, 2004 1 commit
  11. 21 Mar, 2004 1 commit
    • Olivier Andrieu's avatar
      * dbus/dbus-marshal.c (_dbus_marshal_validate_arg): accept empty · eacb2afd
      Olivier Andrieu authored
      * dbus/dbus-message.h, bus/dbus-message.c (dbus_message_iter_init)
      (dbus_message_iter_init_dict_iterator): return a dbus_bool_t to
      indicate whether the iterator is empty
      * dbus/dbus-pending-call.c, dbus/dbus-server.c: silence compiler
  12. 02 Dec, 2003 1 commit
  13. 27 Nov, 2003 1 commit
  14. 16 Oct, 2003 1 commit
    • Havoc Pennington's avatar
      2003-10-16 Havoc Pennington <hp@redhat.com> · d6e1b2ad
      Havoc Pennington authored
      	* bus/connection.c (bus_pending_reply_expired): either cancel or
      	execute, not both
      	(bus_connections_check_reply): use unlink, not remove_link, as we
      	don't want to free the link; fixes double free mess
      	* dbus/dbus-pending-call.c (dbus_pending_call_block): fix in case
      	where no reply was received
      	* dbus/dbus-connection.c (_dbus_pending_call_complete_and_unlock):
      	fix a refcount leak
      	* bus/signals.c (match_rule_matches): add special cases for the
      	bus driver, so you can match on sender/destination for it.
      	* dbus/dbus-sysdeps.c (_dbus_abort): print backtrace if
      	* dbus/dbus-internals.c: add pid to assertion failure messages
      	* dbus/dbus-connection.c: add message type code to the debug spew
      	* glib/dbus-gproxy.c (gproxy_get_match_rule): match rules want
      	sender=foo not service=foo
      	* dbus/dbus-bus.c (dbus_bus_get): if the activation bus is the
      	session bus but DBUS_SESSION_BUS_ADDRESS isn't set, use
      	* bus/activation.c: set DBUS_SESSION_BUS_ADDRESS,
      	DBUS_SYSTEM_BUS_ADDRESS if appropriate
      	* bus/bus.c (bus_context_new): handle OOM copying bus type into
      	context struct
      	* dbus/dbus-message.c (dbus_message_iter_get_object_path): new function
      	(dbus_message_iter_get_object_path_array): new function (half
      	finished, disabled for the moment)
      	* glib/dbus-gproxy.c (dbus_gproxy_end_call): properly handle
      	* tools/dbus-launch.c (babysit): support DBUS_DEBUG_OUTPUT to
      	avoid redirecting stderr to /dev/null
      	(babysit): close stdin if not doing the "exit_with_session" thing
      	* dbus/dbus-sysdeps.c (_dbus_become_daemon): delete some leftover
      	debug code; change DBUS_DEBUG_OUTPUT to only enable stderr, not
      	stdout/stdin, so things don't get confused
      	* bus/system.conf.in: fix to allow replies, I modified .conf
      	instead of .conf.in again.
  15. 12 Oct, 2003 1 commit
    • Havoc Pennington's avatar
      2003-10-12 Havoc Pennington <hp@pobox.com> · 4097e94a
      Havoc Pennington authored
              Added test code that 1) starts an actual bus daemon and 2) uses
      	DBusGProxy; fixed bugs that were revealed by the test. Lots
      	more testing possible, but this is the basic framework.
      	* glib/dbus-gproxy.c (dbus_gproxy_manager_unregister): remove
      	empty proxy lists from the proxy list hash
      	* dbus/dbus-message.c (dbus_message_iter_get_args_valist): add a
      	couple of return_if_fail checks
      	* dbus/dbus-pending-call.c (_dbus_pending_call_new): use dbus_new0
      	to allocate, so everything is cleared to NULL as it should be.
      	* glib/dbus-gmain.c (dbus_connection_setup_with_g_main): pass
      	source as data to dbus_connection_set_timeout_functions() as the
      	timeout functions expected
      	* test/glib/run-test.sh: add a little script to start up a message
      	bus and run tests using it
      	* tools/dbus-launch.1: updates
      	* tools/dbus-launch.c (main): add --config-file option
      	* tools/dbus-launch.c (main): remove confusing else if (runprog)
      	that could never be reached.
      	* dbus/dbus-message.c (dbus_message_new_method_return)
      	(dbus_message_new_error, dbus_message_new_signal): set the
      	no-reply-expected flag on all these. Redundant, but may
      	as well be consistent.
  16. 17 Sep, 2003 1 commit
    • Havoc Pennington's avatar
      2003-09-15 Havoc Pennington <hp@pobox.com> · 583994cb
      Havoc Pennington authored
      	* dbus/dbus-pending-call.c: add the get/set object data
      	boilerplate as for DBusConnection, etc. Use generic object data
      	for the notify callback.
      	* glib/dbus-gparser.c (parse_node): parse child nodes
      	* tools/dbus-viewer.c: more hacking on the dbus-viewer
      	* glib/dbus-gutils.c (_dbus_gutils_split_path): add a file to
      	contain functions shared between the convenience lib and the
      	installed lib
      	* glib/Makefile.am (libdbus_glib_1_la_LDFLAGS): add
      	-export-symbols-regex to the GLib library
      	* dbus/dbus-object-tree.c (_dbus_object_tree_dispatch_and_unlock):
      	fix the locking in here, and add a default handler for
      	Introspect() that just returns sub-nodes.
      2003-09-14  Havoc Pennington  <hp@pobox.com>
      	* glib/dbus-gthread.c (dbus_g_thread_init): rename to make g_foo
      	rather than gfoo consistent
      	* glib/dbus-gproxy.h: delete for now, move contents to
      	dbus-glib.h, because the include files don't work right since we
      	aren't in the dbus/ subdir.
      	* glib/dbus-gproxy.c (dbus_gproxy_send): finish implementing
      	(dbus_gproxy_end_call): finish
      	(dbus_gproxy_begin_call): finish
      	* glib/dbus-gmain.c (dbus_set_g_error): new
      	* glib/dbus-gobject.c (handle_introspect): include information
      	about child nodes in the introspection
      	* dbus/dbus-connection.c (dbus_connection_list_registered): new
      	function to help in implementation of introspection
      	* dbus/dbus-object-tree.c
      	(_dbus_object_tree_list_registered_and_unlock): new function
      2003-09-12  Havoc Pennington  <hp@pobox.com>
      	* glib/dbus-gidl.h: add common base class for all the foo_info
              * tools/dbus-viewer.c: add GTK-based introspection UI thingy
      	similar to kdcop
      	* test/Makefile.am: try test srcdir -ef . in addition to test
      	srcdir = ., one of them should work (yeah lame)
              * glib/Makefile.am: build the "idl" parser stuff as a convenience
      	* glib/dbus-gparser.h: make description_load routines return
      	NodeInfo* not Parser*
      	* Makefile.am (SUBDIRS): build test dir after all library dirs
      	* configure.in: add GTK+ detection
  17. 15 Aug, 2003 2 commits
  18. 14 Aug, 2003 1 commit
    • Havoc Pennington's avatar
      2003-08-14 Havoc Pennington <hp@redhat.com> · a6c8a71b
      Havoc Pennington authored
      	* dbus/dbus-pending-call.c: start on new object that will replace
      	DBusMessageHandler and ReplyHandlerData for tracking outstanding
      	* dbus/dbus-gproxy.c: start on proxy object used to communicate
      	with remote interfaces
      	* dbus/dbus-gidl.c: do the boring boilerplate in here