platform/upstream/dbus.git
20 years agoRemove glib-sharp from Libs flag.
Owen Fraser-Green [Thu, 10 Jun 2004 12:55:28 +0000 (12:55 +0000)]
Remove glib-sharp from Libs flag.

20 years agoFixed typo for python/examples make
Owen Fraser-Green [Thu, 10 Jun 2004 12:13:39 +0000 (12:13 +0000)]
Fixed typo for python/examples make

20 years agoBumped required versions for mono
Owen Fraser-Green [Thu, 10 Jun 2004 12:10:13 +0000 (12:10 +0000)]
Bumped required versions for mono

20 years ago2004-06-09 Olivier Andrieu <oliv__a@users.sourceforge.net>
Olivier Andrieu [Wed, 9 Jun 2004 18:15:10 +0000 (18:15 +0000)]
2004-06-09  Olivier Andrieu  <oliv__a@users.sourceforge.net>

* bus/driver.c, dbus/dbus-bus.c: use BOOLEAN instead of UINT32 for
the reply value of the ServiceExists message.

20 years ago* Python bindings are updated to reflect C API changes which now
John (J5) Palmieri [Tue, 8 Jun 2004 02:35:44 +0000 (02:35 +0000)]
* Python bindings are updated to reflect C API changes which now
  accept plain path strings instead of an array of path elements.

20 years ago2004-06-07 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Mon, 7 Jun 2004 21:02:23 +0000 (21:02 +0000)]
2004-06-07  Havoc Pennington  <hp@redhat.com>

* doc/TODO: remove auto-activation item since it's done; sort
items by importance/milestone

20 years agoadd item about per-display activation
Havoc Pennington [Mon, 7 Jun 2004 20:48:33 +0000 (20:48 +0000)]
add item about per-display activation

20 years agosome clarifications
Havoc Pennington [Mon, 7 Jun 2004 20:07:43 +0000 (20:07 +0000)]
some clarifications

20 years ago2004-06-07 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Mon, 7 Jun 2004 19:27:51 +0000 (19:27 +0000)]
2004-06-07  Havoc Pennington  <hp@redhat.com>

* dbus/dbus-message-builder.c (_dbus_message_data_load): append
random signature when using REQUIRED_FIELDS (this hack won't work
in the long term)

* dbus/dbus-message.c: change the signature to be a header field,
instead of message->signature special-case string. Incremental
step forward. Then we can fix up code to send the signature in the
message, then fix up code to validate said signature, then fix up
code to not put the typecodes inline, etc.
(load_one_message): don't make up the signature after the fact
(decode_header_data): require signature field for the known
message types

* dbus/dbus-marshal.c (_dbus_marshal_string_len): new

* dbus/dbus-protocol.h: add DBUS_HEADER_FIELD_SIGNATURE

20 years agoChanges in-line with new object_path param changes. Also bumped required mono version...
Owen Fraser-Green [Mon, 7 Jun 2004 11:40:20 +0000 (11:40 +0000)]
Changes in-line with new object_path param changes. Also bumped required mono version and use new -pkg flag.

20 years ago2004-06-05 Olivier Andrieu <oliv__a@users.sourceforge.net>
Olivier Andrieu [Sat, 5 Jun 2004 16:32:00 +0000 (16:32 +0000)]
2004-06-05  Olivier Andrieu  <oliv__a@users.sourceforge.net>

* dbus/dbus-connection.h, dbus/dbus-connection.c: have object path
registration functions take the path argument as char* instead of
char**.

* dbus/dbus-marshal.h, dbus/dbus-marshal.c (_dbus_decompose_path):
split off the path decompostion part of
_dbus_demarshal_object_path. Some misc. fixes to silence compiler
warnings.

* glib/dbus-gobject.c, test/test-service.c: update accordingly.

20 years ago2004-06-02 Kristian Høgsberg <krh@redhat.com>
Kristian Høgsberg [Wed, 2 Jun 2004 14:03:58 +0000 (14:03 +0000)]
2004-06-02  Kristian Høgsberg  <krh@redhat.com>

* dbus/dbus-auth.c: Rewrite auth protocol handling to use a state
machine approach.  A state is implemented as a function that
handles incoming events as specified for that state.

* doc/dbus-specification.xml: Update auth protocol state machine
specification to match implementation.  Remove some leftover
base64 examples.

