platform/upstream/dbus.git
20 years agoVarious mono related changes to facilitate GAC support.
Owen Fraser-Green [Sat, 15 May 2004 19:31:12 +0000 (19:31 +0000)]
Various mono related changes to facilitate GAC support.

20 years agoFixed another typo! Grrrr...
Owen Fraser-Green [Sat, 15 May 2004 13:24:00 +0000 (13:24 +0000)]
Fixed another typo! Grrrr...

20 years agoFixed typeo
Owen Fraser-Green [Sat, 15 May 2004 13:22:18 +0000 (13:22 +0000)]
Fixed typeo

20 years agoAdded mono documentation.
Owen Fraser-Green [Sat, 15 May 2004 11:44:44 +0000 (11:44 +0000)]
Added mono documentation.

20 years agoAdded documentation directory
Owen Fraser-Green [Sat, 15 May 2004 11:37:59 +0000 (11:37 +0000)]
Added documentation directory

20 years agocreate a process for committing patches that doesn't bottleneck on Havoc
Havoc Pennington [Tue, 11 May 2004 22:33:57 +0000 (22:33 +0000)]
create a process for committing patches that doesn't bottleneck on Havoc

20 years ago* updated the invalid test cases to include the
John (J5) Palmieri [Tue, 11 May 2004 18:31:34 +0000 (18:31 +0000)]
* updated the invalid test cases to include the
  missing PATH header field which is required
* updated the spec documentation to indicate that
  INTERFACE, MEMBER, and PATH are all required fields

20 years ago* Fixed python bindings by defining all need parameter and variable types
John (J5) Palmieri [Mon, 10 May 2004 18:16:29 +0000 (18:16 +0000)]
* Fixed python bindings by defining all need parameter and variable types

20 years agomention removing version number from daemon name
Havoc Pennington [Fri, 7 May 2004 22:45:15 +0000 (22:45 +0000)]
mention removing version number from daemon name

20 years agoModified version of the patch by Jeff Snyder jeff at caffeinated.me.uk
Zack Rusin [Tue, 4 May 2004 05:35:48 +0000 (05:35 +0000)]
Modified version of the patch by Jeff Snyder jeff at caffeinated.me.uk
Thanks

20 years agosmall compile fix
Harald Fernengel [Mon, 3 May 2004 17:08:00 +0000 (17:08 +0000)]
small compile fix

20 years agoRemoved test-dbus-sharp.exe from all target.
Owen Fraser-Green [Sun, 2 May 2004 16:15:52 +0000 (16:15 +0000)]
Removed test-dbus-sharp.exe from all target.

20 years agoHandle empty iterators properly!
Owen Fraser-Green [Sat, 1 May 2004 19:59:58 +0000 (19:59 +0000)]
Handle empty iterators properly!

20 years agoHandle empty iterators.
Owen Fraser-Green [Sat, 1 May 2004 19:56:27 +0000 (19:56 +0000)]
Handle empty iterators.

20 years agoThe Requires field didn't really work out.
Owen Fraser-Green [Fri, 30 Apr 2004 16:02:53 +0000 (16:02 +0000)]
The Requires field didn't really work out.

20 years agoModified dbus-sharp.pc to include Libs and Requires field
Owen Fraser-Green [Fri, 30 Apr 2004 13:44:32 +0000 (13:44 +0000)]
Modified dbus-sharp.pc to include Libs and Requires field

20 years agoCommitting Haralds stuff together with some of my backlog for connection.
Zack Rusin [Tue, 27 Apr 2004 05:35:01 +0000 (05:35 +0000)]
Committing Haralds stuff together with some of my backlog for connection.

20 years ago2004-04-25 Kristian Høgsberg <krh@redhat.com>
Kristian Høgsberg [Sun, 25 Apr 2004 15:50:23 +0000 (15:50 +0000)]
2004-04-25  Kristian Høgsberg  <krh@redhat.com>

* test/data/valid-messages/standard-*.message: Update message
test scripts to new header field names.

20 years ago* Fixed buffer overflow cause by not incrementing
John (J5) Palmieri [Fri, 23 Apr 2004 15:25:16 +0000 (15:25 +0000)]
* Fixed buffer overflow cause by not incrementing
the times_we_did_each_thing counter array to reflect
the number of random mutation functions we have.

20 years ago* rename HEADER_FIELD_SERVICE -> HEADER_FIELD_DESTINATION
John (J5) Palmieri [Thu, 22 Apr 2004 19:14:46 +0000 (19:14 +0000)]
* rename HEADER_FIELD_SERVICE -> HEADER_FIELD_DESTINATION
and HEADER_FIELD_SENDER_SERVICE -> HEADER_FIELD_SENDER
for both dbus-protocol.h and in the spec

20 years ago2004-04-21 Kristian Høgsberg <krh@redhat.com>
Kristian Høgsberg [Wed, 21 Apr 2004 22:13:07 +0000 (22:13 +0000)]
2004-04-21  Kristian Høgsberg  <krh@redhat.com>

* dbus/dbus-server-unix.c (unix_finalize): Don't unref
unix_server->watch here, it is unreffed in disconnect.
(_dbus_server_new_for_tcp_socket): convert NULL host to
"localhost" here so we don't append NULL to address.

