1 2003-03-13 Havoc Pennington <hp@redhat.com>
3 * dbus/dbus-timeout.c (_dbus_timeout_list_set_functions): handle
6 * dbus/dbus-watch.c (_dbus_watch_list_set_functions): handle out
9 * dbus/dbus-connection.h: Make AddWatchFunction and
10 AddTimeoutFunction return a bool so they can fail on out-of-memory
12 * bus/bus.c (bus_context_new): set up timeout handlers
14 * bus/connection.c (bus_connections_setup_connection): set up
17 * glib/dbus-gmain.c: adapt to the fact that set_functions stuff
20 * bus/bus.c (bus_context_new): adapt to changes
22 * bus/connection.c: adapt to changes
24 * test/watch.c: adapt to DBusWatch changes
26 * bus/dispatch.c (bus_dispatch_test): started adding this but
29 2003-03-14 Anders Carlsson <andersca@codefactory.se>
31 * bus/dispatch.c (send_service_nonexistent_error): Fix typo.
33 2003-03-13 Havoc Pennington <hp@pobox.com>
35 * bus/test.c, bus/test.h, bus/Makefile.am, bus/test-main.c:
36 set up a test framework as for the library
38 2003-03-12 Havoc Pennington <hp@pobox.com>
40 Throughout: purge global variables, introduce BusActivation,
41 BusConnections, BusRegistry, etc. objects instead.
43 * bus/bus.h, bus/bus.c: introduce BusContext as a global
46 * test/Makefile.am (TEST_BINARIES): disable bus-test for now,
47 going to redo this a bit differently I think
49 2003-03-12 Havoc Pennington <hp@redhat.com>
51 Mega-patch that gets the message bus daemon initially handling
52 out-of-memory. Work still needed. Also lots of random
53 moving stuff to DBusError instead of ResultCode.
55 * dbus/dbus-list.c (_dbus_list_length_is_one): new function
57 * dbus/dbus-connection.c
58 (dbus_connection_send_with_reply_and_block): use DBusError
60 * dbus/dbus-bus.c: adapt to API changes, make it use DBusError not
63 * dbus/dbus-connection.c (dbus_connection_send): drop the result
64 code here, as the only failure possible is OOM.
66 * bus/connection.c (bus_connection_disconnect):
67 rename bus_connection_disconnected as it's a notification only
69 * bus/driver.c (bus_driver_handle_acquire_service): don't free
70 "name" on get_args failure, should be done by get_args;
71 don't disconnect client for bad args, just return an error.
72 (bus_driver_handle_service_exists): ditto
74 * bus/services.c (bus_services_list): NULL-terminate returned array
76 * bus/driver.c (bus_driver_send_service_lost)
77 (bus_driver_send_service_acquired): send messages from driver to a
78 specific client to the client's unique name, not to the broadcast
81 * dbus/dbus-message.c (decode_header_data): reject messages that
83 (_dbus_message_get_client_serial): rename to
84 dbus_message_get_serial and make public
85 (_dbus_message_set_serial): rename from set_client_serial
86 (_dbus_message_set_reply_serial): make public
87 (_dbus_message_get_reply_serial): make public
89 * bus/connection.c (bus_connection_foreach): allow stopping
90 iteration by returning FALSE from foreach function.
92 * dbus/dbus-connection.c (dbus_connection_send_preallocated)
93 (dbus_connection_free_preallocated_send)
94 (dbus_connection_preallocate_send): new API for sending a message
95 without possibility of malloc failure.
96 (dbus_connection_send_message): rename to just
97 dbus_connection_send (and same for whole function family)
99 * dbus/dbus-errors.c (dbus_error_free): make this reinit the error
101 * dbus/dbus-sysdeps.c (_dbus_exit): new function
103 * bus/activation.c: handle/return errors
105 * dbus/dbus-errors.h: add more DBUS_ERROR #define
107 * dbus/dbus-sysdeps.c (_dbus_directory_open) (_dbus_file_get_contents)
108 (_dbus_directory_get_next_file): use DBusError instead of DBusResultCode
109 (_dbus_result_from_errno): move to this file
111 2003-03-10 Anders Carlsson <andersca@codefactory.se>
113 * dbus/dbus-marshal.c:
114 (_dbus_marshal_set_string):
115 Take a length argument so we can marshal the correct string
118 (_dbus_marshal_dict), (_dbus_demarshal_dict),
119 (_dbus_marshal_get_arg_end_pos), (_dbus_marshal_validate_arg),
120 (_dbus_marshal_test):
121 * dbus/dbus-marshal.h:
122 Add support for marshalling and demarshalling dicts.
124 * dbus/dbus-message-builder.c: (_dbus_message_data_load):
125 Add support for TYPE DICT.
127 * dbus/dbus-message.c: (set_string_field):
128 Adjust header padding.
130 (dbus_message_append_args_valist), (dbus_message_append_dict),
131 (dbus_message_get_args_valist), (dbus_message_iter_get_arg_type),
132 (dbus_message_iter_get_dict), (_dbus_message_loader_return_buffer),
133 (check_message_handling), (check_have_valid_message):
134 * dbus/dbus-message.h:
135 Add functions for setting and getting dicts.
137 * dbus/dbus-protocol.h:
143 * doc/dbus-specification.sgml:
144 Add information about how dicts are marshalled.
146 * test/data/invalid-messages/dict-with-nil-value.message:
147 * test/data/invalid-messages/too-short-dict.message:
148 * test/data/valid-messages/dict-simple.message:
149 * test/data/valid-messages/dict.message:
150 Add sample messages containing dicts.
152 2003-03-08 Anders Carlsson <andersca@codefactory.se>
154 * dbus/dbus-dict.h: Add DBUS_END_DECLS.
156 2003-03-07 Anders Carlsson <andersca@codefactory.se>
159 * dbus/dbus-dict.c: (dbus_dict_entry_free), (dbus_dict_new),
160 (dbus_dict_get_keys), (insert_entry), (dbus_dict_set_boolean),
161 (dbus_dict_set_int32), (dbus_dict_set_uint32),
162 (dbus_dict_set_double), (dbus_dict_set_string),
163 (dbus_dict_set_boolean_array), (dbus_dict_set_int32_array),
164 (dbus_dict_set_uint32_array), (dbus_dict_set_double_array),
165 (dbus_dict_set_string_array), (_dbus_dict_test):
167 Fix according to comments from Havoc.
169 2003-03-06 Michael Meeks <michael@server.home>
171 * configure.in: if we don't have kde-config, disable have_qt.
173 2003-03-07 Anders Carlsson <andersca@codefactory.se>
178 * dbus/dbus-dict.c: (dbus_dict_entry_free), (dbus_dict_new),
179 (dbus_dict_ref), (dbus_dict_unref), (dbus_dict_contains),
180 (dbus_dict_remove), (dbus_dict_get_value_type),
181 (dbus_dict_get_keys), (dbus_dict_put_boolean),
182 (dbus_dict_put_int32), (dbus_dict_put_uint32),
183 (dbus_dict_put_double), (dbus_dict_put_string),
184 (dbus_dict_put_boolean_array), (dbus_dict_put_int32_array),
185 (dbus_dict_put_uint32_array), (dbus_dict_put_double_array),
186 (dbus_dict_put_string_array), (dbus_dict_get_boolean),
187 (dbus_dict_get_int32), (dbus_dict_get_uint32),
188 (dbus_dict_get_double), (dbus_dict_get_string),
189 (dbus_dict_get_boolean_array), (dbus_dict_get_int32_array),
190 (dbus_dict_get_uint32_array), (dbus_dict_get_double_array),
191 (dbus_dict_get_string_array), (_dbus_dict_test):
193 Add DBusDict implementation
195 * dbus/dbus-test.c: (dbus_internal_do_not_use_run_tests):
199 2003-03-04 Havoc Pennington <hp@pobox.com>
201 * test/data/auth/*: adapt to changes
203 * dbus/dbus-auth-script.c (_dbus_auth_script_run): add
204 USERID_BASE64 and change USERNAME_BASE64 to put in username not
207 * dbus/dbus-keyring.c (_dbus_keyring_validate_context): prevent
208 more stuff from being in a context name, to make the protocol
211 * dbus/dbus-errors.c (dbus_error_has_name): new function
212 (dbus_error_is_set): new function
214 * dbus/dbus-auth.c: replace DBUS_STUPID_TEST_MECH auth
215 with DBUS_COOKIE_SHA1, implement DBUS_COOKIE_SHA1
217 * dbus/dbus-connection.c (dbus_connection_flush): also read
218 messages during a flush operation
220 * dbus/Makefile.am: remove dbus-md5 since it isn't currently used.
222 2003-03-05 Anders Carlsson <andersca@codefactory.se>
224 * configure.in: Check for gethostbyname on Solaris.
226 * dbus/dbus-transport.c: (_dbus_transport_open):
227 Remove duplicate "tcp" entry.
229 * doc/dbus-specification.sgml:
232 2003-03-05 Anders Carlsson <andersca@codefactory.se>
234 * dbus/dbus-auth.c: (send_rejected), (process_test_subdir):
235 * dbus/dbus-keyring.c: (_dbus_keyring_new_homedir),
236 (_dbus_keyring_test):
237 * dbus/dbus-md5.c: (_dbus_md5_compute):
238 * dbus/dbus-sha.c: (_dbus_sha_compute):
241 2003-03-05 Anders Carlsson <andersca@codefactory.se>
243 * README: Add some things.
245 2003-03-04 Anders Carlsson <andersca@codefactory.se>
247 * dbus/dbus-message.c (dbus_message_append_args_valist): Add a break;
248 after case DBUS_TYPE_BOOELAN.
250 2003-03-02 Havoc Pennington <hp@pobox.com>
252 * test/break-loader.c (randomly_set_extreme_ints): add test that
253 sets really huge and small integers
255 * dbus/dbus-marshal.c (_dbus_marshal_validate_arg): add check
256 that length of boolean array fits in the string, and that
257 string has room for boolean value in single-bool case.
259 * dbus/dbus-message-builder.c (_dbus_message_data_load): add
260 optional value to "ALIGN" command which is what to fill the
263 * test/data/valid-messages/no-padding.message: add regression
264 test for the message padding problem
266 2003-03-02 Havoc Pennington <hp@pobox.com>
268 * dbus/dbus-message.c (decode_header_data): fix to always init
269 message_padding, from Benjamin Dauvergne
271 2003-03-02 Havoc Pennington <hp@pobox.com>
277 2003-03-01 Joe Shaw <joe@assbarn.com>
279 * configure.in: Check for "struct cmsgcred" and try to access its
280 members for BSD-like unices.
282 * dbus/dbus-sysdeps.c (read_credentials_byte): Fold this back into
283 _dbus_read_credentials_unix_socket().
284 (_dbus_read_credentials_unix_socket): Use recvmsg() instead of
285 read() for reading the credential byte off the unix socket. Use
286 struct cmsgcred on systems that support it.
288 2003-02-27 Alexander Larsson <alexl@redhat.com>
292 Make gthreads-2.0 dependency optional. Don't build thread test if
295 2003-02-27 Havoc Pennington <hp@pobox.com>
297 * dbus/dbus-connection.c
298 (dbus_connection_send_message_with_reply_and_block): fix doh!
299 doh! doh! bug that resulted in never removing a reply from the
300 queue, no wonder we called get_reply_serial so much ;-)
302 * dbus/dbus-message.c (struct DBusMessage): cache reply serial
303 and client serial instead of demarshaling them every time
305 2003-02-27 Havoc Pennington <hp@pobox.com>
307 * dbus/dbus-marshal.c (_dbus_demarshal_int32): rewrite to be much
308 more inlined, using dbus-string-private.h, speeds things up
311 * dbus/dbus-string.c (_dbus_string_free): apply align offset
312 when freeing the string
313 (_dbus_string_steal_data): fix for align offset
314 (undo_alignment): new function
316 2003-02-26 Havoc Pennington <hp@redhat.com>
318 All kinds of audit fixes from Owen, plus initial attempt to
319 handle unaligned memory returned from malloc.
321 * dbus/dbus-string.c (_dbus_string_init): clamp max length to
322 leave room for align_offset and nul byte
323 (fixup_alignment): function to track an align_offset and
324 ensure real->str is aligned
325 (DBUS_GENERIC_STRING_PREAMBLE): len must be less than allocated,
326 to allow a nul byte plus align offset
327 (_dbus_string_lock): fix overflow issue
328 (_dbus_string_init_const_len): add assertions on sanity of len,
329 assign allocated to be ALLOCATION_PADDING larger than len
330 (set_length): fixup the overflow handling
331 (_dbus_string_get_data_len): fix overflow in assertion
332 (open_gap): detect overflow in size of gap to be opened
333 (_dbus_string_lengthen): add overflow check
334 (_dbus_string_align_length): fix overflow with _DBUS_ALIGN_VALUE
335 (_dbus_string_append): add overflow check
336 (_dbus_string_append_unichar): overflow
337 (_dbus_string_delete): fix overflow in assertion
338 (_dbus_string_copy_len): overflow in assertion
339 (_dbus_string_replace_len): overflows in assertions
340 (_dbus_string_find): change to implement in terms of
342 (_dbus_string_find_to): assorted fixage
343 (_dbus_string_equal_c_str): assert c_str != NULL,
344 fix logic so the function works
345 (_dbus_string_ends_with_c_str): fix overflow thingy
346 (_dbus_string_base64_encode): overflow fix
347 (_dbus_string_validate_ascii): overflow
348 (_dbus_string_validate_nul): overflow
350 2003-02-26 Havoc Pennington <hp@redhat.com>
352 * dbus/dbus-marshal.c (_dbus_marshal_test): fix to work with DISABLE_ASSERTS
354 2003-02-26 Alexander Larsson <alexl@redhat.com>
357 Set DBUS_GLIB_THREADS_LIBS for apps using gthread-2.0
359 * dbus/dbus-connection.c:
360 * dbus/dbus-connection.h:
361 Fix _dbus_connection_acquire_io_path and _dbus_connection_acquire_dispatch.
362 Add dbus_connection_set_wakeup_main_function and use it when queueing
363 incoming and outgoing messages.
366 * dbus/dbus-dataslot.c:
367 Threadsafe usage of DBusDataSlotAllocator
369 * dbus/dbus-message.c: (dbus_message_get_args_iter):
372 * dbus/dbus-server-unix.c:
376 Implement the new wakeup functions for glib.
379 * glib/test-thread-client.c:
380 * glib/test-thread-server.c:
381 * glib/test-thread.h:
382 Initial cut at some thread test code. Not really done yet.
384 2003-02-26 Havoc Pennington <hp@pobox.com>
386 * dbus/dbus-connection.c
387 (dbus_connection_send_message_with_reply_and_block): fix crash
388 where we ref'd the outgoing message instead of the returned reply
390 * dbus/dbus-transport-unix.c (do_authentication): check read watch
391 at the end of this function, so if we didn't need to read for
392 authentication, we reinstall it for receiving messages
394 * dbus/dbus-message.c (dbus_message_new_reply): allow replies to
395 a NULL sender for peer-to-peer case
397 * dbus/dbus-transport-unix.c (check_read_watch): handle
398 !authenticated case correctly
400 * glib/dbus-gmain.c: add support for DBusServer
402 * dbus/dbus-server.c: add data slot support
404 * glib/dbus-gmain.c (dbus_connection_setup_with_g_main): check
405 return values and handle errors
407 * dbus/dbus-dataslot.c: factor out the data slot stuff from
410 * Doxyfile.in (INPUT): add glib subdir
412 * glib/dbus-gmain.c (dbus_connection_setup_with_g_main): rename
413 setup_with_g_main instead of hookup_with_g_main; write docs
415 2003-02-24 Anders Carlsson <andersca@codefactory.se>
417 * dbus/dbus-marshal.c: (_dbus_marshal_validate_arg):
418 * dbus/dbus-message-builder.c: (_dbus_message_data_load):
419 * dbus/dbus-message.c: (dbus_message_append_boolean),
420 (dbus_message_append_boolean_array),
421 (dbus_message_get_args_valist), (_dbus_message_test):
422 * dbus/dbus-message.h:
423 * doc/dbus-specification.sgml:
424 Various fixes as pointed out by Havoc.
426 * test/data/invalid-messages/bad-boolean-array.message:
427 * test/data/invalid-messages/bad-boolean.message:
428 Add invalid boolean value test cases.
430 2003-02-24 Anders Carlsson <andersca@codefactory.se>
432 * dbus/dbus-internals.c: (_dbus_type_to_string):
433 * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
434 (_dbus_marshal_validate_arg):
435 * dbus/dbus-message-builder.c: (_dbus_message_data_load):
436 * dbus/dbus-message.c: (dbus_message_append_args_valist),
437 (dbus_message_append_boolean), (dbus_message_append_boolean_array),
438 (dbus_message_get_args_valist), (dbus_message_iter_get_boolean),
439 (dbus_message_iter_get_int32), (dbus_message_iter_get_uint32),
440 (dbus_message_iter_get_double),
441 (dbus_message_iter_get_boolean_array), (message_iter_test):
442 * dbus/dbus-message.h:
443 * dbus/dbus-protocol.h:
444 * doc/dbus-specification.sgml:
445 * test/data/valid-messages/lots-of-arguments.message:
446 Add support for boolean and boolean array types.
448 2003-02-23 Havoc Pennington <hp@pobox.com>
450 * dbus/dbus-keyring.c: finish most of this implementation and
453 * dbus/dbus-errors.c (dbus_set_error_const, dbus_set_error): make
454 these barf if the error isn't cleared to NULL
456 * dbus/dbus-sysdeps.c (_dbus_delete_file): set error on failure
457 (_dbus_create_directory): new function
459 * dbus/dbus-errors.c (dbus_set_error): fix warning
461 * dbus/dbus-string.c (_dbus_string_hex_encode): new function
462 (_dbus_string_hex_decode): new function
463 (test_hex_roundtrip): test code
465 * dbus/dbus-sha.c (_dbus_sha_compute): use dbus_string_hex_encode
467 * dbus/dbus-md5.c (_dbus_md5_compute): use dbus_string_hex_encode
469 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): make this use
470 the save-to-temp/rename trick to atomically write the new file
471 (_dbus_string_parse_uint): new function
473 2003-02-22 Havoc Pennington <hp@pobox.com>
475 * test/Makefile.am (dist-hook): fix dist for test/data/sha-1
477 2003-02-22 Havoc Pennington <hp@pobox.com>
479 * dbus/dbus-message.c (dbus_message_iter_get_string_array):
480 (dbus_message_iter_get_byte_array): Fix up doxygen warnings
482 * dbus/dbus-sha.c: add implementation of SHA-1 algorithm
484 * dbus/test/data/sha-1: add US government test suite for SHA-1
486 2003-02-21 Anders Carlsson <andersca@codefactory.se>
488 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
489 Make string arrays NULL-terminated.
491 * dbus/dbus-memory.c: (dbus_free_string_array):
492 * dbus/dbus-memory.h:
493 New function for freeing NULL-terminated string arrays.
495 * dbus/dbus-message-builder.c: (append_quoted_string),
496 (_dbus_message_data_load):
497 Add support for array types.
499 * dbus/dbus-message.c: (check_message_handling):
500 Add more types as test cases.
502 * dbus/dbus-sysdeps.c: (_dbus_string_parse_int),
503 (_dbus_string_parse_double):
504 Add the start offset to the end offset.
506 * test/data/valid-messages/lots-of-arguments.message:
507 New test message with lots of arguments.
509 2003-02-21 Anders Carlsson <andersca@codefactory.se>
511 * dbus/dbus-message.c: (dbus_message_append_nil),
512 (dbus_message_append_int32), (dbus_message_append_uint32),
513 (dbus_message_append_double), (dbus_message_append_string),
514 (dbus_message_append_int32_array),
515 (dbus_message_append_uint32_array),
516 (dbus_message_append_double_array),
517 (dbus_message_append_byte_array),
518 (dbus_message_append_string_array):
519 Fix all out-of-memory handling in these functions.
521 2003-02-21 Anders Carlsson <andersca@codefactory.se>
523 * dbus/dbus-message.c: (dbus_message_append_nil):
526 2003-02-21 Anders Carlsson <andersca@codefactory.se>
528 * dbus/dbus-message.c: (dbus_message_append_args_valist),
529 (dbus_message_append_nil), (dbus_message_append_int32_array),
530 (dbus_message_append_uint32_array),
531 (dbus_message_append_double_array),
532 (dbus_message_append_byte_array),
533 (dbus_message_append_string_array), (dbus_message_get_args_valist),
534 (dbus_message_iter_get_int32_array),
535 (dbus_message_iter_get_uint32_array),
536 (dbus_message_iter_get_double_array),
537 (dbus_message_iter_get_byte_array),
538 (dbus_message_iter_get_string_array):
540 * dbus/dbus-message.h:
541 Add functions for appending and getting arrays.
543 2003-02-21 Anders Carlsson <andersca@codefactory.se>
545 * dbus/dbus-mempool.c (_dbus_mem_pool_new): Make the
546 element size at least 8 bytes, fixes mempool tests on
549 2003-02-20 Alexander Larsson <alexl@redhat.com>
551 * dbus/dbus-transport-unix.c (unix_do_iteration):
552 Unlock the connection mutex during a blocking select call.
553 Add todo about how we need a way to wake up the select.
555 * dbus/dbus-connection-internal.h:
556 * dbus/dbus-connection.c:
557 Add _dbus_connection_lock and _dbus_connection_unlock.
559 2003-02-19 Havoc Pennington <hp@pobox.com>
561 * Doxyfile.in (PREDEFINED): put DOXYGEN_SHOULD_SKIP_THIS in
562 Doxyfile.in, not Doxyfile
564 * dbus/dbus-keyring.c: do some hacking on this
566 * dbus/dbus-sysdeps.c (_dbus_delete_file): new
568 * dbus/dbus-errors.c (dbus_set_error_const): do not call
570 (dbus_set_error): remove dbus_error_init, check for message ==
571 NULL *before* we sprintf into it, and add @todo about including
572 system headers in this file
574 * dbus/dbus-sysdeps.c (_dbus_create_file_exclusively): new
576 * dbus/dbus-errors.h (DBUS_ERROR_FAILED): add
578 * dbus/dbus-sysdeps.c (get_user_info): break this function out to
579 get various bits of user information based on either username
581 (_dbus_homedir_from_username): new function
583 2003-02-19 Anders Carlsson <andersca@codefactory.se>
586 Add check for nonposix getpwnam_r
588 * dbus/dbus-mempool.c: (_dbus_mem_pool_new):
589 Align the pool element size to a sizeof (void *) boundary.
591 * dbus/dbus-sysdeps.c: (_dbus_setenv), (_dbus_connect_unix_socket),
592 (_dbus_listen_unix_socket), (_dbus_credentials_from_username):
593 General Solaris fixes.
595 * test/data/valid-messages/simplest-manual.message:
596 Explicitly state that we want little-endian packing.
598 2003-02-19 Mikael Hallendal <micke@codefactory.se>
600 * dbus/dbus-server.c (dbus_server_listen): Support tcp: addresses.
602 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_tcp_socket):
603 Added to create a transport connecting using a tcp/ip socket.
605 * dbus/dbus-sysdeps.c (_dbus_connect_tcp_socket): Added to connect
606 to a tcp socket at given host and port.
607 (_dbus_listen_tcp_socket): added to listen on tcp socket for given
610 * dbus/dbus-server.c (dbus_server_listen): Support tcp: addresses.
612 * dbus/dbus-server-unix.c (_dbus_server_new_for_tcp_socket):
613 Added to create a server listening on a TCP/IP socket.
615 2003-02-19 Havoc Pennington <hp@pobox.com>
617 Throughout: mop up all the Doxygen warnings and undocumented
620 * dbus/dbus-sysdeps.c (do_exec): do not use execvp, we don't want
623 * dbus/dbus-threads.c: move global mutex initializers to
624 dbus-internals.h, multiple prototypes was confusing doxygen
625 besides being kind of ugly
627 * Doxyfile (PREDEFINED): have Doxygen define
628 DOXYGEN_SHOULD_SKIP_THIS so we can exclude things from
629 docs with #ifndef DOXYGEN_SHOULD_SKIP_THIS
630 (do not abuse the feature! it's for stuff like the autogenerated
631 macros in dbus-md5.c, not just for things you don't feel like
634 2003-02-18 Havoc Pennington <hp@pobox.com>
636 * dbus/dbus-string.c (_dbus_string_zero): new function
638 * dbus/dbus-md5.c: include MD5 implementation by L. Peter Deutsch,
639 wrap it in some dbus-friendly API
641 * dbus/dbus-types.h: add 16-bit types
643 2003-02-18 Joe Shaw <joe@assbarn.com>
645 * dbus/dbus-auth.c (handle_server_data_stupid_test_mech): Just get
646 credentials from our currently running process.
647 (get_word): Fix a buglet where we were copying the entire length
648 instead of relative to our position.
650 * dbus/dbus-hash.c (_dbus_hash_test): Don't try to allocate the
651 keys on the stack... it's 640k of data.
653 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): Always
654 read the credentials byte off the socket, even if we don't have
656 (_dbus_poll): Implement poll() using select() for systems which
659 * glib/test-dbus-glib.c (main): Print out an error if no
660 parameters are given.
662 * test/data/auth/fallback.auth-script: Added. Tests that a client
663 can fallback to a secondary auth mechanism if the first fails.
665 2003-02-18 Havoc Pennington <hp@pobox.com>
669 2003-02-17 Havoc Pennington <hp@pobox.com>
671 * doc/dbus-specification.sgml: lots of cosmetic
672 cleanups/rearrangement, add assorted FIXME, change DBUS_ADDRESS
673 env variable to DBUS_BUS_ADDRESS, s/client/application/,
674 s/server/bus/ (except in authentication section). Add a section
675 "Message Bus Message Routing"
677 2003-02-17 Anders Carlsson <andersca@codefactory.se.>
683 2003-02-17 Anders Carlsson <andersca@codefactory.se>
685 * doc/dbus-specification.sgml:
686 Specification updates.
688 2003-02-17 Anders Carlsson <andersca@codefactory.se>
690 * bus/activation.c: (bus_activation_init), (child_setup),
691 (bus_activation_activate_service):
693 * bus/main.c: (main):
694 Set DBUS_ADDRESS environment variable.
696 * dbus/dbus-errors.c: (dbus_set_error):
697 Don't use va_copy since that's a C99 feature.
699 * dbus/dbus-sysdeps.c: (_dbus_setenv), (do_exec),
701 * dbus/dbus-sysdeps.h:
702 Add child_setup_func to _dbus_spawn_async.
704 * doc/dbus-specification.sgml:
705 Update specification.
707 * test/spawn-test.c: (setup_func), (main):
710 2003-02-17 Alexander Larsson <alexl@redhat.com>
712 * dbus/dbus-connection.c (_dbus_connection_handler_destroyed_locked):
715 2003-02-17 Anders Carlsson <andersca@codefactory.se>
719 * doc/dbus-test-plan.sgml:
720 Add test plan document.
725 2003-02-17 Anders Carlsson <andersca@codefactory.se>
727 * dbus/dbus-message.c: (decode_header_data),
728 (_dbus_message_loader_return_buffer):
729 Set the header padding amount when loading a message.
731 2003-02-16 Anders Carlsson <andersca@codefactory.se>
733 * bus/dispatch.c: (send_one_message):
734 Only send broadcast messages to registered connections.
736 * dbus/dbus-message.c: (dbus_message_name_is):
737 * dbus/dbus-message.h:
738 New convenience function.
740 * dbus/dbus-transport-debug.c: (do_reading):
741 Only dispatch one message per run.
744 * test/bus-test.c: (new_connection_callback), (die),
745 (test_hello_client1_handler), (test_hello_client2_handler),
746 (test_hello_replies), (main):
748 * test/bus-test-loop.[ch]:
751 2003-02-16 Havoc Pennington <hp@pobox.com>
753 * dbus/dbus-connection.c (dbus_connection_dispatch_message): fix
756 2003-02-16 Alexander Larsson <alexl@redhat.com>
758 * dbus/dbus-connection.c:
759 Implement sent_message_with_reply. (with_reply_and block is still
761 Made dispatch_message not lose message if OOM.
763 * dbus/dbus-errors.h:
764 Add NoReply error (for reply timeouts).
766 2003-02-16 Alexander Larsson <alexl@redhat.com>
768 * dbus/dbus-hash.c (_dbus_hash_table_unref):
769 Actually free keys and values when destroying hashtable.
771 2003-02-16 Anders Carlsson <andersca@codefactory.se>
773 * dbus/dbus-auth.c: (client_try_next_mechanism):
776 * dbus/dbus-threads.c: (dbus_condvar_wait_timeout):
777 Return TRUE if there's no thread implementation around.
779 * glib/dbus-gmain.c: (free_source),
780 (dbus_connection_hookup_with_g_main):
781 Make sure to remove the GSource when the connection is finalized.
783 2003-02-16 Anders Carlsson <andersca@codefactory.se>
785 * bus/dispatch.c: (bus_dispatch_message_handler):
786 * dbus/dbus-errors.h:
787 Return an error if someone tries to send a message to a service
790 2003-02-16 Anders Carlsson <andersca@codefactory.se>
792 * bus/activation.c: (load_directory), (bus_activation_init),
793 (bus_activation_activate_service):
796 (bus_driver_handle_activate_service), (bus_driver_handle_message):
797 More work on the activation handling.
799 * dbus/dbus-errors.h:
800 Add some error messages
802 * dbus/dbus-message.c: (dbus_message_new_error_reply):
803 * dbus/dbus-message.h:
804 New function that creates an error message.
806 * dbus/dbus-protocol.h:
807 Add ACTIVATE_SERVER message.
809 * dbus/dbus-server-unix.c: (unix_handle_watch),
810 (_dbus_server_new_for_domain_socket):
811 Call _dbus_fd_set_close_on_exec.
813 * dbus/dbus-sysdeps.c: (make_pipe), (do_exec),
814 (_dbus_spawn_async), (_dbus_disable_sigpipe),
815 (_dbus_fd_set_close_on_exec):
816 * dbus/dbus-sysdeps.h:
817 Add _dbus_fd_set_close_on exec function. Also add function that checks
818 that all open fds are set to close-on-exec and warns otherwise.
820 * dbus/dbus-transport-unix.c:
821 (_dbus_transport_new_for_domain_socket):
822 Call _dbus_fd_set_close_on_exec.
824 2003-02-16 Havoc Pennington <hp@pobox.com>
826 * dbus/dbus-connection.c (dbus_connection_set_change_sigpipe):
827 allow people to avoid setting SIGPIPE to SIG_IGN
828 (_dbus_connection_new_for_transport): disable SIGPIPE unless
829 we've been asked not to
831 2003-02-15 Anders Carlsson <andersca@codefactory.se>
833 * dbus/dbus-list.c: (_dbus_list_append_link),
834 (_dbus_list_prepend_link):
835 * dbus/dbus-memory.c: (dbus_malloc), (dbus_malloc0),
839 2003-02-15 Anders Carlsson <andersca@codefactory.se>
842 * bus/activation.c: (bus_activation_entry_free),
843 (add_desktop_file_entry), (load_directory), (bus_activation_init):
845 * bus/main.c: (main):
846 Add simple activation support, doesn't work yet though.
848 2003-02-15 Zack Rusin <zack@kde.org>
850 * qt/dbus-qthread.cpp: small casting fix
852 2003-02-15 Anders Carlsson <andersca@codefactory.se>
854 * dbus/dbus-errors.c: (dbus_set_error):
855 * dbus/dbus-errors.h:
856 Add a few errors and make dbus_set_error void.
858 * dbus/dbus-sysdeps.c:
859 (_dbus_errno_to_string), (close_and_invalidate), (make_pipe),
860 (write_err_and_exit), (read_ints), (do_exec), (_dbus_spawn_async):
861 * dbus/dbus-sysdeps.h:
862 Add _dbus_spawn_async.
864 * test/spawn-test.c: (main):
865 Test for _dbus_spawn_async.
867 2003-02-15 Anders Carlsson <andersca@codefactory.se>
869 * dbus/dbus-internals.h:
870 Fix build without tests.
872 * dbus/dbus-list.c: (alloc_link):
873 Fix a segfault when a malloc fails.
875 * dbus/dbus-memory.c: (initialize_malloc_debug), (dbus_malloc),
876 (dbus_malloc0), (dbus_realloc):
877 Add support for malloc debugging.
879 2003-02-15 Alexander Larsson <alexl@redhat.com>
881 * dbus/dbus-threads.c:
882 * dbus/dbus-threads.h:
883 Add condvars. Remove static mutext from API.
884 Implement static mutexes by initializing them from threads_init.
886 * glib/dbus-gthread.c:
887 * qt/dbus-qthread.cpp:
888 Update with the thread api changes.
893 Turn StaticMutex into normal mutex + init function.
894 Export new functions _dbus_list_alloc_link, _dbus_list_free_link,
895 _dbus_list_append_link, _dbus_list_prepend_link
898 * dbus/dbus-sysdeps.c:
899 * dbus/dbus-sysdeps.h:
900 New type dbus_atomic_t, and new functions _dbus_atomic_inc,
901 _dbus_atomic_dec. Only slow fallback implementation at the moment.
903 * dbus/dbus-protocol.h:
904 Add DBUS_MESSAGE_LOCAL_DISCONNECT define
906 * dbus/dbus-message.c:
907 Make ref/unref atomic.
910 * dbus/dbus-connection-internal.h:
911 * dbus/dbus-connection.c:
912 * dbus/dbus-connection.h:
914 Change _peek to _borrow,_return & _steal_borrowed.
915 Change disconnect callback to event.
916 Make dbus_connection_dispatch_messages reentrant.
918 * dbus/dbus-transport.c:
919 Don't ref the connection on calls to the transport
922 * dbus/dbus-message-handler.c:
926 Don't use peek_message anymore
929 * test/debug-thread.c:
930 * test/debug-thread.h:
931 Simple thread implementation that asserts() on deadlocks in
932 single-threaded code.
935 (main) Call debug_threads_init.
938 Use disconnect message instead of disconnect callback.
942 Don't call dbus_connection_set_disconnect_function. Instead export
943 bus_connection_disconnect.
946 Call bus_connection_disconnect when we get a disconnected message.
948 2003-02-15 Havoc Pennington <hp@pobox.com>
950 * dbus/dbus-message.c (dbus_message_new): fool around with the
953 2003-02-14 Havoc Pennington <hp@pobox.com>
955 * dbus/dbus-mempool.c: fail if the debug functions so indicate
957 * dbus/dbus-memory.c: fail if the debug functions indicate we
960 * dbus/dbus-internals.c (_dbus_set_fail_alloc_counter)
961 (_dbus_decrement_fail_alloc_counter): debug functions to
962 simulate memory allocation failures
964 2003-02-14 Havoc Pennington <hp@pobox.com>
966 * dbus/dbus-errors.h (struct DBusError): add a word of padding
969 2003-02-13 Anders Carlsson <andersca@codefactory.se>
971 * bus/driver.c: (bus_driver_handle_hello):
973 * bus/services.c: (bus_service_lookup):
974 Reorder message sending so we get a more sane order.
976 * test/bus-test.c: (message_handler):
979 2003-02-13 Anders Carlsson <andersca@codefactory.se>
981 * bus/driver.c: (bus_driver_send_service_deleted),
982 (bus_driver_send_service_created), (bus_driver_send_service_lost),
983 (bus_driver_send_service_acquired), (bus_driver_handle_hello),
984 (bus_driver_send_welcome_message),
985 (bus_driver_handle_list_services),
986 (bus_driver_handle_acquire_service),
987 (bus_driver_handle_service_exists):
988 * dbus/dbus-bus.c: (dbus_bus_register_client),
989 (dbus_bus_acquire_service), (dbus_bus_service_exists):
990 * dbus/dbus-errors.c: (dbus_result_to_string):
991 * dbus/dbus-errors.h:
992 * dbus/dbus-message.c: (dbus_message_append_args),
993 (dbus_message_append_args_valist), (dbus_message_get_args),
994 (dbus_message_get_args_valist), (dbus_message_get_args_iter),
995 (dbus_message_iter_get_arg_type), (dbus_message_iter_get_string),
996 (dbus_message_iter_get_byte_array),
997 (dbus_message_iter_get_string_array), (message_iter_test),
998 (check_message_handling), (_dbus_message_test):
999 * dbus/dbus-message.h:
1000 * test/bus-test.c: (main):
1001 Change fields to arguments in messages, so that they won't be
1002 confused with header fields.
1004 * glib/test-dbus-glib.c: (main):
1005 Remove append_fields from hello message.
1007 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1009 * dbus/dbus-errors.c:
1010 * dbus/dbus-message.c:
1011 * dbus/dbus-string.c:
1012 Documentation fixes.
1014 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1016 * glib/dbus-gmain.c: (timeout_handler), (add_timeout),
1018 Implement support for timeouts in dbus-glib.
1020 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1022 * dbus/dbus-message-builder.c: (_dbus_message_data_load):
1023 * dbus/dbus-message.c: (process_test_subdir):
1024 * test/break-loader.c: (find_breaks_based_on):
1025 Plug some memory leaks.
1027 2003-02-13 Richard Hult <rhult@codefactory.se>
1029 * bus/main.c: Fix build.
1031 * dbus/dbus-errors.h:
1032 * dbus/dbus-errors.c: Fix copyright for Anders.
1034 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1039 * bus/connection.c: (bus_connection_foreach):
1042 * bus/desktop-file.c: (grow_lines_in_section), (grow_sections),
1043 (unescape_string), (new_section), (parse_section_start),
1044 (parse_key_value), (report_error), (bus_desktop_file_load),
1045 (bus_desktop_file_get_string):
1046 * bus/desktop-file.h:
1047 Use DBusError for error reporting.
1049 * bus/dispatch.c: (send_one_message),
1050 (bus_dispatch_message_handler):
1051 * bus/driver.c: (bus_driver_send_service_deleted),
1052 (bus_driver_send_service_created), (bus_driver_send_service_lost),
1053 (bus_driver_send_service_acquired), (bus_driver_handle_hello),
1054 (bus_driver_send_welcome_message),
1055 (bus_driver_handle_list_services),
1056 (bus_driver_handle_acquire_service),
1057 (bus_driver_handle_service_exists):
1058 * bus/loop.c: (bus_loop_run):
1060 Use BUS_HANDLE_OOM instead of _DBUS_HANDLE_OOM.
1062 * bus/utils.c: (bus_wait_for_memory):
1064 New files with general utility functions.
1066 * dbus/dbus-internals.h:
1067 Remove _DBUS_HANDLE_OOM.
1069 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1071 * dbus/dbus-errors.c: (dbus_result_to_string), (dbus_error_init),
1072 (dbus_error_free), (dbus_set_error_const), (dbus_set_error):
1073 * dbus/dbus-errors.h:
1074 Add DBusError structure.
1076 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1078 * test/data/valid-messages/standard-acquire-service.message:
1079 * test/data/valid-messages/standard-hello.message:
1080 * test/data/valid-messages/standard-list-services.message:
1081 * test/data/valid-messages/standard-service-exists.message:
1082 Add some standard messages.
1084 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1086 * bus/driver.c: (bus_driver_send_welcome_message),
1087 (bus_driver_handle_list_services),
1088 (bus_driver_handle_acquire_service),
1089 (bus_driver_handle_service_exists), (bus_driver_handle_message):
1090 Update for API changes in libdbus.
1092 * dbus/dbus-message.c: (dbus_message_new_reply):
1093 * dbus/dbus-message.h:
1094 Remove the name argument. The spec states that replies shouldn't
1097 2003-02-13 Anders Carlsson <andersca@codefactory.se>
1099 * bus/desktop-file.c: (parse_section_start), (parse_key_value),
1100 (report_error), (bus_desktop_file_load), (lookup_section),
1101 (lookup_line), (bus_desktop_file_get_raw),
1102 (bus_desktop_file_get_string):
1103 * bus/desktop-file.h:
1104 Some fixes, and new functions for getting a key value from a section.
1106 2003-02-13 Havoc Pennington <hp@pobox.com>
1108 * test/data/auth/fail-after-n-attempts.auth-script: new test
1110 * dbus/dbus-auth.c (send_rejected): shutdown_mech() when we
1113 2003-02-13 Havoc Pennington <hp@pobox.com>
1115 * dbus/dbus-auth.c (handle_server_data_external_mech): args to
1116 dbus_credentials_match were backward
1118 * dbus/dbus-auth-script.c (_dbus_auth_script_run): support
1119 NO_CREDENTIALS and ROOT_CREDENTIALS
1121 * dbus/dbus-auth.c (_dbus_auth_do_work): move get_state() routine
1122 into here. Never process more commands after we've reached an
1123 end state; store further data as unused bytes.
1125 * test/data/auth/*: add more auth tests
1127 * dbus/dbus-auth-script.c (_dbus_auth_script_run): support EXPECT
1128 command to match exact string and EXPECT_UNUSED to match unused
1131 * test/Makefile.am (dist-hook): fix to dist all the test stuff
1133 2003-02-12 Havoc Pennington <hp@pobox.com>
1135 * dbus/dbus-string.c (_dbus_string_pop_line): fix to also strip
1136 \r off of popped lines
1138 * dbus/dbus-auth.c (_dbus_auth_test): write code to run auth
1141 * dbus/dbus-auth-script.c (_dbus_auth_script_run): when doing a
1144 2003-02-12 Havoc Pennington <hp@pobox.com>
1146 * dbus/Makefile.am: remove break-loader from the build, since it
1149 * configure.in: add --enable-gcov to turn on coverage profiling
1150 flags and disable optimization
1152 2003-02-10 Havoc Pennington <hp@pobox.com>
1154 * dbus/dbus-auth-script.c, dbus/dbus-auth-script.h: sync
1155 initial cut at test framework for DBusAuth from laptop.
1156 Doesn't quite work yet but it compiles and I need to get
1157 it off the 266mhz laptop. ;-)
1159 * dbus/dbus-server-debug.c (_dbus_server_debug_accept_transport):
1160 fix a memleak in error case
1162 2003-02-12 Anders Carlsson <andersca@codefactory.se>
1165 * bus/desktop-file.c:
1166 * bus/desktop-file.h:
1167 Add a desktop file parser.
1169 2003-02-11 Zack Rusin <zack@kde.org>
1171 * qt/message.[h|cpp]: sample implementation
1172 of the KDE wrapper for DBusMessage
1174 2003-02-09 Zack Rusin <zack@kde.org>
1176 * test/bus-test.c: make_it_compile
1177 * doc/dbus-specification.sgml: minimal semantic fix
1179 2003-02-06 Anders Carlsson <andersca@codefactory.se>
1185 2003-02-06 Anders Carlsson <andersca@codefactory.se>
1188 * dbus/dbus-break-loader.c:
1190 * test/break-loader.c:
1191 Move dbus-break-loader to test/ and rename it to break-loader.
1193 2003-02-02 Havoc Pennington <hp@pobox.com>
1195 * dbus/dbus-keyring.c, dbus/dbus-keyring.h: template files
1196 for code to manage cookies in your home directory
1198 * dbus/dbus-sysdeps.c (_dbus_generate_random_bytes): new function
1200 * dbus/dbus-auth.c (get_state): impose a maximum number of tries
1201 to authenticate, then disconnect the client.
1203 2003-02-03 Alexander Larsson <alexl@redhat.com>
1205 * dbus/dbus-message.c (dbus_message_append_fields):
1208 2003-02-02 Anders Carlsson <andersca@codefactory.se>
1210 * doc/dbus-specification.sgml:
1211 Update address format section.
1213 2003-02-02 Anders Carlsson <andersca@codefactory.se>
1216 * test/bus-test.c: (get_time), (add_timeout), (remove_timeout),
1217 (message_handler), (new_connection_callback), (loop_quit),
1221 2003-02-02 Anders Carlsson <andersca@codefactory.se>
1223 * bus/driver.c: (bus_driver_handle_service_exists):
1224 Simplify the code a bit.
1226 * dbus/dbus-bus.c: (dbus_bus_service_exists):
1229 2003-02-02 Anders Carlsson <andersca@codefactory.se>
1232 Add libdbus-daemon.la and link to it.
1234 2003-02-01 James Willcox <jwillcox@gnome.org>
1236 * bus/driver.c: (bus_driver_handle_own_service):
1237 Actually include the service reply code in the message.
1239 2003-02-02 Anders Carlsson <andersca@codefactory.se>
1241 * bus/driver.c: (bus_driver_handle_service_exists):
1242 Don't unref the incoming message.
1244 2003-02-02 Anders Carlsson <andersca@codefactory.se>
1246 * dbus/dbus.h: Add dbus-address.h and dbus-bus.h
1248 2003-02-02 Anders Carlsson <andersca@codefactory.se>
1250 * dbus/dbus-server.c: (dbus_server_listen):
1251 * dbus/dbus-transport.c: (_dbus_transport_open):
1252 ifdef out the calls to the debug transport and server.
1254 2003-02-02 Alexander Larsson <alexl@redhat.com>
1256 * dbus/dbus-watch.c (dbus_watch_get_flags):
1257 Add note in the docs that ERROR or HANGUP won't be returned
1258 and are assumed always on.
1260 * glib/dbus-gmain.c (add_watch):
1261 Always add IO_ERR | IO_HUP
1263 * dbus/dbus-message.h:
1264 Add semicolon after dbus_message_iter_get_string_array().
1265 Makes qt code build again
1267 2003-02-01 Anders Carlsson <andersca@codefactory.se>
1269 * bus/driver.c: (create_unique_client_name),
1270 (bus_driver_handle_hello):
1271 Don't take a name, just use a numeric id to identify
1275 * dbus/dbus-bus.c: (dbus_bus_register_client),
1276 (dbus_bus_acquire_service), (dbus_bus_service_exists):
1278 Add new convenience functions for communicating with the bus.
1280 * dbus/dbus-message.h:
1282 * dbus/dbus-protocol.h:
1285 2003-02-01 Alexander Larsson <alexl@redhat.com>
1287 * dbus/dbus-message.c (dbus_message_append_fields):
1288 Add some more doc comments.
1290 2003-02-01 Havoc Pennington <hp@pobox.com>
1292 * dbus/dbus-break-loader.c (randomly_modify_length): change
1293 a 4-byte value in the message as if it were a length
1295 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): don't set
1296 execute bit on saved files
1298 2003-02-01 Havoc Pennington <hp@pobox.com>
1300 * dbus/dbus-break-loader.c (main): new program to find messages
1301 that break the loader.
1303 * dbus/dbus-sysdeps.c (_dbus_string_append_uint): new function
1304 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): new function
1306 * dbus/dbus-string.c (_dbus_string_set_byte): new
1308 2003-01-31 Havoc Pennington <hp@pobox.com>
1310 * dbus/dbus-message.c: refactor the test code to be more general,
1311 in preparation for writing a "randomly permute test cases to
1312 try to break the loader" program.
1314 2003-01-31 Havoc Pennington <hp@pobox.com>
1316 * doc/dbus-specification.sgml: work on the specification
1318 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): check
1319 the protocol version of the message.
1321 * dbus/dbus-protocol.h: drop special _REPLY names, the spec
1322 no longer specifies that.
1323 (DBUS_SERVICE_REPLY_SERVICE_EXISTS): fix flags (1/2/4/8 not
1326 * dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos): add missing
1327 "break" for DBUS_TYPE_NIL, remove @todo
1329 2003-01-31 Havoc Pennington <hp@pobox.com>
1331 * dbus/dbus-message.c (dbus_message_set_is_error_reply): rename
1332 just set_is_error/get_is_error as this is a commonly-used
1333 function, and write docs.
1335 2003-01-31 Anders Carlsson <andersca@codefactory.se>
1337 * dbus/dbus-address.c: (dbus_address_entry_free):
1338 Free key and value lists.
1340 * dbus/dbus-internals.c: (_dbus_type_to_string):
1341 Add the types we didn't have.
1343 * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
1344 (_dbus_marshal_validate_arg):
1347 * dbus/dbus-message.c: (dbus_message_set_sender):
1348 Remove todo about being able to set sender to NULL.
1350 (dbus_message_set_is_error_reply),
1351 (dbus_message_get_is_error_reply):
1352 * dbus/dbus-message.h:
1355 * dbus/dbus-protocol.h:
1356 Add error reply flag.
1358 * test/data/valid-messages/opposite-endian.message:
1359 Add NIL type to test.
1361 2003-01-31 Havoc Pennington <hp@pobox.com>
1363 * doc/dbus-specification.sgml: fully specify the header. Add
1364 flags and major protocol version, and change header/body len to
1367 * dbus/dbus-message-builder.c (append_saved_length): append length
1370 * dbus/dbus-message.c (dbus_message_create_header): change header
1371 length and body length to unsigned. Add the new fields from the
1373 (_dbus_message_loader_return_buffer): unsigned header/body len
1375 2003-01-30 Havoc Pennington <hp@pobox.com>
1377 * dbus/dbus-auth.c: rework to use only REJECTED, no
1380 * doc/dbus-sasl-profile.txt: drop MECHANISMS and just
1381 use REJECTED, suggested by Mark McLoughlin
1383 2003-01-30 Havoc Pennington <hp@pobox.com>
1385 * dbus/dbus-server.c (dbus_server_listen): @todo about how we need
1386 a better way to report errors here. e.g. "unix address lacks
1387 path" or something. also "no such file" when the path doesn't
1390 * dbus/dbus-address.c (dbus_address_entries_free): add @todo about
1392 (dbus_parse_address): add @todo about documenting address format,
1393 and allowing , and ; to be escaped
1395 2003-01-30 Anders Carlsson <andersca@codefactory.se>
1398 Add dbus-address.[ch]
1400 * dbus/dbus-address.c: (dbus_address_entry_free),
1401 (dbus_address_entries_free), (create_entry),
1402 (dbus_address_entry_get_method), (dbus_address_entry_get_value),
1403 (dbus_parse_address), (_dbus_address_test):
1404 * dbus/dbus-address.h:
1405 New files for dealing with address parsing.
1407 * dbus/dbus-connection.c:
1408 Document timeout functions.
1410 * dbus/dbus-message.c:
1411 Document dbus_message_new_from_message.
1413 * dbus/dbus-server-debug.c:
1416 * dbus/dbus-server.c: (dbus_server_listen):
1417 Parse address and use correct server implementation.
1419 * dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
1420 * dbus/dbus-string.h:
1421 New function with test.
1423 * dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
1427 * dbus/dbus-transport-debug.c:
1430 * dbus/dbus-transport.c: (_dbus_transport_open):
1431 Parse address and use correct transport implementation.
1433 2003-01-30 Havoc Pennington <hp@pobox.com>
1435 * dbus/dbus-message.c: use message->byte_order instead of
1436 DBUS_COMPILER_BYTE_ORDER throughout.
1437 (dbus_message_create_header): pad header to align the
1438 start of the body of the message to 8-byte boundary
1440 * dbus/dbus-marshal.h: make all the demarshalers take const
1441 DBusString arguments.
1443 * dbus/dbus-message.c (_dbus_message_loader_return_buffer):
1444 validate message args here, so we don't have to do slow validation
1445 later, and so we catch bad messages as they are incoming. Also add
1446 better checks on header_len and body_len. Also fill in
1449 * dbus/dbus-string.c (_dbus_string_validate_utf8): new (not
1450 implemented properly)
1451 (_dbus_string_validate_nul): new function to check all-nul
1453 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): rename
1454 get_arg_end_pos and remove all validation
1455 (_dbus_marshal_validate_arg): actually do validation here.
1457 2003-01-29 Havoc Pennington <hp@pobox.com>
1459 * dbus/dbus-message.c (check_message_handling): fix assertion
1460 failure on set_client_serial
1462 2003-01-28 Havoc Pennington <hp@pobox.com>
1464 * dbus/dbus-server-debug.c: Add doc section comments
1466 * dbus/dbus-transport-debug.c: add doc section comments
1468 2003-01-28 Havoc Pennington <hp@redhat.com>
1470 * dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
1471 the reverse order from how I had it
1472 (_dbus_string_base64_encode): reverse encoding order. I was
1473 basically byteswapping everything during encoding.
1475 2003-01-28 Anders Carlsson <andersca@codefactory.se>
1477 * dbus/dbus-connection-internal.h:
1478 * dbus/dbus-connection.c: (_dbus_connection_add_timeout),
1479 (_dbus_connection_remove_timeout):
1480 Add functions for adding and removing timeouts.
1482 * dbus/dbus-message.c: (dbus_message_new_from_message):
1483 Add new function that takes a message and creates an exact
1484 copy of it, but with the refcount set to 1.
1485 (check_message_handling):
1488 * dbus/dbus-server-protected.h:
1489 * dbus/dbus-server.c: (_dbus_server_init_base),
1490 (_dbus_server_finalize_base), (_dbus_server_add_timeout),
1491 (dbus_server_set_timeout_functions):
1492 (_dbus_server_remove_timeout):
1493 New functions so that a server can add and remove timeouts.
1495 (dbus_server_listen):
1496 Add commented out call to dbus_server_debug_new.
1498 * dbus/dbus-timeout.c: (_dbus_timeout_new):
1499 Actually set the handler, doh.
1501 * dbus/dbus-transport.c: (_dbus_transport_open):
1502 Add commented out call to dbus_transport_debug_client_new.
1505 Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
1507 2003-01-28 Havoc Pennington <hp@pobox.com>
1509 * dbus/dbus-message.c (check_message_handling): function to check
1510 on the loaded message, iterates over it etc.
1512 2003-01-28 Havoc Pennington <hp@pobox.com>
1514 * test/Makefile.am (dist-hook): fix make distdir
1516 * dbus/Makefile.am (TESTS_ENVIRONMENT): fix make check
1518 2003-01-27 Havoc Pennington <hp@pobox.com>
1520 * dbus/dbus-mempool.c (time_for_size): replace printf with
1523 * dbus/dbus-message-builder.c (_dbus_message_data_load): allow
1524 empty lines; fix the SAVE_LENGTH stuff to be
1525 START_LENGTH/END_LENGTH so it actually works; couple other
1528 * test/Makefile.am (dist-hook): add dist-hook for .message files
1530 * dbus/dbus-string.c (DBUS_STRING_COPY_PREAMBLE): source of a copy
1531 can be constant or locked.
1532 (_dbus_string_free): allow freeing a const string as
1535 * dbus/dbus-sysdeps.c (_dbus_concat_dir_and_file): utility
1537 * dbus/dbus-test-main.c (main): take an argument which is the
1538 directory containing test data
1540 * dbus/dbus-message.c (_dbus_message_test): pass a test_data_dir
1541 argument to this and load all the messages in test/data/
1542 checking that they can be loaded or not loaded as appropriate.
1544 2003-01-27 Anders Carlsson <andersca@codefactory.se>
1546 * bus/dispatch.c: (bus_dispatch_message_handler):
1547 Dispatch messages sent to services.
1549 * bus/driver.c: (bus_driver_send_service_deleted),
1550 (bus_driver_send_service_created), (bus_driver_send_service_lost),
1551 (bus_driver_send_service_acquired):
1552 Add helper functions for sending service related messages.
1554 (bus_driver_send_welcome_message):
1555 Send HELLO_REPLY instead of WELCOME.
1557 (bus_driver_handle_list_services):
1558 Send LIST_SERVICES_REPLY instead of SERVICES.
1560 (bus_driver_handle_own_service),
1561 (bus_driver_handle_service_exists):
1562 New message handlers.
1564 (bus_driver_handle_message):
1565 Invoke new message handlers.
1567 (bus_driver_remove_connection):
1568 Don't remove any services here since that's done automatically
1569 by bus_service_remove_owner now.
1572 New function signatures.
1574 * bus/services.c: (bus_service_add_owner):
1575 Send ServiceAcquired message if we're the only primary owner.
1577 (bus_service_remove_owner):
1578 Send ServiceAcquired/ServiceLost messages.
1580 (bus_service_set_prohibit_replacement),
1581 (bus_service_get_prohibit_replacement):
1582 Functions for setting prohibit replacement.
1584 (bus_service_has_owner):
1585 New function that checks if a connection is in the owner queue of
1589 Add new function signatures.
1591 * dbus/dbus-list.c: (_dbus_list_test):
1592 Add tests for _dbus_list_remove_last and traversing the list backwards.
1595 Fix a typo in _dbus_list_get_prev_link, if we're at the first element we can't
1596 go any further, so return NULL then.
1598 * dbus/dbus-protocol.h:
1599 Add new messages, service flags and service replies.
1601 2003-01-26 Havoc Pennington <hp@pobox.com>
1603 * dbus/dbus-message-builder.c: implement, completely untested.
1605 * test/data/*: add data to be used in testing.
1606 ".message" files are our simple loadable text format.
1607 ".message-raw" will be binary dumps of messages.
1609 * dbus/dbus-string.c (_dbus_string_starts_with_c_str): new
1611 2003-01-26 Havoc Pennington <hp@pobox.com>
1613 * dbus/dbus-sysdeps.c (_dbus_file_get_contents): new function
1615 * dbus/dbus-errors.c (dbus_result_to_string): add
1618 * dbus/dbus-message-builder.c: new file, will contain code to load
1619 up messages from files. Not implemented yet.
1621 2003-01-26 Havoc Pennington <hp@pobox.com>
1623 * dbus/dbus-message.c (dbus_message_set_sender): support deleting
1624 the sender by setting to NULL
1626 2003-01-26 Havoc Pennington <hp@pobox.com>
1628 The unit tests pass, but otherwise untested. If it breaks, the
1629 tests should have been better. ;-)
1631 * bus/driver.c (bus_driver_handle_hello): return if we disconnect
1634 * dbus/dbus-message.c: redo everything so we maintain
1635 message->header as the only copy of the various fields.
1636 This avoids the possibility of out-of-memory in some cases,
1637 for example dbus_message_lock() can't run out of memory anymore,
1638 and avoids extra copying. Figured I may as well go ahead and do
1639 this since it was busted for dbus_message_lock to not return
1640 failure on OOM, and dbus_message_write_header was totally
1641 unchecked for OOM. Also fixed some random other bugs.
1643 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): verify
1644 that strings are nul-terminated. Also, end_pos can be equal
1645 to string length just not greater than, I think.
1646 (_dbus_marshal_set_int32): new function
1647 (_dbus_marshal_set_uint32): new function
1648 (_dbus_marshal_set_string): new function
1650 * dbus/dbus-connection.c (_dbus_connection_new_for_transport): fix
1651 a warning, init timeout_list to NULL
1652 (dbus_connection_send_message): don't use uninitialized variable
1655 * dbus/dbus-string.c (_dbus_string_replace_len): new function
1657 2003-01-26 Anders Carlsson <andersca@codefactory.se>
1659 * bus/driver.c: (bus_driver_handle_hello),
1660 (bus_driver_send_welcome_message):
1663 2003-01-26 Anders Carlsson <andersca@codefactory.se>
1665 * dbus/dbus-auth.c: (process_auth), (_dbus_auth_unref):
1666 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
1667 (dbus_connection_unref):
1668 * dbus/dbus-marshal.c: (_dbus_marshal_test):
1669 * dbus/dbus-message.c: (dbus_message_unref),
1672 (dbus_message_get_fields):
1673 Remove debugging printout.
1675 (_dbus_message_loader_return_buffer):
1676 Don't store the header string.
1678 (_dbus_message_test):
1681 2003-01-26 Richard Hult <rhult@codefactory.se>
1683 * glib/dbus-gmain.c (dbus_connection_dispatch): Traverse a copy of
1684 the file descriptor list, since it can change under us.
1686 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1688 * glib/dbus-gmain.c: (dbus_connection_prepare),
1689 (dbus_connection_check), (dbus_connection_dispatch), (add_watch),
1690 (remove_watch), (dbus_connection_hookup_with_g_main):
1691 Rewrite the glib handling to use its own GSource instead of a
1692 GIOChannel so we can catch messages put in the queue while waiting
1695 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1698 * bus/connection.c: (connection_disconnect_handler),
1699 (connection_watch_callback), (bus_connection_setup):
1700 * bus/dispatch.c: (send_one_message),
1701 (bus_dispatch_broadcast_message), (bus_dispatch_message_handler),
1702 (bus_dispatch_add_connection), (bus_dispatch_remove_connection):
1704 * bus/driver.c: (bus_driver_send_service_deleted),
1705 (bus_driver_send_service_created), (bus_driver_handle_hello),
1706 (bus_driver_send_welcome_message),
1707 (bus_driver_handle_list_services), (bus_driver_remove_connection),
1708 (bus_driver_handle_message):
1710 Refactor code, put the message dispatching in its own file. Use
1711 _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client
1714 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1716 * dbus/dbus-internals.h:
1717 Add _DBUS_HANDLE_OOM macro, it doesn't do anything currently.
1719 * dbus/dbus-message.c: (dbus_message_get_sender):
1720 * dbus/dbus-message.h:
1721 Implement dbus_message_get_sender.
1723 * dbus/dbus-protocol.h:
1724 Add message and service defines.
1726 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1728 * dbus/dbus-connection.c: (dbus_connection_send_message):
1729 * dbus/dbus-message-internal.h:
1730 * dbus/dbus-message.c: (_dbus_message_get_client_serial),
1731 (dbus_message_write_header):
1732 Remove _dbus_messag_unlock and don't set the client serial on a
1733 message if one already exists.
1735 2003-01-24 Havoc Pennington <hp@pobox.com>
1737 * dbus/dbus-list.c (alloc_link): put a thread lock on the global
1740 * bus/driver.c (bus_driver_handle_list_services): fix a leak
1743 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1745 * dbus/dbus-list.c: (alloc_link), (free_link):
1746 Use a memory pool for the links.
1748 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1750 * bus/connection.c: (bus_connection_foreach):
1752 Add new bus_connection_foreach function.
1754 * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
1755 Add function that broadcasts a message to all clients.
1757 (bus_driver_send_service_created), (bus_driver_handle_hello),
1758 (bus_driver_send_welcome_message),
1759 (bus_driver_handle_list_services), (bus_driver_message_handler):
1760 Implement functions that take care of listing services, and notifying
1761 clients when new services are created.
1763 * bus/services.c: (bus_services_list):
1765 Add new function that returns an array of strings with the currently
1766 registered services.
1769 * glib/dbus-gmain.c:
1770 Update copyright year.
1772 2003-01-25 Anders Carlsson <andersca@codefactory.se>
1774 * dbus/dbus-connection.c: (dbus_connection_send_message):
1775 Unlock the message in case it was sent earlier.
1777 (dbus_connection_send_message_with_reply_and_block):
1778 Remove the reply message from the list.
1780 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
1781 Set array_len and new_pos correctly.
1783 (_dbus_marshal_test):
1784 Remove debug output.
1786 * dbus/dbus-message-internal.h:
1787 * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
1788 New function that returns the reply serial.
1790 (_dbus_message_unlock):
1791 New function that unlocks a message and resets its header.
1793 (dbus_message_append_string_array),
1794 (dbus_message_get_fields_valist),
1795 (dbus_message_iter_get_field_type),
1796 (dbus_message_iter_get_string_array),
1797 (dbus_message_get_fields),
1798 (dbus_message_append_fields_valist):
1799 Handle string arrays.
1801 (dbus_message_set_sender):
1802 Make this function public since the bus daemon needs it.
1804 (decode_header_data):
1805 Set the reply serial to -1 initially.
1807 * dbus/dbus-message.h:
1808 Add dbus_message_set_sender.
1810 2003-01-24 Havoc Pennington <hp@pobox.com>
1812 * doc/dbus-specification.sgml: add some stuff
1814 2003-01-22 Havoc Pennington <hp@pobox.com>
1816 * doc/dbus-specification.sgml: Start to document the protocol.
1818 2003-01-22 Havoc Pennington <hp@pobox.com>
1820 * dbus/dbus-connection.c
1821 (dbus_connection_send_message_with_reply_and_block): add some @todo
1823 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
1825 2003-01-21 Havoc Pennington <hp@pobox.com>
1827 (patch untested because can't compile)
1829 * bus/driver.c (create_unique_client_name): make this function
1830 never recycle client names. Also, caller should initialize
1833 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
1835 2003-01-21 Anders Carlsson <andersca@codefactory.se>
1837 * dbus/dbus-marshal.c: (_dbus_marshal_double),
1838 (_dbus_marshal_int32), (_dbus_marshal_uint32),
1839 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
1840 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
1841 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
1842 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
1843 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
1844 * dbus/dbus-marshal.h:
1845 * dbus/dbus-protocol.h:
1846 Add support for marshalling and demarshalling integer, double
1849 2003-01-21 Anders Carlsson <andersca@codefactory.se>
1854 * bus/connection.c: (connection_disconnect_handler):
1855 Remove the connection from the bus driver's list.
1857 (connection_watch_callback): Dispatch messages.
1859 (free_connection_data): Free connection name.
1861 (bus_connection_setup): Add connection to the bus driver's list.
1862 (bus_connection_remove_owned_service):
1863 (bus_connection_set_name), (bus_connection_get_name):
1864 Add functions for setting and getting the connection's name.
1867 Add function headers.
1869 * bus/driver.c: (create_unique_client_name),
1870 (bus_driver_handle_hello_message),
1871 (bus_driver_send_welcome_message), (bus_driver_message_handler),
1872 (bus_driver_add_connection), (bus_driver_remove_connection):
1875 * bus/services.c: (bus_service_free):
1877 New file that handles communication and registreation with the bus
1880 2003-01-21 Anders Carlsson <andersca@codefactory.se>
1882 * dbus/dbus-connection.c: (dbus_connection_send_message):
1883 Add a new client_serial parameter.
1885 (dbus_connection_send_message_with_reply):
1886 Remove a @todo since we've implemented the blocking function.
1888 (dbus_connection_send_message_with_reply_and_block):
1889 New function that sends a message and waits for a reply and
1890 then returns the reply.
1892 * dbus/dbus-connection.h:
1895 * dbus/dbus-errors.c: (dbus_result_to_string):
1896 * dbus/dbus-errors.h:
1897 Add new DBUS_RESULT.
1899 * dbus/dbus-message-internal.h:
1900 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
1901 (_dbus_message_set_sender), (dbus_message_write_header),
1902 (dbus_message_new_reply), (decode_header_data),
1903 (_dbus_message_loader_return_buffer), (_dbus_message_test):
1904 * dbus/dbus-message.h:
1905 Add new functions that set the reply serial and sender.
1906 Also marshal and demarshal them correctly and add test.
1908 * dbus/dbus-protocol.h:
1909 Add new DBUS_MESSAGE_TYPE_SENDER.
1912 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
1913 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
1914 (dbus_connection_hookup_with_g_main):
1915 * glib/test-dbus-glib.c: (main):
1916 Rewrite to use GIOChannel and remove the GSource crack.
1918 * test/echo-client.c: (main):
1919 * test/watch.c: (check_messages):
1920 Update for changed APIs
1922 2003-01-19 Anders Carlsson <andersca@codefactory.se>
1924 * dbus/Makefile.am: Add dbus-timeout.[cħ]
1926 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
1927 Create a DBusTimeoutList.
1928 (dbus_connection_set_timeout_functions): Add new function to
1929 set timeout callbacks
1931 * dbus/dbus-connection.h: Add public DBusTimeout API.
1933 * dbus/dbus-message.c: (dbus_message_get_service):
1934 * dbus/dbus-message.h: New function.
1936 * dbus/dbus-server.c: Fix small doc typo.
1938 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
1940 2003-01-19 Anders Carlsson <andersca@codefactory.se>
1942 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
1943 of the string, just as long as specified.
1945 2003-01-19 Havoc Pennington <hp@pobox.com>
1947 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
1950 * dbus/dbus-server.c (dbus_server_set_max_connections)
1951 (dbus_server_get_max_connections, dbus_server_get_n_connections):
1952 keep track of current number of connections, and add API for
1953 setting a max (but haven't implemented enforcing the max yet)
1955 2003-01-18 Havoc Pennington <hp@pobox.com>
1957 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
1958 reading/writing if read_watch != NULL or write_watch != NULL.
1960 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
1961 the message loader code to actually load message->header and
1962 message->body into the newly-created message.
1964 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
1967 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
1968 (dbus_connection_get_max_message_size)
1969 (dbus_connection_set_max_live_messages_size)
1970 (dbus_connection_get_max_live_messages_size): implement some
1971 resource limitation functions
1973 * dbus/dbus-resources.c: new file implementing some of the
1974 resource limits stuff
1976 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
1977 missing docs, add @todo to handle OOM etc.
1979 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
1982 2003-01-18 Havoc Pennington <hp@pobox.com>
1984 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
1985 connection if it hasn't been already.
1987 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
1988 replace with DisconnectFunction.
1990 2003-01-18 Havoc Pennington <hp@pobox.com>
1992 Building --disable-verbose-mode --disable-asserts --disable-tests
1993 cuts the library from 112K to 45K or so
1995 * configure.in: check for varargs macro support,
1996 add --enable-verbose-mode, --enable-asserts.
1998 * dbus/dbus-internals.h (_dbus_assert): support
2000 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
2002 2003-01-18 Havoc Pennington <hp@pobox.com>
2004 * dbus/dbus-test.c: include config.h so that tests actually run
2006 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
2007 so the failure mode when that assumption fails will be plenty
2010 2003-01-18 Havoc Pennington <hp@pobox.com>
2012 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
2014 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
2017 * test/Makefile.am: don't use special variable "TESTS" for echo-*
2018 since we don't want to use those in make check
2020 2003-01-15 Havoc Pennington <hp@redhat.com>
2026 2003-01-15 Havoc Pennington <hp@redhat.com>
2028 * test/Makefile.am: fix so that test source code ends up in the
2029 distribution on make distcheck
2031 2003-01-15 Havoc Pennington <hp@redhat.com>
2037 2003-01-15 Havoc Pennington <hp@redhat.com>
2039 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
2040 fix build when --disable-tests
2042 * Makefile.am (EXTRA_DIST): put HACKING in here
2044 * HACKING: document procedure for making a tarball release.
2046 2003-01-14 Anders Carlsson <andersca@codefactory.se>
2048 * bus/connection.c: (connection_error_handler),
2049 (bus_connection_setup):
2050 * bus/main.c: (main):
2051 Make sure that the DBusConnectionData struct is NULLed
2052 out to prevent a segfault.
2054 * dbus/dbus-errors.c: (dbus_result_to_string):
2055 * dbus/dbus-errors.h:
2056 * dbus/dbus-message.c: (dbus_message_get_fields),
2057 (dbus_message_get_fields_valist), (_dbus_message_test):
2058 * dbus/dbus-message.h:
2059 Make dbus_message_get_fields return a result code so we can
2060 track invalid fields as well as oom.
2062 2003-01-11 Havoc Pennington <hp@pobox.com>
2064 * configure.in: change --enable-test/--enable-ansi action-if-given
2065 to enable_foo=$enableval instead of enable_foo=yes
2067 2003-01-08 Havoc Pennington <hp@pobox.com>
2069 * dbus/dbus-string.c (_dbus_string_align_length): new function
2071 * dbus/dbus-test-main.c: move main() for test app here
2073 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
2074 symbol to run tests, because dbus-test isn't in the main
2077 Code review nitpicks.
2079 * dbus/dbus-message.c (dbus_message_write_header): add newlines
2080 for people with narrow emacs ;-). Assert client_serial was filled
2081 in. Assert message->name != NULL.
2082 (dbus_message_append_fields): have "first_field_type" arg separate
2083 from va list, needed for C++ binding that also uses varargs IIRC
2084 and helps with type safety
2085 (dbus_message_new): add @todo about using DBusString to store
2086 service/name internally
2087 (dbus_message_new): don't leak ->service and ->name on OOM later
2089 (dbus_message_unref): free the service name
2090 (dbus_message_get_fields): same change to varargs
2091 i.e. first_field_type
2092 (_dbus_message_loader_return_buffer): assert that the message data
2093 is aligned (if not it's a bug in our code). Put in verbose griping
2094 about why we set corrupted = TRUE.
2095 (decode_header_data): add FIXME that char* is evil. Was going to
2096 add FIXME about evil locale-specific string.h strncmp, but just
2097 switched to wacky string-as-uint32 optimization. Move check for
2098 "no room for field name" above get_const_data_len() to avoid
2099 assertion failure in get_const_data_len if we have trailing 2
2100 bytes or the like. Check for service and name fields being
2101 provided twice. Don't leak service/name on error. Require field
2102 names to be aligned to 4 bytes.
2104 * dbus/dbus-marshal.c: move byte swap stuff to header
2105 (_dbus_pack_int32): uscore-prefix
2106 (_dbus_unpack_int32): uscore-prefix
2107 (_dbus_unpack_uint32): export
2108 (_dbus_demarshal_string): add @todo complaining about use of
2110 (_dbus_marshal_get_field_end_pos): add @todo about bad error
2111 handling allowing corrupt data to go unchecked
2113 2003-01-08 Havoc Pennington <hp@redhat.com>
2115 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
2116 to the select() as needed for authentication. (should be using
2117 _dbus_poll() not select, but for another day)
2119 * dbus/dbus.h: include dbus/dbus-protocol.h
2121 2003-01-08 Anders Carlsson <andersca@codefactory.se>
2123 * dbus/Makefile.am (dbusinclude_HEADERS): Install
2126 2003-01-08 Anders Carlsson <andersca@codefactory.se>
2128 * dbus/dbus-internals.c: (_dbus_type_to_string):
2129 New function that returns a string describing a type.
2131 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
2132 * dbus/dbus-marshal.h:
2133 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
2134 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
2135 (dbus_message_iter_get_byte_array):
2136 * dbus/dbus-message.h:
2137 Add new convenience functions for appending and getting message fields.
2138 Also add demarshalling routines for byte arrays.
2140 2003-01-07 Anders Carlsson <andersca@codefactory.se>
2142 * dbus/dbus-connection-internal.h:
2143 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
2144 (_dbus_connection_get_next_client_serial),
2145 (dbus_connection_send_message):
2146 * dbus/dbus-internals.h:
2147 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
2148 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
2149 (_dbus_marshal_uint32), (_dbus_demarshal_double),
2150 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
2151 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
2152 (_dbus_verbose_bytes), (_dbus_marshal_test):
2153 * dbus/dbus-marshal.h:
2154 * dbus/dbus-message-internal.h:
2155 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
2156 (dbus_message_write_header), (_dbus_message_lock),
2157 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
2158 (dbus_message_get_name), (dbus_message_append_int32),
2159 (dbus_message_append_uint32), (dbus_message_append_double),
2160 (dbus_message_append_string), (dbus_message_append_byte_array),
2161 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
2162 (dbus_message_iter_unref), (dbus_message_iter_has_next),
2163 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
2164 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
2165 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
2166 (decode_header_data), (_dbus_message_loader_return_buffer),
2167 (message_iter_test), (_dbus_message_test):
2168 * dbus/dbus-message.h:
2169 * dbus/dbus-protocol.h:
2170 * dbus/dbus-test.c: (main):
2172 * glib/test-dbus-glib.c: (message_handler), (main):
2173 * test/echo-client.c: (main):
2174 * test/watch.c: (check_messages):
2175 Make messages sendable and receivable for real.
2177 2003-01-07 Anders Carlsson <andersca@codefactory.se>
2179 * dbus/dbus-marshal.c: (_dbus_marshal_double),
2180 (_dbus_marshal_string), (_dbus_marshal_byte_array):
2181 * dbus/dbus-message.c: (dbus_message_append_int32),
2182 (dbus_message_append_uint32), (dbus_message_append_double),
2183 (dbus_message_append_string), (dbus_message_append_byte_array):
2184 Handle OOM restoration.
2186 2003-01-07 Anders Carlsson <andersca@codefactory.se>
2188 * dbus/dbus-marshal.c: (_dbus_marshal_string),
2189 (_dbus_demarshal_string), (_dbus_marshal_test):
2190 * dbus/dbus-marshal.h:
2191 * dbus/dbus-message.c: (dbus_message_get_name),
2192 Document these functions.
2194 (dbus_message_append_int32), (dbus_message_append_uint32),
2195 (dbus_message_append_double), (dbus_message_append_string),
2196 (dbus_message_append_byte_array):
2197 * dbus/dbus-message.h:
2198 Add functions for adding message fields of different types.
2200 * dbus/dbus-protocol.h:
2201 Add the different types.
2203 2003-01-05 Havoc Pennington <hp@pobox.com>
2205 * bus/connection.c: implement routines for handling connections,
2206 first thing is keeping a list of owned services on each connection
2207 and setting up watches etc.
2209 * bus/services.c: implement a mapping from service names to lists
2212 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
2214 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
2215 to use static mutexes for global data
2217 * dbus/dbus-connection.c (dbus_connection_set_data): add new
2218 collection of functions to set/get application-specific data
2219 on the DBusConnection.
2221 2003-01-04 Havoc Pennington <hp@pobox.com>
2223 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
2224 (_dbus_poll): new function
2226 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
2229 * bus/loop.c: initial code for the daemon main loop
2231 2003-01-04 Havoc Pennington <hp@pobox.com>
2233 * test/watch.c (error_handler): make it safe if the error handler
2234 is called multiple times (if we s/error handler/disconnect
2235 handler/ we should just guarantee it's called only once)
2237 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
2238 error handler on disconnect (it's quite possible we should
2239 just change the error handler to a "disconnect handler," I'm
2240 not sure we have any other meaningful errors)
2242 * configure.in: check for getpwnam_r
2244 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
2245 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
2246 mechanism as in SASL spec, using socket credentials
2248 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
2249 (_dbus_send_credentials_unix_socket): new function
2251 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
2253 (_dbus_write): only check errno if <0 returned
2254 (_dbus_write_two): ditto
2256 2003-01-02 Anders Carlsson <andersca@codefactory.se>
2258 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
2259 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
2260 (_dbus_marshal_test):
2261 * dbus/dbus-marshal.h:
2262 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
2263 to _dbus_marshal_utf8_string. Also fix some tests.
2265 2002-12-28 Harri Porten <porten@kde.org>
2267 * configure.in: added check for C++ compiler and a very cheesy
2268 check for the Qt integration
2270 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
2272 * qt/Makefile.am: added
2274 * qt/.cvsignore: added
2276 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
2277 latter, added #ifdef QT_THREAD_SUPPORT guard.
2279 * dbus/Makefile.am: added missing headers for make dist
2281 2002-12-28 Kristian Rietveld <kris@gtk.org>
2283 * dbus/Makefile.am: fixup export-symbols-regex.
2285 2002-12-27 Anders Carlsson <andersca@codefactory.se>
2287 * acinclude.m4: Add this file and put the
2288 PKG_CHECK_MODULE macro in it.
2290 2002-12-27 Anders Carlsson <andersca@codefactory.se>
2292 * dbus/dbus-marshal.c: (_dbus_marshal_string),
2293 (_dbus_demarshal_double), (_dbus_demarshal_int32),
2294 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
2295 (_dbus_marshal_test):
2296 Make the demarshalling routines align the pos argument.
2297 Add string marshalling tests and fix the obvious bugs
2300 2002-12-26 Havoc Pennington <hp@pobox.com>
2302 * dbus/dbus-auth.c: fixes fixes fixes
2304 * dbus/dbus-transport-unix.c: wire up support for
2305 encoding/decoding data on the wire
2307 * dbus/dbus-auth.c (_dbus_auth_encode_data)
2308 (_dbus_auth_decode_data): append to target string
2309 instead of nuking it.
2311 2002-12-26 Havoc Pennington <hp@pobox.com>
2313 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
2314 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
2317 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
2318 avoid swap_bytes() overhead (ignoring possible assembly stuff for
2319 now). Main point is because I wanted unpack_uint32 to implement
2321 (_dbus_verbose_bytes): new function
2323 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
2325 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
2326 mechanism to handle a corrupt message stream
2327 (_dbus_message_loader_new): fix preallocation to only prealloc,
2330 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
2331 (_dbus_string_test): enhance tests for copy/move and fix the
2334 * dbus/dbus-transport-unix.c: Hold references in more places to
2335 avoid reentrancy problems
2337 * dbus/dbus-transport.c: ditto
2339 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
2340 leak reference count in no-message case
2342 * test/watch.c (do_mainloop): handle adding/removing watches
2343 during iteration over the watches. Also, ref the connection/server
2344 stored on a watch, so we don't try to mangle a destroyed one.
2346 * dbus/dbus-transport-unix.c (do_authentication): perform
2349 * dbus/dbus-auth.c (get_state): add a state
2350 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
2351 (_dbus_auth_get_unused_bytes): append the unused bytes
2352 to the passed in string, rather than prepend
2354 * dbus/dbus-transport.c (_dbus_transport_init_base): create
2355 the auth conversation DBusAuth
2357 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
2358 (_dbus_transport_new_for_domain_socket): when creating a
2359 transport, pass in whether it's a client-side or server-side
2360 transport so we know which DBusAuth to create
2362 2002-12-03 Havoc Pennington <hp@pobox.com>
2364 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
2365 _after_ finalizing the derived members
2366 (unix_connection_set): unref watch if we fail to add it
2368 * dbus/dbus-connection.c (dbus_connection_unref): delete the
2369 transport first, so that the connection owned by the
2370 transport will be valid as the transport finalizes.
2372 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
2373 if necessary, and remove watches from the connection.
2375 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
2377 2002-12-26 Anders Carlsson <andersca@codefactory.se>
2379 * dbus/dbus-marshal.c: (_dbus_marshal_string),
2380 (_dbus_demarshal_double), (_dbus_demarshal_int32),
2381 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
2382 (_dbus_marshal_test):
2383 * dbus/dbus-marshal.h:
2384 Add string marshal functions and have the demarshal functions
2385 return the new position.
2387 2002-12-25 Havoc Pennington <hp@pobox.com>
2389 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
2390 it is a simple protocol that just maps directly to SASL.
2392 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
2393 initial implementation, not actually used yet.
2395 * dbus/dbus-string.c (_dbus_string_find): new function
2396 (_dbus_string_equal): new function
2397 (_dbus_string_base64_encode): new function
2398 (_dbus_string_base64_decode): new function
2400 2002-12-25 Anders Carlsson <andersca@codefactory.se>
2403 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
2404 (_dbus_marshal_int32), (_dbus_marshal_uint32),
2405 (_dbus_demarshal_double), (_dbus_demarshal_int32),
2406 (_dbus_demarshal_uint32), (_dbus_marshal_test):
2407 * dbus/dbus-marshal.h:
2408 * dbus/dbus-protocol.h:
2409 * dbus/dbus-test.c: (main):
2411 Add un-optimized marshalling/demarshalling routines.
2413 2002-12-25 Harri Porten <porten@kde.org>
2415 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
2417 2002-12-24 Zack Rusin <zack@kde.org>
2419 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
2420 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
2423 2002-12-24 Havoc Pennington <hp@pobox.com>
2425 * glib/dbus-gthread.c: fix include
2427 * glib/dbus-glib.h: rename DBusMessageHandler for now.
2428 I think glib API needs to change, though, as you don't
2429 want to use DBusMessageFunction, you want to use the
2430 DBusMessageHandler object. Probably
2431 dbus_connection_open_with_g_main_loop()
2432 and dbus_connection_setup_g_main_loop() or something like that
2433 (but think of better names...) that just create a connection
2434 that has watch/timeout functions etc. already set up.
2436 * dbus/dbus-connection.c
2437 (dbus_connection_send_message_with_reply): new function just to
2438 show how the message handler helps us deal with replies.
2440 * dbus/dbus-list.c (_dbus_list_remove_last): new function
2442 * dbus/dbus-string.c (_dbus_string_test): free a string that
2445 * dbus/dbus-hash.c: use memory pools for the hash entries
2446 (rebuild_table): be more paranoid about overflow, and
2447 shrink table when we can
2448 (_dbus_hash_test): reduce number of sprintfs and write
2449 valid C89. Add tests for case where we grow and then
2450 shrink the hash table.
2452 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
2454 * dbus/dbus-connection.c (dbus_connection_register_handler)
2455 (dbus_connection_unregister_handler): new functions
2457 * dbus/dbus-message.c (dbus_message_get_name): new
2459 * dbus/dbus-list.c: fix docs typo
2461 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
2462 an object representing a handler for messages.
2464 2002-12-16 Anders Carlsson <andersca@codefactory.se>
2467 * glib/dbus-gthread.c: (dbus_gthread_init):
2468 Don't use the gdbus prefix for public functions.
2470 2002-12-16 Anders Carlsson <andersca@codefactory.se>
2474 Add GLib checks and fixup .pc files
2478 * glib/dbus-gmain.c: (gdbus_connection_prepare),
2479 (gdbus_connection_check), (gdbus_connection_dispatch),
2480 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
2481 (dbus_connection_gsource_new):
2482 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
2483 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
2484 * glib/test-dbus-glib.c: (message_handler), (main):
2487 2002-12-15 Harri Porten <porten@kde.org>
2489 * autogen.sh: check for libtoolize before attempting to use it
2491 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
2494 * .cvsignore: ignore more stamp files
2496 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
2498 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
2499 without make install.
2501 2002-12-15 Havoc Pennington <hp@pobox.com>
2503 * dbus/dbus-threads.c: add thread stubs that a higher library
2504 layer can fill in. e.g. the GLib wrapper might fill them in with
2505 GThread stuff. We still need to use this thread API to
2506 thread-safe-ize the library.
2508 2002-12-12 Havoc Pennington <hp@pobox.com>
2510 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
2511 below new interfaces and include fewer system headers.
2513 * dbus/dbus-sysdeps.c (_dbus_read): new function
2514 (_dbus_write): new function
2515 (_dbus_write_two): new function
2516 (_dbus_connect_unix_socket): new function
2517 (_dbus_listen_unix_socket): new function
2519 * dbus/dbus-message-internal.h: change interfaces to use
2522 2002-12-11 Havoc Pennington <hp@pobox.com>
2524 * dbus/dbus-types.h: add dbus_unichar
2526 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
2528 * dbus/dbus-connection.c (dbus_connection_send_message): return
2531 * dbus/dbus-transport.c: include dbus-watch.h
2533 * dbus/dbus-connection.c: include dbus-message-internal.h
2535 * HACKING: add file with coding guidelines stuff.
2537 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
2538 handling here, for security purposes (as in vsftpd). Not actually
2539 using this class yet.
2541 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
2542 system/libc usage here, as in vsftpd, for ease of auditing (and
2543 should also simplify portability). Haven't actually moved all the
2544 system/libc usage into here yet.
2546 2002-11-25 Havoc Pennington <hp@pobox.com>
2548 * dbus/dbus-internals.c (_dbus_verbose): fix to not
2549 always print the first verbose message.
2551 2002-11-24 Havoc Pennington <hp@pobox.com>
2553 * test/echo-client.c, test/echo-server.c: cheesy test
2556 * configure.in (AC_CHECK_FUNCS): check for writev
2558 * dbus/dbus-message.c (_dbus_message_get_network_data): new
2561 * dbus/dbus-list.c (_dbus_list_foreach): new function
2563 * dbus/dbus-internals.c (_dbus_verbose): new function
2565 * dbus/dbus-server.c, dbus/dbus-server.h: public object
2566 representing a server that listens for connections.
2568 * dbus/.cvsignore: create
2570 * dbus/dbus-errors.h, dbus/dbus-errors.c:
2571 public API for reporting errors
2573 * dbus/dbus-connection.h, dbus/dbus-connection.c:
2574 public object representing a connection that
2575 sends/receives messages. (Same object used for
2576 both client and server.)
2578 * dbus/dbus-transport.h, dbus/dbus-transport.c:
2579 Basic abstraction for different kinds of stream
2580 that we might read/write messages from.
2582 2002-11-23 Havoc Pennington <hp@pobox.com>
2584 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
2587 * dbus/dbus-test.c (main): add list test, and include
2588 dbus-test.h as intended
2590 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
2591 (_dbus_hash_table_remove_int): return value indicates
2592 whether the entry existed to remove
2594 * dbus/dbus-list.c: add linked list utility class,
2597 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
2600 2002-11-23 Havoc Pennington <hp@pobox.com>
2602 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
2603 DBUS_END_DECLS to nothing, that should fix this once and for all
2605 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
2607 * dbus/dbus-message.c, dbus/dbus-hash.c:
2608 add some missing @brief
2610 2002-11-23 Havoc Pennington <hp@pobox.com>
2612 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
2613 to avoid confusing Doxygen
2615 * dbus/dbus-hash.c: @} not }@
2617 * dbus/dbus-message.c (struct DBusMessage): split out
2620 2002-11-23 Havoc Pennington <hp@pobox.com>
2622 * configure.in: pile on more warning flags if using gcc
2624 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
2625 to document static functions
2627 * configure.in: add summary to end of configure so it
2628 looks nice and attractive
2630 * dbus/dbus-hash.c: finish implementation and write unit
2633 * configure.in: add --enable-tests to enable unit tests
2635 * dbus/dbus-test.c: test program to run unit tests
2636 for all files in dbus/*, initially runs a test for
2639 * dbus/dbus-internals.h: file to hold some internal utility stuff
2641 2002-11-22 Havoc Pennington <hp@redhat.com>
2643 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
2644 "ported" away from Tcl
2646 * dbus/dbus-types.h: header for types such as dbus_bool_t
2648 2002-11-22 Havoc Pennington <hp@redhat.com>
2650 * dbus/dbus.h: fixups for doc warnings
2652 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
2654 (QUIET): make it quiet so we can see warnings
2656 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
2658 2002-11-22 Havoc Pennington <hp@redhat.com>
2660 * Makefile.am: include "Doxyfile" target in all-local
2662 * configure.in: generate the Doxyfile
2664 * Doxyfile.in: move Doxyfile here, so we can use
2665 configure to generate a Doxyfile with the right
2668 2002-11-22 Havoc Pennington <hp@redhat.com>
2670 * dbus/dbus-message.c: move inline docs into .c file
2672 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
2673 so all docs are under doc/
2674 (MAN_EXTENSION): generate man pages. Use extension
2675 ".3dbus" which matches ".3qt" on my system,
2676 I guess this is OK, I don't know really.
2677 (FILE_PATTERNS): look for .c files not .h, makes sense
2680 2002-11-22 Havoc Pennington <hp@pobox.com>
2682 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
2683 because any app can be a server, and any app can be a client,
2684 the bus is a special kind of server.
2686 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
2688 * Doxyfile : adding. Still needs Makefile rules to be generated
2689 automatically (just run "doxygen" in the toplevel dir for now to
2692 * dbus/dbus-message.h : Adding sample docs (javadoc since
2693 resembles gtk-doc a little more)
2695 * dbus/dbus.h : Adding sample docs
2697 2002-11-21 Havoc Pennington <hp@redhat.com>
2699 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
2700 so we can allow ourselves to include files directly,
2701 instead of having to use dbus.h
2703 * dbus/dbus.h: fill in
2705 * dbus/dbus-message.h: sketch out a sample header file.
2706 Include griping if you include it directly instead of
2709 * dbus/dbus-macros.h: new file with macros for extern "C",
2710 TRUE/FALSE, NULL, etc.
2712 * doc/file-boilerplate.c: put include guards in here
2714 2002-11-21 Havoc Pennington <hp@redhat.com>
2716 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
2718 * COPYING: include the GPL as well, and license code
2719 under both AFL and GPL.
2721 2002-11-21 Havoc Pennington <hp@redhat.com>
2723 * acconfig.h: get rid of this
2725 * autogen.sh (run_configure): add --no-configure option
2727 * configure.in: remove AC_ARG_PROGRAM to make
2728 autoconf complain less. add AC_PREREQ.
2729 add AC_DEFINE third arg.
2731 2002-11-21 Anders Carlsson <andersca@codefactory.se>
2734 Fix references so we can distcheck.
2736 2002-11-21 Havoc Pennington <hp@redhat.com>
2738 * Initial module creation