20 years ago2004-06-02 Kristian Høgsberg <krh@redhat.com>
Kristian Høgsberg [Wed, 2 Jun 2004 13:13:14 +0000 (13:13 +0000)]
2004-06-02  Kristian Høgsberg  <krh@redhat.com>

* glib/dbus-gproxy.c, glib/dbus-gmain.c, dbus/dbus-string.c,
dbus/dbus-object-tree.c, dbus/dbus-message.c: add comments to
quiet doxygen.

* Doxyfile.in: remove deprecated options.

* dbus/dbus-message-handler.c, dbus/dbus-message-handler.h,
glib/test-thread.h, glib/test-thread-client.c,
glib/test-thread-server.c, glib/test-profile.c,
glib/test-dbus-glib.c: remove these unused files.

20 years ago2004-06-01 Olivier Andrieu <oliv__a@users.sourceforge.net>
Olivier Andrieu [Tue, 1 Jun 2004 19:57:00 +0000 (19:57 +0000)]
2004-06-01  Olivier Andrieu  <oliv__a@users.sourceforge.net>

* dbus/dbus-object-tree.c
(_dbus_object_tree_dispatch_and_unlock): fix dispatch for
non-fallback handlers (bug #684).
(_dbus_object_subtree_new): initialize invoke_as_fallback field.
(find_subtree_recurse): report wether the returned subtree is an
exact match or a "fallback" match higher up in the tree.
(object_tree_test_iteration): update test case.

20 years agoadd a couple thoughts so I remember them
Havoc Pennington [Tue, 1 Jun 2004 13:58:57 +0000 (13:58 +0000)]
add a couple thoughts so I remember them

20 years agoUpdate .cvsignore files
Seth Nickell [Tue, 1 Jun 2004 06:16:13 +0000 (06:16 +0000)]
Update .cvsignore files

20 years ago2004-06-01 Seth Nickell <seth@gnome.org>
Seth Nickell [Tue, 1 Jun 2004 06:13:31 +0000 (06:13 +0000)]
2004-06-01  Seth Nickell  <seth@gnome.org>

* python/dbus_bindings.pyx.in:
* python/tests/test-client.py:

Round off basic type support. Add dicts (yay!), and
remaining array types.

Make MessageIter more general so it works for dicts too.

Mark all loop variables as C integers.

20 years ago2004-05-31 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Tue, 1 Jun 2004 03:02:26 +0000 (03:02 +0000)]
2004-05-31  Havoc Pennington  <hp@redhat.com>

* glib/dbus-gidl.c (method_info_add_arg): keep args sorted with
"in" before "out"

* glib/dbus-gobject.c (dbus_type_to_string): move to dbus-gutils.c

* glib/dbus-glib-tool.c (main): set up to have a --self-test
option that runs the tests, and start filling in some code
including for starters just dumping the interfaces to stdout

* glib/Makefile.am (INCLUDES): define DBUS_LOCALEDIR

* test/data/valid-introspection-files/lots-of-types.xml: test of
an example introspection file

* glib/dbus-gparser.c (parser_check_doctype): doctype should be
"node" (I think...)

20 years ago * python/dbus_bindings.pyx.in:
Seth Nickell [Tue, 1 Jun 2004 01:20:59 +0000 (01:20 +0000)]
* python/dbus_bindings.pyx.in:
* python/tests/test-client.py:

Test Suite: 1
Python Bindings: 0

(fix string array memory trashing bug... oops)

20 years ago2004-05-30 Seth Nickell <seth@gnome.org>
Seth Nickell [Sun, 30 May 2004 08:20:58 +0000 (08:20 +0000)]
2004-05-30  Seth Nickell  <seth@gnome.org>

* python/dbus.py:

Add a nicer-but-less-flexible alternate API for handling
calls to virtual objects in dbus.ObjectTree.

Screw up the argument order to the dbus.Object constructor
for consistency with dbus.ObjectTree (and to make dbus_methods
optional for future extension)

* python/examples/Makefile.am:
* python/examples/gconf-proxy-service.py:
* python/examples/gconf-proxy-service2.py:

Alternate implementation of gconf-proxy-service using the
nicer dbus.ObjectTree API.

* python/examples/example-service.py:
* python/tests/test-server.py