* dbus/dbus-server.c (_dbus_server_test): Add test case for
various addresses, including tcp with no explicit host.

20 years ago* dbus/dbus-message.c (decode_header_data, decode_string_field):
Olivier Andrieu [Wed, 21 Apr 2004 21:29:07 +0000 (21:29 +0000)]
* dbus/dbus-message.c (decode_header_data, decode_string_field):
fix incorrect setting of .name_offset in the HeaderField (it was
off by two bytes, positioned right after the name and typecode)

* bus/bus.c (bus_context_new, bus_context_unref): test before
calling dbus_server_free_data_slot and _dbus_user_database_unref
in case of an error.

* tools/Makefile.am: add $(DBUS_GLIB_TOOL_LIBS), xml libs needed
by libdbus-gtool.

20 years ago2004-04-19 Kristian Høgsberg <krh@redhat.com>
Kristian Høgsberg [Mon, 19 Apr 2004 22:09:55 +0000 (22:09 +0000)]
2004-04-19  Kristian Høgsberg  <krh@redhat.com>

* dbus/dbus-transport-unix.c (unix_do_iteration): Rewrite to use
_dbus_poll() instead of select().

20 years ago2004-04-15 Jon Trowbridge <trow@ximian.com>
Jon Trowbridge [Fri, 16 Apr 2004 15:01:25 +0000 (15:01 +0000)]
2004-04-15  Jon Trowbridge  <trow@ximian.com>

    * bus/main.c (signal_handler): Reload the configuration files
    on SIGHUP.
    (main): Set up our SIGHUP handler.

    * bus/bus.c (struct BusContext): Store the config file, user and
    fork flag in the BusContext.
    (process_config_first_time_only): Added.  Contains the code
    (previously in bus_context_new) for setting up the BusContext from
    the BusConfigParser that should only be run the first time the
    config files are read.
    (process_config_every_time): Added.  Contains the code (previously
    in bus_context_new) for setting up the BusContext from the
    BusConfigParser that should be run every time the config files are
    read.
    (load_config): Added.  Builds a BusConfigParser from the config
    files and passes the resulting structure off to
    process_config_first_time_only (assuming this is the first time)
    and process_config_every_time.
    (bus_context_new): All of the config-related code has been moved
    to process_config_first_time_only and process_config_every_time.
    Now this function just does the non-config-related initializations
    and calls load_config.
    (bus_context_reload_config): Added.

20 years ago2004-04-15 Olivier Andrieu <oliv__a@users.sourceforge.net>
Olivier Andrieu [Thu, 15 Apr 2004 22:08:05 +0000 (22:08 +0000)]
2004-04-15  Olivier Andrieu  <oliv__a@users.sourceforge.net>

* bus/driver.c (bus_driver_handle_get_service_owner):
implement a GetServiceOwner method.
* doc/dbus-specification.xml: document it.
* dbus/dbus-errors.h: add a 'ServiceHasNoOwner' error.

* glib/dbus-gproxy.c (dbus_gproxy_new_for_service_owner):
implement, using the bus GetServiceOwner method.

* test/glib/test-dbus-glib.c:
use dbus_gproxy_new_for_service_owner so that we can receive the
signal.

20 years ago2004-04-14 Olivier Andrieu <oliv__a@users.sourceforge.net>
Olivier Andrieu [Tue, 13 Apr 2004 22:29:50 +0000 (22:29 +0000)]
2004-04-14  Olivier Andrieu  <oliv__a@users.sourceforge.net>

* test/glib/test-dbus-glib.c (timed_exit): fail the test after
a few seconds.

20 years ago2004-04-13 Michael Meeks <michael@ximian.com>
Michael Meeks [Tue, 13 Apr 2004 11:47:17 +0000 (11:47 +0000)]
2004-04-13  Michael Meeks  <michael@ximian.com>

* glib/dbus-gobject.c (handle_introspect): split out
(introspect_properties): this.
(handle_introspect): implement this.

20 years ago2004-04-13 Michael Meeks <michael@ximian.com>
Michael Meeks [Tue, 13 Apr 2004 11:39:41 +0000 (11:39 +0000)]
2004-04-13  Michael Meeks  <michael@ximian.com>

* test/glib/Makefile.am: use the absolute path so the bus
daemon's chdir ("/") doesn't kill us dead.

* configure.in: subst ABSOLUTE_TOP_BUILDDIR

20 years ago2004-04-12 Jon Trowbridge <trow@ximian.com>
Jon Trowbridge [Tue, 13 Apr 2004 01:37:57 +0000 (01:37 +0000)]
2004-04-12  Jon Trowbridge  <trow@ximian.com>

    * bus/config-parser.c (struct BusConfigParser): Added
    included_files field.
    (seen_include): Added.  Checks whether or not a file has already
    been included by any parent BusConfigParser.
    (bus_config_parser_new): Copy the parent's included_files.
    (include_file): Track which files have been included, and fail on
    circular inclusions.
    (process_test_valid_subdir): Changed printf to report if we are
    testing valid or invalid conf files.
    (all_are_equiv): Changed printf to be a bit clearer about
    what we are actually doing.
    (bus_config_parser_test): Test invalid configuration files.

