1 2003-02-19 Havoc Pennington <hp@pobox.com>
3 * Doxyfile.in (PREDEFINED): put DOXYGEN_SHOULD_SKIP_THIS in
4 Doxyfile.in, not Doxyfile
6 * dbus/dbus-keyring.c: do some hacking on this
8 * dbus/dbus-sysdeps.c (_dbus_delete_file): new
10 * dbus/dbus-errors.c (dbus_set_error_const): do not call
12 (dbus_set_error): remove dbus_error_init, check for message ==
13 NULL *before* we sprintf into it, and add @todo about including
14 system headers in this file
16 * dbus/dbus-sysdeps.c (_dbus_create_file_exclusively): new
18 * dbus/dbus-errors.h (DBUS_ERROR_FAILED): add
20 * dbus/dbus-sysdeps.c (get_user_info): break this function out to
21 get various bits of user information based on either username
23 (_dbus_homedir_from_username): new function
25 2003-02-19 Anders Carlsson <andersca@codefactory.se>
28 Add check for nonposix getpwnam_r
30 * dbus/dbus-mempool.c: (_dbus_mem_pool_new):
31 Align the pool element size to a sizeof (void *) boundary.
33 * dbus/dbus-sysdeps.c: (_dbus_setenv), (_dbus_connect_unix_socket),
34 (_dbus_listen_unix_socket), (_dbus_credentials_from_username):
35 General Solaris fixes.
37 * test/data/valid-messages/simplest-manual.message:
38 Explicitly state that we want little-endian packing.
40 2003-02-19 Mikael Hallendal <micke@codefactory.se>
42 * dbus/dbus-server.c (dbus_server_listen): Support tcp: addresses.
44 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_tcp_socket):
45 Added to create a transport connecting using a tcp/ip socket.
47 * dbus/dbus-sysdeps.c (_dbus_connect_tcp_socket): Added to connect
48 to a tcp socket at given host and port.
49 (_dbus_listen_tcp_socket): added to listen on tcp socket for given
52 * dbus/dbus-server.c (dbus_server_listen): Support tcp: addresses.
54 * dbus/dbus-server-unix.c (_dbus_server_new_for_tcp_socket):
55 Added to create a server listening on a TCP/IP socket.
57 2003-02-19 Havoc Pennington <hp@pobox.com>
59 Throughout: mop up all the Doxygen warnings and undocumented
62 * dbus/dbus-sysdeps.c (do_exec): do not use execvp, we don't want
65 * dbus/dbus-threads.c: move global mutex initializers to
66 dbus-internals.h, multiple prototypes was confusing doxygen
67 besides being kind of ugly
69 * Doxyfile (PREDEFINED): have Doxygen define
70 DOXYGEN_SHOULD_SKIP_THIS so we can exclude things from
71 docs with #ifndef DOXYGEN_SHOULD_SKIP_THIS
72 (do not abuse the feature! it's for stuff like the autogenerated
73 macros in dbus-md5.c, not just for things you don't feel like
76 2003-02-18 Havoc Pennington <hp@pobox.com>
78 * dbus/dbus-string.c (_dbus_string_zero): new function
80 * dbus/dbus-md5.c: include MD5 implementation by L. Peter Deutsch,
81 wrap it in some dbus-friendly API
83 * dbus/dbus-types.h: add 16-bit types
85 2003-02-18 Joe Shaw <joe@assbarn.com>
87 * dbus/dbus-auth.c (handle_server_data_stupid_test_mech): Just get
88 credentials from our currently running process.
89 (get_word): Fix a buglet where we were copying the entire length
90 instead of relative to our position.
92 * dbus/dbus-hash.c (_dbus_hash_test): Don't try to allocate the
93 keys on the stack... it's 640k of data.
95 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): Always
96 read the credentials byte off the socket, even if we don't have
98 (_dbus_poll): Implement poll() using select() for systems which
101 * glib/test-dbus-glib.c (main): Print out an error if no
102 parameters are given.
104 * test/data/auth/fallback.auth-script: Added. Tests that a client
105 can fallback to a secondary auth mechanism if the first fails.
107 2003-02-18 Havoc Pennington <hp@pobox.com>
111 2003-02-17 Havoc Pennington <hp@pobox.com>
113 * doc/dbus-specification.sgml: lots of cosmetic
114 cleanups/rearrangement, add assorted FIXME, change DBUS_ADDRESS
115 env variable to DBUS_BUS_ADDRESS, s/client/application/,
116 s/server/bus/ (except in authentication section). Add a section
117 "Message Bus Message Routing"
119 2003-02-17 Anders Carlsson <andersca@codefactory.se.>
125 2003-02-17 Anders Carlsson <andersca@codefactory.se>
127 * doc/dbus-specification.sgml:
128 Specification updates.
130 2003-02-17 Anders Carlsson <andersca@codefactory.se>
132 * bus/activation.c: (bus_activation_init), (child_setup),
133 (bus_activation_activate_service):
135 * bus/main.c: (main):
136 Set DBUS_ADDRESS environment variable.
138 * dbus/dbus-errors.c: (dbus_set_error):
139 Don't use va_copy since that's a C99 feature.
141 * dbus/dbus-sysdeps.c: (_dbus_setenv), (do_exec),
143 * dbus/dbus-sysdeps.h:
144 Add child_setup_func to _dbus_spawn_async.
146 * doc/dbus-specification.sgml:
147 Update specification.
149 * test/spawn-test.c: (setup_func), (main):
152 2003-02-17 Alexander Larsson <alexl@redhat.com>
154 * dbus/dbus-connection.c (_dbus_connection_handler_destroyed_locked):
157 2003-02-17 Anders Carlsson <andersca@codefactory.se>
161 * doc/dbus-test-plan.sgml:
162 Add test plan document.
167 2003-02-17 Anders Carlsson <andersca@codefactory.se>
169 * dbus/dbus-message.c: (decode_header_data),
170 (_dbus_message_loader_return_buffer):
171 Set the header padding amount when loading a message.
173 2003-02-16 Anders Carlsson <andersca@codefactory.se>
175 * bus/dispatch.c: (send_one_message):
176 Only send broadcast messages to registered connections.
178 * dbus/dbus-message.c: (dbus_message_name_is):
179 * dbus/dbus-message.h:
180 New convenience function.
182 * dbus/dbus-transport-debug.c: (do_reading):
183 Only dispatch one message per run.
186 * test/bus-test.c: (new_connection_callback), (die),
187 (test_hello_client1_handler), (test_hello_client2_handler),
188 (test_hello_replies), (main):
190 * test/bus-test-loop.[ch]:
193 2003-02-16 Havoc Pennington <hp@pobox.com>
195 * dbus/dbus-connection.c (dbus_connection_dispatch_message): fix
198 2003-02-16 Alexander Larsson <alexl@redhat.com>
200 * dbus/dbus-connection.c:
201 Implement sent_message_with_reply. (with_reply_and block is still
203 Made dispatch_message not lose message if OOM.
205 * dbus/dbus-errors.h:
206 Add NoReply error (for reply timeouts).
208 2003-02-16 Alexander Larsson <alexl@redhat.com>
210 * dbus/dbus-hash.c (_dbus_hash_table_unref):
211 Actually free keys and values when destroying hashtable.
213 2003-02-16 Anders Carlsson <andersca@codefactory.se>
215 * dbus/dbus-auth.c: (client_try_next_mechanism):
218 * dbus/dbus-threads.c: (dbus_condvar_wait_timeout):
219 Return TRUE if there's no thread implementation around.
221 * glib/dbus-gmain.c: (free_source),
222 (dbus_connection_hookup_with_g_main):
223 Make sure to remove the GSource when the connection is finalized.
225 2003-02-16 Anders Carlsson <andersca@codefactory.se>
227 * bus/dispatch.c: (bus_dispatch_message_handler):
228 * dbus/dbus-errors.h:
229 Return an error if someone tries to send a message to a service
232 2003-02-16 Anders Carlsson <andersca@codefactory.se>
234 * bus/activation.c: (load_directory), (bus_activation_init),
235 (bus_activation_activate_service):
238 (bus_driver_handle_activate_service), (bus_driver_handle_message):
239 More work on the activation handling.
241 * dbus/dbus-errors.h:
242 Add some error messages
244 * dbus/dbus-message.c: (dbus_message_new_error_reply):
245 * dbus/dbus-message.h:
246 New function that creates an error message.
248 * dbus/dbus-protocol.h:
249 Add ACTIVATE_SERVER message.
251 * dbus/dbus-server-unix.c: (unix_handle_watch),
252 (_dbus_server_new_for_domain_socket):
253 Call _dbus_fd_set_close_on_exec.
255 * dbus/dbus-sysdeps.c: (make_pipe), (do_exec),
256 (_dbus_spawn_async), (_dbus_disable_sigpipe),
257 (_dbus_fd_set_close_on_exec):
258 * dbus/dbus-sysdeps.h:
259 Add _dbus_fd_set_close_on exec function. Also add function that checks
260 that all open fds are set to close-on-exec and warns otherwise.
262 * dbus/dbus-transport-unix.c:
263 (_dbus_transport_new_for_domain_socket):
264 Call _dbus_fd_set_close_on_exec.
266 2003-02-16 Havoc Pennington <hp@pobox.com>
268 * dbus/dbus-connection.c (dbus_connection_set_change_sigpipe):
269 allow people to avoid setting SIGPIPE to SIG_IGN
270 (_dbus_connection_new_for_transport): disable SIGPIPE unless
271 we've been asked not to
273 2003-02-15 Anders Carlsson <andersca@codefactory.se>
275 * dbus/dbus-list.c: (_dbus_list_append_link),
276 (_dbus_list_prepend_link):
277 * dbus/dbus-memory.c: (dbus_malloc), (dbus_malloc0),
281 2003-02-15 Anders Carlsson <andersca@codefactory.se>
284 * bus/activation.c: (bus_activation_entry_free),
285 (add_desktop_file_entry), (load_directory), (bus_activation_init):
287 * bus/main.c: (main):
288 Add simple activation support, doesn't work yet though.
290 2003-02-15 Zack Rusin <zack@kde.org>
292 * qt/dbus-qthread.cpp: small casting fix
294 2003-02-15 Anders Carlsson <andersca@codefactory.se>
296 * dbus/dbus-errors.c: (dbus_set_error):
297 * dbus/dbus-errors.h:
298 Add a few errors and make dbus_set_error void.
300 * dbus/dbus-sysdeps.c:
301 (_dbus_errno_to_string), (close_and_invalidate), (make_pipe),
302 (write_err_and_exit), (read_ints), (do_exec), (_dbus_spawn_async):
303 * dbus/dbus-sysdeps.h:
304 Add _dbus_spawn_async.
306 * test/spawn-test.c: (main):
307 Test for _dbus_spawn_async.
309 2003-02-15 Anders Carlsson <andersca@codefactory.se>
311 * dbus/dbus-internals.h:
312 Fix build without tests.
314 * dbus/dbus-list.c: (alloc_link):
315 Fix a segfault when a malloc fails.
317 * dbus/dbus-memory.c: (initialize_malloc_debug), (dbus_malloc),
318 (dbus_malloc0), (dbus_realloc):
319 Add support for malloc debugging.
321 2003-02-15 Alexander Larsson <alexl@redhat.com>
323 * dbus/dbus-threads.c:
324 * dbus/dbus-threads.h:
325 Add condvars. Remove static mutext from API.
326 Implement static mutexes by initializing them from threads_init.
328 * glib/dbus-gthread.c:
329 * qt/dbus-qthread.cpp:
330 Update with the thread api changes.
335 Turn StaticMutex into normal mutex + init function.
336 Export new functions _dbus_list_alloc_link, _dbus_list_free_link,
337 _dbus_list_append_link, _dbus_list_prepend_link
340 * dbus/dbus-sysdeps.c:
341 * dbus/dbus-sysdeps.h:
342 New type dbus_atomic_t, and new functions _dbus_atomic_inc,
343 _dbus_atomic_dec. Only slow fallback implementation at the moment.
345 * dbus/dbus-protocol.h:
346 Add DBUS_MESSAGE_LOCAL_DISCONNECT define
348 * dbus/dbus-message.c:
349 Make ref/unref atomic.
352 * dbus/dbus-connection-internal.h:
353 * dbus/dbus-connection.c:
354 * dbus/dbus-connection.h:
356 Change _peek to _borrow,_return & _steal_borrowed.
357 Change disconnect callback to event.
358 Make dbus_connection_dispatch_messages reentrant.
360 * dbus/dbus-transport.c:
361 Don't ref the connection on calls to the transport
364 * dbus/dbus-message-handler.c:
368 Don't use peek_message anymore
371 * test/debug-thread.c:
372 * test/debug-thread.h:
373 Simple thread implementation that asserts() on deadlocks in
374 single-threaded code.
377 (main) Call debug_threads_init.
380 Use disconnect message instead of disconnect callback.
384 Don't call dbus_connection_set_disconnect_function. Instead export
385 bus_connection_disconnect.
388 Call bus_connection_disconnect when we get a disconnected message.
390 2003-02-15 Havoc Pennington <hp@pobox.com>
392 * dbus/dbus-message.c (dbus_message_new): fool around with the
395 2003-02-14 Havoc Pennington <hp@pobox.com>
397 * dbus/dbus-mempool.c: fail if the debug functions so indicate
399 * dbus/dbus-memory.c: fail if the debug functions indicate we
402 * dbus/dbus-internals.c (_dbus_set_fail_alloc_counter)
403 (_dbus_decrement_fail_alloc_counter): debug functions to
404 simulate memory allocation failures
406 2003-02-14 Havoc Pennington <hp@pobox.com>
408 * dbus/dbus-errors.h (struct DBusError): add a word of padding
411 2003-02-13 Anders Carlsson <andersca@codefactory.se>
413 * bus/driver.c: (bus_driver_handle_hello):
415 * bus/services.c: (bus_service_lookup):
416 Reorder message sending so we get a more sane order.
418 * test/bus-test.c: (message_handler):
421 2003-02-13 Anders Carlsson <andersca@codefactory.se>
423 * bus/driver.c: (bus_driver_send_service_deleted),
424 (bus_driver_send_service_created), (bus_driver_send_service_lost),
425 (bus_driver_send_service_acquired), (bus_driver_handle_hello),
426 (bus_driver_send_welcome_message),
427 (bus_driver_handle_list_services),
428 (bus_driver_handle_acquire_service),
429 (bus_driver_handle_service_exists):
430 * dbus/dbus-bus.c: (dbus_bus_register_client),
431 (dbus_bus_acquire_service), (dbus_bus_service_exists):
432 * dbus/dbus-errors.c: (dbus_result_to_string):
433 * dbus/dbus-errors.h:
434 * dbus/dbus-message.c: (dbus_message_append_args),
435 (dbus_message_append_args_valist), (dbus_message_get_args),
436 (dbus_message_get_args_valist), (dbus_message_get_args_iter),
437 (dbus_message_iter_get_arg_type), (dbus_message_iter_get_string),
438 (dbus_message_iter_get_byte_array),
439 (dbus_message_iter_get_string_array), (message_iter_test),
440 (check_message_handling), (_dbus_message_test):
441 * dbus/dbus-message.h:
442 * test/bus-test.c: (main):
443 Change fields to arguments in messages, so that they won't be
444 confused with header fields.
446 * glib/test-dbus-glib.c: (main):
447 Remove append_fields from hello message.
449 2003-02-13 Anders Carlsson <andersca@codefactory.se>
451 * dbus/dbus-errors.c:
452 * dbus/dbus-message.c:
453 * dbus/dbus-string.c:
456 2003-02-13 Anders Carlsson <andersca@codefactory.se>
458 * glib/dbus-gmain.c: (timeout_handler), (add_timeout),
460 Implement support for timeouts in dbus-glib.
462 2003-02-13 Anders Carlsson <andersca@codefactory.se>
464 * dbus/dbus-message-builder.c: (_dbus_message_data_load):
465 * dbus/dbus-message.c: (process_test_subdir):
466 * test/break-loader.c: (find_breaks_based_on):
467 Plug some memory leaks.
469 2003-02-13 Richard Hult <rhult@codefactory.se>
471 * bus/main.c: Fix build.
473 * dbus/dbus-errors.h:
474 * dbus/dbus-errors.c: Fix copyright for Anders.
476 2003-02-13 Anders Carlsson <andersca@codefactory.se>
481 * bus/connection.c: (bus_connection_foreach):
484 * bus/desktop-file.c: (grow_lines_in_section), (grow_sections),
485 (unescape_string), (new_section), (parse_section_start),
486 (parse_key_value), (report_error), (bus_desktop_file_load),
487 (bus_desktop_file_get_string):
488 * bus/desktop-file.h:
489 Use DBusError for error reporting.
491 * bus/dispatch.c: (send_one_message),
492 (bus_dispatch_message_handler):
493 * bus/driver.c: (bus_driver_send_service_deleted),
494 (bus_driver_send_service_created), (bus_driver_send_service_lost),
495 (bus_driver_send_service_acquired), (bus_driver_handle_hello),
496 (bus_driver_send_welcome_message),
497 (bus_driver_handle_list_services),
498 (bus_driver_handle_acquire_service),
499 (bus_driver_handle_service_exists):
500 * bus/loop.c: (bus_loop_run):
502 Use BUS_HANDLE_OOM instead of _DBUS_HANDLE_OOM.
504 * bus/utils.c: (bus_wait_for_memory):
506 New files with general utility functions.
508 * dbus/dbus-internals.h:
509 Remove _DBUS_HANDLE_OOM.
511 2003-02-13 Anders Carlsson <andersca@codefactory.se>
513 * dbus/dbus-errors.c: (dbus_result_to_string), (dbus_error_init),
514 (dbus_error_free), (dbus_set_error_const), (dbus_set_error):
515 * dbus/dbus-errors.h:
516 Add DBusError structure.
518 2003-02-13 Anders Carlsson <andersca@codefactory.se>
520 * test/data/valid-messages/standard-acquire-service.message:
521 * test/data/valid-messages/standard-hello.message:
522 * test/data/valid-messages/standard-list-services.message:
523 * test/data/valid-messages/standard-service-exists.message:
524 Add some standard messages.
526 2003-02-13 Anders Carlsson <andersca@codefactory.se>
528 * bus/driver.c: (bus_driver_send_welcome_message),
529 (bus_driver_handle_list_services),
530 (bus_driver_handle_acquire_service),
531 (bus_driver_handle_service_exists), (bus_driver_handle_message):
532 Update for API changes in libdbus.
534 * dbus/dbus-message.c: (dbus_message_new_reply):
535 * dbus/dbus-message.h:
536 Remove the name argument. The spec states that replies shouldn't
539 2003-02-13 Anders Carlsson <andersca@codefactory.se>
541 * bus/desktop-file.c: (parse_section_start), (parse_key_value),
542 (report_error), (bus_desktop_file_load), (lookup_section),
543 (lookup_line), (bus_desktop_file_get_raw),
544 (bus_desktop_file_get_string):
545 * bus/desktop-file.h:
546 Some fixes, and new functions for getting a key value from a section.
548 2003-02-13 Havoc Pennington <hp@pobox.com>
550 * test/data/auth/fail-after-n-attempts.auth-script: new test
552 * dbus/dbus-auth.c (send_rejected): shutdown_mech() when we
555 2003-02-13 Havoc Pennington <hp@pobox.com>
557 * dbus/dbus-auth.c (handle_server_data_external_mech): args to
558 dbus_credentials_match were backward
560 * dbus/dbus-auth-script.c (_dbus_auth_script_run): support
561 NO_CREDENTIALS and ROOT_CREDENTIALS
563 * dbus/dbus-auth.c (_dbus_auth_do_work): move get_state() routine
564 into here. Never process more commands after we've reached an
565 end state; store further data as unused bytes.
567 * test/data/auth/*: add more auth tests
569 * dbus/dbus-auth-script.c (_dbus_auth_script_run): support EXPECT
570 command to match exact string and EXPECT_UNUSED to match unused
573 * test/Makefile.am (dist-hook): fix to dist all the test stuff
575 2003-02-12 Havoc Pennington <hp@pobox.com>
577 * dbus/dbus-string.c (_dbus_string_pop_line): fix to also strip
578 \r off of popped lines
580 * dbus/dbus-auth.c (_dbus_auth_test): write code to run auth
583 * dbus/dbus-auth-script.c (_dbus_auth_script_run): when doing a
586 2003-02-12 Havoc Pennington <hp@pobox.com>
588 * dbus/Makefile.am: remove break-loader from the build, since it
591 * configure.in: add --enable-gcov to turn on coverage profiling
592 flags and disable optimization
594 2003-02-10 Havoc Pennington <hp@pobox.com>
596 * dbus/dbus-auth-script.c, dbus/dbus-auth-script.h: sync
597 initial cut at test framework for DBusAuth from laptop.
598 Doesn't quite work yet but it compiles and I need to get
599 it off the 266mhz laptop. ;-)
601 * dbus/dbus-server-debug.c (_dbus_server_debug_accept_transport):
602 fix a memleak in error case
604 2003-02-12 Anders Carlsson <andersca@codefactory.se>
607 * bus/desktop-file.c:
608 * bus/desktop-file.h:
609 Add a desktop file parser.
611 2003-02-11 Zack Rusin <zack@kde.org>
613 * qt/message.[h|cpp]: sample implementation
614 of the KDE wrapper for DBusMessage
616 2003-02-09 Zack Rusin <zack@kde.org>
618 * test/bus-test.c: make_it_compile
619 * doc/dbus-specification.sgml: minimal semantic fix
621 2003-02-06 Anders Carlsson <andersca@codefactory.se>
627 2003-02-06 Anders Carlsson <andersca@codefactory.se>
630 * dbus/dbus-break-loader.c:
632 * test/break-loader.c:
633 Move dbus-break-loader to test/ and rename it to break-loader.
635 2003-02-02 Havoc Pennington <hp@pobox.com>
637 * dbus/dbus-keyring.c, dbus/dbus-keyring.h: template files
638 for code to manage cookies in your home directory
640 * dbus/dbus-sysdeps.c (_dbus_generate_random_bytes): new function
642 * dbus/dbus-auth.c (get_state): impose a maximum number of tries
643 to authenticate, then disconnect the client.
645 2003-02-03 Alexander Larsson <alexl@redhat.com>
647 * dbus/dbus-message.c (dbus_message_append_fields):
650 2003-02-02 Anders Carlsson <andersca@codefactory.se>
652 * doc/dbus-specification.sgml:
653 Update address format section.
655 2003-02-02 Anders Carlsson <andersca@codefactory.se>
658 * test/bus-test.c: (get_time), (add_timeout), (remove_timeout),
659 (message_handler), (new_connection_callback), (loop_quit),
663 2003-02-02 Anders Carlsson <andersca@codefactory.se>
665 * bus/driver.c: (bus_driver_handle_service_exists):
666 Simplify the code a bit.
668 * dbus/dbus-bus.c: (dbus_bus_service_exists):
671 2003-02-02 Anders Carlsson <andersca@codefactory.se>
674 Add libdbus-daemon.la and link to it.
676 2003-02-01 James Willcox <jwillcox@gnome.org>
678 * bus/driver.c: (bus_driver_handle_own_service):
679 Actually include the service reply code in the message.
681 2003-02-02 Anders Carlsson <andersca@codefactory.se>
683 * bus/driver.c: (bus_driver_handle_service_exists):
684 Don't unref the incoming message.
686 2003-02-02 Anders Carlsson <andersca@codefactory.se>
688 * dbus/dbus.h: Add dbus-address.h and dbus-bus.h
690 2003-02-02 Anders Carlsson <andersca@codefactory.se>
692 * dbus/dbus-server.c: (dbus_server_listen):
693 * dbus/dbus-transport.c: (_dbus_transport_open):
694 ifdef out the calls to the debug transport and server.
696 2003-02-02 Alexander Larsson <alexl@redhat.com>
698 * dbus/dbus-watch.c (dbus_watch_get_flags):
699 Add note in the docs that ERROR or HANGUP won't be returned
700 and are assumed always on.
702 * glib/dbus-gmain.c (add_watch):
703 Always add IO_ERR | IO_HUP
705 * dbus/dbus-message.h:
706 Add semicolon after dbus_message_iter_get_string_array().
707 Makes qt code build again
709 2003-02-01 Anders Carlsson <andersca@codefactory.se>
711 * bus/driver.c: (create_unique_client_name),
712 (bus_driver_handle_hello):
713 Don't take a name, just use a numeric id to identify
717 * dbus/dbus-bus.c: (dbus_bus_register_client),
718 (dbus_bus_acquire_service), (dbus_bus_service_exists):
720 Add new convenience functions for communicating with the bus.
722 * dbus/dbus-message.h:
724 * dbus/dbus-protocol.h:
727 2003-02-01 Alexander Larsson <alexl@redhat.com>
729 * dbus/dbus-message.c (dbus_message_append_fields):
730 Add some more doc comments.
732 2003-02-01 Havoc Pennington <hp@pobox.com>
734 * dbus/dbus-break-loader.c (randomly_modify_length): change
735 a 4-byte value in the message as if it were a length
737 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): don't set
738 execute bit on saved files
740 2003-02-01 Havoc Pennington <hp@pobox.com>
742 * dbus/dbus-break-loader.c (main): new program to find messages
743 that break the loader.
745 * dbus/dbus-sysdeps.c (_dbus_string_append_uint): new function
746 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): new function
748 * dbus/dbus-string.c (_dbus_string_set_byte): new
750 2003-01-31 Havoc Pennington <hp@pobox.com>
752 * dbus/dbus-message.c: refactor the test code to be more general,
753 in preparation for writing a "randomly permute test cases to
754 try to break the loader" program.
756 2003-01-31 Havoc Pennington <hp@pobox.com>
758 * doc/dbus-specification.sgml: work on the specification
760 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): check
761 the protocol version of the message.
763 * dbus/dbus-protocol.h: drop special _REPLY names, the spec
764 no longer specifies that.
765 (DBUS_SERVICE_REPLY_SERVICE_EXISTS): fix flags (1/2/4/8 not
768 * dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos): add missing
769 "break" for DBUS_TYPE_NIL, remove @todo
771 2003-01-31 Havoc Pennington <hp@pobox.com>
773 * dbus/dbus-message.c (dbus_message_set_is_error_reply): rename
774 just set_is_error/get_is_error as this is a commonly-used
775 function, and write docs.
777 2003-01-31 Anders Carlsson <andersca@codefactory.se>
779 * dbus/dbus-address.c: (dbus_address_entry_free):
780 Free key and value lists.
782 * dbus/dbus-internals.c: (_dbus_type_to_string):
783 Add the types we didn't have.
785 * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
786 (_dbus_marshal_validate_arg):
789 * dbus/dbus-message.c: (dbus_message_set_sender):
790 Remove todo about being able to set sender to NULL.
792 (dbus_message_set_is_error_reply),
793 (dbus_message_get_is_error_reply):
794 * dbus/dbus-message.h:
797 * dbus/dbus-protocol.h:
798 Add error reply flag.
800 * test/data/valid-messages/opposite-endian.message:
801 Add NIL type to test.
803 2003-01-31 Havoc Pennington <hp@pobox.com>
805 * doc/dbus-specification.sgml: fully specify the header. Add
806 flags and major protocol version, and change header/body len to
809 * dbus/dbus-message-builder.c (append_saved_length): append length
812 * dbus/dbus-message.c (dbus_message_create_header): change header
813 length and body length to unsigned. Add the new fields from the
815 (_dbus_message_loader_return_buffer): unsigned header/body len
817 2003-01-30 Havoc Pennington <hp@pobox.com>
819 * dbus/dbus-auth.c: rework to use only REJECTED, no
822 * doc/dbus-sasl-profile.txt: drop MECHANISMS and just
823 use REJECTED, suggested by Mark McLoughlin
825 2003-01-30 Havoc Pennington <hp@pobox.com>
827 * dbus/dbus-server.c (dbus_server_listen): @todo about how we need
828 a better way to report errors here. e.g. "unix address lacks
829 path" or something. also "no such file" when the path doesn't
832 * dbus/dbus-address.c (dbus_address_entries_free): add @todo about
834 (dbus_parse_address): add @todo about documenting address format,
835 and allowing , and ; to be escaped
837 2003-01-30 Anders Carlsson <andersca@codefactory.se>
840 Add dbus-address.[ch]
842 * dbus/dbus-address.c: (dbus_address_entry_free),
843 (dbus_address_entries_free), (create_entry),
844 (dbus_address_entry_get_method), (dbus_address_entry_get_value),
845 (dbus_parse_address), (_dbus_address_test):
846 * dbus/dbus-address.h:
847 New files for dealing with address parsing.
849 * dbus/dbus-connection.c:
850 Document timeout functions.
852 * dbus/dbus-message.c:
853 Document dbus_message_new_from_message.
855 * dbus/dbus-server-debug.c:
858 * dbus/dbus-server.c: (dbus_server_listen):
859 Parse address and use correct server implementation.
861 * dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
862 * dbus/dbus-string.h:
863 New function with test.
865 * dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
869 * dbus/dbus-transport-debug.c:
872 * dbus/dbus-transport.c: (_dbus_transport_open):
873 Parse address and use correct transport implementation.
875 2003-01-30 Havoc Pennington <hp@pobox.com>
877 * dbus/dbus-message.c: use message->byte_order instead of
878 DBUS_COMPILER_BYTE_ORDER throughout.
879 (dbus_message_create_header): pad header to align the
880 start of the body of the message to 8-byte boundary
882 * dbus/dbus-marshal.h: make all the demarshalers take const
883 DBusString arguments.
885 * dbus/dbus-message.c (_dbus_message_loader_return_buffer):
886 validate message args here, so we don't have to do slow validation
887 later, and so we catch bad messages as they are incoming. Also add
888 better checks on header_len and body_len. Also fill in
891 * dbus/dbus-string.c (_dbus_string_validate_utf8): new (not
892 implemented properly)
893 (_dbus_string_validate_nul): new function to check all-nul
895 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): rename
896 get_arg_end_pos and remove all validation
897 (_dbus_marshal_validate_arg): actually do validation here.
899 2003-01-29 Havoc Pennington <hp@pobox.com>
901 * dbus/dbus-message.c (check_message_handling): fix assertion
902 failure on set_client_serial
904 2003-01-28 Havoc Pennington <hp@pobox.com>
906 * dbus/dbus-server-debug.c: Add doc section comments
908 * dbus/dbus-transport-debug.c: add doc section comments
910 2003-01-28 Havoc Pennington <hp@redhat.com>
912 * dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
913 the reverse order from how I had it
914 (_dbus_string_base64_encode): reverse encoding order. I was
915 basically byteswapping everything during encoding.
917 2003-01-28 Anders Carlsson <andersca@codefactory.se>
919 * dbus/dbus-connection-internal.h:
920 * dbus/dbus-connection.c: (_dbus_connection_add_timeout),
921 (_dbus_connection_remove_timeout):
922 Add functions for adding and removing timeouts.
924 * dbus/dbus-message.c: (dbus_message_new_from_message):
925 Add new function that takes a message and creates an exact
926 copy of it, but with the refcount set to 1.
927 (check_message_handling):
930 * dbus/dbus-server-protected.h:
931 * dbus/dbus-server.c: (_dbus_server_init_base),
932 (_dbus_server_finalize_base), (_dbus_server_add_timeout),
933 (dbus_server_set_timeout_functions):
934 (_dbus_server_remove_timeout):
935 New functions so that a server can add and remove timeouts.
937 (dbus_server_listen):
938 Add commented out call to dbus_server_debug_new.
940 * dbus/dbus-timeout.c: (_dbus_timeout_new):
941 Actually set the handler, doh.
943 * dbus/dbus-transport.c: (_dbus_transport_open):
944 Add commented out call to dbus_transport_debug_client_new.
947 Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
949 2003-01-28 Havoc Pennington <hp@pobox.com>
951 * dbus/dbus-message.c (check_message_handling): function to check
952 on the loaded message, iterates over it etc.
954 2003-01-28 Havoc Pennington <hp@pobox.com>
956 * test/Makefile.am (dist-hook): fix make distdir
958 * dbus/Makefile.am (TESTS_ENVIRONMENT): fix make check
960 2003-01-27 Havoc Pennington <hp@pobox.com>
962 * dbus/dbus-mempool.c (time_for_size): replace printf with
965 * dbus/dbus-message-builder.c (_dbus_message_data_load): allow
966 empty lines; fix the SAVE_LENGTH stuff to be
967 START_LENGTH/END_LENGTH so it actually works; couple other
970 * test/Makefile.am (dist-hook): add dist-hook for .message files
972 * dbus/dbus-string.c (DBUS_STRING_COPY_PREAMBLE): source of a copy
973 can be constant or locked.
974 (_dbus_string_free): allow freeing a const string as
977 * dbus/dbus-sysdeps.c (_dbus_concat_dir_and_file): utility
979 * dbus/dbus-test-main.c (main): take an argument which is the
980 directory containing test data
982 * dbus/dbus-message.c (_dbus_message_test): pass a test_data_dir
983 argument to this and load all the messages in test/data/
984 checking that they can be loaded or not loaded as appropriate.
986 2003-01-27 Anders Carlsson <andersca@codefactory.se>
988 * bus/dispatch.c: (bus_dispatch_message_handler):
989 Dispatch messages sent to services.
991 * bus/driver.c: (bus_driver_send_service_deleted),
992 (bus_driver_send_service_created), (bus_driver_send_service_lost),
993 (bus_driver_send_service_acquired):
994 Add helper functions for sending service related messages.
996 (bus_driver_send_welcome_message):
997 Send HELLO_REPLY instead of WELCOME.
999 (bus_driver_handle_list_services):
1000 Send LIST_SERVICES_REPLY instead of SERVICES.
1002 (bus_driver_handle_own_service),
1003 (bus_driver_handle_service_exists):
1004 New message handlers.
1006 (bus_driver_handle_message):
1007 Invoke new message handlers.
1009 (bus_driver_remove_connection):
1010 Don't remove any services here since that's done automatically
1011 by bus_service_remove_owner now.
1014 New function signatures.
1016 * bus/services.c: (bus_service_add_owner):
1017 Send ServiceAcquired message if we're the only primary owner.
1019 (bus_service_remove_owner):
1020 Send ServiceAcquired/ServiceLost messages.
1022 (bus_service_set_prohibit_replacement),
1023 (bus_service_get_prohibit_replacement):
1024 Functions for setting prohibit replacement.
1026 (bus_service_has_owner):
1027 New function that checks if a connection is in the owner queue of
1031 Add new function signatures.
1033 * dbus/dbus-list.c: (_dbus_list_test):
1034 Add tests for _dbus_list_remove_last and traversing the list backwards.
1037 Fix a typo in _dbus_list_get_prev_link, if we're at the first element we can't
1038 go any further, so return NULL then.
1040 * dbus/dbus-protocol.h:
1041 Add new messages, service flags and service replies.
1043 2003-01-26 Havoc Pennington <hp@pobox.com>
1045 * dbus/dbus-message-builder.c: implement, completely untested.
1047 * test/data/*: add data to be used in testing.
1048 ".message" files are our simple loadable text format.
1049 ".message-raw" will be binary dumps of messages.
1051 * dbus/dbus-string.c (_dbus_string_starts_with_c_str): new
1053 2003-01-26 Havoc Pennington <hp@pobox.com>
1055 * dbus/dbus-sysdeps.c (_dbus_file_get_contents): new function
1057 * dbus/dbus-errors.c (dbus_result_to_string): add
1060 * dbus/dbus-message-builder.c: new file, will contain code to load
1061 up messages from files. Not implemented yet.
1063 2003-01-26 Havoc Pennington <hp@pobox.com>
1065 * dbus/dbus-message.c (dbus_message_set_sender): support deleting
1066 the sender by setting to NULL
1068 2003-01-26 Havoc Pennington <hp@pobox.com>
1070 The unit tests pass, but otherwise untested. If it breaks, the
1071 tests should have been better. ;-)
1073 * bus/driver.c (bus_driver_handle_hello): return if we disconnect
1076 * dbus/dbus-message.c: redo everything so we maintain
1077 message->header as the only copy of the various fields.
1078 This avoids the possibility of out-of-memory in some cases,
1079 for example dbus_message_lock() can't run out of memory anymore,
1080 and avoids extra copying. Figured I may as well go ahead and do
1081 this since it was busted for dbus_message_lock to not return
1082 failure on OOM, and dbus_message_write_header was totally
1083 unchecked for OOM. Also fixed some random other bugs.
1085 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): verify
1086 that strings are nul-terminated. Also, end_pos can be equal
1087 to string length just not greater than, I think.
1088 (_dbus_marshal_set_int32): new function
1089 (_dbus_marshal_set_uint32): new function
1090 (_dbus_marshal_set_string): new function
1092 * dbus/dbus-connection.c (_dbus_connection_new_for_transport): fix
1093 a warning, init timeout_list to NULL
1094 (dbus_connection_send_message): don't use uninitialized variable
1097 * dbus/dbus-string.c (_dbus_string_replace_len): new function
1099 2003-01-26 Anders Carlsson <andersca@codefactory.se>
1101 * bus/driver.c: (bus_driver_handle_hello),
1102 (bus_driver_send_welcome_message):
1105 2003-01-26 Anders Carlsson <andersca@codefactory.se>
1107 * dbus/dbus-auth.c: (process_auth), (_dbus_auth_unref):
1108 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
1109 (dbus_connection_unref):
1110 * dbus/dbus-marshal.c: (_dbus_marshal_test):
1111 * dbus/dbus-message.c: (dbus_message_unref),
1114 (dbus_message_get_fields):
1115 Remove debugging printout.
1117 (_dbus_message_loader_return_buffer):
1118 Don't store the header string.
1120 (_dbus_message_test):
1123 2003-01-26 Richard Hult <rhult@codefactory.se>
1125 * glib/dbus-gmain.c (dbus_connection_dispatch): Traverse a copy of
1126 the file descriptor list, since it can change under us.
1128 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1130 * glib/dbus-gmain.c: (dbus_connection_prepare),
1131 (dbus_connection_check), (dbus_connection_dispatch), (add_watch),
1132 (remove_watch), (dbus_connection_hookup_with_g_main):
1133 Rewrite the glib handling to use its own GSource instead of a
1134 GIOChannel so we can catch messages put in the queue while waiting
1137 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1140 * bus/connection.c: (connection_disconnect_handler),
1141 (connection_watch_callback), (bus_connection_setup):
1142 * bus/dispatch.c: (send_one_message),
1143 (bus_dispatch_broadcast_message), (bus_dispatch_message_handler),
1144 (bus_dispatch_add_connection), (bus_dispatch_remove_connection):
1146 * bus/driver.c: (bus_driver_send_service_deleted),
1147 (bus_driver_send_service_created), (bus_driver_handle_hello),
1148 (bus_driver_send_welcome_message),
1149 (bus_driver_handle_list_services), (bus_driver_remove_connection),
1150 (bus_driver_handle_message):
1152 Refactor code, put the message dispatching in its own file. Use
1153 _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client
1156 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1158 * dbus/dbus-internals.h:
1159 Add _DBUS_HANDLE_OOM macro, it doesn't do anything currently.
1161 * dbus/dbus-message.c: (dbus_message_get_sender):
1162 * dbus/dbus-message.h:
1163 Implement dbus_message_get_sender.
1165 * dbus/dbus-protocol.h:
1166 Add message and service defines.
1168 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1170 * dbus/dbus-connection.c: (dbus_connection_send_message):
1171 * dbus/dbus-message-internal.h:
1172 * dbus/dbus-message.c: (_dbus_message_get_client_serial),
1173 (dbus_message_write_header):
1174 Remove _dbus_messag_unlock and don't set the client serial on a
1175 message if one already exists.
1177 2003-01-24 Havoc Pennington <hp@pobox.com>
1179 * dbus/dbus-list.c (alloc_link): put a thread lock on the global
1182 * bus/driver.c (bus_driver_handle_list_services): fix a leak
1185 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1187 * dbus/dbus-list.c: (alloc_link), (free_link):
1188 Use a memory pool for the links.
1190 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1192 * bus/connection.c: (bus_connection_foreach):
1194 Add new bus_connection_foreach function.
1196 * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
1197 Add function that broadcasts a message to all clients.
1199 (bus_driver_send_service_created), (bus_driver_handle_hello),
1200 (bus_driver_send_welcome_message),
1201 (bus_driver_handle_list_services), (bus_driver_message_handler):
1202 Implement functions that take care of listing services, and notifying
1203 clients when new services are created.
1205 * bus/services.c: (bus_services_list):
1207 Add new function that returns an array of strings with the currently
1208 registered services.
1211 * glib/dbus-gmain.c:
1212 Update copyright year.
1214 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1216 * dbus/dbus-connection.c: (dbus_connection_send_message):
1217 Unlock the message in case it was sent earlier.
1219 (dbus_connection_send_message_with_reply_and_block):
1220 Remove the reply message from the list.
1222 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
1223 Set array_len and new_pos correctly.
1225 (_dbus_marshal_test):
1226 Remove debug output.
1228 * dbus/dbus-message-internal.h:
1229 * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
1230 New function that returns the reply serial.
1232 (_dbus_message_unlock):
1233 New function that unlocks a message and resets its header.
1235 (dbus_message_append_string_array),
1236 (dbus_message_get_fields_valist),
1237 (dbus_message_iter_get_field_type),
1238 (dbus_message_iter_get_string_array),
1239 (dbus_message_get_fields),
1240 (dbus_message_append_fields_valist):
1241 Handle string arrays.
1243 (dbus_message_set_sender):
1244 Make this function public since the bus daemon needs it.
1246 (decode_header_data):
1247 Set the reply serial to -1 initially.
1249 * dbus/dbus-message.h:
1250 Add dbus_message_set_sender.
1252 2003-01-24 Havoc Pennington <hp@pobox.com>
1254 * doc/dbus-specification.sgml: add some stuff
1256 2003-01-22 Havoc Pennington <hp@pobox.com>
1258 * doc/dbus-specification.sgml: Start to document the protocol.
1260 2003-01-22 Havoc Pennington <hp@pobox.com>
1262 * dbus/dbus-connection.c
1263 (dbus_connection_send_message_with_reply_and_block): add some @todo
1265 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
1267 2003-01-21 Havoc Pennington <hp@pobox.com>
1269 (patch untested because can't compile)
1271 * bus/driver.c (create_unique_client_name): make this function
1272 never recycle client names. Also, caller should initialize
1275 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
1277 2003-01-21 Anders Carlsson <andersca@codefactory.se>
1279 * dbus/dbus-marshal.c: (_dbus_marshal_double),
1280 (_dbus_marshal_int32), (_dbus_marshal_uint32),
1281 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
1282 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
1283 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
1284 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
1285 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
1286 * dbus/dbus-marshal.h:
1287 * dbus/dbus-protocol.h:
1288 Add support for marshalling and demarshalling integer, double
1291 2003-01-21 Anders Carlsson <andersca@codefactory.se>
1296 * bus/connection.c: (connection_disconnect_handler):
1297 Remove the connection from the bus driver's list.
1299 (connection_watch_callback): Dispatch messages.
1301 (free_connection_data): Free connection name.
1303 (bus_connection_setup): Add connection to the bus driver's list.
1304 (bus_connection_remove_owned_service):
1305 (bus_connection_set_name), (bus_connection_get_name):
1306 Add functions for setting and getting the connection's name.
1309 Add function headers.
1311 * bus/driver.c: (create_unique_client_name),
1312 (bus_driver_handle_hello_message),
1313 (bus_driver_send_welcome_message), (bus_driver_message_handler),
1314 (bus_driver_add_connection), (bus_driver_remove_connection):
1317 * bus/services.c: (bus_service_free):
1319 New file that handles communication and registreation with the bus
1322 2003-01-21 Anders Carlsson <andersca@codefactory.se>
1324 * dbus/dbus-connection.c: (dbus_connection_send_message):
1325 Add a new client_serial parameter.
1327 (dbus_connection_send_message_with_reply):
1328 Remove a @todo since we've implemented the blocking function.
1330 (dbus_connection_send_message_with_reply_and_block):
1331 New function that sends a message and waits for a reply and
1332 then returns the reply.
1334 * dbus/dbus-connection.h:
1337 * dbus/dbus-errors.c: (dbus_result_to_string):
1338 * dbus/dbus-errors.h:
1339 Add new DBUS_RESULT.
1341 * dbus/dbus-message-internal.h:
1342 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
1343 (_dbus_message_set_sender), (dbus_message_write_header),
1344 (dbus_message_new_reply), (decode_header_data),
1345 (_dbus_message_loader_return_buffer), (_dbus_message_test):
1346 * dbus/dbus-message.h:
1347 Add new functions that set the reply serial and sender.
1348 Also marshal and demarshal them correctly and add test.
1350 * dbus/dbus-protocol.h:
1351 Add new DBUS_MESSAGE_TYPE_SENDER.
1354 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
1355 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
1356 (dbus_connection_hookup_with_g_main):
1357 * glib/test-dbus-glib.c: (main):
1358 Rewrite to use GIOChannel and remove the GSource crack.
1360 * test/echo-client.c: (main):
1361 * test/watch.c: (check_messages):
1362 Update for changed APIs
1364 2003-01-19 Anders Carlsson <andersca@codefactory.se>
1366 * dbus/Makefile.am: Add dbus-timeout.[cħ]
1368 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
1369 Create a DBusTimeoutList.
1370 (dbus_connection_set_timeout_functions): Add new function to
1371 set timeout callbacks
1373 * dbus/dbus-connection.h: Add public DBusTimeout API.
1375 * dbus/dbus-message.c: (dbus_message_get_service):
1376 * dbus/dbus-message.h: New function.
1378 * dbus/dbus-server.c: Fix small doc typo.
1380 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
1382 2003-01-19 Anders Carlsson <andersca@codefactory.se>
1384 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
1385 of the string, just as long as specified.
1387 2003-01-19 Havoc Pennington <hp@pobox.com>
1389 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
1392 * dbus/dbus-server.c (dbus_server_set_max_connections)
1393 (dbus_server_get_max_connections, dbus_server_get_n_connections):
1394 keep track of current number of connections, and add API for
1395 setting a max (but haven't implemented enforcing the max yet)
1397 2003-01-18 Havoc Pennington <hp@pobox.com>
1399 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
1400 reading/writing if read_watch != NULL or write_watch != NULL.
1402 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
1403 the message loader code to actually load message->header and
1404 message->body into the newly-created message.
1406 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
1409 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
1410 (dbus_connection_get_max_message_size)
1411 (dbus_connection_set_max_live_messages_size)
1412 (dbus_connection_get_max_live_messages_size): implement some
1413 resource limitation functions
1415 * dbus/dbus-resources.c: new file implementing some of the
1416 resource limits stuff
1418 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
1419 missing docs, add @todo to handle OOM etc.
1421 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
1424 2003-01-18 Havoc Pennington <hp@pobox.com>
1426 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
1427 connection if it hasn't been already.
1429 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
1430 replace with DisconnectFunction.
1432 2003-01-18 Havoc Pennington <hp@pobox.com>
1434 Building --disable-verbose-mode --disable-asserts --disable-tests
1435 cuts the library from 112K to 45K or so
1437 * configure.in: check for varargs macro support,
1438 add --enable-verbose-mode, --enable-asserts.
1440 * dbus/dbus-internals.h (_dbus_assert): support
1442 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
1444 2003-01-18 Havoc Pennington <hp@pobox.com>
1446 * dbus/dbus-test.c: include config.h so that tests actually run
1448 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
1449 so the failure mode when that assumption fails will be plenty
1452 2003-01-18 Havoc Pennington <hp@pobox.com>
1454 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
1456 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
1459 * test/Makefile.am: don't use special variable "TESTS" for echo-*
1460 since we don't want to use those in make check
1462 2003-01-15 Havoc Pennington <hp@redhat.com>
1468 2003-01-15 Havoc Pennington <hp@redhat.com>
1470 * test/Makefile.am: fix so that test source code ends up in the
1471 distribution on make distcheck
1473 2003-01-15 Havoc Pennington <hp@redhat.com>
1479 2003-01-15 Havoc Pennington <hp@redhat.com>
1481 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
1482 fix build when --disable-tests
1484 * Makefile.am (EXTRA_DIST): put HACKING in here
1486 * HACKING: document procedure for making a tarball release.
1488 2003-01-14 Anders Carlsson <andersca@codefactory.se>
1490 * bus/connection.c: (connection_error_handler),
1491 (bus_connection_setup):
1492 * bus/main.c: (main):
1493 Make sure that the DBusConnectionData struct is NULLed
1494 out to prevent a segfault.
1496 * dbus/dbus-errors.c: (dbus_result_to_string):
1497 * dbus/dbus-errors.h:
1498 * dbus/dbus-message.c: (dbus_message_get_fields),
1499 (dbus_message_get_fields_valist), (_dbus_message_test):
1500 * dbus/dbus-message.h:
1501 Make dbus_message_get_fields return a result code so we can
1502 track invalid fields as well as oom.
1504 2003-01-11 Havoc Pennington <hp@pobox.com>
1506 * configure.in: change --enable-test/--enable-ansi action-if-given
1507 to enable_foo=$enableval instead of enable_foo=yes
1509 2003-01-08 Havoc Pennington <hp@pobox.com>
1511 * dbus/dbus-string.c (_dbus_string_align_length): new function
1513 * dbus/dbus-test-main.c: move main() for test app here
1515 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
1516 symbol to run tests, because dbus-test isn't in the main
1519 Code review nitpicks.
1521 * dbus/dbus-message.c (dbus_message_write_header): add newlines
1522 for people with narrow emacs ;-). Assert client_serial was filled
1523 in. Assert message->name != NULL.
1524 (dbus_message_append_fields): have "first_field_type" arg separate
1525 from va list, needed for C++ binding that also uses varargs IIRC
1526 and helps with type safety
1527 (dbus_message_new): add @todo about using DBusString to store
1528 service/name internally
1529 (dbus_message_new): don't leak ->service and ->name on OOM later
1531 (dbus_message_unref): free the service name
1532 (dbus_message_get_fields): same change to varargs
1533 i.e. first_field_type
1534 (_dbus_message_loader_return_buffer): assert that the message data
1535 is aligned (if not it's a bug in our code). Put in verbose griping
1536 about why we set corrupted = TRUE.
1537 (decode_header_data): add FIXME that char* is evil. Was going to
1538 add FIXME about evil locale-specific string.h strncmp, but just
1539 switched to wacky string-as-uint32 optimization. Move check for
1540 "no room for field name" above get_const_data_len() to avoid
1541 assertion failure in get_const_data_len if we have trailing 2
1542 bytes or the like. Check for service and name fields being
1543 provided twice. Don't leak service/name on error. Require field
1544 names to be aligned to 4 bytes.
1546 * dbus/dbus-marshal.c: move byte swap stuff to header
1547 (_dbus_pack_int32): uscore-prefix
1548 (_dbus_unpack_int32): uscore-prefix
1549 (_dbus_unpack_uint32): export
1550 (_dbus_demarshal_string): add @todo complaining about use of
1552 (_dbus_marshal_get_field_end_pos): add @todo about bad error
1553 handling allowing corrupt data to go unchecked
1555 2003-01-08 Havoc Pennington <hp@redhat.com>
1557 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
1558 to the select() as needed for authentication. (should be using
1559 _dbus_poll() not select, but for another day)
1561 * dbus/dbus.h: include dbus/dbus-protocol.h
1563 2003-01-08 Anders Carlsson <andersca@codefactory.se>
1565 * dbus/Makefile.am (dbusinclude_HEADERS): Install
1568 2003-01-08 Anders Carlsson <andersca@codefactory.se>
1570 * dbus/dbus-internals.c: (_dbus_type_to_string):
1571 New function that returns a string describing a type.
1573 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
1574 * dbus/dbus-marshal.h:
1575 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
1576 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
1577 (dbus_message_iter_get_byte_array):
1578 * dbus/dbus-message.h:
1579 Add new convenience functions for appending and getting message fields.
1580 Also add demarshalling routines for byte arrays.
1582 2003-01-07 Anders Carlsson <andersca@codefactory.se>
1584 * dbus/dbus-connection-internal.h:
1585 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
1586 (_dbus_connection_get_next_client_serial),
1587 (dbus_connection_send_message):
1588 * dbus/dbus-internals.h:
1589 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
1590 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
1591 (_dbus_marshal_uint32), (_dbus_demarshal_double),
1592 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
1593 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
1594 (_dbus_verbose_bytes), (_dbus_marshal_test):
1595 * dbus/dbus-marshal.h:
1596 * dbus/dbus-message-internal.h:
1597 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
1598 (dbus_message_write_header), (_dbus_message_lock),
1599 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
1600 (dbus_message_get_name), (dbus_message_append_int32),
1601 (dbus_message_append_uint32), (dbus_message_append_double),
1602 (dbus_message_append_string), (dbus_message_append_byte_array),
1603 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
1604 (dbus_message_iter_unref), (dbus_message_iter_has_next),
1605 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
1606 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
1607 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
1608 (decode_header_data), (_dbus_message_loader_return_buffer),
1609 (message_iter_test), (_dbus_message_test):
1610 * dbus/dbus-message.h:
1611 * dbus/dbus-protocol.h:
1612 * dbus/dbus-test.c: (main):
1614 * glib/test-dbus-glib.c: (message_handler), (main):
1615 * test/echo-client.c: (main):
1616 * test/watch.c: (check_messages):
1617 Make messages sendable and receivable for real.
1619 2003-01-07 Anders Carlsson <andersca@codefactory.se>
1621 * dbus/dbus-marshal.c: (_dbus_marshal_double),
1622 (_dbus_marshal_string), (_dbus_marshal_byte_array):
1623 * dbus/dbus-message.c: (dbus_message_append_int32),
1624 (dbus_message_append_uint32), (dbus_message_append_double),
1625 (dbus_message_append_string), (dbus_message_append_byte_array):
1626 Handle OOM restoration.
1628 2003-01-07 Anders Carlsson <andersca@codefactory.se>
1630 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1631 (_dbus_demarshal_string), (_dbus_marshal_test):
1632 * dbus/dbus-marshal.h:
1633 * dbus/dbus-message.c: (dbus_message_get_name),
1634 Document these functions.
1636 (dbus_message_append_int32), (dbus_message_append_uint32),
1637 (dbus_message_append_double), (dbus_message_append_string),
1638 (dbus_message_append_byte_array):
1639 * dbus/dbus-message.h:
1640 Add functions for adding message fields of different types.
1642 * dbus/dbus-protocol.h:
1643 Add the different types.
1645 2003-01-05 Havoc Pennington <hp@pobox.com>
1647 * bus/connection.c: implement routines for handling connections,
1648 first thing is keeping a list of owned services on each connection
1649 and setting up watches etc.
1651 * bus/services.c: implement a mapping from service names to lists
1654 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
1656 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
1657 to use static mutexes for global data
1659 * dbus/dbus-connection.c (dbus_connection_set_data): add new
1660 collection of functions to set/get application-specific data
1661 on the DBusConnection.
1663 2003-01-04 Havoc Pennington <hp@pobox.com>
1665 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
1666 (_dbus_poll): new function
1668 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
1671 * bus/loop.c: initial code for the daemon main loop
1673 2003-01-04 Havoc Pennington <hp@pobox.com>
1675 * test/watch.c (error_handler): make it safe if the error handler
1676 is called multiple times (if we s/error handler/disconnect
1677 handler/ we should just guarantee it's called only once)
1679 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
1680 error handler on disconnect (it's quite possible we should
1681 just change the error handler to a "disconnect handler," I'm
1682 not sure we have any other meaningful errors)
1684 * configure.in: check for getpwnam_r
1686 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
1687 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
1688 mechanism as in SASL spec, using socket credentials
1690 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
1691 (_dbus_send_credentials_unix_socket): new function
1693 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
1695 (_dbus_write): only check errno if <0 returned
1696 (_dbus_write_two): ditto
1698 2003-01-02 Anders Carlsson <andersca@codefactory.se>
1700 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
1701 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
1702 (_dbus_marshal_test):
1703 * dbus/dbus-marshal.h:
1704 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
1705 to _dbus_marshal_utf8_string. Also fix some tests.
1707 2002-12-28 Harri Porten <porten@kde.org>
1709 * configure.in: added check for C++ compiler and a very cheesy
1710 check for the Qt integration
1712 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
1714 * qt/Makefile.am: added
1716 * qt/.cvsignore: added
1718 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
1719 latter, added #ifdef QT_THREAD_SUPPORT guard.
1721 * dbus/Makefile.am: added missing headers for make dist
1723 2002-12-28 Kristian Rietveld <kris@gtk.org>
1725 * dbus/Makefile.am: fixup export-symbols-regex.
1727 2002-12-27 Anders Carlsson <andersca@codefactory.se>
1729 * acinclude.m4: Add this file and put the
1730 PKG_CHECK_MODULE macro in it.
1732 2002-12-27 Anders Carlsson <andersca@codefactory.se>
1734 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1735 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1736 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1737 (_dbus_marshal_test):
1738 Make the demarshalling routines align the pos argument.
1739 Add string marshalling tests and fix the obvious bugs
1742 2002-12-26 Havoc Pennington <hp@pobox.com>
1744 * dbus/dbus-auth.c: fixes fixes fixes
1746 * dbus/dbus-transport-unix.c: wire up support for
1747 encoding/decoding data on the wire
1749 * dbus/dbus-auth.c (_dbus_auth_encode_data)
1750 (_dbus_auth_decode_data): append to target string
1751 instead of nuking it.
1753 2002-12-26 Havoc Pennington <hp@pobox.com>
1755 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
1756 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
1759 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
1760 avoid swap_bytes() overhead (ignoring possible assembly stuff for
1761 now). Main point is because I wanted unpack_uint32 to implement
1763 (_dbus_verbose_bytes): new function
1765 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
1767 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
1768 mechanism to handle a corrupt message stream
1769 (_dbus_message_loader_new): fix preallocation to only prealloc,
1772 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
1773 (_dbus_string_test): enhance tests for copy/move and fix the
1776 * dbus/dbus-transport-unix.c: Hold references in more places to
1777 avoid reentrancy problems
1779 * dbus/dbus-transport.c: ditto
1781 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
1782 leak reference count in no-message case
1784 * test/watch.c (do_mainloop): handle adding/removing watches
1785 during iteration over the watches. Also, ref the connection/server
1786 stored on a watch, so we don't try to mangle a destroyed one.
1788 * dbus/dbus-transport-unix.c (do_authentication): perform
1791 * dbus/dbus-auth.c (get_state): add a state
1792 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
1793 (_dbus_auth_get_unused_bytes): append the unused bytes
1794 to the passed in string, rather than prepend
1796 * dbus/dbus-transport.c (_dbus_transport_init_base): create
1797 the auth conversation DBusAuth
1799 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
1800 (_dbus_transport_new_for_domain_socket): when creating a
1801 transport, pass in whether it's a client-side or server-side
1802 transport so we know which DBusAuth to create
1804 2002-12-03 Havoc Pennington <hp@pobox.com>
1806 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
1807 _after_ finalizing the derived members
1808 (unix_connection_set): unref watch if we fail to add it
1810 * dbus/dbus-connection.c (dbus_connection_unref): delete the
1811 transport first, so that the connection owned by the
1812 transport will be valid as the transport finalizes.
1814 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
1815 if necessary, and remove watches from the connection.
1817 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
1819 2002-12-26 Anders Carlsson <andersca@codefactory.se>
1821 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1822 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1823 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1824 (_dbus_marshal_test):
1825 * dbus/dbus-marshal.h:
1826 Add string marshal functions and have the demarshal functions
1827 return the new position.
1829 2002-12-25 Havoc Pennington <hp@pobox.com>
1831 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
1832 it is a simple protocol that just maps directly to SASL.
1834 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
1835 initial implementation, not actually used yet.
1837 * dbus/dbus-string.c (_dbus_string_find): new function
1838 (_dbus_string_equal): new function
1839 (_dbus_string_base64_encode): new function
1840 (_dbus_string_base64_decode): new function
1842 2002-12-25 Anders Carlsson <andersca@codefactory.se>
1845 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
1846 (_dbus_marshal_int32), (_dbus_marshal_uint32),
1847 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1848 (_dbus_demarshal_uint32), (_dbus_marshal_test):
1849 * dbus/dbus-marshal.h:
1850 * dbus/dbus-protocol.h:
1851 * dbus/dbus-test.c: (main):
1853 Add un-optimized marshalling/demarshalling routines.
1855 2002-12-25 Harri Porten <porten@kde.org>
1857 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
1859 2002-12-24 Zack Rusin <zack@kde.org>
1861 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
1862 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
1865 2002-12-24 Havoc Pennington <hp@pobox.com>
1867 * glib/dbus-gthread.c: fix include
1869 * glib/dbus-glib.h: rename DBusMessageHandler for now.
1870 I think glib API needs to change, though, as you don't
1871 want to use DBusMessageFunction, you want to use the
1872 DBusMessageHandler object. Probably
1873 dbus_connection_open_with_g_main_loop()
1874 and dbus_connection_setup_g_main_loop() or something like that
1875 (but think of better names...) that just create a connection
1876 that has watch/timeout functions etc. already set up.
1878 * dbus/dbus-connection.c
1879 (dbus_connection_send_message_with_reply): new function just to
1880 show how the message handler helps us deal with replies.
1882 * dbus/dbus-list.c (_dbus_list_remove_last): new function
1884 * dbus/dbus-string.c (_dbus_string_test): free a string that
1887 * dbus/dbus-hash.c: use memory pools for the hash entries
1888 (rebuild_table): be more paranoid about overflow, and
1889 shrink table when we can
1890 (_dbus_hash_test): reduce number of sprintfs and write
1891 valid C89. Add tests for case where we grow and then
1892 shrink the hash table.
1894 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
1896 * dbus/dbus-connection.c (dbus_connection_register_handler)
1897 (dbus_connection_unregister_handler): new functions
1899 * dbus/dbus-message.c (dbus_message_get_name): new
1901 * dbus/dbus-list.c: fix docs typo
1903 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
1904 an object representing a handler for messages.
1906 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1909 * glib/dbus-gthread.c: (dbus_gthread_init):
1910 Don't use the gdbus prefix for public functions.
1912 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1916 Add GLib checks and fixup .pc files
1920 * glib/dbus-gmain.c: (gdbus_connection_prepare),
1921 (gdbus_connection_check), (gdbus_connection_dispatch),
1922 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
1923 (dbus_connection_gsource_new):
1924 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
1925 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
1926 * glib/test-dbus-glib.c: (message_handler), (main):
1929 2002-12-15 Harri Porten <porten@kde.org>
1931 * autogen.sh: check for libtoolize before attempting to use it
1933 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
1936 * .cvsignore: ignore more stamp files
1938 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
1940 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
1941 without make install.
1943 2002-12-15 Havoc Pennington <hp@pobox.com>
1945 * dbus/dbus-threads.c: add thread stubs that a higher library
1946 layer can fill in. e.g. the GLib wrapper might fill them in with
1947 GThread stuff. We still need to use this thread API to
1948 thread-safe-ize the library.
1950 2002-12-12 Havoc Pennington <hp@pobox.com>
1952 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
1953 below new interfaces and include fewer system headers.
1955 * dbus/dbus-sysdeps.c (_dbus_read): new function
1956 (_dbus_write): new function
1957 (_dbus_write_two): new function
1958 (_dbus_connect_unix_socket): new function
1959 (_dbus_listen_unix_socket): new function
1961 * dbus/dbus-message-internal.h: change interfaces to use
1964 2002-12-11 Havoc Pennington <hp@pobox.com>
1966 * dbus/dbus-types.h: add dbus_unichar
1968 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
1970 * dbus/dbus-connection.c (dbus_connection_send_message): return
1973 * dbus/dbus-transport.c: include dbus-watch.h
1975 * dbus/dbus-connection.c: include dbus-message-internal.h
1977 * HACKING: add file with coding guidelines stuff.
1979 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
1980 handling here, for security purposes (as in vsftpd). Not actually
1981 using this class yet.
1983 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
1984 system/libc usage here, as in vsftpd, for ease of auditing (and
1985 should also simplify portability). Haven't actually moved all the
1986 system/libc usage into here yet.
1988 2002-11-25 Havoc Pennington <hp@pobox.com>
1990 * dbus/dbus-internals.c (_dbus_verbose): fix to not
1991 always print the first verbose message.
1993 2002-11-24 Havoc Pennington <hp@pobox.com>
1995 * test/echo-client.c, test/echo-server.c: cheesy test
1998 * configure.in (AC_CHECK_FUNCS): check for writev
2000 * dbus/dbus-message.c (_dbus_message_get_network_data): new
2003 * dbus/dbus-list.c (_dbus_list_foreach): new function
2005 * dbus/dbus-internals.c (_dbus_verbose): new function
2007 * dbus/dbus-server.c, dbus/dbus-server.h: public object
2008 representing a server that listens for connections.
2010 * dbus/.cvsignore: create
2012 * dbus/dbus-errors.h, dbus/dbus-errors.c:
2013 public API for reporting errors
2015 * dbus/dbus-connection.h, dbus/dbus-connection.c:
2016 public object representing a connection that
2017 sends/receives messages. (Same object used for
2018 both client and server.)
2020 * dbus/dbus-transport.h, dbus/dbus-transport.c:
2021 Basic abstraction for different kinds of stream
2022 that we might read/write messages from.
2024 2002-11-23 Havoc Pennington <hp@pobox.com>
2026 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
2029 * dbus/dbus-test.c (main): add list test, and include
2030 dbus-test.h as intended
2032 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
2033 (_dbus_hash_table_remove_int): return value indicates
2034 whether the entry existed to remove
2036 * dbus/dbus-list.c: add linked list utility class,
2039 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
2042 2002-11-23 Havoc Pennington <hp@pobox.com>
2044 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
2045 DBUS_END_DECLS to nothing, that should fix this once and for all
2047 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
2049 * dbus/dbus-message.c, dbus/dbus-hash.c:
2050 add some missing @brief
2052 2002-11-23 Havoc Pennington <hp@pobox.com>
2054 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
2055 to avoid confusing Doxygen
2057 * dbus/dbus-hash.c: @} not }@
2059 * dbus/dbus-message.c (struct DBusMessage): split out
2062 2002-11-23 Havoc Pennington <hp@pobox.com>
2064 * configure.in: pile on more warning flags if using gcc
2066 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
2067 to document static functions
2069 * configure.in: add summary to end of configure so it
2070 looks nice and attractive
2072 * dbus/dbus-hash.c: finish implementation and write unit
2075 * configure.in: add --enable-tests to enable unit tests
2077 * dbus/dbus-test.c: test program to run unit tests
2078 for all files in dbus/*, initially runs a test for
2081 * dbus/dbus-internals.h: file to hold some internal utility stuff
2083 2002-11-22 Havoc Pennington <hp@redhat.com>
2085 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
2086 "ported" away from Tcl
2088 * dbus/dbus-types.h: header for types such as dbus_bool_t
2090 2002-11-22 Havoc Pennington <hp@redhat.com>
2092 * dbus/dbus.h: fixups for doc warnings
2094 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
2096 (QUIET): make it quiet so we can see warnings
2098 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
2100 2002-11-22 Havoc Pennington <hp@redhat.com>
2102 * Makefile.am: include "Doxyfile" target in all-local
2104 * configure.in: generate the Doxyfile
2106 * Doxyfile.in: move Doxyfile here, so we can use
2107 configure to generate a Doxyfile with the right
2110 2002-11-22 Havoc Pennington <hp@redhat.com>
2112 * dbus/dbus-message.c: move inline docs into .c file
2114 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
2115 so all docs are under doc/
2116 (MAN_EXTENSION): generate man pages. Use extension
2117 ".3dbus" which matches ".3qt" on my system,
2118 I guess this is OK, I don't know really.
2119 (FILE_PATTERNS): look for .c files not .h, makes sense
2122 2002-11-22 Havoc Pennington <hp@pobox.com>
2124 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
2125 because any app can be a server, and any app can be a client,
2126 the bus is a special kind of server.
2128 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
2130 * Doxyfile : adding. Still needs Makefile rules to be generated
2131 automatically (just run "doxygen" in the toplevel dir for now to
2134 * dbus/dbus-message.h : Adding sample docs (javadoc since
2135 resembles gtk-doc a little more)
2137 * dbus/dbus.h : Adding sample docs
2139 2002-11-21 Havoc Pennington <hp@redhat.com>
2141 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
2142 so we can allow ourselves to include files directly,
2143 instead of having to use dbus.h
2145 * dbus/dbus.h: fill in
2147 * dbus/dbus-message.h: sketch out a sample header file.
2148 Include griping if you include it directly instead of
2151 * dbus/dbus-macros.h: new file with macros for extern "C",
2152 TRUE/FALSE, NULL, etc.
2154 * doc/file-boilerplate.c: put include guards in here
2156 2002-11-21 Havoc Pennington <hp@redhat.com>
2158 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
2160 * COPYING: include the GPL as well, and license code
2161 under both AFL and GPL.
2163 2002-11-21 Havoc Pennington <hp@redhat.com>
2165 * acconfig.h: get rid of this
2167 * autogen.sh (run_configure): add --no-configure option
2169 * configure.in: remove AC_ARG_PROGRAM to make
2170 autoconf complain less. add AC_PREREQ.
2171 add AC_DEFINE third arg.
2173 2002-11-21 Anders Carlsson <andersca@codefactory.se>
2176 Fix references so we can distcheck.
2178 2002-11-21 Havoc Pennington <hp@redhat.com>
2180 * Initial module creation