Reverse the argument order to deal with dbus.Object constructor
changes.

20 years ago2004-05-30 Seth Nickell <seth@gnome.org>
Seth Nickell [Sun, 30 May 2004 06:26:24 +0000 (06:26 +0000)]
2004-05-30  Seth Nickell  <seth@gnome.org>

* python/examples/example-client.py:
* python/examples/example-service.py:

Take it back. Lists seem to work but they're broken
in the test suite. Make the base examples use
lists (works fine).

20 years ago2004-05-30 Seth Nickell <seth@gnome.org>
Seth Nickell [Sun, 30 May 2004 06:21:00 +0000 (06:21 +0000)]
2004-05-30  Seth Nickell  <seth@gnome.org>

* python/dbus_bindings.pyx.in:
* python/tests/test-client.py:

Add some more tests and fix errors that crop up.
Unfortunately, currently it seems like marshalling
and unmarshalling of lists is completely broken :-(

20 years ago2004-05-30 Seth Nickell <seth@gnome.org>
Seth Nickell [Sun, 30 May 2004 05:30:09 +0000 (05:30 +0000)]
2004-05-30  Seth Nickell  <seth@gnome.org>

* python/dbus_bindings.pyx.in:

Add support for ObjectPath type.

* python/dbus.py:

Refactor message handling code to a common function.

* python/tests/test-client.py:
* python/tests/test-server.py:

Add tests that check to make sure values of all types
can be echoed from a service w/o mangling.

20 years ago2004-05-29 Seth Nickell <seth@gnome.org>
Seth Nickell [Sun, 30 May 2004 02:26:48 +0000 (02:26 +0000)]
2004-05-29  Seth Nickell  <seth@gnome.org>

* python/dbus.py:

Add ObjectTree class which allows implementation
of trees of "virtual" objects. Basically the python
wrapper for "register_fallback".

* python/examples/Makefile.am
* python/examples/gconf-proxy-client.py:
* python/examples/gconf-proxy-service.py:

Implement a simple GConf proxy service that supports
get/set on string and int GConf keys using the ObjectTree.

20 years ago2004-05-29 Seth Nickell <seth@gnome.org>
Seth Nickell [Sat, 29 May 2004 22:37:13 +0000 (22:37 +0000)]
2004-05-29  Seth Nickell  <seth@gnome.org>

* python/dbus.py:
* python/examples/example-client.py:
* python/examples/example-service.py:
* python/examples/list-system-services.py:

Add SessionBus, SystemBus and ActivationBus classes
so you don't need to know the special little BUS_TYPE
flag.

20 years ago2004-05-29 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Sat, 29 May 2004 04:17:17 +0000 (04:17 +0000)]
2004-05-29  Havoc Pennington  <hp@redhat.com>

* bus/config-parser.c (process_test_valid_subdir): temporarily
stop testing config parser OOM handling, since expat has issues
http://freedesktop.org/pipermail/dbus/2004-May/001153.html

* bus/dbus-daemon-1.1.in: change requested_reply to
send_requested_reply/receive_requested_reply so we can send the
replies, not just receive them.

* bus/config-parser.c: parse the new
send_requested_reply/receive_requested_reply

* bus/policy.c (bus_client_policy_check_can_send): add
requested_reply argument and use it

* bus/bus.c (bus_context_check_security_policy): pass through
requested_reply status to message send check

* bus/system.conf.in: adapt to requested_reply change

20 years ago2004-05-28 Havoc Pennington <hp@redhat.com>
Havoc Pennington [Fri, 28 May 2004 22:30:04 +0000 (22:30 +0000)]
2004-05-28  Havoc Pennington  <hp@redhat.com>

* test/glib/test-service-glib.c (main): remove unused variable

* glib/dbus-gidl.c (base_info_ref): fix a silly compiler warning

* dbus/dbus-auth.h (enum): remove AUTHENTICATED_WITH_UNUSED_BYTES
from the enum, no longer in use.

* dbus/dbus-sysdeps.h: include config.h so DBUS_VA_COPY actually
works right.

* dbus/dbus-message.c: add various _dbus_return_val_if_fail for
whether error_name passed in is a valid error name.

20 years ago* fix for TODO item:
John (J5) Palmieri [Fri, 28 May 2004 19:09:00 +0000 (19:09 +0000)]
* fix for TODO item:
 - the varargs dbus_message_get_args() needs to support OBJECT_PATH
   and OBJECT_PATH_ARRAY