20 years ago2004-04-09 Jon Trowbridge <trow@ximian.com>
Jon Trowbridge [Fri, 9 Apr 2004 19:50:29 +0000 (19:50 +0000)]
2004-04-09  Jon Trowbridge  <trow@ximian.com>

    * bus/config-parser.c (bus_config_parser_new): Added a 'parent'
    argument.  If non-null, the newly-constructed BusConfigParser will
    be initialized with the parent's BusLimits instead of the default
    values.
    (include_file): When including a config file, pass in
    the current parser as the parent and then copy the BusLimits
    from the included BusConfigParser pack to the current parser.
    (process_test_valid_subdir): Renamed from process_test_subdir.
    (process_test_equiv_subdir): Added.  Walks through a directory,
    descending into each subdirectory and loading the config files
    it finds there.  If any subdirectory contains two config files
    that don't produce identical BusConfigParser structs, fail.
    For now, the BusConfigParser's BusPolicies are not compared.
    (bus_config_parser_test): Call both process_test_valid_subdir and
    process_test_equiv_subdir.

    * bus/config-loader-libxml.c (bus_config_load): Take a parent
    argument and pass it along to the call to bus_config_parser_new.
    Also made a few small changes to allow this code to compile.

    * bus/config-loader-expat.c (bus_config_load): Take a parent
    argument and pass it along to the call to bus_config_parser_new.

    * bus/bus.c (bus_context_new): Load the config file
    with a NULL parent argument.

20 years agoMade proxy DLL names unique
Owen Fraser-Green [Sat, 3 Apr 2004 22:00:40 +0000 (22:00 +0000)]
Made proxy DLL names unique

20 years agohush
Michael Meeks [Mon, 29 Mar 2004 20:03:23 +0000 (20:03 +0000)]
hush

20 years ago2004-03-29 Michael Meeks <michael@ximian.com>
Michael Meeks [Mon, 29 Mar 2004 13:24:50 +0000 (13:24 +0000)]
2004-03-29  Michael Meeks  <michael@ximian.com>

* glib/dbus-gobject.c (set_object_property): split out /
re-work, use the property type, and not the message type(!)
(get_object_property): ditto.

        * glib/dbus-gvalue.c (dbus_gvalue_demarshal),
(dbus_gvalue_marshal): make this code re-usable, needed
for signals too, also on both proxy and server side.
Re-write for more efficiency / readability.

20 years ago2004-03-29 Michael Meeks <michael@ximian.com>
Michael Meeks [Mon, 29 Mar 2004 13:11:05 +0000 (13:11 +0000)]
2004-03-29  Michael Meeks  <michael@ximian.com>

* dbus/dbus-message.c
(dbus_message_new_error_printf): impl.

* dbus/dbus-connection.c
(dbus_connection_unregister_object_path): fix warning.

* configure.in: fix no-mono-installed situation.

20 years agohush.
Michael Meeks [Mon, 29 Mar 2004 12:50:45 +0000 (12:50 +0000)]
hush.

20 years ago2004-03-27 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Sat, 27 Mar 2004 05:29:31 +0000 (05:29 +0000)]
2004-03-27  Havoc Pennington  <hp@redhat.com>

Patch from Timo Teräs:

* tools/dbus-send.c (main): if --print-reply, assume type is
method call; support boolean type args

* dbus/dbus-connection.c (dbus_connection_send_with_reply): fix a
bunch of memleak and logic bugs

20 years agoAdded signal support.
Owen Fraser-Green [Fri, 26 Mar 2004 15:25:59 +0000 (15:25 +0000)]
Added signal support.

20 years agoAdded support for enumerations with marshalling to/from their underlying system type...
Owen Fraser-Green [Thu, 25 Mar 2004 14:04:43 +0000 (14:04 +0000)]
Added support for enumerations with marshalling to/from their underlying system type (Byte, Int32, UInt32, Int64, UInt64)

20 years agoModified to support char type.
Owen Fraser-Green [Wed, 24 Mar 2004 17:02:08 +0000 (17:02 +0000)]
Modified to support char type.

20 years agoFixed bug preventing creating multiple proxy objects of the same type.
Owen Fraser-Green [Wed, 24 Mar 2004 14:42:41 +0000 (14:42 +0000)]
Fixed bug preventing creating multiple proxy objects of the same type.

20 years agoMade all DBusTypes take Service in the constructor because Array also needed it in...
Owen Fraser-Green [Wed, 24 Mar 2004 13:15:20 +0000 (13:15 +0000)]
Made all DBusTypes take Service in the constructor because Array also needed it in the case of an array of OBJECT_PATH objects.

20 years agoChanged Suits method to not look recursively for Interface attributes
Owen Fraser-Green [Wed, 24 Mar 2004 10:28:15 +0000 (10:28 +0000)]
Changed Suits method to not look recursively for Interface attributes

