1. 30 Sep, 2006 1 commit
    • Thiago Macieira's avatar
      * configure.in: add DBUS_BINDIR as a #define to C source code. · f6fa0104
      Thiago Macieira authored
      	* tools/dbus-launch.c
      	* tools/dbus-launch.h
      	* tools/dbus-launch-x11.c:
      	* tools/dbus-launch.1: Add the --autolaunch option to
      	dbus-launch, which makes it scan for an existing session
      	started with --autolaunch. With that option, it also creates
      	an X11 window and saves the bus address and PID to it.
      
      	* dbus/dbus-sysdeps.h:
      	* dbus/dbus-sysdeps-unix.c (_dbus_get_autolaunch_address): Add
      	a function that runs "dbus-launch --autolaunch" to retrieve
      	the running D-Bus session address (or start one if none was running)
      
      	* dbus/dbus-transport.c: Add the handler for the "autolaunch:"
              address protocol, which tries to get the running session from
              dbus-launch.
      
      	* dbus/dbus-bus.c:
      	* dbus/dbus-internals.h: Make "autolaunch:" be the default
      	D-Bus session bus address.
      
      	* dbus/dbus-connection.c: Fix horrible typo in error message.
      f6fa0104
  2. 18 Sep, 2006 1 commit
  3. 17 Sep, 2006 1 commit
    • Havoc Pennington's avatar
      2006-09-17 Havoc Pennington <hp@redhat.com> · 1ececca7
      Havoc Pennington authored
      	* dbus/dbus-transport.c (_dbus_transport_get_is_authenticated):
      	fix so that if unix_user_function is set on windows, we still
      	do the default check that the auth identity matches the bus identity
      1ececca7
  4. 16 Sep, 2006 6 commits
    • Havoc Pennington's avatar
      2006-09-16 Havoc Pennington <hp@redhat.com> · fe4715b6
      Havoc Pennington authored
      	* dbus/dbus-transport.c (_dbus_transport_open): modify to delegate
      	to _dbus_transport_open_platform_specific,
      	_dbus_transport_open_socket,
      	and _dbus_transport_open_debug_pipe
      
      	* dbus/dbus-transport-protected.h: add _dbus_transport_open_platform_specific
      fe4715b6
    • Havoc Pennington's avatar
      2006-09-16 Havoc Pennington <hp@redhat.com> · e001455a
      Havoc Pennington authored
              Attempt auditing public API to remove all cases where a Unix
      	function returns weird emulated goo to Windows. This probably
      	breaks the bus daemon on Windows, to fix it again we may
      	need to stop processing unix-specific config options on Windows,
      	and may need to add Windows-specific public API or config options.
      
      	* configure.in (LT_CURRENT, LT_AGE): increment current and age,
      	to reflect added interfaces; should not break soname.
      
      	* dbus/dbus-transport.c (_dbus_transport_get_is_authenticated): do
      	not invoke unix user function on Windows. Kind of a hacky fix, but
      	we don't want a "unix uid" leaking out on Windows.
      
      	* dbus/dbus-connection.c (dbus_connection_get_socket): add new API
      	to get the socket fd on Windows or UNIX
      	(dbus_connection_get_unix_fd): make this always fail on Windows
      e001455a
    • Havoc Pennington's avatar
      voc Pennington <hp@redhat.com> · 8027efc9
      Havoc Pennington authored
      	* dbus/dbus-server.c (dbus_server_listen): change how this works
      	to be able to delegate to a set of handlers that can succeed,
      	fail, or choose not to handle. Allows us to have
      	dbus_server_listen_platform_specific.
      
      	* dbus/dbus-server-socket.c (_dbus_server_new_for_tcp_socket):
      	factor out the tcp socket stuff to be used on windows, leaving
      	unix domain socket only in dbus-socket-unix.c
      
      	* dbus/dbus-transport-socket.c
      	(_dbus_transport_new_for_tcp_socket): factor out the tcp socket
      	stuff to be used on windows, leaving unix domain socket only
      	in dbus-transport-unix.c
      
      	* dbus/dbus-connection.c (dbus_connection_get_unix_user): insert
      	temporary hack to be sure this fails on windows
      	(dbus_connection_get_unix_process_id): ditto
      8027efc9
    • Havoc Pennington's avatar
      add forgotten dbus-sydeps-unix.h · a0a12210
      Havoc Pennington authored
      a0a12210
    • Havoc Pennington's avatar
      2006-09-16 Havoc Pennington <hp@redhat.com> · d0971c53
      Havoc Pennington authored
      	* dbus/dbus-sysdeps-unix.c (_dbus_open_tcp_socket)
      	(_dbus_open_unix_socket, _dbus_open_socket): change API for
      	_dbus_open_socket so the domain/type/protocol from system headers
      	are not required. This is kind of pointless though unless we move
      	part of _dbus_connect_tcp_socket into sysdeps.c instead of
      	sysdeps-unix.c, which would mean adding a wrapper around
      	bind/listen/etc.
      	Also, add DBusError to the socket-opening functions so they
      	don't require use of errno.
      d0971c53
    • Havoc Pennington's avatar
      2006-09-16 Havoc Pennington <hp@redhat.com> · 08079a5b
      Havoc Pennington authored
      	* dbus/dbus-sysdeps-unix.h: small change to Peter's patch to make
      	dbus-sysdeps-unix-util.c build, add unix-specific sysdeps header.
      
      	* dbus/dbus-sysdeps.h, dbus-sysdeps-unix.c: patch from Peter
      	Kümmel bug #8249 to make the sysdeps.h read/write/open/close
      	functions specifically for sockets only, and move generic
      	read/write/open/close into unix-specific code.
      08079a5b
  5. 14 Sep, 2006 8 commits
  6. 13 Sep, 2006 2 commits
  7. 11 Sep, 2006 4 commits
  8. 10 Sep, 2006 1 commit
    • Havoc Pennington's avatar
      2006-09-10 Havoc Pennington <hp@redhat.com> · 8e659dac
      Havoc Pennington authored
             patch mostly by Peter Kümmel, bug #8211
      
      	* dbus/dbus-sysdeps-unix.c: new file, which splits out
      	unix-specific stuff in dbus-sysdeps.c
      
      	* dbus/dbus-sysdeps.c: don't include any UNIX-only headers,
      	and move unix-specific stuff to dbus-sysdeps-unix.c
      
      	* configure.in: check HAVE_ERRNO_H
      8e659dac
  9. 08 Sep, 2006 2 commits
  10. 07 Sep, 2006 3 commits
  11. 06 Sep, 2006 4 commits
    • John Palmieri's avatar
      * doc/TODO: · 1eae1844
      John Palmieri authored
      - Remove pending call locking todo item
      - dbus_connection_open now holds hard ref.  Remove todo item
      - do proper locking on _dbus_bus_check_connection_and_unref
        and handle DBUS_BUS_STARTER. Remove todo item
      - Warn on closing of a shared connection.  Remove todo item
      
      * bus/bus.c, bus/connection.c, bus/dispatch.c, dbus/dbus-bus.c,
        dbus/dbus-connection.c: Use the dbus_connection_close_internal
        so we don't get the warning when closing shared connections
      
      * test/test-service.c, test/test-shell-service.c: Applications
        don't close shared connections themselves so we unref instead of
        close
      
      * test/test-utils.c (test_connection_shutdown): Close the connection
      
      * dbus/dbus-bus.c (_dbus_bus_check_connection_and_unref): Changed to
        _dbus_bus_check_connection_and_unref_unlocked since we only call this
        method on a locked connection.
        Make sure we call _dbus_connection_unref_unlocked instead of
        dbus_connection_unref also.
        Handle DBUS_BUS_STARTER correctly
      
      * dbus/dbus-connection.c (connection_record_shared_unlocked):
        Mark as shared and hard ref the connection
        (connection_forget_shared_unlocked): Remove the hard ref from the
        connection
        (_dbus_connection_close_internal_and_unlock):  New internal function
        which takes a locked connection and unlocks it after closing it
        (_dbus_connection_close_internal): New internal function which acts
        like the origonal dbus_connection_close method by grabbing a connection
        lock and calling _dbus_connection_close_internal_and_unlock
        (dbus_connection_close): Public close method, warns when the app
        trys to close a shared connection
      1eae1844
    • John Palmieri's avatar
      * bus/driver.c: · 61316dd8
      John Palmieri authored
        (bus_driver_generate_introspect_string): New method for populating
        a DBusString with the introspect data
        (bus_driver_handle_introspect): Move introspect generation code to
        bus_driver_generate_introspect_string
      
      * bus/main.c:
        (introspect): New function which prints out the intropect data and
        exits
        (main): Add a --introspect switch
      61316dd8
    • John Palmieri's avatar
      * doc/TODO: Removed dtd publishing item. · e4f3d0ca
      John Palmieri authored
        It seems the dtd has already been added at
        http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd
      e4f3d0ca
    • John Palmieri's avatar
      * doc/TODO, various source files: Audited todo's and FIXME's and · 88f69757
      John Palmieri authored
        prepended the ones we should be looking at with 1.0.  Those
        prepended with 1.0? need clerification or might not be needed
        for 1.0
      88f69757
  12. 05 Sep, 2006 3 commits
  13. 01 Sep, 2006 1 commit
  14. 30 Aug, 2006 2 commits
    • Havoc Pennington's avatar
      2006-08-29 Havoc Pennington <hp@redhat.com> · afc2a6e5
      Havoc Pennington authored
      	* test/test-service.c (path_message_func): fix lack of return value
      
      	* dbus/dbus-sysdeps.c (_dbus_printf_string_upper_bound): fix
      	formatting, remove #ifdef, and fix docs. #ifdef doesn't make
      	any more sense than on anything else in this file.
      	(_dbus_get_tmpdir): add const to return value, and keep the
      	results of the various getenv around in a static variable.
      afc2a6e5
    • Havoc Pennington's avatar
      2006-08-29 Havoc Pennington <hp@redhat.com> · 338c96b4
      Havoc Pennington authored
      	* dbus/dbus-sysdeps-util.c, dbus/dbus-sysdeps-util-unix.c: change
      	from Ralf Habacker to move UNIX-specific sysdeps into a separate file.
      338c96b4
  15. 25 Aug, 2006 1 commit