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
              initialization
      14cc7d28
  2. 14 Aug, 2006 3 commits
    • John Palmieri's avatar
      * dbus/dbus-dataslot.c (_dbus_data_slot_allocator_alloc): · 5b5da529
      John Palmieri authored
              Change _dbus_abort to _dbus_assert_not_reached because _dbus_abort
              causes compile problems when asserts are turned off
              Keeping _dbus_warn for printing out the message so even if
              asserts are turned off the user gets the messages that something is
              wrong
      5b5da529
    • John Palmieri's avatar
      Patches by Kjartan Maraas <kmaraas at gnome dot org> · c1091cbb
      John Palmieri authored
              * bus/services.c (bus_service_list_queued_owners):
              Add a pointer cast to fix compiler warning
      
              * dbus/dbus-dataslot.c (_dbus_data_slot_list_get):
              return a NULL instead of FALSE since the return type
              is not expecting a boolean
      
              * dbus/dbus-marshal-basic.c (_dbus_marshal_test):
              Remove unused variable
      
              * dbus/dbus-marshal-recursive-util.c (node_new):
              return a NULL instead of FALSE since the return type
              is not expecting a boolean
      
              * dbus/dbus-server-debug-pipe.c (_dbus_transport_debug_pipe_new):
              Send a NULL into _dbus_transport_new_for_fd instead of a FALSE
              because we are expecting a pointer not a boolean
      
              * dbus/dbus-sysdeps-util.c (_dbus_get_tmpdir):
              add void as the parameter so some compilers
              don't complain
      
              * dbus/dbus-transport-unix.c (_dbus_transport_new_for_domain_socket,
                _dbus_transport_new_for_tcp_socket):
              Send a NULL into _dbus_transport_new_for_fd instead of a FALSE
              because we are expecting a pointer not a boolean
      
              * test/shell-test.c (test_command_line):
              cast the second argument to _dbus_list_append to avoid compiler
              warnings
      
              * test/test-names.c (main): remove unused variable
      
              * test/test-service.c (check_hello_from_self_reply):
              Initialize echo_message and echo_reply to NULL
      
              * test/test-shell-service.c (handle_echo):
              Remove unused variable and cast the third parameter passed to
              dbus_connection_get_object_path_data to avoid compiler warrnings
      
              * test/name-test/test-names.c (clear_message_queue):
              Remove unused function
      
              * test/name-test/test-pending-call-dispatch.c:
              Fix format string in printf
      c1091cbb
    • John Palmieri's avatar
      * dbus/dbus-bus.c: · 2592a2ab
      John Palmieri authored
              * test/name-test/test-names.c:
              Remove test method dbus_bus_connection_get_unique_name because
              we already have public method dbus_bus_get_unique_name that
              does the exact same thing
      2592a2ab
  3. 11 Aug, 2006 2 commits
  4. 10 Aug, 2006 5 commits
  5. 09 Aug, 2006 1 commit
  6. 08 Aug, 2006 5 commits
    • John Palmieri's avatar
      These are all patches from Kjartan Maraas <kmaraas at gnome dot org> · 9a3145b9
      John Palmieri authored
      with cleanups of bugs found from Coverity reports:
      
      * dbus/dbus-sysdeps-util.c (_dbus_write_pid_file):
        close the file on error to avoid a leak
      
      * bus/expirelist.c (bus_expire_list_test):
        Check for NULL on dbus_new0
      
      * bus/activation.c (update_directory):
        remove dead code
      
      * bus/config-parser.c (merge_service_context_hash, start_selinux_child):
        Fix some leaks
      
      * bus/bus.c (process_config_every_time):
        Fixed a leak
      
      * bus/desktop-file.c (parse_key_value):
        Fixed leak
      
      * bus/selinux.c (bus_selinux_id_table_insert):
        Fixed leak
      9a3145b9
    • John Palmieri's avatar
      * dbus/dbus-object-tree.c (_dbus_object_subtree_new): · 1fa8e404
      John Palmieri authored
        remove dead code
      1fa8e404
    • John Palmieri's avatar
      * dbus/dbus-sysdeps.h: · d3874114
      John Palmieri authored
      * dbus/dbus-sysdeps.c:
      * dbus/dbus-string.c:
        s/_dbus_printf_length/_dbus_printf_string_upper_bound to comform with
        GLib's function which does the same thing
      
      * configure.in:
      * bus/Makefile.am:
      * bus/dir-watch-default.c:
      * bus/dir-watch-dnotify.c:
      * bus/dir-watch-kqueue.c:
        Add kqueue directory watching for freebsd and split the directory
        watching code into seperate files per method/arch
        (patches from Timothy Redaelli <drizzt at gufi dotorg>)
      d3874114
    • John Palmieri's avatar
      * dbus/dbus-sysdeps.h: · 7bb2361e
      John Palmieri authored
      * dbus/dbus-sysdeps.c:
        add _dbus_printf_length (patch from Peter Kümmel
        <syntheticpp at gmx dot net>)
      7bb2361e
    • John Palmieri's avatar
      * dbus/dbus-internals.c: unistd.h is not used · 759fa115
      John Palmieri authored
        (_dbus_verbose_real): only enable verbose printing
        if DBUS_VERBOSE environment var is set to '1'
        (patch from Peter Kümmel <syntheticpp at gmx dot net>
      759fa115
  7. 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
        lock
      
      * 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
      222bd07e
  8. 03 Aug, 2006 2 commits
  9. 22 Jul, 2006 1 commit
    • John Palmieri's avatar
      * dbus/dbus-connection.c: · da127218
      John Palmieri authored
        (_dbus_connection_attach_pending_call_unlocked):
        (connection_timeout_and_complete_all_pending_calls_unlocked):
        Make sure we set timeout_added on pending calls to FALSE when
        we remove the timeout from the connection
      da127218
  10. 21 Jul, 2006 1 commit
  11. 17 Jul, 2006 2 commits
  12. 16 Jul, 2006 1 commit
  13. 14 Jul, 2006 2 commits
    • John Palmieri's avatar
      * Remove all bindings · a929c9a3
      John Palmieri authored
      a929c9a3
    • 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):
        Remove
      5efe8e7f
  14. 12 Jul, 2006 3 commits
  15. 07 Jul, 2006 2 commits
  16. 12 Jun, 2006 1 commit
  17. 07 Jun, 2006 1 commit
    • John Palmieri's avatar
      * configure.in: · 3ac2e482
      John Palmieri authored
      * dbus/dbus-userdb-util.c:
      Add Solaris console owner patch from Artem Kachitchkine
      3ac2e482
  18. 04 Jun, 2006 1 commit
  19. 30 May, 2006 1 commit
  20. 03 May, 2006 1 commit
  21. 23 Apr, 2006 1 commit
  22. 19 Apr, 2006 1 commit
  23. 28 Mar, 2006 1 commit
    • Thiago Macieira's avatar
      * qt/*: · d42c8663
      Thiago Macieira authored
      	* dbus/qdbus.h: Sync with KDE Subversion revision
      	523647. Hopefully, this will be the last of the
      	source-incompatible changes. Documentation has been improved;
      	support for QList<basic-types> has been added; QDBusObject is
      	gone; QDBus(Abstract)Interface is now a QObject with
      	auto-generated meta-object; QDBusIntrospection is marked
      	private, since QMetaObject can be used now; lots of bugfixes.
      d42c8663