20 years agoAdded InterfaceProxy to Mono bindings to avoid having to generate a proxy for every...
Owen Fraser-Green [Tue, 23 Mar 2004 18:07:48 +0000 (18:07 +0000)]
Added InterfaceProxy to Mono bindings to avoid having to generate a proxy for every registered object. Also added object_path functions to dbus-message.

20 years agoAdded dbus-sharp.pc generation
Owen Fraser-Green [Tue, 23 Mar 2004 12:27:16 +0000 (12:27 +0000)]
Added dbus-sharp.pc generation

20 years agoFirst checkin of the Mono bindings.
Owen Fraser-Green [Tue, 23 Mar 2004 12:10:32 +0000 (12:10 +0000)]
First checkin of the Mono bindings.

20 years ago2004-03-21 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Sun, 21 Mar 2004 16:26:56 +0000 (16:26 +0000)]
2004-03-21  Havoc Pennington  <hp@redhat.com>

* test/test-service.c (main): remove debug spew

20 years ago* dbus/dbus-marshal.c (_dbus_marshal_validate_arg): accept empty
Olivier Andrieu [Sun, 21 Mar 2004 13:42:23 +0000 (13:42 +0000)]
* dbus/dbus-marshal.c (_dbus_marshal_validate_arg): accept empty
arrays

* dbus/dbus-message.h, bus/dbus-message.c (dbus_message_iter_init)
(dbus_message_iter_init_array_iterator)
(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
warnings

20 years ago2004-03-19 Havoc Pennington <hp@redhat.com> dbus-0.21
Havoc Pennington [Fri, 19 Mar 2004 22:36:31 +0000 (22:36 +0000)]
2004-03-19  Havoc Pennington  <hp@redhat.com>

* NEWS: 0.21 updates

* configure.in: 0.21

* doc/Makefile.am: add all XMLTO usage to DBUS_XML_DOCS_ENABLED

* python/Makefile.am: change to avoid dist of dbus_bindings.c so
you don't need pyrex to make dist

* qt/Makefile.am (libdbus_qt_1_la_SOURCES): add integrator.h to
sources; run moc

20 years ago2004-03-18 Richard Hult <richard@imendio.com>
Richard Hult [Thu, 18 Mar 2004 11:10:59 +0000 (11:10 +0000)]
2004-03-18  Richard Hult  <richard@imendio.com>

* dbus/dbus-message.c (dbus_message_get_auto_activation)
(dbus_message_set_auto_activation): Add doxygen docs.

20 years ago2004-03-16 Richard Hult <richard@imendio.com>
Richard Hult [Tue, 16 Mar 2004 18:00:35 +0000 (18:00 +0000)]
2004-03-16  Richard Hult  <richard@imendio.com>

* bus/activation.c: (bus_activation_service_created),
(bus_activation_send_pending_auto_activation_messages),
(bus_activation_activate_service):
* bus/activation.h:
* bus/dispatch.c: (bus_dispatch),
(check_nonexistent_service_auto_activation),
(check_service_auto_activated),
(check_segfault_service_auto_activation),
(check_existent_service_auto_activation), (bus_dispatch_test):
* bus/driver.c: (bus_driver_handle_activate_service):
* bus/services.c: (bus_registry_acquire_service):
* dbus/dbus-message.c: (dbus_message_set_auto_activation),
(dbus_message_get_auto_activation):
* dbus/dbus-message.h:
* dbus/dbus-protocol.h: Implement auto-activation.

20 years ago2004-03-12 Olivier Andrieu <oliv__a@users.sourceforge.net>
Olivier Andrieu [Fri, 12 Mar 2004 14:18:35 +0000 (14:18 +0000)]
2004-03-12  Olivier Andrieu  <oliv__a@users.sourceforge.net>

* dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos):
fix a bug with CUSTOM types.

* dbus/dbus-message.c (message_iter_test, _dbus_message_test): add
a unit test for this bug (used to fail).

20 years ago2004-03-12 Mikael Hallendal <micke@imendio.com>
Mikael Hallendal [Fri, 12 Mar 2004 14:15:14 +0000 (14:15 +0000)]
2004-03-12  Mikael Hallendal  <micke@imendio.com>

* bus/activation.c:
(babysitter_watch_callback): notify all pending activations waiting for
  the same exec that the activation failed.
(bus_activation_activate_service): shortcut the activation if we
  already waiting for the same executable to start up.

20 years ago2004-03-12 Mikael Hallendal <micke@imendio.com>
Mikael Hallendal [Fri, 12 Mar 2004 14:07:16 +0000 (14:07 +0000)]
2004-03-12  Mikael Hallendal  <micke@imendio.com>

* bus/activation.c:
- Added service file reloading.
  Each service files directory is kept in an hash table in
  BusActivation and each BusActivationEntry knows what .service-file it
  was read from. So when you try to activate a service the bus will
  check if it's been updated, removed or if new .service-files has
  been installed.
- Test code at the bottom for the service file reloading.
* bus/test-main.c: (main):
* bus/test.h:
- added service reloading test.
* dbus/dbus-sysdeps.c:
* dbus/dbus-sysdeps.h: (_dbus_delete_directory): Added.

