1 2003-02-02 Alexander Larsson <alexl@redhat.com>
3 * dbus/dbus-watch.c (dbus_watch_get_flags):
4 Add note in the docs that ERROR or HANGUP won't be returned
5 and are assumed always on.
7 * glib/dbus-gmain.c (add_watch):
8 Always add IO_ERR | IO_HUP
10 * dbus/dbus-message.h:
11 Add semicolon after dbus_message_iter_get_string_array().
12 Makes qt code build again
14 2003-02-01 Anders Carlsson <andersca@codefactory.se>
16 * bus/driver.c: (create_unique_client_name),
17 (bus_driver_handle_hello):
18 Don't take a name, just use a numeric id to identify
22 * dbus/dbus-bus.c: (dbus_bus_register_client),
23 (dbus_bus_acquire_service), (dbus_bus_service_exists):
25 Add new convenience functions for communicating with the bus.
27 * dbus/dbus-message.h:
29 * dbus/dbus-protocol.h:
32 2003-02-01 Alexander Larsson <alexl@redhat.com>
34 * dbus/dbus-message.c (dbus_message_append_fields):
35 Add some more doc comments.
37 2003-02-01 Havoc Pennington <hp@pobox.com>
39 * dbus/dbus-break-loader.c (randomly_modify_length): change
40 a 4-byte value in the message as if it were a length
42 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): don't set
43 execute bit on saved files
45 2003-02-01 Havoc Pennington <hp@pobox.com>
47 * dbus/dbus-break-loader.c (main): new program to find messages
48 that break the loader.
50 * dbus/dbus-sysdeps.c (_dbus_string_append_uint): new function
51 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): new function
53 * dbus/dbus-string.c (_dbus_string_set_byte): new
55 2003-01-31 Havoc Pennington <hp@pobox.com>
57 * dbus/dbus-message.c: refactor the test code to be more general,
58 in preparation for writing a "randomly permute test cases to
59 try to break the loader" program.
61 2003-01-31 Havoc Pennington <hp@pobox.com>
63 * doc/dbus-specification.sgml: work on the specification
65 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): check
66 the protocol version of the message.
68 * dbus/dbus-protocol.h: drop special _REPLY names, the spec
69 no longer specifies that.
70 (DBUS_SERVICE_REPLY_SERVICE_EXISTS): fix flags (1/2/4/8 not
73 * dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos): add missing
74 "break" for DBUS_TYPE_NIL, remove @todo
76 2003-01-31 Havoc Pennington <hp@pobox.com>
78 * dbus/dbus-message.c (dbus_message_set_is_error_reply): rename
79 just set_is_error/get_is_error as this is a commonly-used
80 function, and write docs.
82 2003-01-31 Anders Carlsson <andersca@codefactory.se>
84 * dbus/dbus-address.c: (dbus_address_entry_free):
85 Free key and value lists.
87 * dbus/dbus-internals.c: (_dbus_type_to_string):
88 Add the types we didn't have.
90 * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
91 (_dbus_marshal_validate_arg):
94 * dbus/dbus-message.c: (dbus_message_set_sender):
95 Remove todo about being able to set sender to NULL.
97 (dbus_message_set_is_error_reply),
98 (dbus_message_get_is_error_reply):
99 * dbus/dbus-message.h:
102 * dbus/dbus-protocol.h:
103 Add error reply flag.
105 * test/data/valid-messages/opposite-endian.message:
106 Add NIL type to test.
108 2003-01-31 Havoc Pennington <hp@pobox.com>
110 * doc/dbus-specification.sgml: fully specify the header. Add
111 flags and major protocol version, and change header/body len to
114 * dbus/dbus-message-builder.c (append_saved_length): append length
117 * dbus/dbus-message.c (dbus_message_create_header): change header
118 length and body length to unsigned. Add the new fields from the
120 (_dbus_message_loader_return_buffer): unsigned header/body len
122 2003-01-30 Havoc Pennington <hp@pobox.com>
124 * dbus/dbus-auth.c: rework to use only REJECTED, no
127 * doc/dbus-sasl-profile.txt: drop MECHANISMS and just
128 use REJECTED, suggested by Mark McLoughlin
130 2003-01-30 Havoc Pennington <hp@pobox.com>
132 * dbus/dbus-server.c (dbus_server_listen): @todo about how we need
133 a better way to report errors here. e.g. "unix address lacks
134 path" or something. also "no such file" when the path doesn't
137 * dbus/dbus-address.c (dbus_address_entries_free): add @todo about
139 (dbus_parse_address): add @todo about documenting address format,
140 and allowing , and ; to be escaped
142 2003-01-30 Anders Carlsson <andersca@codefactory.se>
145 Add dbus-address.[ch]
147 * dbus/dbus-address.c: (dbus_address_entry_free),
148 (dbus_address_entries_free), (create_entry),
149 (dbus_address_entry_get_method), (dbus_address_entry_get_value),
150 (dbus_parse_address), (_dbus_address_test):
151 * dbus/dbus-address.h:
152 New files for dealing with address parsing.
154 * dbus/dbus-connection.c:
155 Document timeout functions.
157 * dbus/dbus-message.c:
158 Document dbus_message_new_from_message.
160 * dbus/dbus-server-debug.c:
163 * dbus/dbus-server.c: (dbus_server_listen):
164 Parse address and use correct server implementation.
166 * dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
167 * dbus/dbus-string.h:
168 New function with test.
170 * dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
174 * dbus/dbus-transport-debug.c:
177 * dbus/dbus-transport.c: (_dbus_transport_open):
178 Parse address and use correct transport implementation.
180 2003-01-30 Havoc Pennington <hp@pobox.com>
182 * dbus/dbus-message.c: use message->byte_order instead of
183 DBUS_COMPILER_BYTE_ORDER throughout.
184 (dbus_message_create_header): pad header to align the
185 start of the body of the message to 8-byte boundary
187 * dbus/dbus-marshal.h: make all the demarshalers take const
188 DBusString arguments.
190 * dbus/dbus-message.c (_dbus_message_loader_return_buffer):
191 validate message args here, so we don't have to do slow validation
192 later, and so we catch bad messages as they are incoming. Also add
193 better checks on header_len and body_len. Also fill in
196 * dbus/dbus-string.c (_dbus_string_validate_utf8): new (not
197 implemented properly)
198 (_dbus_string_validate_nul): new function to check all-nul
200 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): rename
201 get_arg_end_pos and remove all validation
202 (_dbus_marshal_validate_arg): actually do validation here.
204 2003-01-29 Havoc Pennington <hp@pobox.com>
206 * dbus/dbus-message.c (check_message_handling): fix assertion
207 failure on set_client_serial
209 2003-01-28 Havoc Pennington <hp@pobox.com>
211 * dbus/dbus-server-debug.c: Add doc section comments
213 * dbus/dbus-transport-debug.c: add doc section comments
215 2003-01-28 Havoc Pennington <hp@redhat.com>
217 * dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
218 the reverse order from how I had it
219 (_dbus_string_base64_encode): reverse encoding order. I was
220 basically byteswapping everything during encoding.
222 2003-01-28 Anders Carlsson <andersca@codefactory.se>
224 * dbus/dbus-connection-internal.h:
225 * dbus/dbus-connection.c: (_dbus_connection_add_timeout),
226 (_dbus_connection_remove_timeout):
227 Add functions for adding and removing timeouts.
229 * dbus/dbus-message.c: (dbus_message_new_from_message):
230 Add new function that takes a message and creates an exact
231 copy of it, but with the refcount set to 1.
232 (check_message_handling):
235 * dbus/dbus-server-protected.h:
236 * dbus/dbus-server.c: (_dbus_server_init_base),
237 (_dbus_server_finalize_base), (_dbus_server_add_timeout),
238 (dbus_server_set_timeout_functions):
239 (_dbus_server_remove_timeout):
240 New functions so that a server can add and remove timeouts.
242 (dbus_server_listen):
243 Add commented out call to dbus_server_debug_new.
245 * dbus/dbus-timeout.c: (_dbus_timeout_new):
246 Actually set the handler, doh.
248 * dbus/dbus-transport.c: (_dbus_transport_open):
249 Add commented out call to dbus_transport_debug_client_new.
252 Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
254 2003-01-28 Havoc Pennington <hp@pobox.com>
256 * dbus/dbus-message.c (check_message_handling): function to check
257 on the loaded message, iterates over it etc.
259 2003-01-28 Havoc Pennington <hp@pobox.com>
261 * test/Makefile.am (dist-hook): fix make distdir
263 * dbus/Makefile.am (TESTS_ENVIRONMENT): fix make check
265 2003-01-27 Havoc Pennington <hp@pobox.com>
267 * dbus/dbus-mempool.c (time_for_size): replace printf with
270 * dbus/dbus-message-builder.c (_dbus_message_data_load): allow
271 empty lines; fix the SAVE_LENGTH stuff to be
272 START_LENGTH/END_LENGTH so it actually works; couple other
275 * test/Makefile.am (dist-hook): add dist-hook for .message files
277 * dbus/dbus-string.c (DBUS_STRING_COPY_PREAMBLE): source of a copy
278 can be constant or locked.
279 (_dbus_string_free): allow freeing a const string as
282 * dbus/dbus-sysdeps.c (_dbus_concat_dir_and_file): utility
284 * dbus/dbus-test-main.c (main): take an argument which is the
285 directory containing test data
287 * dbus/dbus-message.c (_dbus_message_test): pass a test_data_dir
288 argument to this and load all the messages in test/data/
289 checking that they can be loaded or not loaded as appropriate.
291 2003-01-27 Anders Carlsson <andersca@codefactory.se>
293 * bus/dispatch.c: (bus_dispatch_message_handler):
294 Dispatch messages sent to services.
296 * bus/driver.c: (bus_driver_send_service_deleted),
297 (bus_driver_send_service_created), (bus_driver_send_service_lost),
298 (bus_driver_send_service_acquired):
299 Add helper functions for sending service related messages.
301 (bus_driver_send_welcome_message):
302 Send HELLO_REPLY instead of WELCOME.
304 (bus_driver_handle_list_services):
305 Send LIST_SERVICES_REPLY instead of SERVICES.
307 (bus_driver_handle_own_service),
308 (bus_driver_handle_service_exists):
309 New message handlers.
311 (bus_driver_handle_message):
312 Invoke new message handlers.
314 (bus_driver_remove_connection):
315 Don't remove any services here since that's done automatically
316 by bus_service_remove_owner now.
319 New function signatures.
321 * bus/services.c: (bus_service_add_owner):
322 Send ServiceAcquired message if we're the only primary owner.
324 (bus_service_remove_owner):
325 Send ServiceAcquired/ServiceLost messages.
327 (bus_service_set_prohibit_replacement),
328 (bus_service_get_prohibit_replacement):
329 Functions for setting prohibit replacement.
331 (bus_service_has_owner):
332 New function that checks if a connection is in the owner queue of
336 Add new function signatures.
338 * dbus/dbus-list.c: (_dbus_list_test):
339 Add tests for _dbus_list_remove_last and traversing the list backwards.
342 Fix a typo in _dbus_list_get_prev_link, if we're at the first element we can't
343 go any further, so return NULL then.
345 * dbus/dbus-protocol.h:
346 Add new messages, service flags and service replies.
348 2003-01-26 Havoc Pennington <hp@pobox.com>
350 * dbus/dbus-message-builder.c: implement, completely untested.
352 * test/data/*: add data to be used in testing.
353 ".message" files are our simple loadable text format.
354 ".message-raw" will be binary dumps of messages.
356 * dbus/dbus-string.c (_dbus_string_starts_with_c_str): new
358 2003-01-26 Havoc Pennington <hp@pobox.com>
360 * dbus/dbus-sysdeps.c (_dbus_file_get_contents): new function
362 * dbus/dbus-errors.c (dbus_result_to_string): add
365 * dbus/dbus-message-builder.c: new file, will contain code to load
366 up messages from files. Not implemented yet.
368 2003-01-26 Havoc Pennington <hp@pobox.com>
370 * dbus/dbus-message.c (dbus_message_set_sender): support deleting
371 the sender by setting to NULL
373 2003-01-26 Havoc Pennington <hp@pobox.com>
375 The unit tests pass, but otherwise untested. If it breaks, the
376 tests should have been better. ;-)
378 * bus/driver.c (bus_driver_handle_hello): return if we disconnect
381 * dbus/dbus-message.c: redo everything so we maintain
382 message->header as the only copy of the various fields.
383 This avoids the possibility of out-of-memory in some cases,
384 for example dbus_message_lock() can't run out of memory anymore,
385 and avoids extra copying. Figured I may as well go ahead and do
386 this since it was busted for dbus_message_lock to not return
387 failure on OOM, and dbus_message_write_header was totally
388 unchecked for OOM. Also fixed some random other bugs.
390 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): verify
391 that strings are nul-terminated. Also, end_pos can be equal
392 to string length just not greater than, I think.
393 (_dbus_marshal_set_int32): new function
394 (_dbus_marshal_set_uint32): new function
395 (_dbus_marshal_set_string): new function
397 * dbus/dbus-connection.c (_dbus_connection_new_for_transport): fix
398 a warning, init timeout_list to NULL
399 (dbus_connection_send_message): don't use uninitialized variable
402 * dbus/dbus-string.c (_dbus_string_replace_len): new function
404 2003-01-26 Anders Carlsson <andersca@codefactory.se>
406 * bus/driver.c: (bus_driver_handle_hello),
407 (bus_driver_send_welcome_message):
410 2003-01-26 Anders Carlsson <andersca@codefactory.se>
412 * dbus/dbus-auth.c: (process_auth), (_dbus_auth_unref):
413 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
414 (dbus_connection_unref):
415 * dbus/dbus-marshal.c: (_dbus_marshal_test):
416 * dbus/dbus-message.c: (dbus_message_unref),
419 (dbus_message_get_fields):
420 Remove debugging printout.
422 (_dbus_message_loader_return_buffer):
423 Don't store the header string.
425 (_dbus_message_test):
428 2003-01-26 Richard Hult <rhult@codefactory.se>
430 * glib/dbus-gmain.c (dbus_connection_dispatch): Traverse a copy of
431 the file descriptor list, since it can change under us.
433 2003-01-25 Anders Carlsson <andersca@codefactory.se>
435 * glib/dbus-gmain.c: (dbus_connection_prepare),
436 (dbus_connection_check), (dbus_connection_dispatch), (add_watch),
437 (remove_watch), (dbus_connection_hookup_with_g_main):
438 Rewrite the glib handling to use its own GSource instead of a
439 GIOChannel so we can catch messages put in the queue while waiting
442 2003-01-25 Anders Carlsson <andersca@codefactory.se>
445 * bus/connection.c: (connection_disconnect_handler),
446 (connection_watch_callback), (bus_connection_setup):
447 * bus/dispatch.c: (send_one_message),
448 (bus_dispatch_broadcast_message), (bus_dispatch_message_handler),
449 (bus_dispatch_add_connection), (bus_dispatch_remove_connection):
451 * bus/driver.c: (bus_driver_send_service_deleted),
452 (bus_driver_send_service_created), (bus_driver_handle_hello),
453 (bus_driver_send_welcome_message),
454 (bus_driver_handle_list_services), (bus_driver_remove_connection),
455 (bus_driver_handle_message):
457 Refactor code, put the message dispatching in its own file. Use
458 _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client
461 2003-01-25 Anders Carlsson <andersca@codefactory.se>
463 * dbus/dbus-internals.h:
464 Add _DBUS_HANDLE_OOM macro, it doesn't do anything currently.
466 * dbus/dbus-message.c: (dbus_message_get_sender):
467 * dbus/dbus-message.h:
468 Implement dbus_message_get_sender.
470 * dbus/dbus-protocol.h:
471 Add message and service defines.
473 2003-01-25 Anders Carlsson <andersca@codefactory.se>
475 * dbus/dbus-connection.c: (dbus_connection_send_message):
476 * dbus/dbus-message-internal.h:
477 * dbus/dbus-message.c: (_dbus_message_get_client_serial),
478 (dbus_message_write_header):
479 Remove _dbus_messag_unlock and don't set the client serial on a
480 message if one already exists.
482 2003-01-24 Havoc Pennington <hp@pobox.com>
484 * dbus/dbus-list.c (alloc_link): put a thread lock on the global
487 * bus/driver.c (bus_driver_handle_list_services): fix a leak
490 2003-01-25 Anders Carlsson <andersca@codefactory.se>
492 * dbus/dbus-list.c: (alloc_link), (free_link):
493 Use a memory pool for the links.
495 2003-01-25 Anders Carlsson <andersca@codefactory.se>
497 * bus/connection.c: (bus_connection_foreach):
499 Add new bus_connection_foreach function.
501 * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
502 Add function that broadcasts a message to all clients.
504 (bus_driver_send_service_created), (bus_driver_handle_hello),
505 (bus_driver_send_welcome_message),
506 (bus_driver_handle_list_services), (bus_driver_message_handler):
507 Implement functions that take care of listing services, and notifying
508 clients when new services are created.
510 * bus/services.c: (bus_services_list):
512 Add new function that returns an array of strings with the currently
517 Update copyright year.
519 2003-01-25 Anders Carlsson <andersca@codefactory.se>
521 * dbus/dbus-connection.c: (dbus_connection_send_message):
522 Unlock the message in case it was sent earlier.
524 (dbus_connection_send_message_with_reply_and_block):
525 Remove the reply message from the list.
527 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
528 Set array_len and new_pos correctly.
530 (_dbus_marshal_test):
533 * dbus/dbus-message-internal.h:
534 * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
535 New function that returns the reply serial.
537 (_dbus_message_unlock):
538 New function that unlocks a message and resets its header.
540 (dbus_message_append_string_array),
541 (dbus_message_get_fields_valist),
542 (dbus_message_iter_get_field_type),
543 (dbus_message_iter_get_string_array),
544 (dbus_message_get_fields),
545 (dbus_message_append_fields_valist):
546 Handle string arrays.
548 (dbus_message_set_sender):
549 Make this function public since the bus daemon needs it.
551 (decode_header_data):
552 Set the reply serial to -1 initially.
554 * dbus/dbus-message.h:
555 Add dbus_message_set_sender.
557 2003-01-24 Havoc Pennington <hp@pobox.com>
559 * doc/dbus-specification.sgml: add some stuff
561 2003-01-22 Havoc Pennington <hp@pobox.com>
563 * doc/dbus-specification.sgml: Start to document the protocol.
565 2003-01-22 Havoc Pennington <hp@pobox.com>
567 * dbus/dbus-connection.c
568 (dbus_connection_send_message_with_reply_and_block): add some @todo
570 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
572 2003-01-21 Havoc Pennington <hp@pobox.com>
574 (patch untested because can't compile)
576 * bus/driver.c (create_unique_client_name): make this function
577 never recycle client names. Also, caller should initialize
580 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
582 2003-01-21 Anders Carlsson <andersca@codefactory.se>
584 * dbus/dbus-marshal.c: (_dbus_marshal_double),
585 (_dbus_marshal_int32), (_dbus_marshal_uint32),
586 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
587 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
588 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
589 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
590 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
591 * dbus/dbus-marshal.h:
592 * dbus/dbus-protocol.h:
593 Add support for marshalling and demarshalling integer, double
596 2003-01-21 Anders Carlsson <andersca@codefactory.se>
601 * bus/connection.c: (connection_disconnect_handler):
602 Remove the connection from the bus driver's list.
604 (connection_watch_callback): Dispatch messages.
606 (free_connection_data): Free connection name.
608 (bus_connection_setup): Add connection to the bus driver's list.
609 (bus_connection_remove_owned_service):
610 (bus_connection_set_name), (bus_connection_get_name):
611 Add functions for setting and getting the connection's name.
614 Add function headers.
616 * bus/driver.c: (create_unique_client_name),
617 (bus_driver_handle_hello_message),
618 (bus_driver_send_welcome_message), (bus_driver_message_handler),
619 (bus_driver_add_connection), (bus_driver_remove_connection):
622 * bus/services.c: (bus_service_free):
624 New file that handles communication and registreation with the bus
627 2003-01-21 Anders Carlsson <andersca@codefactory.se>
629 * dbus/dbus-connection.c: (dbus_connection_send_message):
630 Add a new client_serial parameter.
632 (dbus_connection_send_message_with_reply):
633 Remove a @todo since we've implemented the blocking function.
635 (dbus_connection_send_message_with_reply_and_block):
636 New function that sends a message and waits for a reply and
637 then returns the reply.
639 * dbus/dbus-connection.h:
642 * dbus/dbus-errors.c: (dbus_result_to_string):
643 * dbus/dbus-errors.h:
646 * dbus/dbus-message-internal.h:
647 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
648 (_dbus_message_set_sender), (dbus_message_write_header),
649 (dbus_message_new_reply), (decode_header_data),
650 (_dbus_message_loader_return_buffer), (_dbus_message_test):
651 * dbus/dbus-message.h:
652 Add new functions that set the reply serial and sender.
653 Also marshal and demarshal them correctly and add test.
655 * dbus/dbus-protocol.h:
656 Add new DBUS_MESSAGE_TYPE_SENDER.
659 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
660 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
661 (dbus_connection_hookup_with_g_main):
662 * glib/test-dbus-glib.c: (main):
663 Rewrite to use GIOChannel and remove the GSource crack.
665 * test/echo-client.c: (main):
666 * test/watch.c: (check_messages):
667 Update for changed APIs
669 2003-01-19 Anders Carlsson <andersca@codefactory.se>
671 * dbus/Makefile.am: Add dbus-timeout.[cħ]
673 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
674 Create a DBusTimeoutList.
675 (dbus_connection_set_timeout_functions): Add new function to
676 set timeout callbacks
678 * dbus/dbus-connection.h: Add public DBusTimeout API.
680 * dbus/dbus-message.c: (dbus_message_get_service):
681 * dbus/dbus-message.h: New function.
683 * dbus/dbus-server.c: Fix small doc typo.
685 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
687 2003-01-19 Anders Carlsson <andersca@codefactory.se>
689 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
690 of the string, just as long as specified.
692 2003-01-19 Havoc Pennington <hp@pobox.com>
694 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
697 * dbus/dbus-server.c (dbus_server_set_max_connections)
698 (dbus_server_get_max_connections, dbus_server_get_n_connections):
699 keep track of current number of connections, and add API for
700 setting a max (but haven't implemented enforcing the max yet)
702 2003-01-18 Havoc Pennington <hp@pobox.com>
704 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
705 reading/writing if read_watch != NULL or write_watch != NULL.
707 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
708 the message loader code to actually load message->header and
709 message->body into the newly-created message.
711 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
714 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
715 (dbus_connection_get_max_message_size)
716 (dbus_connection_set_max_live_messages_size)
717 (dbus_connection_get_max_live_messages_size): implement some
718 resource limitation functions
720 * dbus/dbus-resources.c: new file implementing some of the
721 resource limits stuff
723 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
724 missing docs, add @todo to handle OOM etc.
726 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
729 2003-01-18 Havoc Pennington <hp@pobox.com>
731 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
732 connection if it hasn't been already.
734 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
735 replace with DisconnectFunction.
737 2003-01-18 Havoc Pennington <hp@pobox.com>
739 Building --disable-verbose-mode --disable-asserts --disable-tests
740 cuts the library from 112K to 45K or so
742 * configure.in: check for varargs macro support,
743 add --enable-verbose-mode, --enable-asserts.
745 * dbus/dbus-internals.h (_dbus_assert): support
747 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
749 2003-01-18 Havoc Pennington <hp@pobox.com>
751 * dbus/dbus-test.c: include config.h so that tests actually run
753 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
754 so the failure mode when that assumption fails will be plenty
757 2003-01-18 Havoc Pennington <hp@pobox.com>
759 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
761 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
764 * test/Makefile.am: don't use special variable "TESTS" for echo-*
765 since we don't want to use those in make check
767 2003-01-15 Havoc Pennington <hp@redhat.com>
773 2003-01-15 Havoc Pennington <hp@redhat.com>
775 * test/Makefile.am: fix so that test source code ends up in the
776 distribution on make distcheck
778 2003-01-15 Havoc Pennington <hp@redhat.com>
784 2003-01-15 Havoc Pennington <hp@redhat.com>
786 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
787 fix build when --disable-tests
789 * Makefile.am (EXTRA_DIST): put HACKING in here
791 * HACKING: document procedure for making a tarball release.
793 2003-01-14 Anders Carlsson <andersca@codefactory.se>
795 * bus/connection.c: (connection_error_handler),
796 (bus_connection_setup):
797 * bus/main.c: (main):
798 Make sure that the DBusConnectionData struct is NULLed
799 out to prevent a segfault.
801 * dbus/dbus-errors.c: (dbus_result_to_string):
802 * dbus/dbus-errors.h:
803 * dbus/dbus-message.c: (dbus_message_get_fields),
804 (dbus_message_get_fields_valist), (_dbus_message_test):
805 * dbus/dbus-message.h:
806 Make dbus_message_get_fields return a result code so we can
807 track invalid fields as well as oom.
809 2003-01-11 Havoc Pennington <hp@pobox.com>
811 * configure.in: change --enable-test/--enable-ansi action-if-given
812 to enable_foo=$enableval instead of enable_foo=yes
814 2003-01-08 Havoc Pennington <hp@pobox.com>
816 * dbus/dbus-string.c (_dbus_string_align_length): new function
818 * dbus/dbus-test-main.c: move main() for test app here
820 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
821 symbol to run tests, because dbus-test isn't in the main
824 Code review nitpicks.
826 * dbus/dbus-message.c (dbus_message_write_header): add newlines
827 for people with narrow emacs ;-). Assert client_serial was filled
828 in. Assert message->name != NULL.
829 (dbus_message_append_fields): have "first_field_type" arg separate
830 from va list, needed for C++ binding that also uses varargs IIRC
831 and helps with type safety
832 (dbus_message_new): add @todo about using DBusString to store
833 service/name internally
834 (dbus_message_new): don't leak ->service and ->name on OOM later
836 (dbus_message_unref): free the service name
837 (dbus_message_get_fields): same change to varargs
838 i.e. first_field_type
839 (_dbus_message_loader_return_buffer): assert that the message data
840 is aligned (if not it's a bug in our code). Put in verbose griping
841 about why we set corrupted = TRUE.
842 (decode_header_data): add FIXME that char* is evil. Was going to
843 add FIXME about evil locale-specific string.h strncmp, but just
844 switched to wacky string-as-uint32 optimization. Move check for
845 "no room for field name" above get_const_data_len() to avoid
846 assertion failure in get_const_data_len if we have trailing 2
847 bytes or the like. Check for service and name fields being
848 provided twice. Don't leak service/name on error. Require field
849 names to be aligned to 4 bytes.
851 * dbus/dbus-marshal.c: move byte swap stuff to header
852 (_dbus_pack_int32): uscore-prefix
853 (_dbus_unpack_int32): uscore-prefix
854 (_dbus_unpack_uint32): export
855 (_dbus_demarshal_string): add @todo complaining about use of
857 (_dbus_marshal_get_field_end_pos): add @todo about bad error
858 handling allowing corrupt data to go unchecked
860 2003-01-08 Havoc Pennington <hp@redhat.com>
862 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
863 to the select() as needed for authentication. (should be using
864 _dbus_poll() not select, but for another day)
866 * dbus/dbus.h: include dbus/dbus-protocol.h
868 2003-01-08 Anders Carlsson <andersca@codefactory.se>
870 * dbus/Makefile.am (dbusinclude_HEADERS): Install
873 2003-01-08 Anders Carlsson <andersca@codefactory.se>
875 * dbus/dbus-internals.c: (_dbus_type_to_string):
876 New function that returns a string describing a type.
878 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
879 * dbus/dbus-marshal.h:
880 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
881 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
882 (dbus_message_iter_get_byte_array):
883 * dbus/dbus-message.h:
884 Add new convenience functions for appending and getting message fields.
885 Also add demarshalling routines for byte arrays.
887 2003-01-07 Anders Carlsson <andersca@codefactory.se>
889 * dbus/dbus-connection-internal.h:
890 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
891 (_dbus_connection_get_next_client_serial),
892 (dbus_connection_send_message):
893 * dbus/dbus-internals.h:
894 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
895 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
896 (_dbus_marshal_uint32), (_dbus_demarshal_double),
897 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
898 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
899 (_dbus_verbose_bytes), (_dbus_marshal_test):
900 * dbus/dbus-marshal.h:
901 * dbus/dbus-message-internal.h:
902 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
903 (dbus_message_write_header), (_dbus_message_lock),
904 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
905 (dbus_message_get_name), (dbus_message_append_int32),
906 (dbus_message_append_uint32), (dbus_message_append_double),
907 (dbus_message_append_string), (dbus_message_append_byte_array),
908 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
909 (dbus_message_iter_unref), (dbus_message_iter_has_next),
910 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
911 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
912 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
913 (decode_header_data), (_dbus_message_loader_return_buffer),
914 (message_iter_test), (_dbus_message_test):
915 * dbus/dbus-message.h:
916 * dbus/dbus-protocol.h:
917 * dbus/dbus-test.c: (main):
919 * glib/test-dbus-glib.c: (message_handler), (main):
920 * test/echo-client.c: (main):
921 * test/watch.c: (check_messages):
922 Make messages sendable and receivable for real.
924 2003-01-07 Anders Carlsson <andersca@codefactory.se>
926 * dbus/dbus-marshal.c: (_dbus_marshal_double),
927 (_dbus_marshal_string), (_dbus_marshal_byte_array):
928 * dbus/dbus-message.c: (dbus_message_append_int32),
929 (dbus_message_append_uint32), (dbus_message_append_double),
930 (dbus_message_append_string), (dbus_message_append_byte_array):
931 Handle OOM restoration.
933 2003-01-07 Anders Carlsson <andersca@codefactory.se>
935 * dbus/dbus-marshal.c: (_dbus_marshal_string),
936 (_dbus_demarshal_string), (_dbus_marshal_test):
937 * dbus/dbus-marshal.h:
938 * dbus/dbus-message.c: (dbus_message_get_name),
939 Document these functions.
941 (dbus_message_append_int32), (dbus_message_append_uint32),
942 (dbus_message_append_double), (dbus_message_append_string),
943 (dbus_message_append_byte_array):
944 * dbus/dbus-message.h:
945 Add functions for adding message fields of different types.
947 * dbus/dbus-protocol.h:
948 Add the different types.
950 2003-01-05 Havoc Pennington <hp@pobox.com>
952 * bus/connection.c: implement routines for handling connections,
953 first thing is keeping a list of owned services on each connection
954 and setting up watches etc.
956 * bus/services.c: implement a mapping from service names to lists
959 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
961 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
962 to use static mutexes for global data
964 * dbus/dbus-connection.c (dbus_connection_set_data): add new
965 collection of functions to set/get application-specific data
966 on the DBusConnection.
968 2003-01-04 Havoc Pennington <hp@pobox.com>
970 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
971 (_dbus_poll): new function
973 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
976 * bus/loop.c: initial code for the daemon main loop
978 2003-01-04 Havoc Pennington <hp@pobox.com>
980 * test/watch.c (error_handler): make it safe if the error handler
981 is called multiple times (if we s/error handler/disconnect
982 handler/ we should just guarantee it's called only once)
984 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
985 error handler on disconnect (it's quite possible we should
986 just change the error handler to a "disconnect handler," I'm
987 not sure we have any other meaningful errors)
989 * configure.in: check for getpwnam_r
991 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
992 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
993 mechanism as in SASL spec, using socket credentials
995 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
996 (_dbus_send_credentials_unix_socket): new function
998 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
1000 (_dbus_write): only check errno if <0 returned
1001 (_dbus_write_two): ditto
1003 2003-01-02 Anders Carlsson <andersca@codefactory.se>
1005 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
1006 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
1007 (_dbus_marshal_test):
1008 * dbus/dbus-marshal.h:
1009 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
1010 to _dbus_marshal_utf8_string. Also fix some tests.
1012 2002-12-28 Harri Porten <porten@kde.org>
1014 * configure.in: added check for C++ compiler and a very cheesy
1015 check for the Qt integration
1017 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
1019 * qt/Makefile.am: added
1021 * qt/.cvsignore: added
1023 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
1024 latter, added #ifdef QT_THREAD_SUPPORT guard.
1026 * dbus/Makefile.am: added missing headers for make dist
1028 2002-12-28 Kristian Rietveld <kris@gtk.org>
1030 * dbus/Makefile.am: fixup export-symbols-regex.
1032 2002-12-27 Anders Carlsson <andersca@codefactory.se>
1034 * acinclude.m4: Add this file and put the
1035 PKG_CHECK_MODULE macro in it.
1037 2002-12-27 Anders Carlsson <andersca@codefactory.se>
1039 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1040 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1041 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1042 (_dbus_marshal_test):
1043 Make the demarshalling routines align the pos argument.
1044 Add string marshalling tests and fix the obvious bugs
1047 2002-12-26 Havoc Pennington <hp@pobox.com>
1049 * dbus/dbus-auth.c: fixes fixes fixes
1051 * dbus/dbus-transport-unix.c: wire up support for
1052 encoding/decoding data on the wire
1054 * dbus/dbus-auth.c (_dbus_auth_encode_data)
1055 (_dbus_auth_decode_data): append to target string
1056 instead of nuking it.
1058 2002-12-26 Havoc Pennington <hp@pobox.com>
1060 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
1061 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
1064 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
1065 avoid swap_bytes() overhead (ignoring possible assembly stuff for
1066 now). Main point is because I wanted unpack_uint32 to implement
1068 (_dbus_verbose_bytes): new function
1070 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
1072 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
1073 mechanism to handle a corrupt message stream
1074 (_dbus_message_loader_new): fix preallocation to only prealloc,
1077 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
1078 (_dbus_string_test): enhance tests for copy/move and fix the
1081 * dbus/dbus-transport-unix.c: Hold references in more places to
1082 avoid reentrancy problems
1084 * dbus/dbus-transport.c: ditto
1086 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
1087 leak reference count in no-message case
1089 * test/watch.c (do_mainloop): handle adding/removing watches
1090 during iteration over the watches. Also, ref the connection/server
1091 stored on a watch, so we don't try to mangle a destroyed one.
1093 * dbus/dbus-transport-unix.c (do_authentication): perform
1096 * dbus/dbus-auth.c (get_state): add a state
1097 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
1098 (_dbus_auth_get_unused_bytes): append the unused bytes
1099 to the passed in string, rather than prepend
1101 * dbus/dbus-transport.c (_dbus_transport_init_base): create
1102 the auth conversation DBusAuth
1104 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
1105 (_dbus_transport_new_for_domain_socket): when creating a
1106 transport, pass in whether it's a client-side or server-side
1107 transport so we know which DBusAuth to create
1109 2002-12-03 Havoc Pennington <hp@pobox.com>
1111 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
1112 _after_ finalizing the derived members
1113 (unix_connection_set): unref watch if we fail to add it
1115 * dbus/dbus-connection.c (dbus_connection_unref): delete the
1116 transport first, so that the connection owned by the
1117 transport will be valid as the transport finalizes.
1119 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
1120 if necessary, and remove watches from the connection.
1122 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
1124 2002-12-26 Anders Carlsson <andersca@codefactory.se>
1126 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1127 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1128 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1129 (_dbus_marshal_test):
1130 * dbus/dbus-marshal.h:
1131 Add string marshal functions and have the demarshal functions
1132 return the new position.
1134 2002-12-25 Havoc Pennington <hp@pobox.com>
1136 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
1137 it is a simple protocol that just maps directly to SASL.
1139 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
1140 initial implementation, not actually used yet.
1142 * dbus/dbus-string.c (_dbus_string_find): new function
1143 (_dbus_string_equal): new function
1144 (_dbus_string_base64_encode): new function
1145 (_dbus_string_base64_decode): new function
1147 2002-12-25 Anders Carlsson <andersca@codefactory.se>
1150 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
1151 (_dbus_marshal_int32), (_dbus_marshal_uint32),
1152 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1153 (_dbus_demarshal_uint32), (_dbus_marshal_test):
1154 * dbus/dbus-marshal.h:
1155 * dbus/dbus-protocol.h:
1156 * dbus/dbus-test.c: (main):
1158 Add un-optimized marshalling/demarshalling routines.
1160 2002-12-25 Harri Porten <porten@kde.org>
1162 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
1164 2002-12-24 Zack Rusin <zack@kde.org>
1166 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
1167 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
1170 2002-12-24 Havoc Pennington <hp@pobox.com>
1172 * glib/dbus-gthread.c: fix include
1174 * glib/dbus-glib.h: rename DBusMessageHandler for now.
1175 I think glib API needs to change, though, as you don't
1176 want to use DBusMessageFunction, you want to use the
1177 DBusMessageHandler object. Probably
1178 dbus_connection_open_with_g_main_loop()
1179 and dbus_connection_setup_g_main_loop() or something like that
1180 (but think of better names...) that just create a connection
1181 that has watch/timeout functions etc. already set up.
1183 * dbus/dbus-connection.c
1184 (dbus_connection_send_message_with_reply): new function just to
1185 show how the message handler helps us deal with replies.
1187 * dbus/dbus-list.c (_dbus_list_remove_last): new function
1189 * dbus/dbus-string.c (_dbus_string_test): free a string that
1192 * dbus/dbus-hash.c: use memory pools for the hash entries
1193 (rebuild_table): be more paranoid about overflow, and
1194 shrink table when we can
1195 (_dbus_hash_test): reduce number of sprintfs and write
1196 valid C89. Add tests for case where we grow and then
1197 shrink the hash table.
1199 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
1201 * dbus/dbus-connection.c (dbus_connection_register_handler)
1202 (dbus_connection_unregister_handler): new functions
1204 * dbus/dbus-message.c (dbus_message_get_name): new
1206 * dbus/dbus-list.c: fix docs typo
1208 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
1209 an object representing a handler for messages.
1211 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1214 * glib/dbus-gthread.c: (dbus_gthread_init):
1215 Don't use the gdbus prefix for public functions.
1217 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1221 Add GLib checks and fixup .pc files
1225 * glib/dbus-gmain.c: (gdbus_connection_prepare),
1226 (gdbus_connection_check), (gdbus_connection_dispatch),
1227 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
1228 (dbus_connection_gsource_new):
1229 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
1230 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
1231 * glib/test-dbus-glib.c: (message_handler), (main):
1234 2002-12-15 Harri Porten <porten@kde.org>
1236 * autogen.sh: check for libtoolize before attempting to use it
1238 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
1241 * .cvsignore: ignore more stamp files
1243 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
1245 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
1246 without make install.
1248 2002-12-15 Havoc Pennington <hp@pobox.com>
1250 * dbus/dbus-threads.c: add thread stubs that a higher library
1251 layer can fill in. e.g. the GLib wrapper might fill them in with
1252 GThread stuff. We still need to use this thread API to
1253 thread-safe-ize the library.
1255 2002-12-12 Havoc Pennington <hp@pobox.com>
1257 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
1258 below new interfaces and include fewer system headers.
1260 * dbus/dbus-sysdeps.c (_dbus_read): new function
1261 (_dbus_write): new function
1262 (_dbus_write_two): new function
1263 (_dbus_connect_unix_socket): new function
1264 (_dbus_listen_unix_socket): new function
1266 * dbus/dbus-message-internal.h: change interfaces to use
1269 2002-12-11 Havoc Pennington <hp@pobox.com>
1271 * dbus/dbus-types.h: add dbus_unichar
1273 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
1275 * dbus/dbus-connection.c (dbus_connection_send_message): return
1278 * dbus/dbus-transport.c: include dbus-watch.h
1280 * dbus/dbus-connection.c: include dbus-message-internal.h
1282 * HACKING: add file with coding guidelines stuff.
1284 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
1285 handling here, for security purposes (as in vsftpd). Not actually
1286 using this class yet.
1288 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
1289 system/libc usage here, as in vsftpd, for ease of auditing (and
1290 should also simplify portability). Haven't actually moved all the
1291 system/libc usage into here yet.
1293 2002-11-25 Havoc Pennington <hp@pobox.com>
1295 * dbus/dbus-internals.c (_dbus_verbose): fix to not
1296 always print the first verbose message.
1298 2002-11-24 Havoc Pennington <hp@pobox.com>
1300 * test/echo-client.c, test/echo-server.c: cheesy test
1303 * configure.in (AC_CHECK_FUNCS): check for writev
1305 * dbus/dbus-message.c (_dbus_message_get_network_data): new
1308 * dbus/dbus-list.c (_dbus_list_foreach): new function
1310 * dbus/dbus-internals.c (_dbus_verbose): new function
1312 * dbus/dbus-server.c, dbus/dbus-server.h: public object
1313 representing a server that listens for connections.
1315 * dbus/.cvsignore: create
1317 * dbus/dbus-errors.h, dbus/dbus-errors.c:
1318 public API for reporting errors
1320 * dbus/dbus-connection.h, dbus/dbus-connection.c:
1321 public object representing a connection that
1322 sends/receives messages. (Same object used for
1323 both client and server.)
1325 * dbus/dbus-transport.h, dbus/dbus-transport.c:
1326 Basic abstraction for different kinds of stream
1327 that we might read/write messages from.
1329 2002-11-23 Havoc Pennington <hp@pobox.com>
1331 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
1334 * dbus/dbus-test.c (main): add list test, and include
1335 dbus-test.h as intended
1337 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
1338 (_dbus_hash_table_remove_int): return value indicates
1339 whether the entry existed to remove
1341 * dbus/dbus-list.c: add linked list utility class,
1344 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
1347 2002-11-23 Havoc Pennington <hp@pobox.com>
1349 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
1350 DBUS_END_DECLS to nothing, that should fix this once and for all
1352 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
1354 * dbus/dbus-message.c, dbus/dbus-hash.c:
1355 add some missing @brief
1357 2002-11-23 Havoc Pennington <hp@pobox.com>
1359 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
1360 to avoid confusing Doxygen
1362 * dbus/dbus-hash.c: @} not }@
1364 * dbus/dbus-message.c (struct DBusMessage): split out
1367 2002-11-23 Havoc Pennington <hp@pobox.com>
1369 * configure.in: pile on more warning flags if using gcc
1371 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
1372 to document static functions
1374 * configure.in: add summary to end of configure so it
1375 looks nice and attractive
1377 * dbus/dbus-hash.c: finish implementation and write unit
1380 * configure.in: add --enable-tests to enable unit tests
1382 * dbus/dbus-test.c: test program to run unit tests
1383 for all files in dbus/*, initially runs a test for
1386 * dbus/dbus-internals.h: file to hold some internal utility stuff
1388 2002-11-22 Havoc Pennington <hp@redhat.com>
1390 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
1391 "ported" away from Tcl
1393 * dbus/dbus-types.h: header for types such as dbus_bool_t
1395 2002-11-22 Havoc Pennington <hp@redhat.com>
1397 * dbus/dbus.h: fixups for doc warnings
1399 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
1401 (QUIET): make it quiet so we can see warnings
1403 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
1405 2002-11-22 Havoc Pennington <hp@redhat.com>
1407 * Makefile.am: include "Doxyfile" target in all-local
1409 * configure.in: generate the Doxyfile
1411 * Doxyfile.in: move Doxyfile here, so we can use
1412 configure to generate a Doxyfile with the right
1415 2002-11-22 Havoc Pennington <hp@redhat.com>
1417 * dbus/dbus-message.c: move inline docs into .c file
1419 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
1420 so all docs are under doc/
1421 (MAN_EXTENSION): generate man pages. Use extension
1422 ".3dbus" which matches ".3qt" on my system,
1423 I guess this is OK, I don't know really.
1424 (FILE_PATTERNS): look for .c files not .h, makes sense
1427 2002-11-22 Havoc Pennington <hp@pobox.com>
1429 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
1430 because any app can be a server, and any app can be a client,
1431 the bus is a special kind of server.
1433 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
1435 * Doxyfile : adding. Still needs Makefile rules to be generated
1436 automatically (just run "doxygen" in the toplevel dir for now to
1439 * dbus/dbus-message.h : Adding sample docs (javadoc since
1440 resembles gtk-doc a little more)
1442 * dbus/dbus.h : Adding sample docs
1444 2002-11-21 Havoc Pennington <hp@redhat.com>
1446 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
1447 so we can allow ourselves to include files directly,
1448 instead of having to use dbus.h
1450 * dbus/dbus.h: fill in
1452 * dbus/dbus-message.h: sketch out a sample header file.
1453 Include griping if you include it directly instead of
1456 * dbus/dbus-macros.h: new file with macros for extern "C",
1457 TRUE/FALSE, NULL, etc.
1459 * doc/file-boilerplate.c: put include guards in here
1461 2002-11-21 Havoc Pennington <hp@redhat.com>
1463 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
1465 * COPYING: include the GPL as well, and license code
1466 under both AFL and GPL.
1468 2002-11-21 Havoc Pennington <hp@redhat.com>
1470 * acconfig.h: get rid of this
1472 * autogen.sh (run_configure): add --no-configure option
1474 * configure.in: remove AC_ARG_PROGRAM to make
1475 autoconf complain less. add AC_PREREQ.
1476 add AC_DEFINE third arg.
1478 2002-11-21 Anders Carlsson <andersca@codefactory.se>
1481 Fix references so we can distcheck.
1483 2002-11-21 Havoc Pennington <hp@redhat.com>
1485 * Initial module creation