1 2003-03-31 Havoc Pennington <hp@redhat.com>
3 * bus/main.c (main): fix up the command line arguments to be nicer
5 2003-03-31 Havoc Pennington <hp@redhat.com>
7 * dbus/Makefile.am (INCLUDES): use EXPANDED_LOCALSTATEDIR to
8 define DBUS_SYSTEM_BUS_PATH as we want to compile in the same
9 final location that lands in the config file
11 * bus/config-loader-expat.c (bus_config_load): fix type of
14 * doc/TODO: remove TODO item for dbus_bus_get()
16 * dbus/dbus-bus.c (bus_data_free): add missing lock/unlock
18 2003-03-31 Havoc Pennington <hp@pobox.com>
20 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_domain_socket)
21 (_dbus_transport_new_for_tcp_socket): these didn't need the "server"
22 argument since they are always client side
24 * dbus/dbus-server.c (dbus_server_get_address): new function
26 * bus/main.c (main): take the configuration file as an argument.
28 * test/data/valid-config-files/debug-allow-all.conf: new file to
29 use with dispatch.c tests for example
31 * bus/test-main.c (main): require test data dir
33 * bus/bus.c (bus_context_new): change this to take a
34 configuration file name as argument
36 * doc/config-file.txt (Elements): add <servicedir>
38 * bus/system.conf, bus/session.conf: new files
40 * dbus/dbus-bus.c (dbus_bus_get): look for system bus on
41 well-known socket if none set
43 * configure.in: create system.conf and session.conf
45 2003-03-30 Havoc Pennington <hp@pobox.com>
47 * bus/config-parser.c: hacking
49 * dbus/dbus-memory.c: don't use DBusList for the list of stuff
50 to shut down, since it could cause weirdness with the DBusList
53 * dbus/dbus-list.c (_dbus_list_test): add tests for the
54 link-oriented stack routines
55 (alloc_link): free the mempool if the first alloc from it fails
57 * dbus/dbus-mempool.c (struct DBusMemBlock): fix alignment issue
59 * dbus/dbus-string.c (UNICODE_VALID): sync new version of this
61 (_dbus_string_skip_white): new
63 * doc/config-file.txt (Elements): add <includedir>
65 2003-03-28 Havoc Pennington <hp@pobox.com>
67 * dbus/dbus-string.c (_dbus_string_copy_data_len)
68 (_dbus_string_copy_data): new functions
70 2003-03-28 Anders Carlsson <andersca@codefactory.se>
72 * dbus/dbus-bus.c: (bus_data_free), (dbus_bus_get):
79 2003-03-28 Havoc Pennington <hp@pobox.com>
81 * bus/test.c (bus_test_flush_bus): remove the sleep from here,
82 I think it may have just been superstition. Not sure.
84 * dbus/dbus-string.c (_dbus_string_base64_decode): catch some OOM
85 failures that were not being handled.
87 * dbus/dbus-auth.c (process_auth): fix a memleak in OOM handling
89 * dbus/dbus-memory.c: add ability to set number of mallocs in a
90 row that will fail on out-of-memory.
92 * dbus/dbus-internals.c (_dbus_test_oom_handling): convenience
93 function for testing out-of-memory handling.
95 * bus/config-loader-expat.c (memsuite): don't wrap the dbus
96 allocation functions, they do map exactly to the expat ones.
98 2003-03-27 Havoc Pennington <hp@redhat.com>
100 * bus/config-loader-libxml.c (bus_config_load): add another error
103 2003-03-26 Anders Carlsson <andersca@codefactory.se>
106 Add note about automatic service activation.
108 * doc/dbus-specification.sgml:
109 Rename the specification and clarify a few things.
111 2003-03-26 Anders Carlsson <andersca@codefactory.se>
114 * dbus/dbus-address.c:
116 * dbus/dbus-marshal.c:
117 * dbus/dbus-server-debug-pipe.c:
118 * dbus/dbus-transport-unix.c:
119 Fix documentation warnings.
121 2003-03-26 Havoc Pennington <hp@pobox.com>
123 * bus/test-main.c, dbus/dbus-test.c (main): check memleaks
124 after every test so it's quick and easy to see which leaked, and
125 so we test multiple dbus_shutdown() calls
127 * configure.in: change configure.in XML stuff to also support
130 * config-loader-libxml.c: some hacking
132 * config-loader-expat.c: some hacking
134 * config-parser.c: some hacking, plus tests
136 2003-03-25 Havoc Pennington <hp@redhat.com>
138 * throughout - add more _DBUS_ASSERT_ERROR_IS_CLEAR
140 * configure.in: add --with-xml option to specify XML library,
141 right now only libxml is supported.
143 * bus/config-loader-libxml.c, config-parser.c: sync some minor
144 nonworking code between home and work, still just stubs
146 2003-03-24 Havoc Pennington <hp@redhat.com>
148 * dbus/dbus-sysdeps.c (_dbus_set_fd_nonblocking): move to this
151 * dbus/dbus-errors.c (dbus_set_error, dbus_set_error_const): allow
152 NULL argument for "message" if the error is a well-known one,
153 fill in a generic message in this case.
155 * dbus/dbus-errors.h (DBusResultCode): Kill DBusResultCode in
158 * bus/test.c (bus_test_flush_bus): add
160 * bus/policy.c (bus_policy_test): test code stub
162 2003-03-24 Havoc Pennington <hp@pobox.com>
164 * bus/connection.c (bus_connections_setup_connection): set up
165 the "can this user connect" function, but it always returns
166 TRUE until we have a config file parser so we can have a config
167 file that allows connections.
169 2003-03-23 Havoc Pennington <hp@pobox.com>
171 * dbus/dbus-threads.c (dbus_mutex_new, dbus_condvar_new): with
172 DBUS_BUILD_TESTS, actually alloc/free a block of memory for
173 the mutex, so we can check for proper memory management
176 * dbus/dbus-dataslot.c: remove the mutex from
177 DBusDataSlotAllocator and lock it manually when using it,
178 to simplify fitting it into the global slots framework.
180 * dbus/dbus-threads.c (init_static_locks): rework how we're
181 handling global locks so they are easily shut down.
183 * bus/policy.c (bus_policy_append_rule): fix
185 * bus/test-main.c (main): check for memleaks
187 * dbus/dbus-test.c (dbus_internal_do_not_use_run_tests): make
188 test suite check for memleaks
190 * dbus/dbus-memory.c: add support in test mode for tracking
191 number of outstanding blocks
193 2003-03-23 Havoc Pennington <hp@pobox.com>
195 * bus/policy.c, bus/bus.c, bus/connection.c: implement allow/deny
198 * dbus/dbus-hash.h: add ULONG hash keys
200 * dbus/dbus-sysdeps.c (_dbus_get_groups): new
201 (_dbus_get_group_id): new function
203 2003-03-20 Havoc Pennington <hp@redhat.com>
205 * dbus/dbus-connection.c (dbus_connection_set_unix_user_function):
207 (dbus_connection_get_unix_user): new function
209 2003-03-20 Havoc Pennington <hp@pobox.com>
211 * bus/connection.c (bus_connection_send_oom_error): assert that
213 (connection_execute_transaction): ditto
214 (bus_connection_preallocate_oom_error): fix to set the sender, and
215 set recipient to the destination service, not the bus driver
217 * bus/policy.c: hacking
219 * dbus/dbus-message.c (dbus_message_service_is): new function
220 (dbus_message_sender_is): new
222 2003-03-19 Havoc Pennington <hp@redhat.com>
224 * bus/policy.c: start sketching code for policy restrictions on
225 what connections can do.
227 2003-03-18 Havoc Pennington <hp@redhat.com>
229 * doc/TODO: some notes on high-level todo items. Little nitpick
230 stuff is all in @todo, so no need to add it here.
232 * doc/config-file.txt: some notes on how config file might look
234 2003-03-18 Anders Carlsson <andersca@codefactory.se>
240 2003-03-17 Havoc Pennington <hp@redhat.com>
242 * dbus/dbus-internals.h: add gcc attributes so that
243 our printf-style functions warn on bad arguments to
246 * dbus/dbus-sysdeps.c (_dbus_connect_tcp_socket): fix printf
249 * dbus/dbus-message.c (_dbus_message_loader_queue_messages): fix
252 2003-03-17 Havoc Pennington <hp@redhat.com>
254 * bus/test-main.c (main): make it print something as it runs
255 so make check doesn't look stuck
257 * doc/negotiation.txt, doc/dbus-sasl-profile.txt: remove
258 from CVS, now obsolete
260 2003-03-17 Anders Carlsson <andersca@codefactory.se>
262 * bus/dispatch.c: (bus_dispatch):
263 Refetch the service name since it may have been reallocated
264 when dbus_message_set_sender was called.
266 * dbus/dbus-sysdeps.c: (_dbus_accept):
267 Add address and address length variables and use them to stop
268 valgrind from complaining.
270 2003-03-17 Havoc Pennington <hp@pobox.com>
272 All tests pass, no memleaks, no valgrind complaints.
274 * bus/test.c: refcount handler_slot
276 * bus/connection.c (bus_connections_new): refcount
279 * dbus/dbus-auth-script.c (_dbus_auth_script_run): delete unused
280 bytes so that auth scripts pass.
282 * bus/dispatch.c: init message_handler_slot so it gets allocated
285 * bus/dispatch.c (message_handler_slot_ref): fix memleak
287 * dbus/dbus-server-debug-pipe.c (_dbus_server_debug_pipe_new):
288 dealloc server_pipe_hash when no longer used for benefit of
291 * dbus/dbus-auth.c (process_command): memleak fix
293 * bus/dispatch.c (check_hello_message): memleak fix
295 2003-03-16 Havoc Pennington <hp@pobox.com>
297 * dbus/dbus-bus.c (ensure_bus_data): fix double-unref of the data slot
299 2003-03-17 Anders Carlsson <andersca@codefactory.se>
301 * bus/activation.c (bus_activation_activate_service): Append
302 the pending activation entry to the list of pending activations.
304 2003-03-16 Havoc Pennington <hp@pobox.com>
306 * bus/dispatch.c (bus_dispatch_test): remove double-unrefs of
309 * dbus/dbus-address.c (create_entry): fix OOM handling when
310 failing to alloc entry->method
312 2003-03-16 Havoc Pennington <hp@pobox.com>
314 * dbus/dbus-watch.c (_dbus_watch_new): handle failure to malloc
317 * dbus/dbus-server-debug-pipe.c (_dbus_transport_debug_pipe_new):
318 add some missing dbus_set_result
320 * bus/dispatch.c (bus_dispatch_add_connection): handle failure to
321 alloc the DBusMessageHandler
323 * dbus/dbus-transport.c (_dbus_transport_disconnect): don't ref
324 the transport here, since we call this from the finalizer; it
325 resulted in a double-finalize.
327 * dbus/dbus-transport.c (_dbus_transport_disconnect): fix a bug
328 where we tried to use transport->connection that was NULL,
329 happened when transport was disconnected early on due to OOM
331 * bus/*.c: adapt to handle OOM for watches/timeouts
333 * dbus/dbus-transport-unix.c: port to handle OOM during
336 * dbus/dbus-auth.c (_dbus_auth_get_unused_bytes): return a
337 reference to unused bytes instead of a copy
339 * dbus/dbus-server.c (dbus_server_handle_watch): return FALSE for
342 * dbus/dbus-connection.c (dbus_connection_handle_watch): return
345 * dbus/dbus-timeout.c (dbus_timeout_handle): return FALSE for out
348 2003-03-16 Anders Carlsson <andersca@codefactory.se>
350 * doc/dbus-specification.sgml:
351 Document reply message for ActivateService.
353 2003-03-16 Anders Carlsson <andersca@codefactory.se>
355 * bus/activation.c: (bus_pending_activation_entry_free),
356 (bus_pending_activation_free), (bus_activation_new),
357 (bus_activation_unref), (bus_activation_service_created),
358 (bus_activation_activate_service):
360 * bus/bus.c: (bus_context_new):
361 * bus/desktop-file.c: (new_section):
362 * bus/driver.c: (bus_driver_send_service_deleted),
363 (bus_driver_handle_activate_service):
364 * bus/services.c: (bus_registry_new), (bus_registry_ensure):
366 * dbus/dbus-connection.c:
367 (dbus_connection_send_with_reply_and_block):
368 * dbus/dbus-message.c: (dbus_message_append_args_valist):
369 * dbus/dbus-protocol.h:
370 Make activation work better. Now pending activations will be queued
371 and the daemon won't try to activate services that are already registered.
373 2003-03-16 Havoc Pennington <hp@pobox.com>
375 * dbus/dbus-bus.c (ensure_bus_data): handle failure to set
378 * dbus/dbus-memory.c (_dbus_initialize_malloc_debug): support
379 DBUS_MALLOC_BACKTRACES to print trace when failing an alloc
381 2003-03-16 Havoc Pennington <hp@pobox.com>
383 * dbus/dbus-string.c (_dbus_string_validate_utf8): oops, unbreak
384 this. always run the test suite before commit...
386 * bus/*: adapt to DBusConnection API changes
388 * glib/dbus-gmain.c: adapt to DBusConnection API changes,
389 requires renaming stuff to avoid dbus_connection_dispatch name
392 * dbus/dbus-transport.c (_dbus_transport_queue_messages): new
395 * dbus/dbus-message.c (_dbus_message_loader_queue_messages):
396 separate from _dbus_message_loader_return_buffer()
398 * dbus/dbus-connection.c (dbus_connection_get_n_messages): remove
399 this, because it's now always broken to use; the number of
400 messages in queue vs. the number still buffered by the message
401 loader is undefined/meaningless. Should use
402 dbus_connection_get_dispatch_state().
403 (dbus_connection_dispatch): rename from
404 dbus_connection_dispatch_message
406 2003-03-16 Havoc Pennington <hp@pobox.com>
408 * dbus/dbus-string.c (_dbus_string_validate_utf8): copy in a real
411 2003-03-16 Anders Carlsson <andersca@codefactory.se>
413 * dbus/dbus-connection.c:
414 (dbus_connection_send_with_reply_and_block):
415 Decrease connection->n_incoming when removing an entry
417 * dbus/dbus-dict.c: (dbus_dict_entry_free),
418 (dbus_dict_set_boolean_array), (dbus_dict_set_int32_array),
419 (dbus_dict_set_uint32_array), (dbus_dict_set_double_array),
420 (dbus_dict_set_byte_array), (dbus_dict_set_string_array),
421 (dbus_dict_get_boolean_array), (dbus_dict_get_double_array),
422 (dbus_dict_get_byte_array):
423 Handle NULL arrays and strings. Also add support for byte arrays.
425 * dbus/dbus-marshal.c: (_dbus_marshal_byte_array),
426 (_dbus_marshal_dict), (_dbus_demarshal_byte_array),
427 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
428 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
429 (_dbus_demarshal_dict), (demarshal_and_validate_len),
430 (_dbus_marshal_validate_arg), (_dbus_marshal_test):
431 * dbus/dbus-marshal.h:
432 Add support for marshalling and demarshalling empty arrays and strings.
434 * dbus/dbus-message.c: (dbus_message_append_args_valist),
435 (dbus_message_append_string_array),
436 (dbus_message_iter_get_boolean),
437 (dbus_message_iter_get_boolean_array),
438 (dbus_message_iter_get_int32_array),
439 (dbus_message_iter_get_uint32_array),
440 (dbus_message_iter_get_double_array),
441 (dbus_message_iter_get_byte_array),
442 (dbus_message_iter_get_string_array), (dbus_message_iter_get_dict),
443 (check_message_handling):
444 Add support for getting empty arrays and dicts.
446 * dbus/dbus-string.c: (_dbus_string_validate_utf8):
447 Don't do any validation at all for now, that's better than just checking
450 * test/data/valid-messages/emptiness.message:
451 New test message with lots of empty arrays.
453 2003-03-16 Havoc Pennington <hp@pobox.com>
455 * dbus/dbus-connection.c
456 (_dbus_connection_queue_received_message_link): new function that
457 can't fail due to OOM
459 * dbus/dbus-message.c (_dbus_message_loader_pop_message_link):
460 new function pops a message together with a list link
463 * dbus/dbus-transport-unix.c (queue_messages): use new link-based
464 message queuing functions to avoid needing to alloc memory
466 2003-03-16 Havoc Pennington <hp@pobox.com>
468 Oops - test code was only testing failure of around 30 of the
469 mallocs in the test path, but it turns out there are 500+
470 mallocs. I believe this was due to misguided linking setup such
471 that there was one copy of dbus_malloc etc. in the daemon and one
472 in the shared lib, and only daemon mallocs were tested. In any
473 case, the test case now tests all 500+ mallocs, and doesn't pass
474 yet, though there are lots of fixes in this patch.
476 * dbus/dbus-connection.c (dbus_connection_dispatch_message): fix
477 this so that it doesn't need to allocate memory, since it
478 has no way of indicating failure due to OOM (and would be
481 * dbus/dbus-list.c (_dbus_list_pop_first_link): new function
483 * bus/Makefile.am: rearrange to create two self-contained
484 libraries, to avoid having libraries with overlapping symbols.
485 that was resulting in weirdness, e.g. I'm pretty sure there
486 were two copies of global static variables.
488 * dbus/dbus-internals.c: move the malloc debug stuff to
491 * dbus/dbus-list.c (free_link): free list mempool if it becomes
494 * dbus/dbus-memory.c (_dbus_disable_mem_pools): new function
496 * dbus/dbus-address.c (dbus_parse_address): free list nodes
499 * bus/dispatch.c (bus_dispatch_add_connection): free
500 message_handler_slot when no longer using it, so
501 memory leak checkers are happy for the test suite.
503 * dbus/dbus-server-debug-pipe.c (debug_finalize): free server name
505 * bus/bus.c (new_connection_callback): disconnect in here if
506 bus_connections_setup_connection fails.
508 * bus/connection.c (bus_connections_unref): fix to free the
510 (bus_connections_setup_connection): if this fails, don't
511 disconnect the connection, just be sure there are no side
514 * dbus/dbus-string.c (undo_alignment): unbreak this
516 * dbus/dbus-auth.c (_dbus_auth_unref): free some stuff we were
518 (_dbus_auth_new): fix the order in which we free strings
521 * bus/connection.c (bus_connection_disconnected): fix to
522 not send ServiceDeleted multiple times in case of memory
525 * dbus/dbus-bus.c (dbus_bus_get_base_service): new function to
526 get the base service name
527 (dbus_bus_register_client): don't return base service name,
528 instead store it on the DBusConnection and have an accessor
530 (dbus_bus_register_client): rename dbus_bus_register()
532 * bus/dispatch.c (check_hello_message): verify that other
533 connections on the bus also got the correct results, not
534 just the one sending hello
536 2003-03-15 Havoc Pennington <hp@pobox.com>
538 Make it pass the Hello handling test including all OOM codepaths.
539 Now to do other messages...
541 * bus/services.c (bus_service_remove_owner): fix crash when
542 removing owner from an empty list of owners
543 (bus_registry_ensure): don't leave service in the list of
544 a connection's owned services if we fail to put the service
547 * bus/connection.c (bus_connection_preallocate_oom_error): set
548 error flag on the OOM error.
550 * dbus/dbus-connection.c (_dbus_connection_new_for_transport):
551 handle _dbus_transport_set_connection failure
553 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd): modify
554 to create watches up front and simply enable/disable them as
556 (unix_connection_set): this can now fail on OOM
558 * dbus/dbus-timeout.c, dbus/dbus-watch.c: add concept
559 of enabling/disabling a watch or timeout.
561 * bus/loop.c (bus_loop_iterate): don't touch disabled
564 * glib/dbus-gmain.c: adapt to enable/disable watches and timeouts
566 2003-03-15 Havoc Pennington <hp@pobox.com>
568 * bus/dispatch.c (bus_dispatch_test): OK, now finally actually
569 write useful test code, after all that futzing around ;-)
571 Test does not yet pass because we can't handle OOM in
572 _dbus_transport_messages_pending (basically,
573 dbus_connection_preallocate_send() does not prealloc the write
574 watch). To fix this, I think we need to add new stuff to
575 set_watch_functions, namely a SetEnabled function so we can alloc
576 the watch earlier, then enable it later.
578 * dbus/Makefile.am (libdbus_convenience_la_SOURCES): move
579 dbus-memory.c to the convenience lib
581 * bus/test.c: rename some static functions to keep them clearly
582 distinct from stuff in connection.c. Handle client disconnection.
584 2003-03-14 Havoc Pennington <hp@pobox.com>
586 * bus/dispatch.c (bus_dispatch_test): do test using debug-pipe
587 transport, tests more of the real codepath. Set up clients
588 with bus_setup_debug_client.
590 * bus/test.c (bus_setup_debug_client): function to set up debug
591 "clients" on the main loop
593 * dbus/dbus-transport.c (_dbus_transport_open): add debug-pipe
596 * dbus/dbus-server.c (dbus_server_listen): add debug-pipe
599 * dbus/dbus-server-debug.c: support a debug server based on pipes
601 * dbus/dbus-sysdeps.c (_dbus_full_duplex_pipe): new function
602 (_dbus_close): new function
604 * configure.in: check for socketpair
606 2003-03-14 Havoc Pennington <hp@redhat.com>
608 * dbus/dbus-memory.c: add a "detect buffer overwrites on free"
611 * dbus/dbus-transport-debug.c: rework this a good bit to be
612 less complicated. hopefully still works.
614 * dbus/dbus-server-debug.c (handle_new_client): remove timeout
617 * glib/dbus-gmain.c (timeout_handler): don't remove timeout
620 * dbus/dbus-message.c (dbus_message_copy): rename from
621 dbus_message_new_from_message, fix it up to copy
622 all the message fields, add test case
624 * bus/dispatch.c (bus_dispatch_test): add some more test code,
625 not quite passing yet
627 2003-03-14 Havoc Pennington <hp@pobox.com>
629 * bus/loop.c (bus_loop_iterate): add this so we can "run loop
630 until no work remains" in test code. (the large diff here
631 is just code movement, no actual changes)
633 * dbus/dbus-server-debug.c (DEFAULT_INTERVAL): change interval to
634 1, no point waiting around for test code.
635 (_dbus_server_debug_accept_transport): unref the timeout
636 after adding it (right?)
638 * dbus/dbus-transport-debug.c (DEFAULT_INTERVAL): ditto
640 2003-03-13 Havoc Pennington <hp@redhat.com>
642 * dbus/dbus-timeout.c (_dbus_timeout_list_set_functions): handle
645 * dbus/dbus-watch.c (_dbus_watch_list_set_functions): handle out
648 * dbus/dbus-connection.h: Make AddWatchFunction and
649 AddTimeoutFunction return a bool so they can fail on out-of-memory
651 * bus/bus.c (bus_context_new): set up timeout handlers
653 * bus/connection.c (bus_connections_setup_connection): set up
656 * glib/dbus-gmain.c: adapt to the fact that set_functions stuff
659 * bus/bus.c (bus_context_new): adapt to changes
661 * bus/connection.c: adapt to changes
663 * test/watch.c: adapt to DBusWatch changes
665 * bus/dispatch.c (bus_dispatch_test): started adding this but
668 2003-03-14 Anders Carlsson <andersca@codefactory.se>
670 * bus/dispatch.c (send_service_nonexistent_error): Fix typo.
672 2003-03-13 Havoc Pennington <hp@pobox.com>
674 * bus/test.c, bus/test.h, bus/Makefile.am, bus/test-main.c:
675 set up a test framework as for the library
677 2003-03-12 Havoc Pennington <hp@pobox.com>
679 Throughout: purge global variables, introduce BusActivation,
680 BusConnections, BusRegistry, etc. objects instead.
682 * bus/bus.h, bus/bus.c: introduce BusContext as a global
685 * test/Makefile.am (TEST_BINARIES): disable bus-test for now,
686 going to redo this a bit differently I think
688 2003-03-12 Havoc Pennington <hp@redhat.com>
690 Mega-patch that gets the message bus daemon initially handling
691 out-of-memory. Work still needed. Also lots of random
692 moving stuff to DBusError instead of ResultCode.
694 * dbus/dbus-list.c (_dbus_list_length_is_one): new function
696 * dbus/dbus-connection.c
697 (dbus_connection_send_with_reply_and_block): use DBusError
699 * dbus/dbus-bus.c: adapt to API changes, make it use DBusError not
702 * dbus/dbus-connection.c (dbus_connection_send): drop the result
703 code here, as the only failure possible is OOM.
705 * bus/connection.c (bus_connection_disconnect):
706 rename bus_connection_disconnected as it's a notification only
708 * bus/driver.c (bus_driver_handle_acquire_service): don't free
709 "name" on get_args failure, should be done by get_args;
710 don't disconnect client for bad args, just return an error.
711 (bus_driver_handle_service_exists): ditto
713 * bus/services.c (bus_services_list): NULL-terminate returned array
715 * bus/driver.c (bus_driver_send_service_lost)
716 (bus_driver_send_service_acquired): send messages from driver to a
717 specific client to the client's unique name, not to the broadcast
720 * dbus/dbus-message.c (decode_header_data): reject messages that
721 contain no name field
722 (_dbus_message_get_client_serial): rename to
723 dbus_message_get_serial and make public
724 (_dbus_message_set_serial): rename from set_client_serial
725 (_dbus_message_set_reply_serial): make public
726 (_dbus_message_get_reply_serial): make public
728 * bus/connection.c (bus_connection_foreach): allow stopping
729 iteration by returning FALSE from foreach function.
731 * dbus/dbus-connection.c (dbus_connection_send_preallocated)
732 (dbus_connection_free_preallocated_send)
733 (dbus_connection_preallocate_send): new API for sending a message
734 without possibility of malloc failure.
735 (dbus_connection_send_message): rename to just
736 dbus_connection_send (and same for whole function family)
738 * dbus/dbus-errors.c (dbus_error_free): make this reinit the error
740 * dbus/dbus-sysdeps.c (_dbus_exit): new function
742 * bus/activation.c: handle/return errors
744 * dbus/dbus-errors.h: add more DBUS_ERROR #define
746 * dbus/dbus-sysdeps.c (_dbus_directory_open) (_dbus_file_get_contents)
747 (_dbus_directory_get_next_file): use DBusError instead of DBusResultCode
748 (_dbus_result_from_errno): move to this file
750 2003-03-10 Anders Carlsson <andersca@codefactory.se>
752 * dbus/dbus-marshal.c:
753 (_dbus_marshal_set_string):
754 Take a length argument so we can marshal the correct string
757 (_dbus_marshal_dict), (_dbus_demarshal_dict),
758 (_dbus_marshal_get_arg_end_pos), (_dbus_marshal_validate_arg),
759 (_dbus_marshal_test):
760 * dbus/dbus-marshal.h:
761 Add support for marshalling and demarshalling dicts.
763 * dbus/dbus-message-builder.c: (_dbus_message_data_load):
764 Add support for TYPE DICT.
766 * dbus/dbus-message.c: (set_string_field):
767 Adjust header padding.
769 (dbus_message_append_args_valist), (dbus_message_append_dict),
770 (dbus_message_get_args_valist), (dbus_message_iter_get_arg_type),
771 (dbus_message_iter_get_dict), (_dbus_message_loader_return_buffer),
772 (check_message_handling), (check_have_valid_message):
773 * dbus/dbus-message.h:
774 Add functions for setting and getting dicts.
776 * dbus/dbus-protocol.h:
782 * doc/dbus-specification.sgml:
783 Add information about how dicts are marshalled.
785 * test/data/invalid-messages/dict-with-nil-value.message:
786 * test/data/invalid-messages/too-short-dict.message:
787 * test/data/valid-messages/dict-simple.message:
788 * test/data/valid-messages/dict.message:
789 Add sample messages containing dicts.
791 2003-03-08 Anders Carlsson <andersca@codefactory.se>
793 * dbus/dbus-dict.h: Add DBUS_END_DECLS.
795 2003-03-07 Anders Carlsson <andersca@codefactory.se>
798 * dbus/dbus-dict.c: (dbus_dict_entry_free), (dbus_dict_new),
799 (dbus_dict_get_keys), (insert_entry), (dbus_dict_set_boolean),
800 (dbus_dict_set_int32), (dbus_dict_set_uint32),
801 (dbus_dict_set_double), (dbus_dict_set_string),
802 (dbus_dict_set_boolean_array), (dbus_dict_set_int32_array),
803 (dbus_dict_set_uint32_array), (dbus_dict_set_double_array),
804 (dbus_dict_set_string_array), (_dbus_dict_test):
806 Fix according to comments from Havoc.
808 2003-03-06 Michael Meeks <michael@server.home>
810 * configure.in: if we don't have kde-config, disable have_qt.
812 2003-03-07 Anders Carlsson <andersca@codefactory.se>
817 * dbus/dbus-dict.c: (dbus_dict_entry_free), (dbus_dict_new),
818 (dbus_dict_ref), (dbus_dict_unref), (dbus_dict_contains),
819 (dbus_dict_remove), (dbus_dict_get_value_type),
820 (dbus_dict_get_keys), (dbus_dict_put_boolean),
821 (dbus_dict_put_int32), (dbus_dict_put_uint32),
822 (dbus_dict_put_double), (dbus_dict_put_string),
823 (dbus_dict_put_boolean_array), (dbus_dict_put_int32_array),
824 (dbus_dict_put_uint32_array), (dbus_dict_put_double_array),
825 (dbus_dict_put_string_array), (dbus_dict_get_boolean),
826 (dbus_dict_get_int32), (dbus_dict_get_uint32),
827 (dbus_dict_get_double), (dbus_dict_get_string),
828 (dbus_dict_get_boolean_array), (dbus_dict_get_int32_array),
829 (dbus_dict_get_uint32_array), (dbus_dict_get_double_array),
830 (dbus_dict_get_string_array), (_dbus_dict_test):
832 Add DBusDict implementation
834 * dbus/dbus-test.c: (dbus_internal_do_not_use_run_tests):
838 2003-03-04 Havoc Pennington <hp@pobox.com>
840 * test/data/auth/*: adapt to changes
842 * dbus/dbus-auth-script.c (_dbus_auth_script_run): add
843 USERID_BASE64 and change USERNAME_BASE64 to put in username not
846 * dbus/dbus-keyring.c (_dbus_keyring_validate_context): prevent
847 more stuff from being in a context name, to make the protocol
850 * dbus/dbus-errors.c (dbus_error_has_name): new function
851 (dbus_error_is_set): new function
853 * dbus/dbus-auth.c: replace DBUS_STUPID_TEST_MECH auth
854 with DBUS_COOKIE_SHA1, implement DBUS_COOKIE_SHA1
856 * dbus/dbus-connection.c (dbus_connection_flush): also read
857 messages during a flush operation
859 * dbus/Makefile.am: remove dbus-md5 since it isn't currently used.
861 2003-03-05 Anders Carlsson <andersca@codefactory.se>
863 * configure.in: Check for gethostbyname on Solaris.
865 * dbus/dbus-transport.c: (_dbus_transport_open):
866 Remove duplicate "tcp" entry.
868 * doc/dbus-specification.sgml:
871 2003-03-05 Anders Carlsson <andersca@codefactory.se>
873 * dbus/dbus-auth.c: (send_rejected), (process_test_subdir):
874 * dbus/dbus-keyring.c: (_dbus_keyring_new_homedir),
875 (_dbus_keyring_test):
876 * dbus/dbus-md5.c: (_dbus_md5_compute):
877 * dbus/dbus-sha.c: (_dbus_sha_compute):
880 2003-03-05 Anders Carlsson <andersca@codefactory.se>
882 * README: Add some things.
884 2003-03-04 Anders Carlsson <andersca@codefactory.se>
886 * dbus/dbus-message.c (dbus_message_append_args_valist): Add a break;
887 after case DBUS_TYPE_BOOELAN.
889 2003-03-02 Havoc Pennington <hp@pobox.com>
891 * test/break-loader.c (randomly_set_extreme_ints): add test that
892 sets really huge and small integers
894 * dbus/dbus-marshal.c (_dbus_marshal_validate_arg): add check
895 that length of boolean array fits in the string, and that
896 string has room for boolean value in single-bool case.
898 * dbus/dbus-message-builder.c (_dbus_message_data_load): add
899 optional value to "ALIGN" command which is what to fill the
902 * test/data/valid-messages/no-padding.message: add regression
903 test for the message padding problem
905 2003-03-02 Havoc Pennington <hp@pobox.com>
907 * dbus/dbus-message.c (decode_header_data): fix to always init
908 message_padding, from Benjamin Dauvergne
910 2003-03-02 Havoc Pennington <hp@pobox.com>
916 2003-03-01 Joe Shaw <joe@assbarn.com>
918 * configure.in: Check for "struct cmsgcred" and try to access its
919 members for BSD-like unices.
921 * dbus/dbus-sysdeps.c (read_credentials_byte): Fold this back into
922 _dbus_read_credentials_unix_socket().
923 (_dbus_read_credentials_unix_socket): Use recvmsg() instead of
924 read() for reading the credential byte off the unix socket. Use
925 struct cmsgcred on systems that support it.
927 2003-02-27 Alexander Larsson <alexl@redhat.com>
931 Make gthreads-2.0 dependency optional. Don't build thread test if
934 2003-02-27 Havoc Pennington <hp@pobox.com>
936 * dbus/dbus-connection.c
937 (dbus_connection_send_message_with_reply_and_block): fix doh!
938 doh! doh! bug that resulted in never removing a reply from the
939 queue, no wonder we called get_reply_serial so much ;-)
941 * dbus/dbus-message.c (struct DBusMessage): cache reply serial
942 and client serial instead of demarshaling them every time
944 2003-02-27 Havoc Pennington <hp@pobox.com>
946 * dbus/dbus-marshal.c (_dbus_demarshal_int32): rewrite to be much
947 more inlined, using dbus-string-private.h, speeds things up
950 * dbus/dbus-string.c (_dbus_string_free): apply align offset
951 when freeing the string
952 (_dbus_string_steal_data): fix for align offset
953 (undo_alignment): new function
955 2003-02-26 Havoc Pennington <hp@redhat.com>
957 All kinds of audit fixes from Owen, plus initial attempt to
958 handle unaligned memory returned from malloc.
960 * dbus/dbus-string.c (_dbus_string_init): clamp max length to
961 leave room for align_offset and nul byte
962 (fixup_alignment): function to track an align_offset and
963 ensure real->str is aligned
964 (DBUS_GENERIC_STRING_PREAMBLE): len must be less than allocated,
965 to allow a nul byte plus align offset
966 (_dbus_string_lock): fix overflow issue
967 (_dbus_string_init_const_len): add assertions on sanity of len,
968 assign allocated to be ALLOCATION_PADDING larger than len
969 (set_length): fixup the overflow handling
970 (_dbus_string_get_data_len): fix overflow in assertion
971 (open_gap): detect overflow in size of gap to be opened
972 (_dbus_string_lengthen): add overflow check
973 (_dbus_string_align_length): fix overflow with _DBUS_ALIGN_VALUE
974 (_dbus_string_append): add overflow check
975 (_dbus_string_append_unichar): overflow
976 (_dbus_string_delete): fix overflow in assertion
977 (_dbus_string_copy_len): overflow in assertion
978 (_dbus_string_replace_len): overflows in assertions
979 (_dbus_string_find): change to implement in terms of
981 (_dbus_string_find_to): assorted fixage
982 (_dbus_string_equal_c_str): assert c_str != NULL,
983 fix logic so the function works
984 (_dbus_string_ends_with_c_str): fix overflow thingy
985 (_dbus_string_base64_encode): overflow fix
986 (_dbus_string_validate_ascii): overflow
987 (_dbus_string_validate_nul): overflow
989 2003-02-26 Havoc Pennington <hp@redhat.com>
991 * dbus/dbus-marshal.c (_dbus_marshal_test): fix to work with DISABLE_ASSERTS
993 2003-02-26 Alexander Larsson <alexl@redhat.com>
996 Set DBUS_GLIB_THREADS_LIBS for apps using gthread-2.0
998 * dbus/dbus-connection.c:
999 * dbus/dbus-connection.h:
1000 Fix _dbus_connection_acquire_io_path and _dbus_connection_acquire_dispatch.
1001 Add dbus_connection_set_wakeup_main_function and use it when queueing
1002 incoming and outgoing messages.
1005 * dbus/dbus-dataslot.c:
1006 Threadsafe usage of DBusDataSlotAllocator
1008 * dbus/dbus-message.c: (dbus_message_get_args_iter):
1011 * dbus/dbus-server-unix.c:
1014 * glib/dbus-gmain.c:
1015 Implement the new wakeup functions for glib.
1018 * glib/test-thread-client.c:
1019 * glib/test-thread-server.c:
1020 * glib/test-thread.h:
1021 Initial cut at some thread test code. Not really done yet.
1023 2003-02-26 Havoc Pennington <hp@pobox.com>
1025 * dbus/dbus-connection.c
1026 (dbus_connection_send_message_with_reply_and_block): fix crash
1027 where we ref'd the outgoing message instead of the returned reply
1029 * dbus/dbus-transport-unix.c (do_authentication): check read watch
1030 at the end of this function, so if we didn't need to read for
1031 authentication, we reinstall it for receiving messages
1033 * dbus/dbus-message.c (dbus_message_new_reply): allow replies to
1034 a NULL sender for peer-to-peer case
1036 * dbus/dbus-transport-unix.c (check_read_watch): handle
1037 !authenticated case correctly
1039 * glib/dbus-gmain.c: add support for DBusServer
1041 * dbus/dbus-server.c: add data slot support
1043 * glib/dbus-gmain.c (dbus_connection_setup_with_g_main): check
1044 return values and handle errors
1046 * dbus/dbus-dataslot.c: factor out the data slot stuff from
1049 * Doxyfile.in (INPUT): add glib subdir
1051 * glib/dbus-gmain.c (dbus_connection_setup_with_g_main): rename
1052 setup_with_g_main instead of hookup_with_g_main; write docs
1054 2003-02-24 Anders Carlsson <andersca@codefactory.se>
1056 * dbus/dbus-marshal.c: (_dbus_marshal_validate_arg):
1057 * dbus/dbus-message-builder.c: (_dbus_message_data_load):
1058 * dbus/dbus-message.c: (dbus_message_append_boolean),
1059 (dbus_message_append_boolean_array),
1060 (dbus_message_get_args_valist), (_dbus_message_test):
1061 * dbus/dbus-message.h:
1062 * doc/dbus-specification.sgml:
1063 Various fixes as pointed out by Havoc.
1065 * test/data/invalid-messages/bad-boolean-array.message:
1066 * test/data/invalid-messages/bad-boolean.message:
1067 Add invalid boolean value test cases.
1069 2003-02-24 Anders Carlsson <andersca@codefactory.se>
1071 * dbus/dbus-internals.c: (_dbus_type_to_string):
1072 * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
1073 (_dbus_marshal_validate_arg):
1074 * dbus/dbus-message-builder.c: (_dbus_message_data_load):
1075 * dbus/dbus-message.c: (dbus_message_append_args_valist),
1076 (dbus_message_append_boolean), (dbus_message_append_boolean_array),
1077 (dbus_message_get_args_valist), (dbus_message_iter_get_boolean),
1078 (dbus_message_iter_get_int32), (dbus_message_iter_get_uint32),
1079 (dbus_message_iter_get_double),
1080 (dbus_message_iter_get_boolean_array), (message_iter_test):
1081 * dbus/dbus-message.h:
1082 * dbus/dbus-protocol.h:
1083 * doc/dbus-specification.sgml:
1084 * test/data/valid-messages/lots-of-arguments.message:
1085 Add support for boolean and boolean array types.
1087 2003-02-23 Havoc Pennington <hp@pobox.com>
1089 * dbus/dbus-keyring.c: finish most of this implementation and
1092 * dbus/dbus-errors.c (dbus_set_error_const, dbus_set_error): make
1093 these barf if the error isn't cleared to NULL
1095 * dbus/dbus-sysdeps.c (_dbus_delete_file): set error on failure
1096 (_dbus_create_directory): new function
1098 * dbus/dbus-errors.c (dbus_set_error): fix warning
1100 * dbus/dbus-string.c (_dbus_string_hex_encode): new function
1101 (_dbus_string_hex_decode): new function
1102 (test_hex_roundtrip): test code
1104 * dbus/dbus-sha.c (_dbus_sha_compute): use dbus_string_hex_encode
1106 * dbus/dbus-md5.c (_dbus_md5_compute): use dbus_string_hex_encode
1108 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): make this use
1109 the save-to-temp/rename trick to atomically write the new file
1110 (_dbus_string_parse_uint): new function
1112 2003-02-22 Havoc Pennington <hp@pobox.com>
1114 * test/Makefile.am (dist-hook): fix dist for test/data/sha-1
1116 2003-02-22 Havoc Pennington <hp@pobox.com>
1118 * dbus/dbus-message.c (dbus_message_iter_get_string_array):
1119 (dbus_message_iter_get_byte_array): Fix up doxygen warnings
1121 * dbus/dbus-sha.c: add implementation of SHA-1 algorithm
1123 * dbus/test/data/sha-1: add US government test suite for SHA-1
1125 2003-02-21 Anders Carlsson <andersca@codefactory.se>
1127 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
1128 Make string arrays NULL-terminated.
1130 * dbus/dbus-memory.c: (dbus_free_string_array):
1131 * dbus/dbus-memory.h:
1132 New function for freeing NULL-terminated string arrays.
1134 * dbus/dbus-message-builder.c: (append_quoted_string),
1135 (_dbus_message_data_load):
1136 Add support for array types.
1138 * dbus/dbus-message.c: (check_message_handling):
1139 Add more types as test cases.
1141 * dbus/dbus-sysdeps.c: (_dbus_string_parse_int),
1142 (_dbus_string_parse_double):
1143 Add the start offset to the end offset.
1145 * test/data/valid-messages/lots-of-arguments.message:
1146 New test message with lots of arguments.
1148 2003-02-21 Anders Carlsson <andersca@codefactory.se>
1150 * dbus/dbus-message.c: (dbus_message_append_nil),
1151 (dbus_message_append_int32), (dbus_message_append_uint32),
1152 (dbus_message_append_double), (dbus_message_append_string),
1153 (dbus_message_append_int32_array),
1154 (dbus_message_append_uint32_array),
1155 (dbus_message_append_double_array),
1156 (dbus_message_append_byte_array),
1157 (dbus_message_append_string_array):
1158 Fix all out-of-memory handling in these functions.
1160 2003-02-21 Anders Carlsson <andersca@codefactory.se>
1162 * dbus/dbus-message.c: (dbus_message_append_nil):
1165 2003-02-21 Anders Carlsson <andersca@codefactory.se>
1167 * dbus/dbus-message.c: (dbus_message_append_args_valist),
1168 (dbus_message_append_nil), (dbus_message_append_int32_array),
1169 (dbus_message_append_uint32_array),
1170 (dbus_message_append_double_array),
1171 (dbus_message_append_byte_array),
1172 (dbus_message_append_string_array), (dbus_message_get_args_valist),
1173 (dbus_message_iter_get_int32_array),
1174 (dbus_message_iter_get_uint32_array),
1175 (dbus_message_iter_get_double_array),
1176 (dbus_message_iter_get_byte_array),
1177 (dbus_message_iter_get_string_array):
1179 * dbus/dbus-message.h:
1180 Add functions for appending and getting arrays.
1182 2003-02-21 Anders Carlsson <andersca@codefactory.se>
1184 * dbus/dbus-mempool.c (_dbus_mem_pool_new): Make the
1185 element size at least 8 bytes, fixes mempool tests on
1188 2003-02-20 Alexander Larsson <alexl@redhat.com>
1190 * dbus/dbus-transport-unix.c (unix_do_iteration):
1191 Unlock the connection mutex during a blocking select call.
1192 Add todo about how we need a way to wake up the select.
1194 * dbus/dbus-connection-internal.h:
1195 * dbus/dbus-connection.c:
1196 Add _dbus_connection_lock and _dbus_connection_unlock.
1198 2003-02-19 Havoc Pennington <hp@pobox.com>
1200 * Doxyfile.in (PREDEFINED): put DOXYGEN_SHOULD_SKIP_THIS in
1201 Doxyfile.in, not Doxyfile
1203 * dbus/dbus-keyring.c: do some hacking on this
1205 * dbus/dbus-sysdeps.c (_dbus_delete_file): new
1207 * dbus/dbus-errors.c (dbus_set_error_const): do not call
1209 (dbus_set_error): remove dbus_error_init, check for message ==
1210 NULL *before* we sprintf into it, and add @todo about including
1211 system headers in this file
1213 * dbus/dbus-sysdeps.c (_dbus_create_file_exclusively): new
1215 * dbus/dbus-errors.h (DBUS_ERROR_FAILED): add
1217 * dbus/dbus-sysdeps.c (get_user_info): break this function out to
1218 get various bits of user information based on either username
1220 (_dbus_homedir_from_username): new function
1222 2003-02-19 Anders Carlsson <andersca@codefactory.se>
1225 Add check for nonposix getpwnam_r
1227 * dbus/dbus-mempool.c: (_dbus_mem_pool_new):
1228 Align the pool element size to a sizeof (void *) boundary.
1230 * dbus/dbus-sysdeps.c: (_dbus_setenv), (_dbus_connect_unix_socket),
1231 (_dbus_listen_unix_socket), (_dbus_credentials_from_username):
1232 General Solaris fixes.
1234 * test/data/valid-messages/simplest-manual.message:
1235 Explicitly state that we want little-endian packing.
1237 2003-02-19 Mikael Hallendal <micke@codefactory.se>
1239 * dbus/dbus-server.c (dbus_server_listen): Support tcp: addresses.
1241 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_tcp_socket):
1242 Added to create a transport connecting using a tcp/ip socket.
1244 * dbus/dbus-sysdeps.c (_dbus_connect_tcp_socket): Added to connect
1245 to a tcp socket at given host and port.
1246 (_dbus_listen_tcp_socket): added to listen on tcp socket for given
1249 * dbus/dbus-server.c (dbus_server_listen): Support tcp: addresses.
1251 * dbus/dbus-server-unix.c (_dbus_server_new_for_tcp_socket):
1252 Added to create a server listening on a TCP/IP socket.
1254 2003-02-19 Havoc Pennington <hp@pobox.com>
1256 Throughout: mop up all the Doxygen warnings and undocumented
1259 * dbus/dbus-sysdeps.c (do_exec): do not use execvp, we don't want
1260 to search any paths.
1262 * dbus/dbus-threads.c: move global mutex initializers to
1263 dbus-internals.h, multiple prototypes was confusing doxygen
1264 besides being kind of ugly
1266 * Doxyfile (PREDEFINED): have Doxygen define
1267 DOXYGEN_SHOULD_SKIP_THIS so we can exclude things from
1268 docs with #ifndef DOXYGEN_SHOULD_SKIP_THIS
1269 (do not abuse the feature! it's for stuff like the autogenerated
1270 macros in dbus-md5.c, not just for things you don't feel like
1273 2003-02-18 Havoc Pennington <hp@pobox.com>
1275 * dbus/dbus-string.c (_dbus_string_zero): new function
1277 * dbus/dbus-md5.c: include MD5 implementation by L. Peter Deutsch,
1278 wrap it in some dbus-friendly API
1280 * dbus/dbus-types.h: add 16-bit types
1282 2003-02-18 Joe Shaw <joe@assbarn.com>
1284 * dbus/dbus-auth.c (handle_server_data_stupid_test_mech): Just get
1285 credentials from our currently running process.
1286 (get_word): Fix a buglet where we were copying the entire length
1287 instead of relative to our position.
1289 * dbus/dbus-hash.c (_dbus_hash_test): Don't try to allocate the
1290 keys on the stack... it's 640k of data.
1292 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): Always
1293 read the credentials byte off the socket, even if we don't have
1295 (_dbus_poll): Implement poll() using select() for systems which
1298 * glib/test-dbus-glib.c (main): Print out an error if no
1299 parameters are given.
1301 * test/data/auth/fallback.auth-script: Added. Tests that a client
1302 can fallback to a secondary auth mechanism if the first fails.
1304 2003-02-18 Havoc Pennington <hp@pobox.com>
1308 2003-02-17 Havoc Pennington <hp@pobox.com>
1310 * doc/dbus-specification.sgml: lots of cosmetic
1311 cleanups/rearrangement, add assorted FIXME, change DBUS_ADDRESS
1312 env variable to DBUS_BUS_ADDRESS, s/client/application/,
1313 s/server/bus/ (except in authentication section). Add a section
1314 "Message Bus Message Routing"
1316 2003-02-17 Anders Carlsson <andersca@codefactory.se.>
1322 2003-02-17 Anders Carlsson <andersca@codefactory.se>
1324 * doc/dbus-specification.sgml:
1325 Specification updates.
1327 2003-02-17 Anders Carlsson <andersca@codefactory.se>
1329 * bus/activation.c: (bus_activation_init), (child_setup),
1330 (bus_activation_activate_service):
1332 * bus/main.c: (main):
1333 Set DBUS_ADDRESS environment variable.
1335 * dbus/dbus-errors.c: (dbus_set_error):
1336 Don't use va_copy since that's a C99 feature.
1338 * dbus/dbus-sysdeps.c: (_dbus_setenv), (do_exec),
1339 (_dbus_spawn_async):
1340 * dbus/dbus-sysdeps.h:
1341 Add child_setup_func to _dbus_spawn_async.
1343 * doc/dbus-specification.sgml:
1344 Update specification.
1346 * test/spawn-test.c: (setup_func), (main):
1349 2003-02-17 Alexander Larsson <alexl@redhat.com>
1351 * dbus/dbus-connection.c (_dbus_connection_handler_destroyed_locked):
1354 2003-02-17 Anders Carlsson <andersca@codefactory.se>
1358 * doc/dbus-test-plan.sgml:
1359 Add test plan document.
1364 2003-02-17 Anders Carlsson <andersca@codefactory.se>
1366 * dbus/dbus-message.c: (decode_header_data),
1367 (_dbus_message_loader_return_buffer):
1368 Set the header padding amount when loading a message.
1370 2003-02-16 Anders Carlsson <andersca@codefactory.se>
1372 * bus/dispatch.c: (send_one_message):
1373 Only send broadcast messages to registered connections.
1375 * dbus/dbus-message.c: (dbus_message_name_is):
1376 * dbus/dbus-message.h:
1377 New convenience function.
1379 * dbus/dbus-transport-debug.c: (do_reading):
1380 Only dispatch one message per run.
1383 * test/bus-test.c: (new_connection_callback), (die),
1384 (test_hello_client1_handler), (test_hello_client2_handler),
1385 (test_hello_replies), (main):
1387 * test/bus-test-loop.[ch]:
1390 2003-02-16 Havoc Pennington <hp@pobox.com>
1392 * dbus/dbus-connection.c (dbus_connection_dispatch_message): fix
1393 backward conditional
1395 2003-02-16 Alexander Larsson <alexl@redhat.com>
1397 * dbus/dbus-connection.c:
1398 Implement sent_message_with_reply. (with_reply_and block is still
1400 Made dispatch_message not lose message if OOM.
1402 * dbus/dbus-errors.h:
1403 Add NoReply error (for reply timeouts).
1405 2003-02-16 Alexander Larsson <alexl@redhat.com>
1407 * dbus/dbus-hash.c (_dbus_hash_table_unref):
1408 Actually free keys and values when destroying hashtable.
1410 2003-02-16 Anders Carlsson <andersca@codefactory.se>
1412 * dbus/dbus-auth.c: (client_try_next_mechanism):
1415 * dbus/dbus-threads.c: (dbus_condvar_wait_timeout):
1416 Return TRUE if there's no thread implementation around.
1418 * glib/dbus-gmain.c: (free_source),
1419 (dbus_connection_hookup_with_g_main):
1420 Make sure to remove the GSource when the connection is finalized.
1422 2003-02-16 Anders Carlsson <andersca@codefactory.se>
1424 * bus/dispatch.c: (bus_dispatch_message_handler):
1425 * dbus/dbus-errors.h:
1426 Return an error if someone tries to send a message to a service
1429 2003-02-16 Anders Carlsson <andersca@codefactory.se>
1431 * bus/activation.c: (load_directory), (bus_activation_init),
1432 (bus_activation_activate_service):
1435 (bus_driver_handle_activate_service), (bus_driver_handle_message):
1436 More work on the activation handling.
1438 * dbus/dbus-errors.h:
1439 Add some error messages
1441 * dbus/dbus-message.c: (dbus_message_new_error_reply):
1442 * dbus/dbus-message.h:
1443 New function that creates an error message.
1445 * dbus/dbus-protocol.h:
1446 Add ACTIVATE_SERVER message.
1448 * dbus/dbus-server-unix.c: (unix_handle_watch),
1449 (_dbus_server_new_for_domain_socket):
1450 Call _dbus_fd_set_close_on_exec.
1452 * dbus/dbus-sysdeps.c: (make_pipe), (do_exec),
1453 (_dbus_spawn_async), (_dbus_disable_sigpipe),
1454 (_dbus_fd_set_close_on_exec):
1455 * dbus/dbus-sysdeps.h:
1456 Add _dbus_fd_set_close_on exec function. Also add function that checks
1457 that all open fds are set to close-on-exec and warns otherwise.
1459 * dbus/dbus-transport-unix.c:
1460 (_dbus_transport_new_for_domain_socket):
1461 Call _dbus_fd_set_close_on_exec.
1463 2003-02-16 Havoc Pennington <hp@pobox.com>
1465 * dbus/dbus-connection.c (dbus_connection_set_change_sigpipe):
1466 allow people to avoid setting SIGPIPE to SIG_IGN
1467 (_dbus_connection_new_for_transport): disable SIGPIPE unless
1468 we've been asked not to
1470 2003-02-15 Anders Carlsson <andersca@codefactory.se>
1472 * dbus/dbus-list.c: (_dbus_list_append_link),
1473 (_dbus_list_prepend_link):
1474 * dbus/dbus-memory.c: (dbus_malloc), (dbus_malloc0),
1478 2003-02-15 Anders Carlsson <andersca@codefactory.se>
1481 * bus/activation.c: (bus_activation_entry_free),
1482 (add_desktop_file_entry), (load_directory), (bus_activation_init):
1484 * bus/main.c: (main):
1485 Add simple activation support, doesn't work yet though.
1487 2003-02-15 Zack Rusin <zack@kde.org>
1489 * qt/dbus-qthread.cpp: small casting fix
1491 2003-02-15 Anders Carlsson <andersca@codefactory.se>
1493 * dbus/dbus-errors.c: (dbus_set_error):
1494 * dbus/dbus-errors.h:
1495 Add a few errors and make dbus_set_error void.
1497 * dbus/dbus-sysdeps.c:
1498 (_dbus_errno_to_string), (close_and_invalidate), (make_pipe),
1499 (write_err_and_exit), (read_ints), (do_exec), (_dbus_spawn_async):
1500 * dbus/dbus-sysdeps.h:
1501 Add _dbus_spawn_async.
1503 * test/spawn-test.c: (main):
1504 Test for _dbus_spawn_async.
1506 2003-02-15 Anders Carlsson <andersca@codefactory.se>
1508 * dbus/dbus-internals.h:
1509 Fix build without tests.
1511 * dbus/dbus-list.c: (alloc_link):
1512 Fix a segfault when a malloc fails.
1514 * dbus/dbus-memory.c: (initialize_malloc_debug), (dbus_malloc),
1515 (dbus_malloc0), (dbus_realloc):
1516 Add support for malloc debugging.
1518 2003-02-15 Alexander Larsson <alexl@redhat.com>
1520 * dbus/dbus-threads.c:
1521 * dbus/dbus-threads.h:
1522 Add condvars. Remove static mutext from API.
1523 Implement static mutexes by initializing them from threads_init.
1525 * glib/dbus-gthread.c:
1526 * qt/dbus-qthread.cpp:
1527 Update with the thread api changes.
1532 Turn StaticMutex into normal mutex + init function.
1533 Export new functions _dbus_list_alloc_link, _dbus_list_free_link,
1534 _dbus_list_append_link, _dbus_list_prepend_link
1537 * dbus/dbus-sysdeps.c:
1538 * dbus/dbus-sysdeps.h:
1539 New type dbus_atomic_t, and new functions _dbus_atomic_inc,
1540 _dbus_atomic_dec. Only slow fallback implementation at the moment.
1542 * dbus/dbus-protocol.h:
1543 Add DBUS_MESSAGE_LOCAL_DISCONNECT define
1545 * dbus/dbus-message.c:
1546 Make ref/unref atomic.
1549 * dbus/dbus-connection-internal.h:
1550 * dbus/dbus-connection.c:
1551 * dbus/dbus-connection.h:
1553 Change _peek to _borrow,_return & _steal_borrowed.
1554 Change disconnect callback to event.
1555 Make dbus_connection_dispatch_messages reentrant.
1557 * dbus/dbus-transport.c:
1558 Don't ref the connection on calls to the transport
1561 * dbus/dbus-message-handler.c:
1564 * glib/dbus-gmain.c:
1565 Don't use peek_message anymore
1568 * test/debug-thread.c:
1569 * test/debug-thread.h:
1570 Simple thread implementation that asserts() on deadlocks in
1571 single-threaded code.
1574 (main) Call debug_threads_init.
1577 Use disconnect message instead of disconnect callback.
1581 Don't call dbus_connection_set_disconnect_function. Instead export
1582 bus_connection_disconnect.
1585 Call bus_connection_disconnect when we get a disconnected message.
1587 2003-02-15 Havoc Pennington <hp@pobox.com>
1589 * dbus/dbus-message.c (dbus_message_new): fool around with the
1592 2003-02-14 Havoc Pennington <hp@pobox.com>
1594 * dbus/dbus-mempool.c: fail if the debug functions so indicate
1596 * dbus/dbus-memory.c: fail if the debug functions indicate we
1599 * dbus/dbus-internals.c (_dbus_set_fail_alloc_counter)
1600 (_dbus_decrement_fail_alloc_counter): debug functions to
1601 simulate memory allocation failures
1603 2003-02-14 Havoc Pennington <hp@pobox.com>
1605 * dbus/dbus-errors.h (struct DBusError): add a word of padding
1608 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1610 * bus/driver.c: (bus_driver_handle_hello):
1612 * bus/services.c: (bus_service_lookup):
1613 Reorder message sending so we get a more sane order.
1615 * test/bus-test.c: (message_handler):
1618 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1620 * bus/driver.c: (bus_driver_send_service_deleted),
1621 (bus_driver_send_service_created), (bus_driver_send_service_lost),
1622 (bus_driver_send_service_acquired), (bus_driver_handle_hello),
1623 (bus_driver_send_welcome_message),
1624 (bus_driver_handle_list_services),
1625 (bus_driver_handle_acquire_service),
1626 (bus_driver_handle_service_exists):
1627 * dbus/dbus-bus.c: (dbus_bus_register_client),
1628 (dbus_bus_acquire_service), (dbus_bus_service_exists):
1629 * dbus/dbus-errors.c: (dbus_result_to_string):
1630 * dbus/dbus-errors.h:
1631 * dbus/dbus-message.c: (dbus_message_append_args),
1632 (dbus_message_append_args_valist), (dbus_message_get_args),
1633 (dbus_message_get_args_valist), (dbus_message_get_args_iter),
1634 (dbus_message_iter_get_arg_type), (dbus_message_iter_get_string),
1635 (dbus_message_iter_get_byte_array),
1636 (dbus_message_iter_get_string_array), (message_iter_test),
1637 (check_message_handling), (_dbus_message_test):
1638 * dbus/dbus-message.h:
1639 * test/bus-test.c: (main):
1640 Change fields to arguments in messages, so that they won't be
1641 confused with header fields.
1643 * glib/test-dbus-glib.c: (main):
1644 Remove append_fields from hello message.
1646 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1648 * dbus/dbus-errors.c:
1649 * dbus/dbus-message.c:
1650 * dbus/dbus-string.c:
1651 Documentation fixes.
1653 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1655 * glib/dbus-gmain.c: (timeout_handler), (add_timeout),
1657 Implement support for timeouts in dbus-glib.
1659 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1661 * dbus/dbus-message-builder.c: (_dbus_message_data_load):
1662 * dbus/dbus-message.c: (process_test_subdir):
1663 * test/break-loader.c: (find_breaks_based_on):
1664 Plug some memory leaks.
1666 2003-02-13 Richard Hult <rhult@codefactory.se>
1668 * bus/main.c: Fix build.
1670 * dbus/dbus-errors.h:
1671 * dbus/dbus-errors.c: Fix copyright for Anders.
1673 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1678 * bus/connection.c: (bus_connection_foreach):
1681 * bus/desktop-file.c: (grow_lines_in_section), (grow_sections),
1682 (unescape_string), (new_section), (parse_section_start),
1683 (parse_key_value), (report_error), (bus_desktop_file_load),
1684 (bus_desktop_file_get_string):
1685 * bus/desktop-file.h:
1686 Use DBusError for error reporting.
1688 * bus/dispatch.c: (send_one_message),
1689 (bus_dispatch_message_handler):
1690 * bus/driver.c: (bus_driver_send_service_deleted),
1691 (bus_driver_send_service_created), (bus_driver_send_service_lost),
1692 (bus_driver_send_service_acquired), (bus_driver_handle_hello),
1693 (bus_driver_send_welcome_message),
1694 (bus_driver_handle_list_services),
1695 (bus_driver_handle_acquire_service),
1696 (bus_driver_handle_service_exists):
1697 * bus/loop.c: (bus_loop_run):
1699 Use BUS_HANDLE_OOM instead of _DBUS_HANDLE_OOM.
1701 * bus/utils.c: (bus_wait_for_memory):
1703 New files with general utility functions.
1705 * dbus/dbus-internals.h:
1706 Remove _DBUS_HANDLE_OOM.
1708 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1710 * dbus/dbus-errors.c: (dbus_result_to_string), (dbus_error_init),
1711 (dbus_error_free), (dbus_set_error_const), (dbus_set_error):
1712 * dbus/dbus-errors.h:
1713 Add DBusError structure.
1715 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1717 * test/data/valid-messages/standard-acquire-service.message:
1718 * test/data/valid-messages/standard-hello.message:
1719 * test/data/valid-messages/standard-list-services.message:
1720 * test/data/valid-messages/standard-service-exists.message:
1721 Add some standard messages.
1723 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1725 * bus/driver.c: (bus_driver_send_welcome_message),
1726 (bus_driver_handle_list_services),
1727 (bus_driver_handle_acquire_service),
1728 (bus_driver_handle_service_exists), (bus_driver_handle_message):
1729 Update for API changes in libdbus.
1731 * dbus/dbus-message.c: (dbus_message_new_reply):
1732 * dbus/dbus-message.h:
1733 Remove the name argument. The spec states that replies shouldn't
1736 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1738 * bus/desktop-file.c: (parse_section_start), (parse_key_value),
1739 (report_error), (bus_desktop_file_load), (lookup_section),
1740 (lookup_line), (bus_desktop_file_get_raw),
1741 (bus_desktop_file_get_string):
1742 * bus/desktop-file.h:
1743 Some fixes, and new functions for getting a key value from a section.
1745 2003-02-13 Havoc Pennington <hp@pobox.com>
1747 * test/data/auth/fail-after-n-attempts.auth-script: new test
1749 * dbus/dbus-auth.c (send_rejected): shutdown_mech() when we
1752 2003-02-13 Havoc Pennington <hp@pobox.com>
1754 * dbus/dbus-auth.c (handle_server_data_external_mech): args to
1755 dbus_credentials_match were backward
1757 * dbus/dbus-auth-script.c (_dbus_auth_script_run): support
1758 NO_CREDENTIALS and ROOT_CREDENTIALS
1760 * dbus/dbus-auth.c (_dbus_auth_do_work): move get_state() routine
1761 into here. Never process more commands after we've reached an
1762 end state; store further data as unused bytes.
1764 * test/data/auth/*: add more auth tests
1766 * dbus/dbus-auth-script.c (_dbus_auth_script_run): support EXPECT
1767 command to match exact string and EXPECT_UNUSED to match unused
1770 * test/Makefile.am (dist-hook): fix to dist all the test stuff
1772 2003-02-12 Havoc Pennington <hp@pobox.com>
1774 * dbus/dbus-string.c (_dbus_string_pop_line): fix to also strip
1775 \r off of popped lines
1777 * dbus/dbus-auth.c (_dbus_auth_test): write code to run auth
1780 * dbus/dbus-auth-script.c (_dbus_auth_script_run): when doing a
1783 2003-02-12 Havoc Pennington <hp@pobox.com>
1785 * dbus/Makefile.am: remove break-loader from the build, since it
1788 * configure.in: add --enable-gcov to turn on coverage profiling
1789 flags and disable optimization
1791 2003-02-10 Havoc Pennington <hp@pobox.com>
1793 * dbus/dbus-auth-script.c, dbus/dbus-auth-script.h: sync
1794 initial cut at test framework for DBusAuth from laptop.
1795 Doesn't quite work yet but it compiles and I need to get
1796 it off the 266mhz laptop. ;-)
1798 * dbus/dbus-server-debug.c (_dbus_server_debug_accept_transport):
1799 fix a memleak in error case
1801 2003-02-12 Anders Carlsson <andersca@codefactory.se>
1804 * bus/desktop-file.c:
1805 * bus/desktop-file.h:
1806 Add a desktop file parser.
1808 2003-02-11 Zack Rusin <zack@kde.org>
1810 * qt/message.[h|cpp]: sample implementation
1811 of the KDE wrapper for DBusMessage
1813 2003-02-09 Zack Rusin <zack@kde.org>
1815 * test/bus-test.c: make_it_compile
1816 * doc/dbus-specification.sgml: minimal semantic fix
1818 2003-02-06 Anders Carlsson <andersca@codefactory.se>
1824 2003-02-06 Anders Carlsson <andersca@codefactory.se>
1827 * dbus/dbus-break-loader.c:
1829 * test/break-loader.c:
1830 Move dbus-break-loader to test/ and rename it to break-loader.
1832 2003-02-02 Havoc Pennington <hp@pobox.com>
1834 * dbus/dbus-keyring.c, dbus/dbus-keyring.h: template files
1835 for code to manage cookies in your home directory
1837 * dbus/dbus-sysdeps.c (_dbus_generate_random_bytes): new function
1839 * dbus/dbus-auth.c (get_state): impose a maximum number of tries
1840 to authenticate, then disconnect the client.
1842 2003-02-03 Alexander Larsson <alexl@redhat.com>
1844 * dbus/dbus-message.c (dbus_message_append_fields):
1847 2003-02-02 Anders Carlsson <andersca@codefactory.se>
1849 * doc/dbus-specification.sgml:
1850 Update address format section.
1852 2003-02-02 Anders Carlsson <andersca@codefactory.se>
1855 * test/bus-test.c: (get_time), (add_timeout), (remove_timeout),
1856 (message_handler), (new_connection_callback), (loop_quit),
1860 2003-02-02 Anders Carlsson <andersca@codefactory.se>
1862 * bus/driver.c: (bus_driver_handle_service_exists):
1863 Simplify the code a bit.
1865 * dbus/dbus-bus.c: (dbus_bus_service_exists):
1868 2003-02-02 Anders Carlsson <andersca@codefactory.se>
1871 Add libdbus-daemon.la and link to it.
1873 2003-02-01 James Willcox <jwillcox@gnome.org>
1875 * bus/driver.c: (bus_driver_handle_own_service):
1876 Actually include the service reply code in the message.
1878 2003-02-02 Anders Carlsson <andersca@codefactory.se>
1880 * bus/driver.c: (bus_driver_handle_service_exists):
1881 Don't unref the incoming message.
1883 2003-02-02 Anders Carlsson <andersca@codefactory.se>
1885 * dbus/dbus.h: Add dbus-address.h and dbus-bus.h
1887 2003-02-02 Anders Carlsson <andersca@codefactory.se>
1889 * dbus/dbus-server.c: (dbus_server_listen):
1890 * dbus/dbus-transport.c: (_dbus_transport_open):
1891 ifdef out the calls to the debug transport and server.
1893 2003-02-02 Alexander Larsson <alexl@redhat.com>
1895 * dbus/dbus-watch.c (dbus_watch_get_flags):
1896 Add note in the docs that ERROR or HANGUP won't be returned
1897 and are assumed always on.
1899 * glib/dbus-gmain.c (add_watch):
1900 Always add IO_ERR | IO_HUP
1902 * dbus/dbus-message.h:
1903 Add semicolon after dbus_message_iter_get_string_array().
1904 Makes qt code build again
1906 2003-02-01 Anders Carlsson <andersca@codefactory.se>
1908 * bus/driver.c: (create_unique_client_name),
1909 (bus_driver_handle_hello):
1910 Don't take a name, just use a numeric id to identify
1914 * dbus/dbus-bus.c: (dbus_bus_register_client),
1915 (dbus_bus_acquire_service), (dbus_bus_service_exists):
1917 Add new convenience functions for communicating with the bus.
1919 * dbus/dbus-message.h:
1921 * dbus/dbus-protocol.h:
1924 2003-02-01 Alexander Larsson <alexl@redhat.com>
1926 * dbus/dbus-message.c (dbus_message_append_fields):
1927 Add some more doc comments.
1929 2003-02-01 Havoc Pennington <hp@pobox.com>
1931 * dbus/dbus-break-loader.c (randomly_modify_length): change
1932 a 4-byte value in the message as if it were a length
1934 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): don't set
1935 execute bit on saved files
1937 2003-02-01 Havoc Pennington <hp@pobox.com>
1939 * dbus/dbus-break-loader.c (main): new program to find messages
1940 that break the loader.
1942 * dbus/dbus-sysdeps.c (_dbus_string_append_uint): new function
1943 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): new function
1945 * dbus/dbus-string.c (_dbus_string_set_byte): new
1947 2003-01-31 Havoc Pennington <hp@pobox.com>
1949 * dbus/dbus-message.c: refactor the test code to be more general,
1950 in preparation for writing a "randomly permute test cases to
1951 try to break the loader" program.
1953 2003-01-31 Havoc Pennington <hp@pobox.com>
1955 * doc/dbus-specification.sgml: work on the specification
1957 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): check
1958 the protocol version of the message.
1960 * dbus/dbus-protocol.h: drop special _REPLY names, the spec
1961 no longer specifies that.
1962 (DBUS_SERVICE_REPLY_SERVICE_EXISTS): fix flags (1/2/4/8 not
1965 * dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos): add missing
1966 "break" for DBUS_TYPE_NIL, remove @todo
1968 2003-01-31 Havoc Pennington <hp@pobox.com>
1970 * dbus/dbus-message.c (dbus_message_set_is_error_reply): rename
1971 just set_is_error/get_is_error as this is a commonly-used
1972 function, and write docs.
1974 2003-01-31 Anders Carlsson <andersca@codefactory.se>
1976 * dbus/dbus-address.c: (dbus_address_entry_free):
1977 Free key and value lists.
1979 * dbus/dbus-internals.c: (_dbus_type_to_string):
1980 Add the types we didn't have.
1982 * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
1983 (_dbus_marshal_validate_arg):
1986 * dbus/dbus-message.c: (dbus_message_set_sender):
1987 Remove todo about being able to set sender to NULL.
1989 (dbus_message_set_is_error_reply),
1990 (dbus_message_get_is_error_reply):
1991 * dbus/dbus-message.h:
1994 * dbus/dbus-protocol.h:
1995 Add error reply flag.
1997 * test/data/valid-messages/opposite-endian.message:
1998 Add NIL type to test.
2000 2003-01-31 Havoc Pennington <hp@pobox.com>
2002 * doc/dbus-specification.sgml: fully specify the header. Add
2003 flags and major protocol version, and change header/body len to
2006 * dbus/dbus-message-builder.c (append_saved_length): append length
2009 * dbus/dbus-message.c (dbus_message_create_header): change header
2010 length and body length to unsigned. Add the new fields from the
2012 (_dbus_message_loader_return_buffer): unsigned header/body len
2014 2003-01-30 Havoc Pennington <hp@pobox.com>
2016 * dbus/dbus-auth.c: rework to use only REJECTED, no
2019 * doc/dbus-sasl-profile.txt: drop MECHANISMS and just
2020 use REJECTED, suggested by Mark McLoughlin
2022 2003-01-30 Havoc Pennington <hp@pobox.com>
2024 * dbus/dbus-server.c (dbus_server_listen): @todo about how we need
2025 a better way to report errors here. e.g. "unix address lacks
2026 path" or something. also "no such file" when the path doesn't
2029 * dbus/dbus-address.c (dbus_address_entries_free): add @todo about
2031 (dbus_parse_address): add @todo about documenting address format,
2032 and allowing , and ; to be escaped
2034 2003-01-30 Anders Carlsson <andersca@codefactory.se>
2037 Add dbus-address.[ch]
2039 * dbus/dbus-address.c: (dbus_address_entry_free),
2040 (dbus_address_entries_free), (create_entry),
2041 (dbus_address_entry_get_method), (dbus_address_entry_get_value),
2042 (dbus_parse_address), (_dbus_address_test):
2043 * dbus/dbus-address.h:
2044 New files for dealing with address parsing.
2046 * dbus/dbus-connection.c:
2047 Document timeout functions.
2049 * dbus/dbus-message.c:
2050 Document dbus_message_new_from_message.
2052 * dbus/dbus-server-debug.c:
2055 * dbus/dbus-server.c: (dbus_server_listen):
2056 Parse address and use correct server implementation.
2058 * dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
2059 * dbus/dbus-string.h:
2060 New function with test.
2062 * dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
2066 * dbus/dbus-transport-debug.c:
2069 * dbus/dbus-transport.c: (_dbus_transport_open):
2070 Parse address and use correct transport implementation.
2072 2003-01-30 Havoc Pennington <hp@pobox.com>
2074 * dbus/dbus-message.c: use message->byte_order instead of
2075 DBUS_COMPILER_BYTE_ORDER throughout.
2076 (dbus_message_create_header): pad header to align the
2077 start of the body of the message to 8-byte boundary
2079 * dbus/dbus-marshal.h: make all the demarshalers take const
2080 DBusString arguments.
2082 * dbus/dbus-message.c (_dbus_message_loader_return_buffer):
2083 validate message args here, so we don't have to do slow validation
2084 later, and so we catch bad messages as they are incoming. Also add
2085 better checks on header_len and body_len. Also fill in
2088 * dbus/dbus-string.c (_dbus_string_validate_utf8): new (not
2089 implemented properly)
2090 (_dbus_string_validate_nul): new function to check all-nul
2092 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): rename
2093 get_arg_end_pos and remove all validation
2094 (_dbus_marshal_validate_arg): actually do validation here.
2096 2003-01-29 Havoc Pennington <hp@pobox.com>
2098 * dbus/dbus-message.c (check_message_handling): fix assertion
2099 failure on set_client_serial
2101 2003-01-28 Havoc Pennington <hp@pobox.com>
2103 * dbus/dbus-server-debug.c: Add doc section comments
2105 * dbus/dbus-transport-debug.c: add doc section comments
2107 2003-01-28 Havoc Pennington <hp@redhat.com>
2109 * dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
2110 the reverse order from how I had it
2111 (_dbus_string_base64_encode): reverse encoding order. I was
2112 basically byteswapping everything during encoding.
2114 2003-01-28 Anders Carlsson <andersca@codefactory.se>
2116 * dbus/dbus-connection-internal.h:
2117 * dbus/dbus-connection.c: (_dbus_connection_add_timeout),
2118 (_dbus_connection_remove_timeout):
2119 Add functions for adding and removing timeouts.
2121 * dbus/dbus-message.c: (dbus_message_new_from_message):
2122 Add new function that takes a message and creates an exact
2123 copy of it, but with the refcount set to 1.
2124 (check_message_handling):
2127 * dbus/dbus-server-protected.h:
2128 * dbus/dbus-server.c: (_dbus_server_init_base),
2129 (_dbus_server_finalize_base), (_dbus_server_add_timeout),
2130 (dbus_server_set_timeout_functions):
2131 (_dbus_server_remove_timeout):
2132 New functions so that a server can add and remove timeouts.
2134 (dbus_server_listen):
2135 Add commented out call to dbus_server_debug_new.
2137 * dbus/dbus-timeout.c: (_dbus_timeout_new):
2138 Actually set the handler, doh.
2140 * dbus/dbus-transport.c: (_dbus_transport_open):
2141 Add commented out call to dbus_transport_debug_client_new.
2144 Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
2146 2003-01-28 Havoc Pennington <hp@pobox.com>
2148 * dbus/dbus-message.c (check_message_handling): function to check
2149 on the loaded message, iterates over it etc.
2151 2003-01-28 Havoc Pennington <hp@pobox.com>
2153 * test/Makefile.am (dist-hook): fix make distdir
2155 * dbus/Makefile.am (TESTS_ENVIRONMENT): fix make check
2157 2003-01-27 Havoc Pennington <hp@pobox.com>
2159 * dbus/dbus-mempool.c (time_for_size): replace printf with
2162 * dbus/dbus-message-builder.c (_dbus_message_data_load): allow
2163 empty lines; fix the SAVE_LENGTH stuff to be
2164 START_LENGTH/END_LENGTH so it actually works; couple other
2167 * test/Makefile.am (dist-hook): add dist-hook for .message files
2169 * dbus/dbus-string.c (DBUS_STRING_COPY_PREAMBLE): source of a copy
2170 can be constant or locked.
2171 (_dbus_string_free): allow freeing a const string as
2174 * dbus/dbus-sysdeps.c (_dbus_concat_dir_and_file): utility
2176 * dbus/dbus-test-main.c (main): take an argument which is the
2177 directory containing test data
2179 * dbus/dbus-message.c (_dbus_message_test): pass a test_data_dir
2180 argument to this and load all the messages in test/data/
2181 checking that they can be loaded or not loaded as appropriate.
2183 2003-01-27 Anders Carlsson <andersca@codefactory.se>
2185 * bus/dispatch.c: (bus_dispatch_message_handler):
2186 Dispatch messages sent to services.
2188 * bus/driver.c: (bus_driver_send_service_deleted),
2189 (bus_driver_send_service_created), (bus_driver_send_service_lost),
2190 (bus_driver_send_service_acquired):
2191 Add helper functions for sending service related messages.
2193 (bus_driver_send_welcome_message):
2194 Send HELLO_REPLY instead of WELCOME.
2196 (bus_driver_handle_list_services):
2197 Send LIST_SERVICES_REPLY instead of SERVICES.
2199 (bus_driver_handle_own_service),
2200 (bus_driver_handle_service_exists):
2201 New message handlers.
2203 (bus_driver_handle_message):
2204 Invoke new message handlers.
2206 (bus_driver_remove_connection):
2207 Don't remove any services here since that's done automatically
2208 by bus_service_remove_owner now.
2211 New function signatures.
2213 * bus/services.c: (bus_service_add_owner):
2214 Send ServiceAcquired message if we're the only primary owner.
2216 (bus_service_remove_owner):
2217 Send ServiceAcquired/ServiceLost messages.
2219 (bus_service_set_prohibit_replacement),
2220 (bus_service_get_prohibit_replacement):
2221 Functions for setting prohibit replacement.
2223 (bus_service_has_owner):
2224 New function that checks if a connection is in the owner queue of
2228 Add new function signatures.
2230 * dbus/dbus-list.c: (_dbus_list_test):
2231 Add tests for _dbus_list_remove_last and traversing the list backwards.
2234 Fix a typo in _dbus_list_get_prev_link, if we're at the first element we can't
2235 go any further, so return NULL then.
2237 * dbus/dbus-protocol.h:
2238 Add new messages, service flags and service replies.
2240 2003-01-26 Havoc Pennington <hp@pobox.com>
2242 * dbus/dbus-message-builder.c: implement, completely untested.
2244 * test/data/*: add data to be used in testing.
2245 ".message" files are our simple loadable text format.
2246 ".message-raw" will be binary dumps of messages.
2248 * dbus/dbus-string.c (_dbus_string_starts_with_c_str): new
2250 2003-01-26 Havoc Pennington <hp@pobox.com>
2252 * dbus/dbus-sysdeps.c (_dbus_file_get_contents): new function
2254 * dbus/dbus-errors.c (dbus_result_to_string): add
2257 * dbus/dbus-message-builder.c: new file, will contain code to load
2258 up messages from files. Not implemented yet.
2260 2003-01-26 Havoc Pennington <hp@pobox.com>
2262 * dbus/dbus-message.c (dbus_message_set_sender): support deleting
2263 the sender by setting to NULL
2265 2003-01-26 Havoc Pennington <hp@pobox.com>
2267 The unit tests pass, but otherwise untested. If it breaks, the
2268 tests should have been better. ;-)
2270 * bus/driver.c (bus_driver_handle_hello): return if we disconnect
2273 * dbus/dbus-message.c: redo everything so we maintain
2274 message->header as the only copy of the various fields.
2275 This avoids the possibility of out-of-memory in some cases,
2276 for example dbus_message_lock() can't run out of memory anymore,
2277 and avoids extra copying. Figured I may as well go ahead and do
2278 this since it was busted for dbus_message_lock to not return
2279 failure on OOM, and dbus_message_write_header was totally
2280 unchecked for OOM. Also fixed some random other bugs.
2282 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): verify
2283 that strings are nul-terminated. Also, end_pos can be equal
2284 to string length just not greater than, I think.
2285 (_dbus_marshal_set_int32): new function
2286 (_dbus_marshal_set_uint32): new function
2287 (_dbus_marshal_set_string): new function
2289 * dbus/dbus-connection.c (_dbus_connection_new_for_transport): fix
2290 a warning, init timeout_list to NULL
2291 (dbus_connection_send_message): don't use uninitialized variable
2294 * dbus/dbus-string.c (_dbus_string_replace_len): new function
2296 2003-01-26 Anders Carlsson <andersca@codefactory.se>
2298 * bus/driver.c: (bus_driver_handle_hello),
2299 (bus_driver_send_welcome_message):
2302 2003-01-26 Anders Carlsson <andersca@codefactory.se>
2304 * dbus/dbus-auth.c: (process_auth), (_dbus_auth_unref):
2305 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
2306 (dbus_connection_unref):
2307 * dbus/dbus-marshal.c: (_dbus_marshal_test):
2308 * dbus/dbus-message.c: (dbus_message_unref),
2311 (dbus_message_get_fields):
2312 Remove debugging printout.
2314 (_dbus_message_loader_return_buffer):
2315 Don't store the header string.
2317 (_dbus_message_test):
2320 2003-01-26 Richard Hult <rhult@codefactory.se>
2322 * glib/dbus-gmain.c (dbus_connection_dispatch): Traverse a copy of
2323 the file descriptor list, since it can change under us.
2325 2003-01-25 Anders Carlsson <andersca@codefactory.se>
2327 * glib/dbus-gmain.c: (dbus_connection_prepare),
2328 (dbus_connection_check), (dbus_connection_dispatch), (add_watch),
2329 (remove_watch), (dbus_connection_hookup_with_g_main):
2330 Rewrite the glib handling to use its own GSource instead of a
2331 GIOChannel so we can catch messages put in the queue while waiting
2334 2003-01-25 Anders Carlsson <andersca@codefactory.se>
2337 * bus/connection.c: (connection_disconnect_handler),
2338 (connection_watch_callback), (bus_connection_setup):
2339 * bus/dispatch.c: (send_one_message),
2340 (bus_dispatch_broadcast_message), (bus_dispatch_message_handler),
2341 (bus_dispatch_add_connection), (bus_dispatch_remove_connection):
2343 * bus/driver.c: (bus_driver_send_service_deleted),
2344 (bus_driver_send_service_created), (bus_driver_handle_hello),
2345 (bus_driver_send_welcome_message),
2346 (bus_driver_handle_list_services), (bus_driver_remove_connection),
2347 (bus_driver_handle_message):
2349 Refactor code, put the message dispatching in its own file. Use
2350 _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client
2353 2003-01-25 Anders Carlsson <andersca@codefactory.se>
2355 * dbus/dbus-internals.h:
2356 Add _DBUS_HANDLE_OOM macro, it doesn't do anything currently.
2358 * dbus/dbus-message.c: (dbus_message_get_sender):
2359 * dbus/dbus-message.h:
2360 Implement dbus_message_get_sender.
2362 * dbus/dbus-protocol.h:
2363 Add message and service defines.
2365 2003-01-25 Anders Carlsson <andersca@codefactory.se>
2367 * dbus/dbus-connection.c: (dbus_connection_send_message):
2368 * dbus/dbus-message-internal.h:
2369 * dbus/dbus-message.c: (_dbus_message_get_client_serial),
2370 (dbus_message_write_header):
2371 Remove _dbus_messag_unlock and don't set the client serial on a
2372 message if one already exists.
2374 2003-01-24 Havoc Pennington <hp@pobox.com>
2376 * dbus/dbus-list.c (alloc_link): put a thread lock on the global
2379 * bus/driver.c (bus_driver_handle_list_services): fix a leak
2382 2003-01-25 Anders Carlsson <andersca@codefactory.se>
2384 * dbus/dbus-list.c: (alloc_link), (free_link):
2385 Use a memory pool for the links.
2387 2003-01-25 Anders Carlsson <andersca@codefactory.se>
2389 * bus/connection.c: (bus_connection_foreach):
2391 Add new bus_connection_foreach function.
2393 * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
2394 Add function that broadcasts a message to all clients.
2396 (bus_driver_send_service_created), (bus_driver_handle_hello),
2397 (bus_driver_send_welcome_message),
2398 (bus_driver_handle_list_services), (bus_driver_message_handler):
2399 Implement functions that take care of listing services, and notifying
2400 clients when new services are created.
2402 * bus/services.c: (bus_services_list):
2404 Add new function that returns an array of strings with the currently
2405 registered services.
2408 * glib/dbus-gmain.c:
2409 Update copyright year.
2411 2003-01-25 Anders Carlsson <andersca@codefactory.se>
2413 * dbus/dbus-connection.c: (dbus_connection_send_message):
2414 Unlock the message in case it was sent earlier.
2416 (dbus_connection_send_message_with_reply_and_block):
2417 Remove the reply message from the list.
2419 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
2420 Set array_len and new_pos correctly.
2422 (_dbus_marshal_test):
2423 Remove debug output.
2425 * dbus/dbus-message-internal.h:
2426 * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
2427 New function that returns the reply serial.
2429 (_dbus_message_unlock):
2430 New function that unlocks a message and resets its header.
2432 (dbus_message_append_string_array),
2433 (dbus_message_get_fields_valist),
2434 (dbus_message_iter_get_field_type),
2435 (dbus_message_iter_get_string_array),
2436 (dbus_message_get_fields),
2437 (dbus_message_append_fields_valist):
2438 Handle string arrays.
2440 (dbus_message_set_sender):
2441 Make this function public since the bus daemon needs it.
2443 (decode_header_data):
2444 Set the reply serial to -1 initially.
2446 * dbus/dbus-message.h:
2447 Add dbus_message_set_sender.
2449 2003-01-24 Havoc Pennington <hp@pobox.com>
2451 * doc/dbus-specification.sgml: add some stuff
2453 2003-01-22 Havoc Pennington <hp@pobox.com>
2455 * doc/dbus-specification.sgml: Start to document the protocol.
2457 2003-01-22 Havoc Pennington <hp@pobox.com>
2459 * dbus/dbus-connection.c
2460 (dbus_connection_send_message_with_reply_and_block): add some @todo
2462 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
2464 2003-01-21 Havoc Pennington <hp@pobox.com>
2466 (patch untested because can't compile)
2468 * bus/driver.c (create_unique_client_name): make this function
2469 never recycle client names. Also, caller should initialize
2472 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
2474 2003-01-21 Anders Carlsson <andersca@codefactory.se>
2476 * dbus/dbus-marshal.c: (_dbus_marshal_double),
2477 (_dbus_marshal_int32), (_dbus_marshal_uint32),
2478 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
2479 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
2480 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
2481 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
2482 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
2483 * dbus/dbus-marshal.h:
2484 * dbus/dbus-protocol.h:
2485 Add support for marshalling and demarshalling integer, double
2488 2003-01-21 Anders Carlsson <andersca@codefactory.se>
2493 * bus/connection.c: (connection_disconnect_handler):
2494 Remove the connection from the bus driver's list.
2496 (connection_watch_callback): Dispatch messages.
2498 (free_connection_data): Free connection name.
2500 (bus_connection_setup): Add connection to the bus driver's list.
2501 (bus_connection_remove_owned_service):
2502 (bus_connection_set_name), (bus_connection_get_name):
2503 Add functions for setting and getting the connection's name.
2506 Add function headers.
2508 * bus/driver.c: (create_unique_client_name),
2509 (bus_driver_handle_hello_message),
2510 (bus_driver_send_welcome_message), (bus_driver_message_handler),
2511 (bus_driver_add_connection), (bus_driver_remove_connection):
2514 * bus/services.c: (bus_service_free):
2516 New file that handles communication and registreation with the bus
2519 2003-01-21 Anders Carlsson <andersca@codefactory.se>
2521 * dbus/dbus-connection.c: (dbus_connection_send_message):
2522 Add a new client_serial parameter.
2524 (dbus_connection_send_message_with_reply):
2525 Remove a @todo since we've implemented the blocking function.
2527 (dbus_connection_send_message_with_reply_and_block):
2528 New function that sends a message and waits for a reply and
2529 then returns the reply.
2531 * dbus/dbus-connection.h:
2534 * dbus/dbus-errors.c: (dbus_result_to_string):
2535 * dbus/dbus-errors.h:
2536 Add new DBUS_RESULT.
2538 * dbus/dbus-message-internal.h:
2539 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
2540 (_dbus_message_set_sender), (dbus_message_write_header),
2541 (dbus_message_new_reply), (decode_header_data),
2542 (_dbus_message_loader_return_buffer), (_dbus_message_test):
2543 * dbus/dbus-message.h:
2544 Add new functions that set the reply serial and sender.
2545 Also marshal and demarshal them correctly and add test.
2547 * dbus/dbus-protocol.h:
2548 Add new DBUS_MESSAGE_TYPE_SENDER.
2551 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
2552 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
2553 (dbus_connection_hookup_with_g_main):
2554 * glib/test-dbus-glib.c: (main):
2555 Rewrite to use GIOChannel and remove the GSource crack.
2557 * test/echo-client.c: (main):
2558 * test/watch.c: (check_messages):
2559 Update for changed APIs
2561 2003-01-19 Anders Carlsson <andersca@codefactory.se>
2563 * dbus/Makefile.am: Add dbus-timeout.[cħ]
2565 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
2566 Create a DBusTimeoutList.
2567 (dbus_connection_set_timeout_functions): Add new function to
2568 set timeout callbacks
2570 * dbus/dbus-connection.h: Add public DBusTimeout API.
2572 * dbus/dbus-message.c: (dbus_message_get_service):
2573 * dbus/dbus-message.h: New function.
2575 * dbus/dbus-server.c: Fix small doc typo.
2577 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
2579 2003-01-19 Anders Carlsson <andersca@codefactory.se>
2581 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
2582 of the string, just as long as specified.
2584 2003-01-19 Havoc Pennington <hp@pobox.com>
2586 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
2589 * dbus/dbus-server.c (dbus_server_set_max_connections)
2590 (dbus_server_get_max_connections, dbus_server_get_n_connections):
2591 keep track of current number of connections, and add API for
2592 setting a max (but haven't implemented enforcing the max yet)
2594 2003-01-18 Havoc Pennington <hp@pobox.com>
2596 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
2597 reading/writing if read_watch != NULL or write_watch != NULL.
2599 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
2600 the message loader code to actually load message->header and
2601 message->body into the newly-created message.
2603 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
2606 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
2607 (dbus_connection_get_max_message_size)
2608 (dbus_connection_set_max_live_messages_size)
2609 (dbus_connection_get_max_live_messages_size): implement some
2610 resource limitation functions
2612 * dbus/dbus-resources.c: new file implementing some of the
2613 resource limits stuff
2615 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
2616 missing docs, add @todo to handle OOM etc.
2618 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
2621 2003-01-18 Havoc Pennington <hp@pobox.com>
2623 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
2624 connection if it hasn't been already.
2626 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
2627 replace with DisconnectFunction.
2629 2003-01-18 Havoc Pennington <hp@pobox.com>
2631 Building --disable-verbose-mode --disable-asserts --disable-tests
2632 cuts the library from 112K to 45K or so
2634 * configure.in: check for varargs macro support,
2635 add --enable-verbose-mode, --enable-asserts.
2637 * dbus/dbus-internals.h (_dbus_assert): support
2639 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
2641 2003-01-18 Havoc Pennington <hp@pobox.com>
2643 * dbus/dbus-test.c: include config.h so that tests actually run
2645 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
2646 so the failure mode when that assumption fails will be plenty
2649 2003-01-18 Havoc Pennington <hp@pobox.com>
2651 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
2653 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
2656 * test/Makefile.am: don't use special variable "TESTS" for echo-*
2657 since we don't want to use those in make check
2659 2003-01-15 Havoc Pennington <hp@redhat.com>
2665 2003-01-15 Havoc Pennington <hp@redhat.com>
2667 * test/Makefile.am: fix so that test source code ends up in the
2668 distribution on make distcheck
2670 2003-01-15 Havoc Pennington <hp@redhat.com>
2676 2003-01-15 Havoc Pennington <hp@redhat.com>
2678 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
2679 fix build when --disable-tests
2681 * Makefile.am (EXTRA_DIST): put HACKING in here
2683 * HACKING: document procedure for making a tarball release.
2685 2003-01-14 Anders Carlsson <andersca@codefactory.se>
2687 * bus/connection.c: (connection_error_handler),
2688 (bus_connection_setup):
2689 * bus/main.c: (main):
2690 Make sure that the DBusConnectionData struct is NULLed
2691 out to prevent a segfault.
2693 * dbus/dbus-errors.c: (dbus_result_to_string):
2694 * dbus/dbus-errors.h:
2695 * dbus/dbus-message.c: (dbus_message_get_fields),
2696 (dbus_message_get_fields_valist), (_dbus_message_test):
2697 * dbus/dbus-message.h:
2698 Make dbus_message_get_fields return a result code so we can
2699 track invalid fields as well as oom.
2701 2003-01-11 Havoc Pennington <hp@pobox.com>
2703 * configure.in: change --enable-test/--enable-ansi action-if-given
2704 to enable_foo=$enableval instead of enable_foo=yes
2706 2003-01-08 Havoc Pennington <hp@pobox.com>
2708 * dbus/dbus-string.c (_dbus_string_align_length): new function
2710 * dbus/dbus-test-main.c: move main() for test app here
2712 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
2713 symbol to run tests, because dbus-test isn't in the main
2716 Code review nitpicks.
2718 * dbus/dbus-message.c (dbus_message_write_header): add newlines
2719 for people with narrow emacs ;-). Assert client_serial was filled
2720 in. Assert message->name != NULL.
2721 (dbus_message_append_fields): have "first_field_type" arg separate
2722 from va list, needed for C++ binding that also uses varargs IIRC
2723 and helps with type safety
2724 (dbus_message_new): add @todo about using DBusString to store
2725 service/name internally
2726 (dbus_message_new): don't leak ->service and ->name on OOM later
2728 (dbus_message_unref): free the service name
2729 (dbus_message_get_fields): same change to varargs
2730 i.e. first_field_type
2731 (_dbus_message_loader_return_buffer): assert that the message data
2732 is aligned (if not it's a bug in our code). Put in verbose griping
2733 about why we set corrupted = TRUE.
2734 (decode_header_data): add FIXME that char* is evil. Was going to
2735 add FIXME about evil locale-specific string.h strncmp, but just
2736 switched to wacky string-as-uint32 optimization. Move check for
2737 "no room for field name" above get_const_data_len() to avoid
2738 assertion failure in get_const_data_len if we have trailing 2
2739 bytes or the like. Check for service and name fields being
2740 provided twice. Don't leak service/name on error. Require field
2741 names to be aligned to 4 bytes.
2743 * dbus/dbus-marshal.c: move byte swap stuff to header
2744 (_dbus_pack_int32): uscore-prefix
2745 (_dbus_unpack_int32): uscore-prefix
2746 (_dbus_unpack_uint32): export
2747 (_dbus_demarshal_string): add @todo complaining about use of
2749 (_dbus_marshal_get_field_end_pos): add @todo about bad error
2750 handling allowing corrupt data to go unchecked
2752 2003-01-08 Havoc Pennington <hp@redhat.com>
2754 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
2755 to the select() as needed for authentication. (should be using
2756 _dbus_poll() not select, but for another day)
2758 * dbus/dbus.h: include dbus/dbus-protocol.h
2760 2003-01-08 Anders Carlsson <andersca@codefactory.se>
2762 * dbus/Makefile.am (dbusinclude_HEADERS): Install
2765 2003-01-08 Anders Carlsson <andersca@codefactory.se>
2767 * dbus/dbus-internals.c: (_dbus_type_to_string):
2768 New function that returns a string describing a type.
2770 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
2771 * dbus/dbus-marshal.h:
2772 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
2773 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
2774 (dbus_message_iter_get_byte_array):
2775 * dbus/dbus-message.h:
2776 Add new convenience functions for appending and getting message fields.
2777 Also add demarshalling routines for byte arrays.
2779 2003-01-07 Anders Carlsson <andersca@codefactory.se>
2781 * dbus/dbus-connection-internal.h:
2782 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
2783 (_dbus_connection_get_next_client_serial),
2784 (dbus_connection_send_message):
2785 * dbus/dbus-internals.h:
2786 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
2787 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
2788 (_dbus_marshal_uint32), (_dbus_demarshal_double),
2789 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
2790 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
2791 (_dbus_verbose_bytes), (_dbus_marshal_test):
2792 * dbus/dbus-marshal.h:
2793 * dbus/dbus-message-internal.h:
2794 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
2795 (dbus_message_write_header), (_dbus_message_lock),
2796 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
2797 (dbus_message_get_name), (dbus_message_append_int32),
2798 (dbus_message_append_uint32), (dbus_message_append_double),
2799 (dbus_message_append_string), (dbus_message_append_byte_array),
2800 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
2801 (dbus_message_iter_unref), (dbus_message_iter_has_next),
2802 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
2803 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
2804 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
2805 (decode_header_data), (_dbus_message_loader_return_buffer),
2806 (message_iter_test), (_dbus_message_test):
2807 * dbus/dbus-message.h:
2808 * dbus/dbus-protocol.h:
2809 * dbus/dbus-test.c: (main):
2811 * glib/test-dbus-glib.c: (message_handler), (main):
2812 * test/echo-client.c: (main):
2813 * test/watch.c: (check_messages):
2814 Make messages sendable and receivable for real.
2816 2003-01-07 Anders Carlsson <andersca@codefactory.se>
2818 * dbus/dbus-marshal.c: (_dbus_marshal_double),
2819 (_dbus_marshal_string), (_dbus_marshal_byte_array):
2820 * dbus/dbus-message.c: (dbus_message_append_int32),
2821 (dbus_message_append_uint32), (dbus_message_append_double),
2822 (dbus_message_append_string), (dbus_message_append_byte_array):
2823 Handle OOM restoration.
2825 2003-01-07 Anders Carlsson <andersca@codefactory.se>
2827 * dbus/dbus-marshal.c: (_dbus_marshal_string),
2828 (_dbus_demarshal_string), (_dbus_marshal_test):
2829 * dbus/dbus-marshal.h:
2830 * dbus/dbus-message.c: (dbus_message_get_name),
2831 Document these functions.
2833 (dbus_message_append_int32), (dbus_message_append_uint32),
2834 (dbus_message_append_double), (dbus_message_append_string),
2835 (dbus_message_append_byte_array):
2836 * dbus/dbus-message.h:
2837 Add functions for adding message fields of different types.
2839 * dbus/dbus-protocol.h:
2840 Add the different types.
2842 2003-01-05 Havoc Pennington <hp@pobox.com>
2844 * bus/connection.c: implement routines for handling connections,
2845 first thing is keeping a list of owned services on each connection
2846 and setting up watches etc.
2848 * bus/services.c: implement a mapping from service names to lists
2851 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
2853 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
2854 to use static mutexes for global data
2856 * dbus/dbus-connection.c (dbus_connection_set_data): add new
2857 collection of functions to set/get application-specific data
2858 on the DBusConnection.
2860 2003-01-04 Havoc Pennington <hp@pobox.com>
2862 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
2863 (_dbus_poll): new function
2865 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
2868 * bus/loop.c: initial code for the daemon main loop
2870 2003-01-04 Havoc Pennington <hp@pobox.com>
2872 * test/watch.c (error_handler): make it safe if the error handler
2873 is called multiple times (if we s/error handler/disconnect
2874 handler/ we should just guarantee it's called only once)
2876 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
2877 error handler on disconnect (it's quite possible we should
2878 just change the error handler to a "disconnect handler," I'm
2879 not sure we have any other meaningful errors)
2881 * configure.in: check for getpwnam_r
2883 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
2884 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
2885 mechanism as in SASL spec, using socket credentials
2887 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
2888 (_dbus_send_credentials_unix_socket): new function
2890 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
2892 (_dbus_write): only check errno if <0 returned
2893 (_dbus_write_two): ditto
2895 2003-01-02 Anders Carlsson <andersca@codefactory.se>
2897 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
2898 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
2899 (_dbus_marshal_test):
2900 * dbus/dbus-marshal.h:
2901 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
2902 to _dbus_marshal_utf8_string. Also fix some tests.
2904 2002-12-28 Harri Porten <porten@kde.org>
2906 * configure.in: added check for C++ compiler and a very cheesy
2907 check for the Qt integration
2909 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
2911 * qt/Makefile.am: added
2913 * qt/.cvsignore: added
2915 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
2916 latter, added #ifdef QT_THREAD_SUPPORT guard.
2918 * dbus/Makefile.am: added missing headers for make dist
2920 2002-12-28 Kristian Rietveld <kris@gtk.org>
2922 * dbus/Makefile.am: fixup export-symbols-regex.
2924 2002-12-27 Anders Carlsson <andersca@codefactory.se>
2926 * acinclude.m4: Add this file and put the
2927 PKG_CHECK_MODULE macro in it.
2929 2002-12-27 Anders Carlsson <andersca@codefactory.se>
2931 * dbus/dbus-marshal.c: (_dbus_marshal_string),
2932 (_dbus_demarshal_double), (_dbus_demarshal_int32),
2933 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
2934 (_dbus_marshal_test):
2935 Make the demarshalling routines align the pos argument.
2936 Add string marshalling tests and fix the obvious bugs
2939 2002-12-26 Havoc Pennington <hp@pobox.com>
2941 * dbus/dbus-auth.c: fixes fixes fixes
2943 * dbus/dbus-transport-unix.c: wire up support for
2944 encoding/decoding data on the wire
2946 * dbus/dbus-auth.c (_dbus_auth_encode_data)
2947 (_dbus_auth_decode_data): append to target string
2948 instead of nuking it.
2950 2002-12-26 Havoc Pennington <hp@pobox.com>
2952 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
2953 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
2956 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
2957 avoid swap_bytes() overhead (ignoring possible assembly stuff for
2958 now). Main point is because I wanted unpack_uint32 to implement
2960 (_dbus_verbose_bytes): new function
2962 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
2964 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
2965 mechanism to handle a corrupt message stream
2966 (_dbus_message_loader_new): fix preallocation to only prealloc,
2969 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
2970 (_dbus_string_test): enhance tests for copy/move and fix the
2973 * dbus/dbus-transport-unix.c: Hold references in more places to
2974 avoid reentrancy problems
2976 * dbus/dbus-transport.c: ditto
2978 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
2979 leak reference count in no-message case
2981 * test/watch.c (do_mainloop): handle adding/removing watches
2982 during iteration over the watches. Also, ref the connection/server
2983 stored on a watch, so we don't try to mangle a destroyed one.
2985 * dbus/dbus-transport-unix.c (do_authentication): perform
2988 * dbus/dbus-auth.c (get_state): add a state
2989 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
2990 (_dbus_auth_get_unused_bytes): append the unused bytes
2991 to the passed in string, rather than prepend
2993 * dbus/dbus-transport.c (_dbus_transport_init_base): create
2994 the auth conversation DBusAuth
2996 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
2997 (_dbus_transport_new_for_domain_socket): when creating a
2998 transport, pass in whether it's a client-side or server-side
2999 transport so we know which DBusAuth to create
3001 2002-12-03 Havoc Pennington <hp@pobox.com>
3003 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
3004 _after_ finalizing the derived members
3005 (unix_connection_set): unref watch if we fail to add it
3007 * dbus/dbus-connection.c (dbus_connection_unref): delete the
3008 transport first, so that the connection owned by the
3009 transport will be valid as the transport finalizes.
3011 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
3012 if necessary, and remove watches from the connection.
3014 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
3016 2002-12-26 Anders Carlsson <andersca@codefactory.se>
3018 * dbus/dbus-marshal.c: (_dbus_marshal_string),
3019 (_dbus_demarshal_double), (_dbus_demarshal_int32),
3020 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
3021 (_dbus_marshal_test):
3022 * dbus/dbus-marshal.h:
3023 Add string marshal functions and have the demarshal functions
3024 return the new position.
3026 2002-12-25 Havoc Pennington <hp@pobox.com>
3028 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
3029 it is a simple protocol that just maps directly to SASL.
3031 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
3032 initial implementation, not actually used yet.
3034 * dbus/dbus-string.c (_dbus_string_find): new function
3035 (_dbus_string_equal): new function
3036 (_dbus_string_base64_encode): new function
3037 (_dbus_string_base64_decode): new function
3039 2002-12-25 Anders Carlsson <andersca@codefactory.se>
3042 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
3043 (_dbus_marshal_int32), (_dbus_marshal_uint32),
3044 (_dbus_demarshal_double), (_dbus_demarshal_int32),
3045 (_dbus_demarshal_uint32), (_dbus_marshal_test):
3046 * dbus/dbus-marshal.h:
3047 * dbus/dbus-protocol.h:
3048 * dbus/dbus-test.c: (main):
3050 Add un-optimized marshalling/demarshalling routines.
3052 2002-12-25 Harri Porten <porten@kde.org>
3054 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
3056 2002-12-24 Zack Rusin <zack@kde.org>
3058 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
3059 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
3062 2002-12-24 Havoc Pennington <hp@pobox.com>
3064 * glib/dbus-gthread.c: fix include
3066 * glib/dbus-glib.h: rename DBusMessageHandler for now.
3067 I think glib API needs to change, though, as you don't
3068 want to use DBusMessageFunction, you want to use the
3069 DBusMessageHandler object. Probably
3070 dbus_connection_open_with_g_main_loop()
3071 and dbus_connection_setup_g_main_loop() or something like that
3072 (but think of better names...) that just create a connection
3073 that has watch/timeout functions etc. already set up.
3075 * dbus/dbus-connection.c
3076 (dbus_connection_send_message_with_reply): new function just to
3077 show how the message handler helps us deal with replies.
3079 * dbus/dbus-list.c (_dbus_list_remove_last): new function
3081 * dbus/dbus-string.c (_dbus_string_test): free a string that
3084 * dbus/dbus-hash.c: use memory pools for the hash entries
3085 (rebuild_table): be more paranoid about overflow, and
3086 shrink table when we can
3087 (_dbus_hash_test): reduce number of sprintfs and write
3088 valid C89. Add tests for case where we grow and then
3089 shrink the hash table.
3091 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
3093 * dbus/dbus-connection.c (dbus_connection_register_handler)
3094 (dbus_connection_unregister_handler): new functions
3096 * dbus/dbus-message.c (dbus_message_get_name): new
3098 * dbus/dbus-list.c: fix docs typo
3100 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
3101 an object representing a handler for messages.
3103 2002-12-16 Anders Carlsson <andersca@codefactory.se>
3106 * glib/dbus-gthread.c: (dbus_gthread_init):
3107 Don't use the gdbus prefix for public functions.
3109 2002-12-16 Anders Carlsson <andersca@codefactory.se>
3113 Add GLib checks and fixup .pc files
3117 * glib/dbus-gmain.c: (gdbus_connection_prepare),
3118 (gdbus_connection_check), (gdbus_connection_dispatch),
3119 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
3120 (dbus_connection_gsource_new):
3121 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
3122 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
3123 * glib/test-dbus-glib.c: (message_handler), (main):
3126 2002-12-15 Harri Porten <porten@kde.org>
3128 * autogen.sh: check for libtoolize before attempting to use it
3130 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
3133 * .cvsignore: ignore more stamp files
3135 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
3137 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
3138 without make install.
3140 2002-12-15 Havoc Pennington <hp@pobox.com>
3142 * dbus/dbus-threads.c: add thread stubs that a higher library
3143 layer can fill in. e.g. the GLib wrapper might fill them in with
3144 GThread stuff. We still need to use this thread API to
3145 thread-safe-ize the library.
3147 2002-12-12 Havoc Pennington <hp@pobox.com>
3149 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
3150 below new interfaces and include fewer system headers.
3152 * dbus/dbus-sysdeps.c (_dbus_read): new function
3153 (_dbus_write): new function
3154 (_dbus_write_two): new function
3155 (_dbus_connect_unix_socket): new function
3156 (_dbus_listen_unix_socket): new function
3158 * dbus/dbus-message-internal.h: change interfaces to use
3161 2002-12-11 Havoc Pennington <hp@pobox.com>
3163 * dbus/dbus-types.h: add dbus_unichar
3165 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
3167 * dbus/dbus-connection.c (dbus_connection_send_message): return
3170 * dbus/dbus-transport.c: include dbus-watch.h
3172 * dbus/dbus-connection.c: include dbus-message-internal.h
3174 * HACKING: add file with coding guidelines stuff.
3176 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
3177 handling here, for security purposes (as in vsftpd). Not actually
3178 using this class yet.
3180 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
3181 system/libc usage here, as in vsftpd, for ease of auditing (and
3182 should also simplify portability). Haven't actually moved all the
3183 system/libc usage into here yet.
3185 2002-11-25 Havoc Pennington <hp@pobox.com>
3187 * dbus/dbus-internals.c (_dbus_verbose): fix to not
3188 always print the first verbose message.
3190 2002-11-24 Havoc Pennington <hp@pobox.com>
3192 * test/echo-client.c, test/echo-server.c: cheesy test
3195 * configure.in (AC_CHECK_FUNCS): check for writev
3197 * dbus/dbus-message.c (_dbus_message_get_network_data): new
3200 * dbus/dbus-list.c (_dbus_list_foreach): new function
3202 * dbus/dbus-internals.c (_dbus_verbose): new function
3204 * dbus/dbus-server.c, dbus/dbus-server.h: public object
3205 representing a server that listens for connections.
3207 * dbus/.cvsignore: create
3209 * dbus/dbus-errors.h, dbus/dbus-errors.c:
3210 public API for reporting errors
3212 * dbus/dbus-connection.h, dbus/dbus-connection.c:
3213 public object representing a connection that
3214 sends/receives messages. (Same object used for
3215 both client and server.)
3217 * dbus/dbus-transport.h, dbus/dbus-transport.c:
3218 Basic abstraction for different kinds of stream
3219 that we might read/write messages from.
3221 2002-11-23 Havoc Pennington <hp@pobox.com>
3223 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
3226 * dbus/dbus-test.c (main): add list test, and include
3227 dbus-test.h as intended
3229 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
3230 (_dbus_hash_table_remove_int): return value indicates
3231 whether the entry existed to remove
3233 * dbus/dbus-list.c: add linked list utility class,
3236 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
3239 2002-11-23 Havoc Pennington <hp@pobox.com>
3241 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
3242 DBUS_END_DECLS to nothing, that should fix this once and for all
3244 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
3246 * dbus/dbus-message.c, dbus/dbus-hash.c:
3247 add some missing @brief
3249 2002-11-23 Havoc Pennington <hp@pobox.com>
3251 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
3252 to avoid confusing Doxygen
3254 * dbus/dbus-hash.c: @} not }@
3256 * dbus/dbus-message.c (struct DBusMessage): split out
3259 2002-11-23 Havoc Pennington <hp@pobox.com>
3261 * configure.in: pile on more warning flags if using gcc
3263 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
3264 to document static functions
3266 * configure.in: add summary to end of configure so it
3267 looks nice and attractive
3269 * dbus/dbus-hash.c: finish implementation and write unit
3272 * configure.in: add --enable-tests to enable unit tests
3274 * dbus/dbus-test.c: test program to run unit tests
3275 for all files in dbus/*, initially runs a test for
3278 * dbus/dbus-internals.h: file to hold some internal utility stuff
3280 2002-11-22 Havoc Pennington <hp@redhat.com>
3282 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
3283 "ported" away from Tcl
3285 * dbus/dbus-types.h: header for types such as dbus_bool_t
3287 2002-11-22 Havoc Pennington <hp@redhat.com>
3289 * dbus/dbus.h: fixups for doc warnings
3291 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
3293 (QUIET): make it quiet so we can see warnings
3295 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
3297 2002-11-22 Havoc Pennington <hp@redhat.com>
3299 * Makefile.am: include "Doxyfile" target in all-local
3301 * configure.in: generate the Doxyfile
3303 * Doxyfile.in: move Doxyfile here, so we can use
3304 configure to generate a Doxyfile with the right
3307 2002-11-22 Havoc Pennington <hp@redhat.com>
3309 * dbus/dbus-message.c: move inline docs into .c file
3311 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
3312 so all docs are under doc/
3313 (MAN_EXTENSION): generate man pages. Use extension
3314 ".3dbus" which matches ".3qt" on my system,
3315 I guess this is OK, I don't know really.
3316 (FILE_PATTERNS): look for .c files not .h, makes sense
3319 2002-11-22 Havoc Pennington <hp@pobox.com>
3321 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
3322 because any app can be a server, and any app can be a client,
3323 the bus is a special kind of server.
3325 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
3327 * Doxyfile : adding. Still needs Makefile rules to be generated
3328 automatically (just run "doxygen" in the toplevel dir for now to
3331 * dbus/dbus-message.h : Adding sample docs (javadoc since
3332 resembles gtk-doc a little more)
3334 * dbus/dbus.h : Adding sample docs
3336 2002-11-21 Havoc Pennington <hp@redhat.com>
3338 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
3339 so we can allow ourselves to include files directly,
3340 instead of having to use dbus.h
3342 * dbus/dbus.h: fill in
3344 * dbus/dbus-message.h: sketch out a sample header file.
3345 Include griping if you include it directly instead of
3348 * dbus/dbus-macros.h: new file with macros for extern "C",
3349 TRUE/FALSE, NULL, etc.
3351 * doc/file-boilerplate.c: put include guards in here
3353 2002-11-21 Havoc Pennington <hp@redhat.com>
3355 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
3357 * COPYING: include the GPL as well, and license code
3358 under both AFL and GPL.
3360 2002-11-21 Havoc Pennington <hp@redhat.com>
3362 * acconfig.h: get rid of this
3364 * autogen.sh (run_configure): add --no-configure option
3366 * configure.in: remove AC_ARG_PROGRAM to make
3367 autoconf complain less. add AC_PREREQ.
3368 add AC_DEFINE third arg.
3370 2002-11-21 Anders Carlsson <andersca@codefactory.se>
3373 Fix references so we can distcheck.
3375 2002-11-21 Havoc Pennington <hp@redhat.com>
3377 * Initial module creation