20 years ago2004-03-08 Michael Meeks <michael@ximian.com>
Michael Meeks [Mon, 8 Mar 2004 10:59:20 +0000 (10:59 +0000)]
2004-03-08  Michael Meeks  <michael@ximian.com>

* dbus/dbus-connection.c (_dbus_connection_block_for_reply):
bail immediately if disconnected, to avoid busy loop.

20 years ago2004-03-08 Michael Meeks <michael@ximian.com>
Michael Meeks [Mon, 8 Mar 2004 10:29:16 +0000 (10:29 +0000)]
2004-03-08  Michael Meeks  <michael@ximian.com>

* dbus/dbus-message.c (dbus_message_iter_get_args_valist):
cleanup cut/paste/inefficiency.

20 years ago2004-03-01 David Zeuthen <david@fubar.dk>
David Zeuthen [Fri, 5 Mar 2004 14:05:33 +0000 (14:05 +0000)]
2004-03-01  David Zeuthen  <david@fubar.dk>

* dbus/dbus-string.c (_dbus_string_append_printf_valist): Fix a
bug where args were used twice. This bug resulted in a segfault
on a Debian/PPC system when starting the messagebus daemon. Include
dbus-sysdeps.h for DBUS_VA_COPY

* dbus/dbus-sysdeps.h: Define DBUS_VA_COPY if neccessary. From GLib

* configure.in: Check for va_copy; define DBUS_VA_COPY to the
appropriate va_copy implementation. From GLib

20 years ago2004-02-24 Joe Shaw <joe@ximian.com>
Joe Shaw [Tue, 24 Feb 2004 19:50:25 +0000 (19:50 +0000)]
2004-02-24  Joe Shaw  <joe@ximian.com>

* bus/services.c (bus_registry_acquire_service): We need to pass
in the service name to dbus_set_error() to prevent a crash.

20 years agothingies
Zack Rusin [Wed, 28 Jan 2004 03:33:44 +0000 (03:33 +0000)]
thingies

20 years agoSlightily modified patch from Alex (blarf). I'll have to rething the access
Zack Rusin [Mon, 26 Jan 2004 07:46:55 +0000 (07:46 +0000)]
Slightily modified patch from Alex (blarf). I'll have to rething the access
to dbus internals from the wrappers.

20 years ago2003-12-26 Anders Carlsson <andersca@gnome.org>
Anders Carlsson [Fri, 26 Dec 2003 21:41:22 +0000 (21:41 +0000)]
2003-12-26  Anders Carlsson  <andersca@gnome.org>

* AUTHORS: Reveal my True identity.

20 years ago2003-12-17 Mikael Hallendal <micke@imendio.com>
Mikael Hallendal [Wed, 17 Dec 2003 12:24:33 +0000 (12:24 +0000)]
2003-12-17  Mikael Hallendal  <micke@imendio.com>

* dbus/dbus-message.c: (dbus_message_append_args_valist):
- Added case for DBUS_TYPE_BYTE, patch from Johan Hedberg.

20 years ago2003-12-13 Mikael Hallendal <micke@imendio.com>
Mikael Hallendal [Sat, 13 Dec 2003 14:30:37 +0000 (14:30 +0000)]
2003-12-13  Mikael Hallendal  <micke@imendio.com>

* doc/TODO: Added not about better error check of configuration files.

20 years ago2003-12-02 Richard Hult <richard@imendio.com>
Richard Hult [Tue, 2 Dec 2003 10:44:22 +0000 (10:44 +0000)]
2003-12-02  Richard Hult  <richard@imendio.com>

* Update AFL version to 2.0 throughout the source files to reflect
the update that was done a while ago.

20 years ago2003-12-02 Richard Hult <richard@imendio.com>
Richard Hult [Tue, 2 Dec 2003 10:33:35 +0000 (10:33 +0000)]
2003-12-02  Richard Hult  <richard@imendio.com>

* dbus/dbus-message.c (dbus_message_iter_append_dict): Set
wrote_dict_key to FALSE on the iter that the dict is appended to,
just like when appending other types. Fixes a bug where a dict
couldn't be put inside a dict.
(dbus_message_iter_append_dict_key): Fix typo in warning message.
(message_iter_test, _dbus_message_test): Add test case for dict
inside dict.

20 years ago2003-12-01 David Zeuthen <david@fubar.dk>
David Zeuthen [Mon, 1 Dec 2003 20:49:53 +0000 (20:49 +0000)]
2003-12-01  David Zeuthen  <david@fubar.dk>

* python/dbus.py: Add the actual message when calling the reciever
of a signal such that parameters can be inspected. Add the method
remove_signal_receiver

20 years ago2003-11-26 Mikael Hallendal <micke@imendio.com>
Mikael Hallendal [Thu, 27 Nov 2003 01:25:50 +0000 (01:25 +0000)]
2003-11-26  Mikael Hallendal  <micke@imendio.com>

