Olivier Andrieu [Fri, 21 May 2004 09:05:20 +0000 (09:05 +0000)]
2004-05-21 Olivier Andrieu <oliv__a@users.sourceforge.net>
* dbus/dbus-object-tree.c
(_dbus_object_tree_list_registered_unlock, lookup_subtree): return
children even if the requested path isn't registered.
(object_tree_test_iteration): test object_tree_list_registered.
* configure.in: undefine HAVE_ABSTRACT_SOCKETS instead of defining
it to 0.
Kristian Høgsberg [Thu, 20 May 2004 19:47:36 +0000 (19:47 +0000)]
* doc/TODO: Remove resolved items.
* bus/expirelist.h (struct BusExpireList): remove unused n_items
field.
* bus/connection.c (bus_connections_expect_reply): Enforce the
per-connection limit on pending replies.
Kristian Høgsberg [Thu, 20 May 2004 18:45:16 +0000 (18:45 +0000)]
Patch from Jon Trowbridge <trow@ximian.com>:
* bus/main.c (setup_reload_pipe): Added. Creates a pipe and sets
up a watch that triggers a config reload when one end of the pipe
becomes readable.
(signal_handler): Instead of doing the config reload in our SIGHUP
handler, just write to the reload pipe and let the associated
watch handle the reload when control returns to the main loop.
* bus/driver.c (bus_driver_handle_reload_config): Added.
Implements a ReloadConfig method for requesting a configuration
file reload via the bus driver.
Havoc Pennington [Thu, 20 May 2004 02:30:10 +0000 (02:30 +0000)]
- Perhaps the auth protocol should be able to negotiate a protocol
version to the least-common-denominator between client and server?
Though in practice ever using this feature would be pretty tough,
since protocol probably modifies the API. But we could have it there
as a safety net.
Owen Fraser-Green [Wed, 19 May 2004 21:12:55 +0000 (21:12 +0000)]
Updated release instructions.
Owen Fraser-Green [Tue, 18 May 2004 13:51:19 +0000 (13:51 +0000)]
Shhh...
Kristian Høgsberg [Mon, 17 May 2004 23:34:55 +0000 (23:34 +0000)]
* dbus/dbus-auth.c (client_try_next_mechanism): Remove logic to
filter against auth->allowed_mechs; we only add allowed mechs in
record_mechanisms().
* dbus/dbus-auth-script.c (_dbus_auth_script_run): Add an
ALLOWED_MECHS to auth-script format so we can set the list of
allowed mechanisms.
* data/auth/client-out-of-mechanisms.auth-script: New test to
check client disconnects when it is out of mechanisms to try.
* dbus/dbus-auth.c (process_command): Remove check for lines
longer that 1 MB; we only buffer up maximum 16 kB.
* dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
dbus/dbus-auth-script.c, dbus/dbus-auth.c, dbus/dbus-auth.h:
Remove auth state AUTHENTICATED_WITH_UNUSED_BYTES, instead always
assume there might be unused bytes.
* dbus/dbus-auth.c (_dbus_auth_do_work): Remove check for
client-out-of-mechs, it is handled in process_reject(). Move check
for max failures to send_rejected(), as it's a server-only thing.
Kristian Høgsberg [Mon, 17 May 2004 23:09:37 +0000 (23:09 +0000)]
2004-05-18 Kristian Høgsberg <krh@redhat.com>
* dbus/dbus-auth.c: Factor out protocol reply code into functions
send_auth(), send_data(), send_rejected(), send_error(),
send_ok(), send_begin() and send_cancel().
Kristian Høgsberg [Mon, 17 May 2004 22:19:04 +0000 (22:19 +0000)]
2004-05-17 Kristian Høgsberg <krh@redhat.com>
Remove base64 encoding, replace with hex encoding. Original patch
from trow@ximian.com, added error handling.
* dbus/dbus-string.c (_dbus_string_base64_encode)
(_dbus_string_base64_decode): Remove.
(_dbus_string_hex_decode): Add end_return argument so we can
distinguish between OOM and invalid hex encoding.
(_dbus_string_test): Remove base64 tests and add test case for
invalid hex.
* dbus/dbus-keyring.c, dbus/dbus-auth-script.c, dbus/dbus-auth.c:
Replace base64 with hex.
* test/data/auth/invalid-hex-encoding.auth-script: New test case
for invalid hex encoded data in auth protocol.
Olivier Andrieu [Mon, 17 May 2004 09:43:24 +0000 (09:43 +0000)]
2004-05-17 Olivier Andrieu <oliv__a@users.sourceforge.net>
* dbus/dbus-connection.c (check_for_reply_unlocked): plug a memory
leak.
Owen Fraser-Green [Sat, 15 May 2004 21:10:46 +0000 (21:10 +0000)]
Shhh...
Owen Fraser-Green [Sat, 15 May 2004 19:31:12 +0000 (19:31 +0000)]
Various mono related changes to facilitate GAC support.
Owen Fraser-Green [Sat, 15 May 2004 13:24:00 +0000 (13:24 +0000)]
Fixed another typo! Grrrr...
Owen Fraser-Green [Sat, 15 May 2004 13:22:18 +0000 (13:22 +0000)]
Fixed typeo
Owen Fraser-Green [Sat, 15 May 2004 11:44:44 +0000 (11:44 +0000)]
Added mono documentation.
Owen Fraser-Green [Sat, 15 May 2004 11:37:59 +0000 (11:37 +0000)]
Added documentation directory
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
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
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
Havoc Pennington [Fri, 7 May 2004 22:45:15 +0000 (22:45 +0000)]
mention removing version number from daemon name
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
Harald Fernengel [Mon, 3 May 2004 17:08:00 +0000 (17:08 +0000)]
small compile fix
Owen Fraser-Green [Sun, 2 May 2004 16:15:52 +0000 (16:15 +0000)]
Removed test-dbus-sharp.exe from all target.
Owen Fraser-Green [Sat, 1 May 2004 19:59:58 +0000 (19:59 +0000)]
Handle empty iterators properly!
Owen Fraser-Green [Sat, 1 May 2004 19:56:27 +0000 (19:56 +0000)]
Handle empty iterators.
Owen Fraser-Green [Fri, 30 Apr 2004 16:02:53 +0000 (16:02 +0000)]
The Requires field didn't really work out.
Owen Fraser-Green [Fri, 30 Apr 2004 13:44:32 +0000 (13:44 +0000)]
Modified dbus-sharp.pc to include Libs and Requires field
Zack Rusin [Tue, 27 Apr 2004 05:35:01 +0000 (05:35 +0000)]
Committing Haralds stuff together with some of my backlog for connection.
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.
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.
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
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.
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.
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().
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.
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.
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.
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.
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
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.
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.
Owen Fraser-Green [Sat, 3 Apr 2004 22:00:40 +0000 (22:00 +0000)]
Made proxy DLL names unique
Michael Meeks [Mon, 29 Mar 2004 20:03:23 +0000 (20:03 +0000)]
hush
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.
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.
Michael Meeks [Mon, 29 Mar 2004 12:50:45 +0000 (12:50 +0000)]
hush.
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
Owen Fraser-Green [Fri, 26 Mar 2004 15:25:59 +0000 (15:25 +0000)]
Added signal support.
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)
Owen Fraser-Green [Wed, 24 Mar 2004 17:02:08 +0000 (17:02 +0000)]
Modified to support char 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.
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.
Owen Fraser-Green [Wed, 24 Mar 2004 10:28:15 +0000 (10:28 +0000)]
Changed Suits method to not look recursively for Interface attributes
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.
Owen Fraser-Green [Tue, 23 Mar 2004 12:27:16 +0000 (12:27 +0000)]
Added dbus-sharp.pc generation
Owen Fraser-Green [Tue, 23 Mar 2004 12:10:32 +0000 (12:10 +0000)]
First checkin of the Mono bindings.
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
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
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
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.
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.
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).
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.
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.
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.
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.
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
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.
Zack Rusin [Wed, 28 Jan 2004 03:33:44 +0000 (03:33 +0000)]
thingies
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.
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.
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.
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.
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.
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.
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
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
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.
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.
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).
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.
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.
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.
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
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.
Zack Rusin [Sun, 23 Nov 2003 08:07:04 +0000 (08:07 +0000)]
Match kde schematics
Zack Rusin [Sun, 23 Nov 2003 08:02:38 +0000 (08:02 +0000)]
thanksgiving break, lets start working on those bindings.
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...)
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.
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
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
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
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
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
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
Havoc Pennington [Tue, 21 Oct 2003 14:05:19 +0000 (14:05 +0000)]
add missing file
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
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
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
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.