20 years ago * python/examples/Makefile.am:
Seth Nickell [Fri, 28 May 2004 18:43:55 +0000 (18:43 +0000)]
* python/examples/Makefile.am:

Forget to add Makefile.am. Do not pass go.

20 years ago2004-05-28 Michael Meeks <michael@ximian.com>
Michael Meeks [Fri, 28 May 2004 13:10:36 +0000 (13:10 +0000)]
2004-05-28  Michael Meeks  <michael@ximian.com>

* glib/dbus-gvalue.c (dbus_gvalue_marshal, dbus_gvalue_demarshal):
fix no int64 case.

* dbus/dbus-string.c (_dbus_string_parse_basic_type): impl.

* dbus/dbus-message.c (_dbus_message_iter_get_basic_type),
(_dbus_message_iter_get_basic_type_array): impl.
drastically simplify ~all relevant _get methods to use these.
(_dbus_message_iter_append_basic_array),
(dbus_message_iter_append_basic): impl
drastically simplify ~all relevant _append methods to use these.

* dbus/dbus-message-builder.c (parse_basic_type)
(parse_basic_array, lookup_basic_type): impl.
(_dbus_message_data_load): prune scads of duplicate /
cut & paste coding.

* dbus/dbus-marshal.c (_dbus_demarshal_basic_type_array)
(_dbus_demarshal_basic_type): implement,
(demarshal_and_validate_len/arg): beef up debug.
(_dbus_marshal_basic_type, _dbus_marshal_basic_type_array): impl.

20 years ago * configure.in:
Seth Nickell [Fri, 28 May 2004 02:52:23 +0000 (02:52 +0000)]
* configure.in:
* python/Makefile.am:

Include the example python apps in the tarball.

* python/examples/list-system-services.py

Add a python new example that fetches the list of services
from the system bus.

20 years ago2004-05-27 Seth Nickell <seth@gnome.org>
Seth Nickell [Fri, 28 May 2004 02:16:11 +0000 (02:16 +0000)]
2004-05-27  Seth Nickell  <seth@gnome.org>

* python/dbus.py:
* python/dbus_bindings.pyx.in:

Fix failure to notify that a signal was not handled,
resulted in hung functions.

20 years agomonitor all types of messages
Colin Walters [Tue, 25 May 2004 18:02:17 +0000 (18:02 +0000)]
monitor all types of messages

20 years agoAdded UnregisterObject method.
Owen Fraser-Green [Sun, 23 May 2004 21:33:14 +0000 (21:33 +0000)]
Added UnregisterObject method.

20 years ago Patch from Timo Teräs <ext-timo.teras@nokia.com> (#614):
Kristian Høgsberg [Sun, 23 May 2004 18:09:46 +0000 (18:09 +0000)]
    Patch from Timo Teräs <ext-timo.teras@nokia.com> (#614):

        * dbus/dbus-message.c (dbus_message_iter_get_args_valist): Swap
        operands to && so we call dbus_message_iter_next () for the last
        argument also.

20 years ago2004-05-21 Olivier Andrieu <oliv__a@users.sourceforge.net>
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.

20 years ago * doc/TODO: Remove resolved items.
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.

20 years ago Patch from Jon Trowbridge <trow@ximian.com>:
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.

20 years ago - Perhaps the auth protocol should be able to negotiate a protocol
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.

20 years agoUpdated release instructions.
Owen Fraser-Green [Wed, 19 May 2004 21:12:55 +0000 (21:12 +0000)]
Updated release instructions.

20 years agoShhh...
Owen Fraser-Green [Tue, 18 May 2004 13:51:19 +0000 (13:51 +0000)]
Shhh...

20 years ago * dbus/dbus-auth.c (client_try_next_mechanism): Remove logic to
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.

20 years ago2004-05-18 Kristian Høgsberg <krh@redhat.com>
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().

20 years ago2004-05-17 Kristian Høgsberg <krh@redhat.com>
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.

20 years ago2004-05-17 Olivier Andrieu <oliv__a@users.sourceforge.net>
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.

20 years agoShhh...
Owen Fraser-Green [Sat, 15 May 2004 21:10:46 +0000 (21:10 +0000)]
Shhh...

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.