1. 31 Aug, 2003 1 commit
    • Havoc Pennington's avatar
      2003-08-30 Havoc Pennington <hp@pobox.com> · 5fd1e389
      Havoc Pennington authored
      	* test/data/valid-config-files/system.d/test.conf: change to
      	root for the user so warnings don't get printed
      
      	* dbus/dbus-message.c: add dbus_message_get_path,
      	dbus_message_set_path
      
      	* dbus/dbus-object-tree.c (do_test_dispatch): add test of
      	dispatching to a path
      
      	* dbus/dbus-string.c (_dbus_string_validate_path): add
      
      	* dbus/dbus-marshal.c (_dbus_demarshal_object_path): implement
      	(_dbus_marshal_object_path): implement
      
      	* dbus/dbus-protocol.h (DBUS_HEADER_FIELD_PATH): new header field
      	to contain the path to the target object
      	(DBUS_HEADER_FIELD_SENDER_SERVICE): rename
      	DBUS_HEADER_FIELD_SENDER to explicitly say it's the sender service
      5fd1e389
  2. 18 Aug, 2003 1 commit
    • Havoc Pennington's avatar
      2003-08-18 Havoc Pennington <hp@redhat.com> · 68a3c593
      Havoc Pennington authored
      	* dbus/dbus-hash.c (_dbus_hash_table_insert_two_strings): fix
      
      	* dbus/dbus-message.c (_dbus_message_loader_queue_messages): fix
      	dumb bug created earlier (wrong order of args to
      	decode_header_data())
      
      	* tools/dbus-send.c: port
      
      	* tools/dbus-print-message.c (print_message): port
      
              * test/data/*messages: port all messages over
      
              * dbus/dbus-message-builder.c: support including
      	message type
      
              * bus/driver.c: port over
      
      	* bus/dispatch.c: port over to new stuff
      
      	* dbus/dbus-connection.c (_dbus_connection_new_for_transport):
      	rename disconnect signal to "Disconnected"
      68a3c593
  3. 08 Apr, 2003 1 commit
    • Alexander Larsson's avatar
      2003-04-08 Alexander Larsson <alexl@redhat.com> · c5020ac8
      Alexander Larsson authored
      	Implemented recursive types, named types and new-style iters
      
      	* bus/driver.c:
      	* glib/test-thread-client.c: (thread_func):
      	* glib/test-thread-server.c: (handle_test_message):
      	* test/test-service.c: (handle_echo):
      	Update to new api
      
      	* dbus/Makefile.am:
      	* dbus/dbus-dict.c:
      	* dbus/dbus-dict.h:
      	* dbus/dbus.h
      	Remove DBusDict
      
      	* dbus/dbus-internals.c: (_dbus_type_to_string):
      	Update for new types.
      
      	* dbus/dbus-marshal.[ch]:
      	Implement recursive types and the new marshalling format.
      	Remove hardcoded dict marshalling.
      	Marshal named types.
      
      	* dbus/dbus-message-builder.c:
      	Add BYTE_ARRAY.
      	Remove references to old types
      
      	* dbus/dbus-message.[ch]:
      	New non-refcounted iter API that supports recursive iters.
      	Use iters for appending, including support for recursive
      	iters.
      	Add byte and named type support.
      	Update everything to new marshalling formats.
      	Add tests for new API.
      
      	* dbus/dbus-protocol.h:
      	Remove old array types.
      	Add types: BYTE, ARRAY, DICT, NAMED
      
      	* dbus/dbus-string.c:
      	* dbus/dbus-sysdeps.c:
      	Make parse_double locale safe.
      
      	* dbus/dbus-test-main.c:
      	Call setlocale.
      
      	* dbus/dbus-test.c:
      	Kill dict test
      
      	* doc/dbus-specification.sgml:
      	Update spec
      
      	* test/data/incomplete-messages/missing-body.message:
      	* test/data/invalid-messages/bad-boolean.message:
      	* test/data/invalid-messages/bad-boolean-array.message:
      	* test/data/invalid-messages/boolean-array-length-too-long.message-raw:
      	* test/data/invalid-messages/boolean-has-no-value.message-raw:
      	* test/data/invalid-messages/too-short-dict.message:
      	* test/data/valid-messages/dict-simple.message:
      	* test/data/valid-messages/dict.message:
      	* test/data/valid-messages/emptiness.message:
      	* test/data/valid-messages/lots-of-arguments.message:
      	* test/data/valid-messages/no-padding.message:
      	* test/data/valid-messages/recursive-types.message:
      	Add missing NAME fields
      	Fix up dicts & arrays
      
      	* test/data/invalid-messages/dict-with-nil-value.message:
      	Removed, this is not invalid anymore.
      
      	* test/data/valid-messages/recursive-types.message:
      	Add new test for deeply recursive types.
      c5020ac8
  4. 13 Mar, 2003 1 commit
    • Havoc Pennington's avatar
      2003-03-12 Havoc Pennington <hp@redhat.com> · 29560adc
      Havoc Pennington authored
              Mega-patch that gets the message bus daemon initially handling
      	out-of-memory. Work still needed. Also lots of random
      	moving stuff to DBusError instead of ResultCode.
      
      	* dbus/dbus-list.c (_dbus_list_length_is_one): new function
      
      	* dbus/dbus-connection.c
      	(dbus_connection_send_with_reply_and_block): use DBusError
      
      	* dbus/dbus-bus.c: adapt to API changes, make it use DBusError not
      	DBusResultCode
      
      	* dbus/dbus-connection.c (dbus_connection_send): drop the result
      	code here, as the only failure possible is OOM.
      
      	* bus/connection.c (bus_connection_disconnect):
      	rename bus_connection_disconnected as it's a notification only
      
      	* bus/driver.c (bus_driver_handle_acquire_service): don't free
      	"name" on get_args failure, should be done by get_args;
      	don't disconnect client for bad args, just return an error.
      	(bus_driver_handle_service_exists): ditto
      
      	* bus/services.c (bus_services_list): NULL-terminate returned array
      
      	* bus/driver.c (bus_driver_send_service_lost)
      	(bus_driver_send_service_acquired): send messages from driver to a
      	specific client to the client's unique name, not to the broadcast
      	service.
      
      	* dbus/dbus-message.c (decode_header_data): reject messages that
      	contain no name field
      	(_dbus_message_get_client_serial): rename to
      	dbus_message_get_serial and make public
      	(_dbus_message_set_serial): rename from set_client_serial
      	(_dbus_message_set_reply_serial): make public
      	(_dbus_message_get_reply_serial): make public
      
      	* bus/connection.c (bus_connection_foreach): allow stopping
      	iteration by returning FALSE from foreach function.
      
      	* dbus/dbus-connection.c (dbus_connection_send_preallocated)
      	(dbus_connection_free_preallocated_send)
      	(dbus_connection_preallocate_send): new API for sending a message
      	without possibility of malloc failure.
      	(dbus_connection_send_message): rename to just
      	dbus_connection_send (and same for whole function family)
      
      	* dbus/dbus-errors.c (dbus_error_free): make this reinit the error
      
      	* dbus/dbus-sysdeps.c (_dbus_exit): new function
      
      	* bus/activation.c: handle/return errors
      
      	* dbus/dbus-errors.h: add more DBUS_ERROR #define
      
      	* dbus/dbus-sysdeps.c (_dbus_directory_open) (_dbus_file_get_contents)
      	(_dbus_directory_get_next_file): use DBusError instead of DBusResultCode
      	(_dbus_result_from_errno): move to this file
      29560adc
  5. 10 Mar, 2003 1 commit
    • Anders Carlsson's avatar
      2003-03-10 Anders Carlsson <andersca@codefactory.se> · 799a3ff4
      Anders Carlsson authored
      	* dbus/dbus-marshal.c:
      	(_dbus_marshal_set_string):
      	Take a length argument so we can marshal the correct string
      	length.
      
      	(_dbus_marshal_dict), (_dbus_demarshal_dict),
      	(_dbus_marshal_get_arg_end_pos), (_dbus_marshal_validate_arg),
      	(_dbus_marshal_test):
      	* dbus/dbus-marshal.h:
      	Add support for marshalling and demarshalling dicts.
      
      	* dbus/dbus-message-builder.c: (_dbus_message_data_load):
      	Add support for TYPE DICT.
      
      	* dbus/dbus-message.c: (set_string_field):
      	Adjust header padding.
      
      	(dbus_message_append_args_valist), (dbus_message_append_dict),
      	(dbus_message_get_args_valist), (dbus_message_iter_get_arg_type),
      	(dbus_message_iter_get_dict), (_dbus_message_loader_return_buffer),
      	(check_message_handling), (check_have_valid_message):
      	* dbus/dbus-message.h:
      	Add functions for setting and getting dicts.
      
      	* dbus/dbus-protocol.h:
      	Add DBUS_TYPE_DICT.
      
      	* dbus/dbus.h:
      	Add dbus-dict.h
      
      	* doc/dbus-specification.sgml:
      	Add information about how dicts are marshalled.
      
      	* test/data/invalid-messages/dict-with-nil-value.message:
      	* test/data/invalid-messages/too-short-dict.message:
      	* test/data/valid-messages/dict-simple.message:
      	* test/data/valid-messages/dict.message:
      	Add sample messages containing dicts.
      799a3ff4
  6. 24 Feb, 2003 1 commit
    • Anders Carlsson's avatar
      2003-02-24 Anders Carlsson <andersca@codefactory.se> · c8769e0b
      Anders Carlsson authored
      	* dbus/dbus-internals.c: (_dbus_type_to_string):
      	* dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
      	(_dbus_marshal_validate_arg):
      	* dbus/dbus-message-builder.c: (_dbus_message_data_load):
      	* dbus/dbus-message.c: (dbus_message_append_args_valist),
      	(dbus_message_append_boolean), (dbus_message_append_boolean_array),
      	(dbus_message_get_args_valist), (dbus_message_iter_get_boolean),
      	(dbus_message_iter_get_int32), (dbus_message_iter_get_uint32),
      	(dbus_message_iter_get_double),
      	(dbus_message_iter_get_boolean_array), (message_iter_test):
      	* dbus/dbus-message.h:
      	* dbus/dbus-protocol.h:
      	* doc/dbus-specification.sgml:
      	* test/data/valid-messages/lots-of-arguments.message:
      	Add support for boolean and boolean array types.
      c8769e0b
  7. 21 Feb, 2003 1 commit
    • Anders Carlsson's avatar
      2003-02-21 Anders Carlsson <andersca@codefactory.se> · 92f7d50b
      Anders Carlsson authored
      	* dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
      	Make string arrays NULL-terminated.
      
      	* dbus/dbus-memory.c: (dbus_free_string_array):
      	* dbus/dbus-memory.h:
      	New function for freeing NULL-terminated string arrays.
      
      	* dbus/dbus-message-builder.c: (append_quoted_string),
      	(_dbus_message_data_load):
      	Add support for array types.
      
      	* dbus/dbus-message.c: (check_message_handling):
      	Add more types as test cases.
      
      	* dbus/dbus-sysdeps.c: (_dbus_string_parse_int),
      	(_dbus_string_parse_double):
      	Add the start offset to the end offset.
      
      	* test/data/valid-messages/lots-of-arguments.message:
      	New test message with lots of arguments.
      92f7d50b