1 2003-02-18 Havoc Pennington <hp@pobox.com>
3 * dbus/dbus-string.c (_dbus_string_zero): new function
5 * dbus/dbus-md5.c: include MD5 implementation by L. Peter Deutsch,
6 wrap it in some dbus-friendly API
8 * dbus/dbus-types.h: add 16-bit types
10 2003-02-18 Joe Shaw <joe@assbarn.com>
12 * dbus/dbus-auth.c (handle_server_data_stupid_test_mech): Just get
13 credentials from our currently running process.
14 (get_word): Fix a buglet where we were copying the entire length
15 instead of relative to our position.
17 * dbus/dbus-hash.c (_dbus_hash_test): Don't try to allocate the
18 keys on the stack... it's 640k of data.
20 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): Always
21 read the credentials byte off the socket, even if we don't have
23 (_dbus_poll): Implement poll() using select() for systems which
26 * glib/test-dbus-glib.c (main): Print out an error if no
29 * test/data/auth/fallback.auth-script: Added. Tests that a client
30 can fallback to a secondary auth mechanism if the first fails.
32 2003-02-18 Havoc Pennington <hp@pobox.com>
36 2003-02-17 Havoc Pennington <hp@pobox.com>
38 * doc/dbus-specification.sgml: lots of cosmetic
39 cleanups/rearrangement, add assorted FIXME, change DBUS_ADDRESS
40 env variable to DBUS_BUS_ADDRESS, s/client/application/,
41 s/server/bus/ (except in authentication section). Add a section
42 "Message Bus Message Routing"
44 2003-02-17 Anders Carlsson <andersca@codefactory.se.>
50 2003-02-17 Anders Carlsson <andersca@codefactory.se>
52 * doc/dbus-specification.sgml:
53 Specification updates.
55 2003-02-17 Anders Carlsson <andersca@codefactory.se>
57 * bus/activation.c: (bus_activation_init), (child_setup),
58 (bus_activation_activate_service):
61 Set DBUS_ADDRESS environment variable.
63 * dbus/dbus-errors.c: (dbus_set_error):
64 Don't use va_copy since that's a C99 feature.
66 * dbus/dbus-sysdeps.c: (_dbus_setenv), (do_exec),
68 * dbus/dbus-sysdeps.h:
69 Add child_setup_func to _dbus_spawn_async.
71 * doc/dbus-specification.sgml:
74 * test/spawn-test.c: (setup_func), (main):
77 2003-02-17 Alexander Larsson <alexl@redhat.com>
79 * dbus/dbus-connection.c (_dbus_connection_handler_destroyed_locked):
82 2003-02-17 Anders Carlsson <andersca@codefactory.se>
86 * doc/dbus-test-plan.sgml:
87 Add test plan document.
92 2003-02-17 Anders Carlsson <andersca@codefactory.se>
94 * dbus/dbus-message.c: (decode_header_data),
95 (_dbus_message_loader_return_buffer):
96 Set the header padding amount when loading a message.
98 2003-02-16 Anders Carlsson <andersca@codefactory.se>
100 * bus/dispatch.c: (send_one_message):
101 Only send broadcast messages to registered connections.
103 * dbus/dbus-message.c: (dbus_message_name_is):
104 * dbus/dbus-message.h:
105 New convenience function.
107 * dbus/dbus-transport-debug.c: (do_reading):
108 Only dispatch one message per run.
111 * test/bus-test.c: (new_connection_callback), (die),
112 (test_hello_client1_handler), (test_hello_client2_handler),
113 (test_hello_replies), (main):
115 * test/bus-test-loop.[ch]:
118 2003-02-16 Havoc Pennington <hp@pobox.com>
120 * dbus/dbus-connection.c (dbus_connection_dispatch_message): fix
123 2003-02-16 Alexander Larsson <alexl@redhat.com>
125 * dbus/dbus-connection.c:
126 Implement sent_message_with_reply. (with_reply_and block is still
128 Made dispatch_message not lose message if OOM.
130 * dbus/dbus-errors.h:
131 Add NoReply error (for reply timeouts).
133 2003-02-16 Alexander Larsson <alexl@redhat.com>
135 * dbus/dbus-hash.c (_dbus_hash_table_unref):
136 Actually free keys and values when destroying hashtable.
138 2003-02-16 Anders Carlsson <andersca@codefactory.se>
140 * dbus/dbus-auth.c: (client_try_next_mechanism):
143 * dbus/dbus-threads.c: (dbus_condvar_wait_timeout):
144 Return TRUE if there's no thread implementation around.
146 * glib/dbus-gmain.c: (free_source),
147 (dbus_connection_hookup_with_g_main):
148 Make sure to remove the GSource when the connection is finalized.
150 2003-02-16 Anders Carlsson <andersca@codefactory.se>
152 * bus/dispatch.c: (bus_dispatch_message_handler):
153 * dbus/dbus-errors.h:
154 Return an error if someone tries to send a message to a service
157 2003-02-16 Anders Carlsson <andersca@codefactory.se>
159 * bus/activation.c: (load_directory), (bus_activation_init),
160 (bus_activation_activate_service):
163 (bus_driver_handle_activate_service), (bus_driver_handle_message):
164 More work on the activation handling.
166 * dbus/dbus-errors.h:
167 Add some error messages
169 * dbus/dbus-message.c: (dbus_message_new_error_reply):
170 * dbus/dbus-message.h:
171 New function that creates an error message.
173 * dbus/dbus-protocol.h:
174 Add ACTIVATE_SERVER message.
176 * dbus/dbus-server-unix.c: (unix_handle_watch),
177 (_dbus_server_new_for_domain_socket):
178 Call _dbus_fd_set_close_on_exec.
180 * dbus/dbus-sysdeps.c: (make_pipe), (do_exec),
181 (_dbus_spawn_async), (_dbus_disable_sigpipe),
182 (_dbus_fd_set_close_on_exec):
183 * dbus/dbus-sysdeps.h:
184 Add _dbus_fd_set_close_on exec function. Also add function that checks
185 that all open fds are set to close-on-exec and warns otherwise.
187 * dbus/dbus-transport-unix.c:
188 (_dbus_transport_new_for_domain_socket):
189 Call _dbus_fd_set_close_on_exec.
191 2003-02-16 Havoc Pennington <hp@pobox.com>
193 * dbus/dbus-connection.c (dbus_connection_set_change_sigpipe):
194 allow people to avoid setting SIGPIPE to SIG_IGN
195 (_dbus_connection_new_for_transport): disable SIGPIPE unless
196 we've been asked not to
198 2003-02-15 Anders Carlsson <andersca@codefactory.se>
200 * dbus/dbus-list.c: (_dbus_list_append_link),
201 (_dbus_list_prepend_link):
202 * dbus/dbus-memory.c: (dbus_malloc), (dbus_malloc0),
206 2003-02-15 Anders Carlsson <andersca@codefactory.se>
209 * bus/activation.c: (bus_activation_entry_free),
210 (add_desktop_file_entry), (load_directory), (bus_activation_init):
212 * bus/main.c: (main):
213 Add simple activation support, doesn't work yet though.
215 2003-02-15 Zack Rusin <zack@kde.org>
217 * qt/dbus-qthread.cpp: small casting fix
219 2003-02-15 Anders Carlsson <andersca@codefactory.se>
221 * dbus/dbus-errors.c: (dbus_set_error):
222 * dbus/dbus-errors.h:
223 Add a few errors and make dbus_set_error void.
225 * dbus/dbus-sysdeps.c:
226 (_dbus_errno_to_string), (close_and_invalidate), (make_pipe),
227 (write_err_and_exit), (read_ints), (do_exec), (_dbus_spawn_async):
228 * dbus/dbus-sysdeps.h:
229 Add _dbus_spawn_async.
231 * test/spawn-test.c: (main):
232 Test for _dbus_spawn_async.
234 2003-02-15 Anders Carlsson <andersca@codefactory.se>
236 * dbus/dbus-internals.h:
237 Fix build without tests.
239 * dbus/dbus-list.c: (alloc_link):
240 Fix a segfault when a malloc fails.
242 * dbus/dbus-memory.c: (initialize_malloc_debug), (dbus_malloc),
243 (dbus_malloc0), (dbus_realloc):
244 Add support for malloc debugging.
246 2003-02-15 Alexander Larsson <alexl@redhat.com>
248 * dbus/dbus-threads.c:
249 * dbus/dbus-threads.h:
250 Add condvars. Remove static mutext from API.
251 Implement static mutexes by initializing them from threads_init.
253 * glib/dbus-gthread.c:
254 * qt/dbus-qthread.cpp:
255 Update with the thread api changes.
260 Turn StaticMutex into normal mutex + init function.
261 Export new functions _dbus_list_alloc_link, _dbus_list_free_link,
262 _dbus_list_append_link, _dbus_list_prepend_link
265 * dbus/dbus-sysdeps.c:
266 * dbus/dbus-sysdeps.h:
267 New type dbus_atomic_t, and new functions _dbus_atomic_inc,
268 _dbus_atomic_dec. Only slow fallback implementation at the moment.
270 * dbus/dbus-protocol.h:
271 Add DBUS_MESSAGE_LOCAL_DISCONNECT define
273 * dbus/dbus-message.c:
274 Make ref/unref atomic.
277 * dbus/dbus-connection-internal.h:
278 * dbus/dbus-connection.c:
279 * dbus/dbus-connection.h:
281 Change _peek to _borrow,_return & _steal_borrowed.
282 Change disconnect callback to event.
283 Make dbus_connection_dispatch_messages reentrant.
285 * dbus/dbus-transport.c:
286 Don't ref the connection on calls to the transport
289 * dbus/dbus-message-handler.c:
293 Don't use peek_message anymore
296 * test/debug-thread.c:
297 * test/debug-thread.h:
298 Simple thread implementation that asserts() on deadlocks in
299 single-threaded code.
302 (main) Call debug_threads_init.
305 Use disconnect message instead of disconnect callback.
309 Don't call dbus_connection_set_disconnect_function. Instead export
310 bus_connection_disconnect.
313 Call bus_connection_disconnect when we get a disconnected message.
315 2003-02-15 Havoc Pennington <hp@pobox.com>
317 * dbus/dbus-message.c (dbus_message_new): fool around with the
320 2003-02-14 Havoc Pennington <hp@pobox.com>
322 * dbus/dbus-mempool.c: fail if the debug functions so indicate
324 * dbus/dbus-memory.c: fail if the debug functions indicate we
327 * dbus/dbus-internals.c (_dbus_set_fail_alloc_counter)
328 (_dbus_decrement_fail_alloc_counter): debug functions to
329 simulate memory allocation failures
331 2003-02-14 Havoc Pennington <hp@pobox.com>
333 * dbus/dbus-errors.h (struct DBusError): add a word of padding
336 2003-02-13 Anders Carlsson <andersca@codefactory.se>
338 * bus/driver.c: (bus_driver_handle_hello):
340 * bus/services.c: (bus_service_lookup):
341 Reorder message sending so we get a more sane order.
343 * test/bus-test.c: (message_handler):
346 2003-02-13 Anders Carlsson <andersca@codefactory.se>
348 * bus/driver.c: (bus_driver_send_service_deleted),
349 (bus_driver_send_service_created), (bus_driver_send_service_lost),
350 (bus_driver_send_service_acquired), (bus_driver_handle_hello),
351 (bus_driver_send_welcome_message),
352 (bus_driver_handle_list_services),
353 (bus_driver_handle_acquire_service),
354 (bus_driver_handle_service_exists):
355 * dbus/dbus-bus.c: (dbus_bus_register_client),
356 (dbus_bus_acquire_service), (dbus_bus_service_exists):
357 * dbus/dbus-errors.c: (dbus_result_to_string):
358 * dbus/dbus-errors.h:
359 * dbus/dbus-message.c: (dbus_message_append_args),
360 (dbus_message_append_args_valist), (dbus_message_get_args),
361 (dbus_message_get_args_valist), (dbus_message_get_args_iter),
362 (dbus_message_iter_get_arg_type), (dbus_message_iter_get_string),
363 (dbus_message_iter_get_byte_array),
364 (dbus_message_iter_get_string_array), (message_iter_test),
365 (check_message_handling), (_dbus_message_test):
366 * dbus/dbus-message.h:
367 * test/bus-test.c: (main):
368 Change fields to arguments in messages, so that they won't be
369 confused with header fields.
371 * glib/test-dbus-glib.c: (main):
372 Remove append_fields from hello message.
374 2003-02-13 Anders Carlsson <andersca@codefactory.se>
376 * dbus/dbus-errors.c:
377 * dbus/dbus-message.c:
378 * dbus/dbus-string.c:
381 2003-02-13 Anders Carlsson <andersca@codefactory.se>
383 * glib/dbus-gmain.c: (timeout_handler), (add_timeout),
385 Implement support for timeouts in dbus-glib.
387 2003-02-13 Anders Carlsson <andersca@codefactory.se>
389 * dbus/dbus-message-builder.c: (_dbus_message_data_load):
390 * dbus/dbus-message.c: (process_test_subdir):
391 * test/break-loader.c: (find_breaks_based_on):
392 Plug some memory leaks.
394 2003-02-13 Richard Hult <rhult@codefactory.se>
396 * bus/main.c: Fix build.
398 * dbus/dbus-errors.h:
399 * dbus/dbus-errors.c: Fix copyright for Anders.
401 2003-02-13 Anders Carlsson <andersca@codefactory.se>
406 * bus/connection.c: (bus_connection_foreach):
409 * bus/desktop-file.c: (grow_lines_in_section), (grow_sections),
410 (unescape_string), (new_section), (parse_section_start),
411 (parse_key_value), (report_error), (bus_desktop_file_load),
412 (bus_desktop_file_get_string):
413 * bus/desktop-file.h:
414 Use DBusError for error reporting.
416 * bus/dispatch.c: (send_one_message),
417 (bus_dispatch_message_handler):
418 * bus/driver.c: (bus_driver_send_service_deleted),
419 (bus_driver_send_service_created), (bus_driver_send_service_lost),
420 (bus_driver_send_service_acquired), (bus_driver_handle_hello),
421 (bus_driver_send_welcome_message),
422 (bus_driver_handle_list_services),
423 (bus_driver_handle_acquire_service),
424 (bus_driver_handle_service_exists):
425 * bus/loop.c: (bus_loop_run):
427 Use BUS_HANDLE_OOM instead of _DBUS_HANDLE_OOM.
429 * bus/utils.c: (bus_wait_for_memory):
431 New files with general utility functions.
433 * dbus/dbus-internals.h:
434 Remove _DBUS_HANDLE_OOM.
436 2003-02-13 Anders Carlsson <andersca@codefactory.se>
438 * dbus/dbus-errors.c: (dbus_result_to_string), (dbus_error_init),
439 (dbus_error_free), (dbus_set_error_const), (dbus_set_error):
440 * dbus/dbus-errors.h:
441 Add DBusError structure.
443 2003-02-13 Anders Carlsson <andersca@codefactory.se>
445 * test/data/valid-messages/standard-acquire-service.message:
446 * test/data/valid-messages/standard-hello.message:
447 * test/data/valid-messages/standard-list-services.message:
448 * test/data/valid-messages/standard-service-exists.message:
449 Add some standard messages.
451 2003-02-13 Anders Carlsson <andersca@codefactory.se>
453 * bus/driver.c: (bus_driver_send_welcome_message),
454 (bus_driver_handle_list_services),
455 (bus_driver_handle_acquire_service),
456 (bus_driver_handle_service_exists), (bus_driver_handle_message):
457 Update for API changes in libdbus.
459 * dbus/dbus-message.c: (dbus_message_new_reply):
460 * dbus/dbus-message.h:
461 Remove the name argument. The spec states that replies shouldn't
464 2003-02-13 Anders Carlsson <andersca@codefactory.se>
466 * bus/desktop-file.c: (parse_section_start), (parse_key_value),
467 (report_error), (bus_desktop_file_load), (lookup_section),
468 (lookup_line), (bus_desktop_file_get_raw),
469 (bus_desktop_file_get_string):
470 * bus/desktop-file.h:
471 Some fixes, and new functions for getting a key value from a section.
473 2003-02-13 Havoc Pennington <hp@pobox.com>
475 * test/data/auth/fail-after-n-attempts.auth-script: new test
477 * dbus/dbus-auth.c (send_rejected): shutdown_mech() when we
480 2003-02-13 Havoc Pennington <hp@pobox.com>
482 * dbus/dbus-auth.c (handle_server_data_external_mech): args to
483 dbus_credentials_match were backward
485 * dbus/dbus-auth-script.c (_dbus_auth_script_run): support
486 NO_CREDENTIALS and ROOT_CREDENTIALS
488 * dbus/dbus-auth.c (_dbus_auth_do_work): move get_state() routine
489 into here. Never process more commands after we've reached an
490 end state; store further data as unused bytes.
492 * test/data/auth/*: add more auth tests
494 * dbus/dbus-auth-script.c (_dbus_auth_script_run): support EXPECT
495 command to match exact string and EXPECT_UNUSED to match unused
498 * test/Makefile.am (dist-hook): fix to dist all the test stuff
500 2003-02-12 Havoc Pennington <hp@pobox.com>
502 * dbus/dbus-string.c (_dbus_string_pop_line): fix to also strip
503 \r off of popped lines
505 * dbus/dbus-auth.c (_dbus_auth_test): write code to run auth
508 * dbus/dbus-auth-script.c (_dbus_auth_script_run): when doing a
511 2003-02-12 Havoc Pennington <hp@pobox.com>
513 * dbus/Makefile.am: remove break-loader from the build, since it
516 * configure.in: add --enable-gcov to turn on coverage profiling
517 flags and disable optimization
519 2003-02-10 Havoc Pennington <hp@pobox.com>
521 * dbus/dbus-auth-script.c, dbus/dbus-auth-script.h: sync
522 initial cut at test framework for DBusAuth from laptop.
523 Doesn't quite work yet but it compiles and I need to get
524 it off the 266mhz laptop. ;-)
526 * dbus/dbus-server-debug.c (_dbus_server_debug_accept_transport):
527 fix a memleak in error case
529 2003-02-12 Anders Carlsson <andersca@codefactory.se>
532 * bus/desktop-file.c:
533 * bus/desktop-file.h:
534 Add a desktop file parser.
536 2003-02-11 Zack Rusin <zack@kde.org>
538 * qt/message.[h|cpp]: sample implementation
539 of the KDE wrapper for DBusMessage
541 2003-02-09 Zack Rusin <zack@kde.org>
543 * test/bus-test.c: make_it_compile
544 * doc/dbus-specification.sgml: minimal semantic fix
546 2003-02-06 Anders Carlsson <andersca@codefactory.se>
552 2003-02-06 Anders Carlsson <andersca@codefactory.se>
555 * dbus/dbus-break-loader.c:
557 * test/break-loader.c:
558 Move dbus-break-loader to test/ and rename it to break-loader.
560 2003-02-02 Havoc Pennington <hp@pobox.com>
562 * dbus/dbus-keyring.c, dbus/dbus-keyring.h: template files
563 for code to manage cookies in your home directory
565 * dbus/dbus-sysdeps.c (_dbus_generate_random_bytes): new function
567 * dbus/dbus-auth.c (get_state): impose a maximum number of tries
568 to authenticate, then disconnect the client.
570 2003-02-03 Alexander Larsson <alexl@redhat.com>
572 * dbus/dbus-message.c (dbus_message_append_fields):
575 2003-02-02 Anders Carlsson <andersca@codefactory.se>
577 * doc/dbus-specification.sgml:
578 Update address format section.
580 2003-02-02 Anders Carlsson <andersca@codefactory.se>
583 * test/bus-test.c: (get_time), (add_timeout), (remove_timeout),
584 (message_handler), (new_connection_callback), (loop_quit),
588 2003-02-02 Anders Carlsson <andersca@codefactory.se>
590 * bus/driver.c: (bus_driver_handle_service_exists):
591 Simplify the code a bit.
593 * dbus/dbus-bus.c: (dbus_bus_service_exists):
596 2003-02-02 Anders Carlsson <andersca@codefactory.se>
599 Add libdbus-daemon.la and link to it.
601 2003-02-01 James Willcox <jwillcox@gnome.org>
603 * bus/driver.c: (bus_driver_handle_own_service):
604 Actually include the service reply code in the message.
606 2003-02-02 Anders Carlsson <andersca@codefactory.se>
608 * bus/driver.c: (bus_driver_handle_service_exists):
609 Don't unref the incoming message.
611 2003-02-02 Anders Carlsson <andersca@codefactory.se>
613 * dbus/dbus.h: Add dbus-address.h and dbus-bus.h
615 2003-02-02 Anders Carlsson <andersca@codefactory.se>
617 * dbus/dbus-server.c: (dbus_server_listen):
618 * dbus/dbus-transport.c: (_dbus_transport_open):
619 ifdef out the calls to the debug transport and server.
621 2003-02-02 Alexander Larsson <alexl@redhat.com>
623 * dbus/dbus-watch.c (dbus_watch_get_flags):
624 Add note in the docs that ERROR or HANGUP won't be returned
625 and are assumed always on.
627 * glib/dbus-gmain.c (add_watch):
628 Always add IO_ERR | IO_HUP
630 * dbus/dbus-message.h:
631 Add semicolon after dbus_message_iter_get_string_array().
632 Makes qt code build again
634 2003-02-01 Anders Carlsson <andersca@codefactory.se>
636 * bus/driver.c: (create_unique_client_name),
637 (bus_driver_handle_hello):
638 Don't take a name, just use a numeric id to identify
642 * dbus/dbus-bus.c: (dbus_bus_register_client),
643 (dbus_bus_acquire_service), (dbus_bus_service_exists):
645 Add new convenience functions for communicating with the bus.
647 * dbus/dbus-message.h:
649 * dbus/dbus-protocol.h:
652 2003-02-01 Alexander Larsson <alexl@redhat.com>
654 * dbus/dbus-message.c (dbus_message_append_fields):
655 Add some more doc comments.
657 2003-02-01 Havoc Pennington <hp@pobox.com>
659 * dbus/dbus-break-loader.c (randomly_modify_length): change
660 a 4-byte value in the message as if it were a length
662 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): don't set
663 execute bit on saved files
665 2003-02-01 Havoc Pennington <hp@pobox.com>
667 * dbus/dbus-break-loader.c (main): new program to find messages
668 that break the loader.
670 * dbus/dbus-sysdeps.c (_dbus_string_append_uint): new function
671 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): new function
673 * dbus/dbus-string.c (_dbus_string_set_byte): new
675 2003-01-31 Havoc Pennington <hp@pobox.com>
677 * dbus/dbus-message.c: refactor the test code to be more general,
678 in preparation for writing a "randomly permute test cases to
679 try to break the loader" program.
681 2003-01-31 Havoc Pennington <hp@pobox.com>
683 * doc/dbus-specification.sgml: work on the specification
685 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): check
686 the protocol version of the message.
688 * dbus/dbus-protocol.h: drop special _REPLY names, the spec
689 no longer specifies that.
690 (DBUS_SERVICE_REPLY_SERVICE_EXISTS): fix flags (1/2/4/8 not
693 * dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos): add missing
694 "break" for DBUS_TYPE_NIL, remove @todo
696 2003-01-31 Havoc Pennington <hp@pobox.com>
698 * dbus/dbus-message.c (dbus_message_set_is_error_reply): rename
699 just set_is_error/get_is_error as this is a commonly-used
700 function, and write docs.
702 2003-01-31 Anders Carlsson <andersca@codefactory.se>
704 * dbus/dbus-address.c: (dbus_address_entry_free):
705 Free key and value lists.
707 * dbus/dbus-internals.c: (_dbus_type_to_string):
708 Add the types we didn't have.
710 * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
711 (_dbus_marshal_validate_arg):
714 * dbus/dbus-message.c: (dbus_message_set_sender):
715 Remove todo about being able to set sender to NULL.
717 (dbus_message_set_is_error_reply),
718 (dbus_message_get_is_error_reply):
719 * dbus/dbus-message.h:
722 * dbus/dbus-protocol.h:
723 Add error reply flag.
725 * test/data/valid-messages/opposite-endian.message:
726 Add NIL type to test.
728 2003-01-31 Havoc Pennington <hp@pobox.com>
730 * doc/dbus-specification.sgml: fully specify the header. Add
731 flags and major protocol version, and change header/body len to
734 * dbus/dbus-message-builder.c (append_saved_length): append length
737 * dbus/dbus-message.c (dbus_message_create_header): change header
738 length and body length to unsigned. Add the new fields from the
740 (_dbus_message_loader_return_buffer): unsigned header/body len
742 2003-01-30 Havoc Pennington <hp@pobox.com>
744 * dbus/dbus-auth.c: rework to use only REJECTED, no
747 * doc/dbus-sasl-profile.txt: drop MECHANISMS and just
748 use REJECTED, suggested by Mark McLoughlin
750 2003-01-30 Havoc Pennington <hp@pobox.com>
752 * dbus/dbus-server.c (dbus_server_listen): @todo about how we need
753 a better way to report errors here. e.g. "unix address lacks
754 path" or something. also "no such file" when the path doesn't
757 * dbus/dbus-address.c (dbus_address_entries_free): add @todo about
759 (dbus_parse_address): add @todo about documenting address format,
760 and allowing , and ; to be escaped
762 2003-01-30 Anders Carlsson <andersca@codefactory.se>
765 Add dbus-address.[ch]
767 * dbus/dbus-address.c: (dbus_address_entry_free),
768 (dbus_address_entries_free), (create_entry),
769 (dbus_address_entry_get_method), (dbus_address_entry_get_value),
770 (dbus_parse_address), (_dbus_address_test):
771 * dbus/dbus-address.h:
772 New files for dealing with address parsing.
774 * dbus/dbus-connection.c:
775 Document timeout functions.
777 * dbus/dbus-message.c:
778 Document dbus_message_new_from_message.
780 * dbus/dbus-server-debug.c:
783 * dbus/dbus-server.c: (dbus_server_listen):
784 Parse address and use correct server implementation.
786 * dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
787 * dbus/dbus-string.h:
788 New function with test.
790 * dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
794 * dbus/dbus-transport-debug.c:
797 * dbus/dbus-transport.c: (_dbus_transport_open):
798 Parse address and use correct transport implementation.
800 2003-01-30 Havoc Pennington <hp@pobox.com>
802 * dbus/dbus-message.c: use message->byte_order instead of
803 DBUS_COMPILER_BYTE_ORDER throughout.
804 (dbus_message_create_header): pad header to align the
805 start of the body of the message to 8-byte boundary
807 * dbus/dbus-marshal.h: make all the demarshalers take const
808 DBusString arguments.
810 * dbus/dbus-message.c (_dbus_message_loader_return_buffer):
811 validate message args here, so we don't have to do slow validation
812 later, and so we catch bad messages as they are incoming. Also add
813 better checks on header_len and body_len. Also fill in
816 * dbus/dbus-string.c (_dbus_string_validate_utf8): new (not
817 implemented properly)
818 (_dbus_string_validate_nul): new function to check all-nul
820 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): rename
821 get_arg_end_pos and remove all validation
822 (_dbus_marshal_validate_arg): actually do validation here.
824 2003-01-29 Havoc Pennington <hp@pobox.com>
826 * dbus/dbus-message.c (check_message_handling): fix assertion
827 failure on set_client_serial
829 2003-01-28 Havoc Pennington <hp@pobox.com>
831 * dbus/dbus-server-debug.c: Add doc section comments
833 * dbus/dbus-transport-debug.c: add doc section comments
835 2003-01-28 Havoc Pennington <hp@redhat.com>
837 * dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
838 the reverse order from how I had it
839 (_dbus_string_base64_encode): reverse encoding order. I was
840 basically byteswapping everything during encoding.
842 2003-01-28 Anders Carlsson <andersca@codefactory.se>
844 * dbus/dbus-connection-internal.h:
845 * dbus/dbus-connection.c: (_dbus_connection_add_timeout),
846 (_dbus_connection_remove_timeout):
847 Add functions for adding and removing timeouts.
849 * dbus/dbus-message.c: (dbus_message_new_from_message):
850 Add new function that takes a message and creates an exact
851 copy of it, but with the refcount set to 1.
852 (check_message_handling):
855 * dbus/dbus-server-protected.h:
856 * dbus/dbus-server.c: (_dbus_server_init_base),
857 (_dbus_server_finalize_base), (_dbus_server_add_timeout),
858 (dbus_server_set_timeout_functions):
859 (_dbus_server_remove_timeout):
860 New functions so that a server can add and remove timeouts.
862 (dbus_server_listen):
863 Add commented out call to dbus_server_debug_new.
865 * dbus/dbus-timeout.c: (_dbus_timeout_new):
866 Actually set the handler, doh.
868 * dbus/dbus-transport.c: (_dbus_transport_open):
869 Add commented out call to dbus_transport_debug_client_new.
872 Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
874 2003-01-28 Havoc Pennington <hp@pobox.com>
876 * dbus/dbus-message.c (check_message_handling): function to check
877 on the loaded message, iterates over it etc.
879 2003-01-28 Havoc Pennington <hp@pobox.com>
881 * test/Makefile.am (dist-hook): fix make distdir
883 * dbus/Makefile.am (TESTS_ENVIRONMENT): fix make check
885 2003-01-27 Havoc Pennington <hp@pobox.com>
887 * dbus/dbus-mempool.c (time_for_size): replace printf with
890 * dbus/dbus-message-builder.c (_dbus_message_data_load): allow
891 empty lines; fix the SAVE_LENGTH stuff to be
892 START_LENGTH/END_LENGTH so it actually works; couple other
895 * test/Makefile.am (dist-hook): add dist-hook for .message files
897 * dbus/dbus-string.c (DBUS_STRING_COPY_PREAMBLE): source of a copy
898 can be constant or locked.
899 (_dbus_string_free): allow freeing a const string as
902 * dbus/dbus-sysdeps.c (_dbus_concat_dir_and_file): utility
904 * dbus/dbus-test-main.c (main): take an argument which is the
905 directory containing test data
907 * dbus/dbus-message.c (_dbus_message_test): pass a test_data_dir
908 argument to this and load all the messages in test/data/
909 checking that they can be loaded or not loaded as appropriate.
911 2003-01-27 Anders Carlsson <andersca@codefactory.se>
913 * bus/dispatch.c: (bus_dispatch_message_handler):
914 Dispatch messages sent to services.
916 * bus/driver.c: (bus_driver_send_service_deleted),
917 (bus_driver_send_service_created), (bus_driver_send_service_lost),
918 (bus_driver_send_service_acquired):
919 Add helper functions for sending service related messages.
921 (bus_driver_send_welcome_message):
922 Send HELLO_REPLY instead of WELCOME.
924 (bus_driver_handle_list_services):
925 Send LIST_SERVICES_REPLY instead of SERVICES.
927 (bus_driver_handle_own_service),
928 (bus_driver_handle_service_exists):
929 New message handlers.
931 (bus_driver_handle_message):
932 Invoke new message handlers.
934 (bus_driver_remove_connection):
935 Don't remove any services here since that's done automatically
936 by bus_service_remove_owner now.
939 New function signatures.
941 * bus/services.c: (bus_service_add_owner):
942 Send ServiceAcquired message if we're the only primary owner.
944 (bus_service_remove_owner):
945 Send ServiceAcquired/ServiceLost messages.
947 (bus_service_set_prohibit_replacement),
948 (bus_service_get_prohibit_replacement):
949 Functions for setting prohibit replacement.
951 (bus_service_has_owner):
952 New function that checks if a connection is in the owner queue of
956 Add new function signatures.
958 * dbus/dbus-list.c: (_dbus_list_test):
959 Add tests for _dbus_list_remove_last and traversing the list backwards.
962 Fix a typo in _dbus_list_get_prev_link, if we're at the first element we can't
963 go any further, so return NULL then.
965 * dbus/dbus-protocol.h:
966 Add new messages, service flags and service replies.
968 2003-01-26 Havoc Pennington <hp@pobox.com>
970 * dbus/dbus-message-builder.c: implement, completely untested.
972 * test/data/*: add data to be used in testing.
973 ".message" files are our simple loadable text format.
974 ".message-raw" will be binary dumps of messages.
976 * dbus/dbus-string.c (_dbus_string_starts_with_c_str): new
978 2003-01-26 Havoc Pennington <hp@pobox.com>
980 * dbus/dbus-sysdeps.c (_dbus_file_get_contents): new function
982 * dbus/dbus-errors.c (dbus_result_to_string): add
985 * dbus/dbus-message-builder.c: new file, will contain code to load
986 up messages from files. Not implemented yet.
988 2003-01-26 Havoc Pennington <hp@pobox.com>
990 * dbus/dbus-message.c (dbus_message_set_sender): support deleting
991 the sender by setting to NULL
993 2003-01-26 Havoc Pennington <hp@pobox.com>
995 The unit tests pass, but otherwise untested. If it breaks, the
996 tests should have been better. ;-)
998 * bus/driver.c (bus_driver_handle_hello): return if we disconnect
1001 * dbus/dbus-message.c: redo everything so we maintain
1002 message->header as the only copy of the various fields.
1003 This avoids the possibility of out-of-memory in some cases,
1004 for example dbus_message_lock() can't run out of memory anymore,
1005 and avoids extra copying. Figured I may as well go ahead and do
1006 this since it was busted for dbus_message_lock to not return
1007 failure on OOM, and dbus_message_write_header was totally
1008 unchecked for OOM. Also fixed some random other bugs.
1010 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): verify
1011 that strings are nul-terminated. Also, end_pos can be equal
1012 to string length just not greater than, I think.
1013 (_dbus_marshal_set_int32): new function
1014 (_dbus_marshal_set_uint32): new function
1015 (_dbus_marshal_set_string): new function
1017 * dbus/dbus-connection.c (_dbus_connection_new_for_transport): fix
1018 a warning, init timeout_list to NULL
1019 (dbus_connection_send_message): don't use uninitialized variable
1022 * dbus/dbus-string.c (_dbus_string_replace_len): new function
1024 2003-01-26 Anders Carlsson <andersca@codefactory.se>
1026 * bus/driver.c: (bus_driver_handle_hello),
1027 (bus_driver_send_welcome_message):
1030 2003-01-26 Anders Carlsson <andersca@codefactory.se>
1032 * dbus/dbus-auth.c: (process_auth), (_dbus_auth_unref):
1033 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
1034 (dbus_connection_unref):
1035 * dbus/dbus-marshal.c: (_dbus_marshal_test):
1036 * dbus/dbus-message.c: (dbus_message_unref),
1039 (dbus_message_get_fields):
1040 Remove debugging printout.
1042 (_dbus_message_loader_return_buffer):
1043 Don't store the header string.
1045 (_dbus_message_test):
1048 2003-01-26 Richard Hult <rhult@codefactory.se>
1050 * glib/dbus-gmain.c (dbus_connection_dispatch): Traverse a copy of
1051 the file descriptor list, since it can change under us.
1053 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1055 * glib/dbus-gmain.c: (dbus_connection_prepare),
1056 (dbus_connection_check), (dbus_connection_dispatch), (add_watch),
1057 (remove_watch), (dbus_connection_hookup_with_g_main):
1058 Rewrite the glib handling to use its own GSource instead of a
1059 GIOChannel so we can catch messages put in the queue while waiting
1062 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1065 * bus/connection.c: (connection_disconnect_handler),
1066 (connection_watch_callback), (bus_connection_setup):
1067 * bus/dispatch.c: (send_one_message),
1068 (bus_dispatch_broadcast_message), (bus_dispatch_message_handler),
1069 (bus_dispatch_add_connection), (bus_dispatch_remove_connection):
1071 * bus/driver.c: (bus_driver_send_service_deleted),
1072 (bus_driver_send_service_created), (bus_driver_handle_hello),
1073 (bus_driver_send_welcome_message),
1074 (bus_driver_handle_list_services), (bus_driver_remove_connection),
1075 (bus_driver_handle_message):
1077 Refactor code, put the message dispatching in its own file. Use
1078 _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client
1081 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1083 * dbus/dbus-internals.h:
1084 Add _DBUS_HANDLE_OOM macro, it doesn't do anything currently.
1086 * dbus/dbus-message.c: (dbus_message_get_sender):
1087 * dbus/dbus-message.h:
1088 Implement dbus_message_get_sender.
1090 * dbus/dbus-protocol.h:
1091 Add message and service defines.
1093 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1095 * dbus/dbus-connection.c: (dbus_connection_send_message):
1096 * dbus/dbus-message-internal.h:
1097 * dbus/dbus-message.c: (_dbus_message_get_client_serial),
1098 (dbus_message_write_header):
1099 Remove _dbus_messag_unlock and don't set the client serial on a
1100 message if one already exists.
1102 2003-01-24 Havoc Pennington <hp@pobox.com>
1104 * dbus/dbus-list.c (alloc_link): put a thread lock on the global
1107 * bus/driver.c (bus_driver_handle_list_services): fix a leak
1110 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1112 * dbus/dbus-list.c: (alloc_link), (free_link):
1113 Use a memory pool for the links.
1115 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1117 * bus/connection.c: (bus_connection_foreach):
1119 Add new bus_connection_foreach function.
1121 * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
1122 Add function that broadcasts a message to all clients.
1124 (bus_driver_send_service_created), (bus_driver_handle_hello),
1125 (bus_driver_send_welcome_message),
1126 (bus_driver_handle_list_services), (bus_driver_message_handler):
1127 Implement functions that take care of listing services, and notifying
1128 clients when new services are created.
1130 * bus/services.c: (bus_services_list):
1132 Add new function that returns an array of strings with the currently
1133 registered services.
1136 * glib/dbus-gmain.c:
1137 Update copyright year.
1139 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1141 * dbus/dbus-connection.c: (dbus_connection_send_message):
1142 Unlock the message in case it was sent earlier.
1144 (dbus_connection_send_message_with_reply_and_block):
1145 Remove the reply message from the list.
1147 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
1148 Set array_len and new_pos correctly.
1150 (_dbus_marshal_test):
1151 Remove debug output.
1153 * dbus/dbus-message-internal.h:
1154 * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
1155 New function that returns the reply serial.
1157 (_dbus_message_unlock):
1158 New function that unlocks a message and resets its header.
1160 (dbus_message_append_string_array),
1161 (dbus_message_get_fields_valist),
1162 (dbus_message_iter_get_field_type),
1163 (dbus_message_iter_get_string_array),
1164 (dbus_message_get_fields),
1165 (dbus_message_append_fields_valist):
1166 Handle string arrays.
1168 (dbus_message_set_sender):
1169 Make this function public since the bus daemon needs it.
1171 (decode_header_data):
1172 Set the reply serial to -1 initially.
1174 * dbus/dbus-message.h:
1175 Add dbus_message_set_sender.
1177 2003-01-24 Havoc Pennington <hp@pobox.com>
1179 * doc/dbus-specification.sgml: add some stuff
1181 2003-01-22 Havoc Pennington <hp@pobox.com>
1183 * doc/dbus-specification.sgml: Start to document the protocol.
1185 2003-01-22 Havoc Pennington <hp@pobox.com>
1187 * dbus/dbus-connection.c
1188 (dbus_connection_send_message_with_reply_and_block): add some @todo
1190 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
1192 2003-01-21 Havoc Pennington <hp@pobox.com>
1194 (patch untested because can't compile)
1196 * bus/driver.c (create_unique_client_name): make this function
1197 never recycle client names. Also, caller should initialize
1200 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
1202 2003-01-21 Anders Carlsson <andersca@codefactory.se>
1204 * dbus/dbus-marshal.c: (_dbus_marshal_double),
1205 (_dbus_marshal_int32), (_dbus_marshal_uint32),
1206 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
1207 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
1208 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
1209 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
1210 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
1211 * dbus/dbus-marshal.h:
1212 * dbus/dbus-protocol.h:
1213 Add support for marshalling and demarshalling integer, double
1216 2003-01-21 Anders Carlsson <andersca@codefactory.se>
1221 * bus/connection.c: (connection_disconnect_handler):
1222 Remove the connection from the bus driver's list.
1224 (connection_watch_callback): Dispatch messages.
1226 (free_connection_data): Free connection name.
1228 (bus_connection_setup): Add connection to the bus driver's list.
1229 (bus_connection_remove_owned_service):
1230 (bus_connection_set_name), (bus_connection_get_name):
1231 Add functions for setting and getting the connection's name.
1234 Add function headers.
1236 * bus/driver.c: (create_unique_client_name),
1237 (bus_driver_handle_hello_message),
1238 (bus_driver_send_welcome_message), (bus_driver_message_handler),
1239 (bus_driver_add_connection), (bus_driver_remove_connection):
1242 * bus/services.c: (bus_service_free):
1244 New file that handles communication and registreation with the bus
1247 2003-01-21 Anders Carlsson <andersca@codefactory.se>
1249 * dbus/dbus-connection.c: (dbus_connection_send_message):
1250 Add a new client_serial parameter.
1252 (dbus_connection_send_message_with_reply):
1253 Remove a @todo since we've implemented the blocking function.
1255 (dbus_connection_send_message_with_reply_and_block):
1256 New function that sends a message and waits for a reply and
1257 then returns the reply.
1259 * dbus/dbus-connection.h:
1262 * dbus/dbus-errors.c: (dbus_result_to_string):
1263 * dbus/dbus-errors.h:
1264 Add new DBUS_RESULT.
1266 * dbus/dbus-message-internal.h:
1267 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
1268 (_dbus_message_set_sender), (dbus_message_write_header),
1269 (dbus_message_new_reply), (decode_header_data),
1270 (_dbus_message_loader_return_buffer), (_dbus_message_test):
1271 * dbus/dbus-message.h:
1272 Add new functions that set the reply serial and sender.
1273 Also marshal and demarshal them correctly and add test.
1275 * dbus/dbus-protocol.h:
1276 Add new DBUS_MESSAGE_TYPE_SENDER.
1279 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
1280 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
1281 (dbus_connection_hookup_with_g_main):
1282 * glib/test-dbus-glib.c: (main):
1283 Rewrite to use GIOChannel and remove the GSource crack.
1285 * test/echo-client.c: (main):
1286 * test/watch.c: (check_messages):
1287 Update for changed APIs
1289 2003-01-19 Anders Carlsson <andersca@codefactory.se>
1291 * dbus/Makefile.am: Add dbus-timeout.[cħ]
1293 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
1294 Create a DBusTimeoutList.
1295 (dbus_connection_set_timeout_functions): Add new function to
1296 set timeout callbacks
1298 * dbus/dbus-connection.h: Add public DBusTimeout API.
1300 * dbus/dbus-message.c: (dbus_message_get_service):
1301 * dbus/dbus-message.h: New function.
1303 * dbus/dbus-server.c: Fix small doc typo.
1305 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
1307 2003-01-19 Anders Carlsson <andersca@codefactory.se>
1309 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
1310 of the string, just as long as specified.
1312 2003-01-19 Havoc Pennington <hp@pobox.com>
1314 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
1317 * dbus/dbus-server.c (dbus_server_set_max_connections)
1318 (dbus_server_get_max_connections, dbus_server_get_n_connections):
1319 keep track of current number of connections, and add API for
1320 setting a max (but haven't implemented enforcing the max yet)
1322 2003-01-18 Havoc Pennington <hp@pobox.com>
1324 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
1325 reading/writing if read_watch != NULL or write_watch != NULL.
1327 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
1328 the message loader code to actually load message->header and
1329 message->body into the newly-created message.
1331 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
1334 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
1335 (dbus_connection_get_max_message_size)
1336 (dbus_connection_set_max_live_messages_size)
1337 (dbus_connection_get_max_live_messages_size): implement some
1338 resource limitation functions
1340 * dbus/dbus-resources.c: new file implementing some of the
1341 resource limits stuff
1343 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
1344 missing docs, add @todo to handle OOM etc.
1346 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
1349 2003-01-18 Havoc Pennington <hp@pobox.com>
1351 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
1352 connection if it hasn't been already.
1354 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
1355 replace with DisconnectFunction.
1357 2003-01-18 Havoc Pennington <hp@pobox.com>
1359 Building --disable-verbose-mode --disable-asserts --disable-tests
1360 cuts the library from 112K to 45K or so
1362 * configure.in: check for varargs macro support,
1363 add --enable-verbose-mode, --enable-asserts.
1365 * dbus/dbus-internals.h (_dbus_assert): support
1367 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
1369 2003-01-18 Havoc Pennington <hp@pobox.com>
1371 * dbus/dbus-test.c: include config.h so that tests actually run
1373 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
1374 so the failure mode when that assumption fails will be plenty
1377 2003-01-18 Havoc Pennington <hp@pobox.com>
1379 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
1381 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
1384 * test/Makefile.am: don't use special variable "TESTS" for echo-*
1385 since we don't want to use those in make check
1387 2003-01-15 Havoc Pennington <hp@redhat.com>
1393 2003-01-15 Havoc Pennington <hp@redhat.com>
1395 * test/Makefile.am: fix so that test source code ends up in the
1396 distribution on make distcheck
1398 2003-01-15 Havoc Pennington <hp@redhat.com>
1404 2003-01-15 Havoc Pennington <hp@redhat.com>
1406 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
1407 fix build when --disable-tests
1409 * Makefile.am (EXTRA_DIST): put HACKING in here
1411 * HACKING: document procedure for making a tarball release.
1413 2003-01-14 Anders Carlsson <andersca@codefactory.se>
1415 * bus/connection.c: (connection_error_handler),
1416 (bus_connection_setup):
1417 * bus/main.c: (main):
1418 Make sure that the DBusConnectionData struct is NULLed
1419 out to prevent a segfault.
1421 * dbus/dbus-errors.c: (dbus_result_to_string):
1422 * dbus/dbus-errors.h:
1423 * dbus/dbus-message.c: (dbus_message_get_fields),
1424 (dbus_message_get_fields_valist), (_dbus_message_test):
1425 * dbus/dbus-message.h:
1426 Make dbus_message_get_fields return a result code so we can
1427 track invalid fields as well as oom.
1429 2003-01-11 Havoc Pennington <hp@pobox.com>
1431 * configure.in: change --enable-test/--enable-ansi action-if-given
1432 to enable_foo=$enableval instead of enable_foo=yes
1434 2003-01-08 Havoc Pennington <hp@pobox.com>
1436 * dbus/dbus-string.c (_dbus_string_align_length): new function
1438 * dbus/dbus-test-main.c: move main() for test app here
1440 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
1441 symbol to run tests, because dbus-test isn't in the main
1444 Code review nitpicks.
1446 * dbus/dbus-message.c (dbus_message_write_header): add newlines
1447 for people with narrow emacs ;-). Assert client_serial was filled
1448 in. Assert message->name != NULL.
1449 (dbus_message_append_fields): have "first_field_type" arg separate
1450 from va list, needed for C++ binding that also uses varargs IIRC
1451 and helps with type safety
1452 (dbus_message_new): add @todo about using DBusString to store
1453 service/name internally
1454 (dbus_message_new): don't leak ->service and ->name on OOM later
1456 (dbus_message_unref): free the service name
1457 (dbus_message_get_fields): same change to varargs
1458 i.e. first_field_type
1459 (_dbus_message_loader_return_buffer): assert that the message data
1460 is aligned (if not it's a bug in our code). Put in verbose griping
1461 about why we set corrupted = TRUE.
1462 (decode_header_data): add FIXME that char* is evil. Was going to
1463 add FIXME about evil locale-specific string.h strncmp, but just
1464 switched to wacky string-as-uint32 optimization. Move check for
1465 "no room for field name" above get_const_data_len() to avoid
1466 assertion failure in get_const_data_len if we have trailing 2
1467 bytes or the like. Check for service and name fields being
1468 provided twice. Don't leak service/name on error. Require field
1469 names to be aligned to 4 bytes.
1471 * dbus/dbus-marshal.c: move byte swap stuff to header
1472 (_dbus_pack_int32): uscore-prefix
1473 (_dbus_unpack_int32): uscore-prefix
1474 (_dbus_unpack_uint32): export
1475 (_dbus_demarshal_string): add @todo complaining about use of
1477 (_dbus_marshal_get_field_end_pos): add @todo about bad error
1478 handling allowing corrupt data to go unchecked
1480 2003-01-08 Havoc Pennington <hp@redhat.com>
1482 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
1483 to the select() as needed for authentication. (should be using
1484 _dbus_poll() not select, but for another day)
1486 * dbus/dbus.h: include dbus/dbus-protocol.h
1488 2003-01-08 Anders Carlsson <andersca@codefactory.se>
1490 * dbus/Makefile.am (dbusinclude_HEADERS): Install
1493 2003-01-08 Anders Carlsson <andersca@codefactory.se>
1495 * dbus/dbus-internals.c: (_dbus_type_to_string):
1496 New function that returns a string describing a type.
1498 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
1499 * dbus/dbus-marshal.h:
1500 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
1501 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
1502 (dbus_message_iter_get_byte_array):
1503 * dbus/dbus-message.h:
1504 Add new convenience functions for appending and getting message fields.
1505 Also add demarshalling routines for byte arrays.
1507 2003-01-07 Anders Carlsson <andersca@codefactory.se>
1509 * dbus/dbus-connection-internal.h:
1510 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
1511 (_dbus_connection_get_next_client_serial),
1512 (dbus_connection_send_message):
1513 * dbus/dbus-internals.h:
1514 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
1515 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
1516 (_dbus_marshal_uint32), (_dbus_demarshal_double),
1517 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
1518 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
1519 (_dbus_verbose_bytes), (_dbus_marshal_test):
1520 * dbus/dbus-marshal.h:
1521 * dbus/dbus-message-internal.h:
1522 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
1523 (dbus_message_write_header), (_dbus_message_lock),
1524 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
1525 (dbus_message_get_name), (dbus_message_append_int32),
1526 (dbus_message_append_uint32), (dbus_message_append_double),
1527 (dbus_message_append_string), (dbus_message_append_byte_array),
1528 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
1529 (dbus_message_iter_unref), (dbus_message_iter_has_next),
1530 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
1531 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
1532 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
1533 (decode_header_data), (_dbus_message_loader_return_buffer),
1534 (message_iter_test), (_dbus_message_test):
1535 * dbus/dbus-message.h:
1536 * dbus/dbus-protocol.h:
1537 * dbus/dbus-test.c: (main):
1539 * glib/test-dbus-glib.c: (message_handler), (main):
1540 * test/echo-client.c: (main):
1541 * test/watch.c: (check_messages):
1542 Make messages sendable and receivable for real.
1544 2003-01-07 Anders Carlsson <andersca@codefactory.se>
1546 * dbus/dbus-marshal.c: (_dbus_marshal_double),
1547 (_dbus_marshal_string), (_dbus_marshal_byte_array):
1548 * dbus/dbus-message.c: (dbus_message_append_int32),
1549 (dbus_message_append_uint32), (dbus_message_append_double),
1550 (dbus_message_append_string), (dbus_message_append_byte_array):
1551 Handle OOM restoration.
1553 2003-01-07 Anders Carlsson <andersca@codefactory.se>
1555 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1556 (_dbus_demarshal_string), (_dbus_marshal_test):
1557 * dbus/dbus-marshal.h:
1558 * dbus/dbus-message.c: (dbus_message_get_name),
1559 Document these functions.
1561 (dbus_message_append_int32), (dbus_message_append_uint32),
1562 (dbus_message_append_double), (dbus_message_append_string),
1563 (dbus_message_append_byte_array):
1564 * dbus/dbus-message.h:
1565 Add functions for adding message fields of different types.
1567 * dbus/dbus-protocol.h:
1568 Add the different types.
1570 2003-01-05 Havoc Pennington <hp@pobox.com>
1572 * bus/connection.c: implement routines for handling connections,
1573 first thing is keeping a list of owned services on each connection
1574 and setting up watches etc.
1576 * bus/services.c: implement a mapping from service names to lists
1579 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
1581 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
1582 to use static mutexes for global data
1584 * dbus/dbus-connection.c (dbus_connection_set_data): add new
1585 collection of functions to set/get application-specific data
1586 on the DBusConnection.
1588 2003-01-04 Havoc Pennington <hp@pobox.com>
1590 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
1591 (_dbus_poll): new function
1593 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
1596 * bus/loop.c: initial code for the daemon main loop
1598 2003-01-04 Havoc Pennington <hp@pobox.com>
1600 * test/watch.c (error_handler): make it safe if the error handler
1601 is called multiple times (if we s/error handler/disconnect
1602 handler/ we should just guarantee it's called only once)
1604 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
1605 error handler on disconnect (it's quite possible we should
1606 just change the error handler to a "disconnect handler," I'm
1607 not sure we have any other meaningful errors)
1609 * configure.in: check for getpwnam_r
1611 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
1612 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
1613 mechanism as in SASL spec, using socket credentials
1615 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
1616 (_dbus_send_credentials_unix_socket): new function
1618 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
1620 (_dbus_write): only check errno if <0 returned
1621 (_dbus_write_two): ditto
1623 2003-01-02 Anders Carlsson <andersca@codefactory.se>
1625 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
1626 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
1627 (_dbus_marshal_test):
1628 * dbus/dbus-marshal.h:
1629 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
1630 to _dbus_marshal_utf8_string. Also fix some tests.
1632 2002-12-28 Harri Porten <porten@kde.org>
1634 * configure.in: added check for C++ compiler and a very cheesy
1635 check for the Qt integration
1637 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
1639 * qt/Makefile.am: added
1641 * qt/.cvsignore: added
1643 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
1644 latter, added #ifdef QT_THREAD_SUPPORT guard.
1646 * dbus/Makefile.am: added missing headers for make dist
1648 2002-12-28 Kristian Rietveld <kris@gtk.org>
1650 * dbus/Makefile.am: fixup export-symbols-regex.
1652 2002-12-27 Anders Carlsson <andersca@codefactory.se>
1654 * acinclude.m4: Add this file and put the
1655 PKG_CHECK_MODULE macro in it.
1657 2002-12-27 Anders Carlsson <andersca@codefactory.se>
1659 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1660 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1661 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1662 (_dbus_marshal_test):
1663 Make the demarshalling routines align the pos argument.
1664 Add string marshalling tests and fix the obvious bugs
1667 2002-12-26 Havoc Pennington <hp@pobox.com>
1669 * dbus/dbus-auth.c: fixes fixes fixes
1671 * dbus/dbus-transport-unix.c: wire up support for
1672 encoding/decoding data on the wire
1674 * dbus/dbus-auth.c (_dbus_auth_encode_data)
1675 (_dbus_auth_decode_data): append to target string
1676 instead of nuking it.
1678 2002-12-26 Havoc Pennington <hp@pobox.com>
1680 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
1681 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
1684 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
1685 avoid swap_bytes() overhead (ignoring possible assembly stuff for
1686 now). Main point is because I wanted unpack_uint32 to implement
1688 (_dbus_verbose_bytes): new function
1690 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
1692 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
1693 mechanism to handle a corrupt message stream
1694 (_dbus_message_loader_new): fix preallocation to only prealloc,
1697 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
1698 (_dbus_string_test): enhance tests for copy/move and fix the
1701 * dbus/dbus-transport-unix.c: Hold references in more places to
1702 avoid reentrancy problems
1704 * dbus/dbus-transport.c: ditto
1706 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
1707 leak reference count in no-message case
1709 * test/watch.c (do_mainloop): handle adding/removing watches
1710 during iteration over the watches. Also, ref the connection/server
1711 stored on a watch, so we don't try to mangle a destroyed one.
1713 * dbus/dbus-transport-unix.c (do_authentication): perform
1716 * dbus/dbus-auth.c (get_state): add a state
1717 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
1718 (_dbus_auth_get_unused_bytes): append the unused bytes
1719 to the passed in string, rather than prepend
1721 * dbus/dbus-transport.c (_dbus_transport_init_base): create
1722 the auth conversation DBusAuth
1724 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
1725 (_dbus_transport_new_for_domain_socket): when creating a
1726 transport, pass in whether it's a client-side or server-side
1727 transport so we know which DBusAuth to create
1729 2002-12-03 Havoc Pennington <hp@pobox.com>
1731 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
1732 _after_ finalizing the derived members
1733 (unix_connection_set): unref watch if we fail to add it
1735 * dbus/dbus-connection.c (dbus_connection_unref): delete the
1736 transport first, so that the connection owned by the
1737 transport will be valid as the transport finalizes.
1739 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
1740 if necessary, and remove watches from the connection.
1742 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
1744 2002-12-26 Anders Carlsson <andersca@codefactory.se>
1746 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1747 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1748 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1749 (_dbus_marshal_test):
1750 * dbus/dbus-marshal.h:
1751 Add string marshal functions and have the demarshal functions
1752 return the new position.
1754 2002-12-25 Havoc Pennington <hp@pobox.com>
1756 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
1757 it is a simple protocol that just maps directly to SASL.
1759 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
1760 initial implementation, not actually used yet.
1762 * dbus/dbus-string.c (_dbus_string_find): new function
1763 (_dbus_string_equal): new function
1764 (_dbus_string_base64_encode): new function
1765 (_dbus_string_base64_decode): new function
1767 2002-12-25 Anders Carlsson <andersca@codefactory.se>
1770 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
1771 (_dbus_marshal_int32), (_dbus_marshal_uint32),
1772 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1773 (_dbus_demarshal_uint32), (_dbus_marshal_test):
1774 * dbus/dbus-marshal.h:
1775 * dbus/dbus-protocol.h:
1776 * dbus/dbus-test.c: (main):
1778 Add un-optimized marshalling/demarshalling routines.
1780 2002-12-25 Harri Porten <porten@kde.org>
1782 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
1784 2002-12-24 Zack Rusin <zack@kde.org>
1786 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
1787 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
1790 2002-12-24 Havoc Pennington <hp@pobox.com>
1792 * glib/dbus-gthread.c: fix include
1794 * glib/dbus-glib.h: rename DBusMessageHandler for now.
1795 I think glib API needs to change, though, as you don't
1796 want to use DBusMessageFunction, you want to use the
1797 DBusMessageHandler object. Probably
1798 dbus_connection_open_with_g_main_loop()
1799 and dbus_connection_setup_g_main_loop() or something like that
1800 (but think of better names...) that just create a connection
1801 that has watch/timeout functions etc. already set up.
1803 * dbus/dbus-connection.c
1804 (dbus_connection_send_message_with_reply): new function just to
1805 show how the message handler helps us deal with replies.
1807 * dbus/dbus-list.c (_dbus_list_remove_last): new function
1809 * dbus/dbus-string.c (_dbus_string_test): free a string that
1812 * dbus/dbus-hash.c: use memory pools for the hash entries
1813 (rebuild_table): be more paranoid about overflow, and
1814 shrink table when we can
1815 (_dbus_hash_test): reduce number of sprintfs and write
1816 valid C89. Add tests for case where we grow and then
1817 shrink the hash table.
1819 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
1821 * dbus/dbus-connection.c (dbus_connection_register_handler)
1822 (dbus_connection_unregister_handler): new functions
1824 * dbus/dbus-message.c (dbus_message_get_name): new
1826 * dbus/dbus-list.c: fix docs typo
1828 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
1829 an object representing a handler for messages.
1831 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1834 * glib/dbus-gthread.c: (dbus_gthread_init):
1835 Don't use the gdbus prefix for public functions.
1837 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1841 Add GLib checks and fixup .pc files
1845 * glib/dbus-gmain.c: (gdbus_connection_prepare),
1846 (gdbus_connection_check), (gdbus_connection_dispatch),
1847 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
1848 (dbus_connection_gsource_new):
1849 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
1850 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
1851 * glib/test-dbus-glib.c: (message_handler), (main):
1854 2002-12-15 Harri Porten <porten@kde.org>
1856 * autogen.sh: check for libtoolize before attempting to use it
1858 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
1861 * .cvsignore: ignore more stamp files
1863 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
1865 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
1866 without make install.
1868 2002-12-15 Havoc Pennington <hp@pobox.com>
1870 * dbus/dbus-threads.c: add thread stubs that a higher library
1871 layer can fill in. e.g. the GLib wrapper might fill them in with
1872 GThread stuff. We still need to use this thread API to
1873 thread-safe-ize the library.
1875 2002-12-12 Havoc Pennington <hp@pobox.com>
1877 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
1878 below new interfaces and include fewer system headers.
1880 * dbus/dbus-sysdeps.c (_dbus_read): new function
1881 (_dbus_write): new function
1882 (_dbus_write_two): new function
1883 (_dbus_connect_unix_socket): new function
1884 (_dbus_listen_unix_socket): new function
1886 * dbus/dbus-message-internal.h: change interfaces to use
1889 2002-12-11 Havoc Pennington <hp@pobox.com>
1891 * dbus/dbus-types.h: add dbus_unichar
1893 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
1895 * dbus/dbus-connection.c (dbus_connection_send_message): return
1898 * dbus/dbus-transport.c: include dbus-watch.h
1900 * dbus/dbus-connection.c: include dbus-message-internal.h
1902 * HACKING: add file with coding guidelines stuff.
1904 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
1905 handling here, for security purposes (as in vsftpd). Not actually
1906 using this class yet.
1908 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
1909 system/libc usage here, as in vsftpd, for ease of auditing (and
1910 should also simplify portability). Haven't actually moved all the
1911 system/libc usage into here yet.
1913 2002-11-25 Havoc Pennington <hp@pobox.com>
1915 * dbus/dbus-internals.c (_dbus_verbose): fix to not
1916 always print the first verbose message.
1918 2002-11-24 Havoc Pennington <hp@pobox.com>
1920 * test/echo-client.c, test/echo-server.c: cheesy test
1923 * configure.in (AC_CHECK_FUNCS): check for writev
1925 * dbus/dbus-message.c (_dbus_message_get_network_data): new
1928 * dbus/dbus-list.c (_dbus_list_foreach): new function
1930 * dbus/dbus-internals.c (_dbus_verbose): new function
1932 * dbus/dbus-server.c, dbus/dbus-server.h: public object
1933 representing a server that listens for connections.
1935 * dbus/.cvsignore: create
1937 * dbus/dbus-errors.h, dbus/dbus-errors.c:
1938 public API for reporting errors
1940 * dbus/dbus-connection.h, dbus/dbus-connection.c:
1941 public object representing a connection that
1942 sends/receives messages. (Same object used for
1943 both client and server.)
1945 * dbus/dbus-transport.h, dbus/dbus-transport.c:
1946 Basic abstraction for different kinds of stream
1947 that we might read/write messages from.
1949 2002-11-23 Havoc Pennington <hp@pobox.com>
1951 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
1954 * dbus/dbus-test.c (main): add list test, and include
1955 dbus-test.h as intended
1957 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
1958 (_dbus_hash_table_remove_int): return value indicates
1959 whether the entry existed to remove
1961 * dbus/dbus-list.c: add linked list utility class,
1964 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
1967 2002-11-23 Havoc Pennington <hp@pobox.com>
1969 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
1970 DBUS_END_DECLS to nothing, that should fix this once and for all
1972 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
1974 * dbus/dbus-message.c, dbus/dbus-hash.c:
1975 add some missing @brief
1977 2002-11-23 Havoc Pennington <hp@pobox.com>
1979 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
1980 to avoid confusing Doxygen
1982 * dbus/dbus-hash.c: @} not }@
1984 * dbus/dbus-message.c (struct DBusMessage): split out
1987 2002-11-23 Havoc Pennington <hp@pobox.com>
1989 * configure.in: pile on more warning flags if using gcc
1991 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
1992 to document static functions
1994 * configure.in: add summary to end of configure so it
1995 looks nice and attractive
1997 * dbus/dbus-hash.c: finish implementation and write unit
2000 * configure.in: add --enable-tests to enable unit tests
2002 * dbus/dbus-test.c: test program to run unit tests
2003 for all files in dbus/*, initially runs a test for
2006 * dbus/dbus-internals.h: file to hold some internal utility stuff
2008 2002-11-22 Havoc Pennington <hp@redhat.com>
2010 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
2011 "ported" away from Tcl
2013 * dbus/dbus-types.h: header for types such as dbus_bool_t
2015 2002-11-22 Havoc Pennington <hp@redhat.com>
2017 * dbus/dbus.h: fixups for doc warnings
2019 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
2021 (QUIET): make it quiet so we can see warnings
2023 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
2025 2002-11-22 Havoc Pennington <hp@redhat.com>
2027 * Makefile.am: include "Doxyfile" target in all-local
2029 * configure.in: generate the Doxyfile
2031 * Doxyfile.in: move Doxyfile here, so we can use
2032 configure to generate a Doxyfile with the right
2035 2002-11-22 Havoc Pennington <hp@redhat.com>
2037 * dbus/dbus-message.c: move inline docs into .c file
2039 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
2040 so all docs are under doc/
2041 (MAN_EXTENSION): generate man pages. Use extension
2042 ".3dbus" which matches ".3qt" on my system,
2043 I guess this is OK, I don't know really.
2044 (FILE_PATTERNS): look for .c files not .h, makes sense
2047 2002-11-22 Havoc Pennington <hp@pobox.com>
2049 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
2050 because any app can be a server, and any app can be a client,
2051 the bus is a special kind of server.
2053 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
2055 * Doxyfile : adding. Still needs Makefile rules to be generated
2056 automatically (just run "doxygen" in the toplevel dir for now to
2059 * dbus/dbus-message.h : Adding sample docs (javadoc since
2060 resembles gtk-doc a little more)
2062 * dbus/dbus.h : Adding sample docs
2064 2002-11-21 Havoc Pennington <hp@redhat.com>
2066 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
2067 so we can allow ourselves to include files directly,
2068 instead of having to use dbus.h
2070 * dbus/dbus.h: fill in
2072 * dbus/dbus-message.h: sketch out a sample header file.
2073 Include griping if you include it directly instead of
2076 * dbus/dbus-macros.h: new file with macros for extern "C",
2077 TRUE/FALSE, NULL, etc.
2079 * doc/file-boilerplate.c: put include guards in here
2081 2002-11-21 Havoc Pennington <hp@redhat.com>
2083 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
2085 * COPYING: include the GPL as well, and license code
2086 under both AFL and GPL.
2088 2002-11-21 Havoc Pennington <hp@redhat.com>
2090 * acconfig.h: get rid of this
2092 * autogen.sh (run_configure): add --no-configure option
2094 * configure.in: remove AC_ARG_PROGRAM to make
2095 autoconf complain less. add AC_PREREQ.
2096 add AC_DEFINE third arg.
2098 2002-11-21 Anders Carlsson <andersca@codefactory.se>
2101 Fix references so we can distcheck.
2103 2002-11-21 Havoc Pennington <hp@redhat.com>
2105 * Initial module creation