1. 18 Jan, 2005 1 commit
    • Havoc Pennington's avatar
      2005-01-18 Havoc Pennington <hp@redhat.com> · 8873c90f
      Havoc Pennington authored
              * Throughout, grand renaming to strip out the use of "service",
      	just say "name" instead (or "bus name" when ambiguous).  Did not
      	change the internal code of the message bus itself, only the
      	programmer-facing API and messages.
      
      	* doc/dbus-specification.xml: further update the message bus section
      
      	* bus/config-parser.c (all_are_equiv): fix bug using freed string
      	in error case
      8873c90f
  2. 09 Sep, 2004 1 commit
  3. 10 Aug, 2004 1 commit
  4. 28 Jun, 2004 1 commit
  5. 20 Jun, 2004 1 commit
    • Havoc Pennington's avatar
      2004-06-20 Havoc Pennington <hp@redhat.com> · 961e6ca4
      Havoc Pennington authored
              * dbus/dbus-glib-error-enum.h: autogenerate the GError enum
      	codes from the dbus error names
      
              * glib/dbus-glib.h: move to subdir dbus/ since it's included
      	as dbus/dbus-glib.h and that breakage is now visible due to
      	including dbus/dbus-glib.h in dbus-glib-lowlevel.h
      
      	* glib/dbus-glib.h: s/gproxy/g_proxy/
      
      	* dbus/dbus-shared.h: new header to hold stuff shared with
      	binding APIs
      
      	* dbus/dbus-protocol.h (DBUS_ERROR_*): move errors here rather
      	than dbus-errors.h
      
      	* glib/dbus-glib.h (dbus_set_g_error): move to
      	dbus-glib-lowlevel.h
      
      	* glib/dbus-glib.h: remove dbus/dbus.h from here; change a bunch
      	of stuff to enable this
      
      	* dbus/dbus-glib-lowlevel.h: put dbus/dbus.h here
      
      	* a bunch of other changes with the same basic "separate glib
      	bindings from dbus.h" theme
      961e6ca4
  6. 02 Dec, 2003 1 commit
  7. 22 Sep, 2003 1 commit
    • Havoc Pennington's avatar
      2003-09-21 Havoc Pennington <hp@pobox.com> · c9332907
      Havoc Pennington authored
      	* glib/dbus-gproxy.c (dbus_gproxy_manager_new): start
      	implementing the proxy manager, didn't get very far.
      
      	* dbus/dbus-bus.c (dbus_bus_add_match): new
      	(dbus_bus_remove_match): new
      
      	* glib/dbus-gproxy.c (dbus_gproxy_new_for_service): add a
      	path_name argument; adjust the other not-yet-implemented
      	gproxy constructors to be what I think they should be.
      c9332907
  8. 14 May, 2003 1 commit
    • James Willcox's avatar
      · e9cb382d
      James Willcox authored
      2003-05-13  James Willcox  <jwillcox@gnome.org>
      
      	* configure.in:
      	* bus/activation.c: (bus_activation_service_created),
      	(bus_activation_activate_service):
      	* bus/driver.c: (bus_driver_send_service_deleted),
      	(bus_driver_send_service_created), (bus_driver_send_service_lost),
      	(bus_driver_send_service_acquired),
      	(bus_driver_send_welcome_message),
      	(bus_driver_handle_list_services):
      	* bus/session.conf.in:
      	* dbus/dbus-bus.c: (dbus_bus_acquire_service),
      	(dbus_bus_service_exists), (dbus_bus_activate_service):
      	* dbus/dbus-bus.h:
      
      	Add some convenience API which lets you activate a service, and did a
      	bunch of s/0/DBUS_TYPE_INVALID/ in calls to dbus_message_append_args()
      	and dbus_message_get_args()
      e9cb382d
  9. 03 Apr, 2003 1 commit
    • Havoc Pennington's avatar
      2003-04-03 Havoc Pennington <hp@pobox.com> · eeb88949
      Havoc Pennington authored
      	* bus/config-parser.c (bus_config_parser_unref): free
      	list of mechanisms, bug discovered by test suite enhancements
      	(putting system.conf and session.conf into suite)
      
      	* test/Makefile.am, test/test-service.c: add placeholder for a
      	test service that we'll activate as part of test suite. Doesn't
      	do anything yet.
      
      	* dbus/dbus-sysdeps.c (_dbus_setenv): support unsetenv by
      	setting NULL value, and use system malloc not dbus_malloc()
      	when we have unavoidable memleakage.
      
      	* dbus/dbus-bus.c (dbus_bus_get): fix bug where bus type of 0
      	didn't work, and support DBUS_BUS_ACTIVATION.
      
      	* bus/activation.c (child_setup): pass our well-known bus type to
      	the child
      
      	* bus/config-parser.c: support <type> to specify well-known type
      
      	* doc/dbus-specification.sgml: document the env variables to
      	locate well-known buses and find service activator
      eeb88949
  10. 28 Mar, 2003 2 commits
    • Anders Carlsson's avatar
      2003-03-28 Anders Carlsson <andersca@codefactory.se> · d361874e
      Anders Carlsson authored
      	* dbus/dbus-bus.c: (bus_data_free), (dbus_bus_get):
      	* dbus/dbus-bus.h:
      	Add dbus_bus_get.
      
      	* dbus/dbus-memory.c:
      	Fix a doc comment.
      d361874e
    • Havoc Pennington's avatar
      2003-03-28 Havoc Pennington <hp@pobox.com> · bf993813
      Havoc Pennington authored
      	* bus/test.c (bus_test_flush_bus): remove the sleep from here,
      	I think it may have just been superstition. Not sure.
      
      	* dbus/dbus-string.c (_dbus_string_base64_decode): catch some OOM
      	failures that were not being handled.
      
      	* dbus/dbus-auth.c (process_auth): fix a memleak in OOM handling
      
      	* dbus/dbus-memory.c: add ability to set number of mallocs in a
      	row that will fail on out-of-memory.
      
      	* dbus/dbus-internals.c (_dbus_test_oom_handling): convenience
      	function for testing out-of-memory handling.
      
      	* bus/config-loader-expat.c (memsuite): don't wrap the dbus
      	allocation functions, they do map exactly to the expat ones.
      bf993813
  11. 16 Mar, 2003 1 commit
    • Havoc Pennington's avatar
      2003-03-16 Havoc Pennington <hp@pobox.com> · ce173b29
      Havoc Pennington authored
      	Oops - test code was only testing failure of around 30 of the
      	mallocs in the test path, but it turns out there are 500+
      	mallocs. I believe this was due to misguided linking setup such
      	that there was one copy of dbus_malloc etc. in the daemon and one
      	in the shared lib, and only daemon mallocs were tested. In any
      	case, the test case now tests all 500+ mallocs, and doesn't pass
      	yet, though there are lots of fixes in this patch.
      
      	* dbus/dbus-connection.c (dbus_connection_dispatch_message): fix
      	this so that it doesn't need to allocate memory, since it
      	has no way of indicating failure due to OOM (and would be
      	annoying if it did).
      
      	* dbus/dbus-list.c (_dbus_list_pop_first_link): new function
      
      	* bus/Makefile.am: rearrange to create two self-contained
      	libraries, to avoid having libraries with overlapping symbols.
      	that was resulting in weirdness, e.g. I'm pretty sure there
      	were two copies of global static variables.
      
      	* dbus/dbus-internals.c: move the malloc debug stuff to
      	dbus-memory.c
      
      	* dbus/dbus-list.c (free_link): free list mempool if it becomes
      	empty.
      
      	* dbus/dbus-memory.c (_dbus_disable_mem_pools): new function
      
      	* dbus/dbus-address.c (dbus_parse_address): free list nodes
      	on failure.
      
      	* bus/dispatch.c (bus_dispatch_add_connection): free
      	message_handler_slot when no longer using it, so
      	memory leak checkers are happy for the test suite.
      
      	* dbus/dbus-server-debug-pipe.c (debug_finalize): free server name
      
      	* bus/bus.c (new_connection_callback): disconnect in here if
      	bus_connections_setup_connection fails.
      
      	* bus/connection.c (bus_connections_unref): fix to free the
      	connections
      	(bus_connections_setup_connection): if this fails, don't
      	disconnect the connection, just be sure there are no side
      	effects.
      
      	* dbus/dbus-string.c (undo_alignment): unbreak this
      
      	* dbus/dbus-auth.c (_dbus_auth_unref): free some stuff we were
      	leaking
      	(_dbus_auth_new): fix the order in which we free strings
      	on OOM failure
      
      	* bus/connection.c (bus_connection_disconnected): fix to
      	not send ServiceDeleted multiple times in case of memory
      	allocation failure
      
      	* dbus/dbus-bus.c (dbus_bus_get_base_service): new function to
      	get the base service name
      	(dbus_bus_register_client): don't return base service name,
      	instead store it on the DBusConnection and have an accessor
      	function for it.
      	(dbus_bus_register_client): rename dbus_bus_register()
      
      	* bus/dispatch.c (check_hello_message): verify that other
      	connections on the bus also got the correct results, not
      	just the one sending hello
      ce173b29
  12. 13 Mar, 2003 1 commit
    • Havoc Pennington's avatar
      2003-03-12 Havoc Pennington <hp@redhat.com> · 29560adc
      Havoc Pennington authored
              Mega-patch that gets the message bus daemon initially handling
      	out-of-memory. Work still needed. Also lots of random
      	moving stuff to DBusError instead of ResultCode.
      
      	* dbus/dbus-list.c (_dbus_list_length_is_one): new function
      
      	* dbus/dbus-connection.c
      	(dbus_connection_send_with_reply_and_block): use DBusError
      
      	* dbus/dbus-bus.c: adapt to API changes, make it use DBusError not
      	DBusResultCode
      
      	* dbus/dbus-connection.c (dbus_connection_send): drop the result
      	code here, as the only failure possible is OOM.
      
      	* bus/connection.c (bus_connection_disconnect):
      	rename bus_connection_disconnected as it's a notification only
      
      	* bus/driver.c (bus_driver_handle_acquire_service): don't free
      	"name" on get_args failure, should be done by get_args;
      	don't disconnect client for bad args, just return an error.
      	(bus_driver_handle_service_exists): ditto
      
      	* bus/services.c (bus_services_list): NULL-terminate returned array
      
      	* bus/driver.c (bus_driver_send_service_lost)
      	(bus_driver_send_service_acquired): send messages from driver to a
      	specific client to the client's unique name, not to the broadcast
      	service.
      
      	* dbus/dbus-message.c (decode_header_data): reject messages that
      	contain no name field
      	(_dbus_message_get_client_serial): rename to
      	dbus_message_get_serial and make public
      	(_dbus_message_set_serial): rename from set_client_serial
      	(_dbus_message_set_reply_serial): make public
      	(_dbus_message_get_reply_serial): make public
      
      	* bus/connection.c (bus_connection_foreach): allow stopping
      	iteration by returning FALSE from foreach function.
      
      	* dbus/dbus-connection.c (dbus_connection_send_preallocated)
      	(dbus_connection_free_preallocated_send)
      	(dbus_connection_preallocate_send): new API for sending a message
      	without possibility of malloc failure.
      	(dbus_connection_send_message): rename to just
      	dbus_connection_send (and same for whole function family)
      
      	* dbus/dbus-errors.c (dbus_error_free): make this reinit the error
      
      	* dbus/dbus-sysdeps.c (_dbus_exit): new function
      
      	* bus/activation.c: handle/return errors
      
      	* dbus/dbus-errors.h: add more DBUS_ERROR #define
      
      	* dbus/dbus-sysdeps.c (_dbus_directory_open) (_dbus_file_get_contents)
      	(_dbus_directory_get_next_file): use DBusError instead of DBusResultCode
      	(_dbus_result_from_errno): move to this file
      29560adc
  13. 01 Feb, 2003 1 commit
    • Anders Carlsson's avatar
      2003-02-01 Anders Carlsson <andersca@codefactory.se> · dbc4c0ca
      Anders Carlsson authored
      	* bus/driver.c: (create_unique_client_name),
      	(bus_driver_handle_hello):
      	Don't take a name, just use a numeric id to identify
      	each client.
      
      	* dbus/Makefile.am:
      	* dbus/dbus-bus.c: (dbus_bus_register_client),
      	(dbus_bus_acquire_service), (dbus_bus_service_exists):
      	* dbus/dbus-bus.h:
      	Add new convenience functions for communicating with the bus.
      
      	* dbus/dbus-message.h:
      
      	* dbus/dbus-protocol.h:
      	Fix a typo.
      dbc4c0ca
  14. 30 Jan, 2003 1 commit
    • Anders Carlsson's avatar
      2003-01-30 Anders Carlsson <andersca@codefactory.se> · 5ebb5748
      Anders Carlsson authored
      	* dbus/Makefile.am:
      	Add dbus-address.[ch]
      
      	* dbus/dbus-address.c: (dbus_address_entry_free),
      	(dbus_address_entries_free), (create_entry),
      	(dbus_address_entry_get_method), (dbus_address_entry_get_value),
      	(dbus_parse_address), (_dbus_address_test):
      	* dbus/dbus-address.h:
      	New files for dealing with address parsing.
      
      	* dbus/dbus-connection.c:
      	Document timeout functions.
      
      	* dbus/dbus-message.c:
      	Document dbus_message_new_from_message.
      
      	* dbus/dbus-server-debug.c:
      	Document.
      
      	* dbus/dbus-server.c: (dbus_server_listen):
      	Parse address and use correct server implementation.
      
      	* dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
      	* dbus/dbus-string.h:
      	New function with test.
      
      	* dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
      	* dbus/dbus-test.h:
      	Add address tests.
      
      	* dbus/dbus-transport-debug.c:
      	Document.
      
      	* dbus/dbus-transport.c: (_dbus_transport_open):
      	Parse address and use correct transport implementation.
      5ebb5748
  15. 15 Dec, 2002 1 commit
    • Havoc Pennington's avatar
      2002-12-15 Havoc Pennington <hp@pobox.com> · a0e550bc
      Havoc Pennington authored
      	* dbus/dbus-threads.c: add thread stubs that a higher library
      	layer can fill in. e.g. the GLib wrapper might fill them in with
      	GThread stuff. We still need to use this thread API to
      	thread-safe-ize the library.
      a0e550bc
  16. 23 Nov, 2002 2 commits
    • Havoc Pennington's avatar
      2002-11-23 Havoc Pennington <hp@pobox.com> · 55de3878
      Havoc Pennington authored
      	* dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
      	to avoid confusing Doxygen
      
      	* dbus/dbus-hash.c: @} not }@
      
      	* dbus/dbus-message.c (struct DBusMessage): split out
      	internals docs
      55de3878
    • Havoc Pennington's avatar
      2002-11-23 Havoc Pennington <hp@pobox.com> · 1428c65e
      Havoc Pennington authored
      	* configure.in: pile on more warning flags if using gcc
      
      	* Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
      	to document static functions
      
      	* configure.in: add summary to end of configure so it
      	looks nice and attractive
      
      	* dbus/dbus-hash.c: finish implementation and write unit
      	tests and docs
      
      	* configure.in: add --enable-tests to enable unit tests
      
      	* dbus/dbus-test.c: test program to run unit tests
      	for all files in dbus/*, initially runs a test for
      	dbus-hash.c
      
      	* dbus/dbus-internals.h: file to hold some internal utility stuff
      1428c65e
  17. 22 Nov, 2002 4 commits
  18. 21 Nov, 2002 3 commits
    • Havoc Pennington's avatar
      2002-11-21 Havoc Pennington <hp@redhat.com> · 5a6adeee
      Havoc Pennington authored
      	* dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
      	so we can allow ourselves to include files directly,
      	instead of having to use dbus.h
      
      	* dbus/dbus.h: fill in
      
      	* dbus/dbus-message.h: sketch out a sample header file.
      	Include griping if you include it directly instead of
      	via dbus.h
      
      	* dbus/dbus-macros.h: new file with macros for extern "C",
      	TRUE/FALSE, NULL, etc.
      
      	* doc/file-boilerplate.c: put include guards in here
      5a6adeee
    • Havoc Pennington's avatar
      2002-11-21 Havoc Pennington <hp@redhat.com> · 89161753
      Havoc Pennington authored
      	* doc/file-boilerplate.c: include both AFL and GPL boilerplate.
      
      	* COPYING: include the GPL as well, and license code
      	under both AFL and GPL.
      89161753
    • Havoc Pennington's avatar
      add file-boilerplate.c · f6343e58
      Havoc Pennington authored
      f6343e58