* bus/*.[ch]:
* dbus/*.[ch]:
* glib/*.[ch]: Made ref functions return the pointer

20 years agoAdding DBusServer wrapper. Switching some thingies, looking pretty and
Zack Rusin [Tue, 25 Nov 2003 15:30:03 +0000 (15:30 +0000)]
Adding DBusServer wrapper. Switching some thingies, looking pretty and
being cool... Anyway, we're done at a very basic level. I have to go back
to something else now, but i'll try to commit an example sometime soon.

20 years agoAs changelog says. Integration is pretty much there, so dbus should at least
Zack Rusin [Mon, 24 Nov 2003 19:11:55 +0000 (19:11 +0000)]
As changelog says. Integration is pretty much there, so dbus should at least
use Qt for timeouts and watches comfortably now.

20 years agoUpdating changelog.
Zack Rusin [Mon, 24 Nov 2003 05:58:01 +0000 (05:58 +0000)]
Updating changelog.
What sucks is the lack of automatic moc file creation in the configuration
system. Someone needs to copy over some of ours admin dir (and knowing life
that's probably going to be me).

20 years agoSeperating integration with D-BUS from Connection to the internal Integrator
Zack Rusin [Mon, 24 Nov 2003 05:21:12 +0000 (05:21 +0000)]
Seperating integration with D-BUS from Connection to the internal Integrator
class. I simply hated the interfaces in the public Connection when it
had to contain a bunch of friends and protected members that were never
really meant to be seen.

20 years ago"Zack, you're not updating ChangeLog"... Only because I chose not to and not
Zack Rusin [Sun, 23 Nov 2003 20:58:16 +0000 (20:58 +0000)]
"Zack, you're not updating ChangeLog"... Only because I chose not to and not
because i forgot.
It was a political statemant rising awerness of the fact that our ozone
layer is getting thiner. Glad you're with me on that one.

20 years agoCoding on dbus is like christmas. Just without christmas tree, presents, santa
Zack Rusin [Sun, 23 Nov 2003 20:41:23 +0000 (20:41 +0000)]
Coding on dbus is like christmas. Just without christmas tree, presents, santa
clause, shopping, food, cookies, carrols, eggs, bunnies, trick or treating,
smoking crack... I don't quite remember where I was going with this
but we're getting closer.

20 years ago1) switching d-pointer names to just Private
Zack Rusin [Sun, 23 Nov 2003 08:35:48 +0000 (08:35 +0000)]
1) switching d-pointer names to just Private
2) starting workin on the connection binding
3) trying to find clean socks,
committing the first two, the third one is hopeless

20 years agoHappy birthday to me, happy birthday to me... Well, it's not really
Zack Rusin [Sun, 23 Nov 2003 08:20:47 +0000 (08:20 +0000)]
Happy birthday to me, happy birthday to me... Well, it's not really
my birthday, but it will be in like 8 months and for such a huge celebration
I want to start preparing rather early.
The marshelling in Message is crap (not the good kind of crap either). I'm
not yet sure how we'll handle the transition from dcop but for now lets
at least make it sane api wise.

20 years agoMatch kde schematics
Zack Rusin [Sun, 23 Nov 2003 08:07:04 +0000 (08:07 +0000)]
Match kde schematics

20 years agothanksgiving break, lets start working on those bindings.
Zack Rusin [Sun, 23 Nov 2003 08:02:38 +0000 (08:02 +0000)]
thanksgiving break, lets start working on those bindings.

20 years ago2003-11-19 Havoc Pennington <hp@redhat.com> dbus-0.20
Havoc Pennington [Wed, 19 Nov 2003 21:51:09 +0000 (21:51 +0000)]
2003-11-19  Havoc Pennington  <hp@redhat.com>

* NEWS: update

        * configure.in: bump version to 0.20

* configure.in (have_qt): add yet another place to look for qt
(someone hand trolltech a .pc file...)

20 years ago2003-11-01 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Sat, 1 Nov 2003 18:24:32 +0000 (18:24 +0000)]
2003-11-01  Havoc Pennington  <hp@redhat.com>

* doc/dbus-specification.xml: add state machine docs on the auth
protocol; just a first draft, I'm sure it's wrong.

20 years ago2003-10-28 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Wed, 29 Oct 2003 00:29:52 +0000 (00:29 +0000)]
2003-10-28  Havoc Pennington  <hp@redhat.com>

* dbus/dbus-message.c (get_next_field): delete unused function

20 years ago2003-10-28 David Zeuthen <david@fubar.dk>
David Zeuthen [Wed, 29 Oct 2003 00:06:07 +0000 (00:06 +0000)]
2003-10-28  David Zeuthen  <david@fubar.dk>

        * python/dbus_bindings.pyx.in: add get_dict to handle dictionaries
        return types. Fixup TYPE_* to reflect changes in dbus/dbus-protocol.h

20 years ago2003-10-28 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Tue, 28 Oct 2003 23:51:24 +0000 (23:51 +0000)]
2003-10-28  Havoc Pennington  <hp@redhat.com>

* bus/expirelist.c (do_expiration_with_current_time): detect
failure of the expire_func due to OOM

* bus/connection.c (bus_pending_reply_expired): return FALSE on OOM

* bus/dispatch.c (check_send_exit_to_service): fix to handle the
NoReply error that's now created by the bus when the service exits

20 years ago2003-10-28 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Tue, 28 Oct 2003 22:53:36 +0000 (22:53 +0000)]
2003-10-28  Havoc Pennington  <hp@redhat.com>

* dbus/dbus-message.c (_dbus_message_test): enable and fix the
tests for set_path, set_interface, set_member, etc.

* dbus/dbus-string.c (_dbus_string_insert_bytes): allow 0 bytes

* dbus/dbus-message.c (set_string_field): always just delete and
re-append the field; accept NULL for deletion
(re_align_fields_recurse): reimplement

20 years ago2003-10-26 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Sun, 26 Oct 2003 15:36:15 +0000 (15:36 +0000)]
2003-10-26  Havoc Pennington  <hp@redhat.com>

* dbus/dbus-connection.c: fix docs to properly describe the
disconnected message
(_dbus_connection_notify_disconnected): remove this function;
we can't synchronously add the disconnected message, we have to
do it after we've queued any remaining real messages
(_dbus_connection_get_dispatch_status_unlocked): queue the
disconnect message only if the transport has finished queueing all
its real messages and is disconnected.
(dbus_connection_disconnect): update the dispatch status here

20 years ago2003-10-22 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Wed, 22 Oct 2003 16:01:08 +0000 (16:01 +0000)]
2003-10-22  Havoc Pennington  <hp@redhat.com>

* bus/bus.c (bus_context_check_security_policy): fix up assertion

* bus/connection.c (bus_transaction_send_from_driver): set the
destination to the connection's base service

20 years agoadd missing file
Havoc Pennington [Tue, 21 Oct 2003 14:05:19 +0000 (14:05 +0000)]
add missing file

20 years ago2003-10-20 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Tue, 21 Oct 2003 05:46:52 +0000 (05:46 +0000)]
2003-10-20  Havoc Pennington  <hp@redhat.com>

        hmm, make check is currently not passing.

* doc/dbus-specification.xml: add requirement that custom type
names follow the same rules as interface names.

* dbus/dbus-protocol.h: change some of the byte codes, to avoid
duplication and allow 'c' to be 'custom'; dict is now 'm' for
'map'

* doc/dbus-specification.xml: update type codes to match
dbus-protocol.h, using the ASCII byte values. Rename type NAMED to
CUSTOM. Add type OBJECT_PATH to the spec.

2003-10-17  Havoc Pennington  <hp@redhat.com>

* bus/driver.c (create_unique_client_name): use "." as separator
in base service names instead of '-'

* dbus/dbus-string.c (_dbus_string_get_byte): allow getting nul
byte at the end of the string

* dbus/dbus-internals.h (_DBUS_LIKELY, _DBUS_UNLIKELY): add
optimization macros since string validation seems to be a slow
point.

* doc/dbus-specification.xml: restrict valid
service/interface/member/error names. Add test suite code for the
name validation.

* dbus/dbus-string.c: limit service/interface/member/error names
to [0-9][A-Z][a-z]_

* dbus/dbus-connection.c (dbus_connection_dispatch): add missing
format arg to verbose spew

* glib/dbus-gproxy.c (dbus_gproxy_call_no_reply): if not out of
memory, return instead of g_error

* test/test-service.c (path_message_func): support emitting a
signal on request

* dbus/dbus-bus.c (init_connections_unlocked): only fill in
activation bus type if DBUS_BUS_ACTIVATION was set; default to
assuming the activation bus was the session bus so that services
started manually will still register.
(init_connections_unlocked): fix so that in OOM situation we get
the same semantics when retrying the function

* test/test-service.c (main): change to use path registration, to
test those codepaths; register with DBUS_BUS_ACTIVATION rather
than DBUS_BUS_SESSION

20 years ago2003-10-16 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Fri, 17 Oct 2003 16:23:19 +0000 (16:23 +0000)]
2003-10-16  Havoc Pennington  <hp@redhat.com>

* glib/dbus-gtest-main.c: bracket with #ifdef DBUS_BUILD_TESTS

* Makefile.am (GCOV_DIRS): remove "test", we don't care about test
coverage of the tests
(coverage-report.txt): don't move the .da and .bbg files around

20 years ago2003-10-16 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Thu, 16 Oct 2003 06:43:32 +0000 (06:43 +0000)]
2003-10-16  Havoc Pennington  <hp@redhat.com>

* bus/bus.c (struct BusContext): remove struct field I didn't mean
to put there

20 years ago2003-10-16 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Thu, 16 Oct 2003 06:34:51 +0000 (06:34 +0000)]
2003-10-16  Havoc Pennington  <hp@redhat.com>

* 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_PRINT_BACKTRACE is set

* 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
DBUS_ACTIVATION_ADDRESS instead

* 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
DBUS_MESSAGE_TYPE_ERROR

* 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.

20 years ago2003-10-14 David Zeuthen <david@fubar.dk>
David Zeuthen [Wed, 15 Oct 2003 21:25:13 +0000 (21:25 +0000)]
2003-10-14  David Zeuthen  <david@fubar.dk>

        * python/dbus_bindings.pyx.in (MessageIter.get): fixed typo in
        argtype to arg_type when raising unknown arg type exception.
        Changed type list to reflect the changes in dbus-protocol.h so
        the bindings actually work.

20 years ago2003-10-14 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Wed, 15 Oct 2003 21:09:40 +0000 (21:09 +0000)]
2003-10-14  Havoc Pennington  <hp@redhat.com>

* test/decode-gcov.c: support gcc 3.3 also, though gcc 3.3 seems
to have a bug keeping it from outputting the .da files sometimes
(string_get_string): don't append garbage nul bytes to the string.

20 years agoFix makefile.am
Seth Nickell [Wed, 15 Oct 2003 11:56:12 +0000 (11:56 +0000)]
Fix makefile.am

20 years ago2003-10-15 Seth Nickell <seth@gnome.org>
Seth Nickell [Wed, 15 Oct 2003 11:55:38 +0000 (11:55 +0000)]
2003-10-15  Seth Nickell  <seth@gnome.org>

* python/Makefile.am:

Include dbus_h_wrapper.h in the dist tarball.

20 years ago2003-10-14 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Tue, 14 Oct 2003 22:16:03 +0000 (22:16 +0000)]
2003-10-14  Havoc Pennington  <hp@redhat.com>

* bus/bus.c (bus_context_check_security_policy): revamp this to
work more sanely with new policy-based requested reply setup

* bus/connection.c (bus_transaction_send_from_driver): set bus
driver messages as no reply

* bus/policy.c (bus_client_policy_check_can_receive): handle a
requested_reply attribute on allow/deny rules

* bus/system.conf: add <allow requested_reply="true"/>

* bus/driver.c (bus_driver_handle_message): fix check for replies
sent to the bus driver, which was backward. How did this ever work
at all though? I think I'm missing something.

* dbus/dbus-message.c (decode_header_data): require error and
method return messages to have a reply serial field to be valid
(_dbus_message_loader_queue_messages): break up this function;
validate that reply serial and plain serial are nonzero;
clean up the OOM/error handling.
(get_uint_field): don't return -1 from this
(dbus_message_create_header): fix signed/unsigned bug

* bus/connection.c (bus_connections_expect_reply): save serial of
the incoming message, not reply serial

20 years ago - the pending reply tracking isn't quite right. It currently simply
Havoc Pennington [Tue, 14 Oct 2003 05:22:22 +0000 (05:22 +0000)]
 - the pending reply tracking isn't quite right. It currently simply
   blocks any reply if one wasn't pending. Instead, it needs to
   allow any reply if one was pending, and block otherwise.
   Suggest changing the check_reply() call to just get a boolean
   was_pending_reply value, pass that in to the policy
   engine, and allow <allow>/<deny> elements to match based on
   whether it was a pending reply.

20 years ago2003-10-14 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Tue, 14 Oct 2003 05:16:56 +0000 (05:16 +0000)]
2003-10-14  Havoc Pennington  <hp@redhat.com>

* bus/connection.c: implement pending reply tracking using
BusExpireList

* bus/bus.c (bus_context_check_security_policy): verify that a
reply is pending in order to allow a reply to be sent. Deny
messages of unknown type.

* bus/dbus-daemon-1.1.in: update to mention new resource limits

* bus/bus.c (bus_context_get_max_replies_per_connection): new
(bus_context_get_reply_timeout): new

20 years ago2003-10-13 Seth Nickell <seth@gnome.org>
Seth Nickell [Mon, 13 Oct 2003 23:07:34 +0000 (23:07 +0000)]
2003-10-13  Seth Nickell  <seth@gnome.org>

* python/Makefile.am:

Pass "make distcheck": remove a couple files from DIST_FILES
that weren't included in the final version.

20 years agomy cvs add fu is really bad lately...
Havoc Pennington [Sun, 12 Oct 2003 15:35:23 +0000 (15:35 +0000)]
my cvs add fu is really bad lately...

20 years ago2003-10-12 Havoc Pennington <hp@pobox.com>
Havoc Pennington [Sun, 12 Oct 2003 05:59:39 +0000 (05:59 +0000)]
2003-10-12  Havoc Pennington  <hp@pobox.com>

        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.

20 years ago2003-10-11 Havoc Pennington <hp@pobox.com>
Havoc Pennington [Sun, 12 Oct 2003 00:55:11 +0000 (00:55 +0000)]
2003-10-11  Havoc Pennington  <hp@pobox.com>

* test/decode-gcov.c (function_solve_graph): make broken block
graph a nonfatal error since it seems to be broken. Need to debug
this.

* dbus/dbus-marshal.c (_dbus_type_is_valid): new function since we
can't just check type > INVALID < LAST anymore

* dbus/dbus-message.c (dbus_message_get_signature): new function
(dbus_message_has_signature): new function
(struct DBusMessage): add signature field (right now it isn't sent
over the wire, just generated on the fly)
(dbus_message_copy): copy the signature, and init strings to
proper length to avoid some reallocs
(dbus_message_iter_init_array_iterator): return void, since it
can't fail
(dbus_message_iter_init_dict_iterator): return void since it can't fail
(_dbus_message_loader_queue_messages): add silly temporary hack to
fill in message->signature on load

* dbus/dbus-protocol.h: change DBUS_TYPE_* values to be ASCII
characters, so they are relatively human-readable.