1 2003-02-02 Anders Carlsson <andersca@codefactory.se>
3 * doc/dbus-specification.sgml:
4 Update address format section.
6 2003-02-02 Anders Carlsson <andersca@codefactory.se>
9 * test/bus-test.c: (get_time), (add_timeout), (remove_timeout),
10 (message_handler), (new_connection_callback), (loop_quit),
14 2003-02-02 Anders Carlsson <andersca@codefactory.se>
16 * bus/driver.c: (bus_driver_handle_service_exists):
17 Simplify the code a bit.
19 * dbus/dbus-bus.c: (dbus_bus_service_exists):
22 2003-02-02 Anders Carlsson <andersca@codefactory.se>
25 Add libdbus-daemon.la and link to it.
27 2003-02-01 James Willcox <jwillcox@gnome.org>
29 * bus/driver.c: (bus_driver_handle_own_service):
30 Actually include the service reply code in the message.
32 2003-02-02 Anders Carlsson <andersca@codefactory.se>
34 * bus/driver.c: (bus_driver_handle_service_exists):
35 Don't unref the incoming message.
37 2003-02-02 Anders Carlsson <andersca@codefactory.se>
39 * dbus/dbus.h: Add dbus-address.h and dbus-bus.h
41 2003-02-02 Anders Carlsson <andersca@codefactory.se>
43 * dbus/dbus-server.c: (dbus_server_listen):
44 * dbus/dbus-transport.c: (_dbus_transport_open):
45 ifdef out the calls to the debug transport and server.
47 2003-02-02 Alexander Larsson <alexl@redhat.com>
49 * dbus/dbus-watch.c (dbus_watch_get_flags):
50 Add note in the docs that ERROR or HANGUP won't be returned
51 and are assumed always on.
53 * glib/dbus-gmain.c (add_watch):
54 Always add IO_ERR | IO_HUP
56 * dbus/dbus-message.h:
57 Add semicolon after dbus_message_iter_get_string_array().
58 Makes qt code build again
60 2003-02-01 Anders Carlsson <andersca@codefactory.se>
62 * bus/driver.c: (create_unique_client_name),
63 (bus_driver_handle_hello):
64 Don't take a name, just use a numeric id to identify
68 * dbus/dbus-bus.c: (dbus_bus_register_client),
69 (dbus_bus_acquire_service), (dbus_bus_service_exists):
71 Add new convenience functions for communicating with the bus.
73 * dbus/dbus-message.h:
75 * dbus/dbus-protocol.h:
78 2003-02-01 Alexander Larsson <alexl@redhat.com>
80 * dbus/dbus-message.c (dbus_message_append_fields):
81 Add some more doc comments.
83 2003-02-01 Havoc Pennington <hp@pobox.com>
85 * dbus/dbus-break-loader.c (randomly_modify_length): change
86 a 4-byte value in the message as if it were a length
88 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): don't set
89 execute bit on saved files
91 2003-02-01 Havoc Pennington <hp@pobox.com>
93 * dbus/dbus-break-loader.c (main): new program to find messages
94 that break the loader.
96 * dbus/dbus-sysdeps.c (_dbus_string_append_uint): new function
97 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): new function
99 * dbus/dbus-string.c (_dbus_string_set_byte): new
101 2003-01-31 Havoc Pennington <hp@pobox.com>
103 * dbus/dbus-message.c: refactor the test code to be more general,
104 in preparation for writing a "randomly permute test cases to
105 try to break the loader" program.
107 2003-01-31 Havoc Pennington <hp@pobox.com>
109 * doc/dbus-specification.sgml: work on the specification
111 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): check
112 the protocol version of the message.
114 * dbus/dbus-protocol.h: drop special _REPLY names, the spec
115 no longer specifies that.
116 (DBUS_SERVICE_REPLY_SERVICE_EXISTS): fix flags (1/2/4/8 not
119 * dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos): add missing
120 "break" for DBUS_TYPE_NIL, remove @todo
122 2003-01-31 Havoc Pennington <hp@pobox.com>
124 * dbus/dbus-message.c (dbus_message_set_is_error_reply): rename
125 just set_is_error/get_is_error as this is a commonly-used
126 function, and write docs.
128 2003-01-31 Anders Carlsson <andersca@codefactory.se>
130 * dbus/dbus-address.c: (dbus_address_entry_free):
131 Free key and value lists.
133 * dbus/dbus-internals.c: (_dbus_type_to_string):
134 Add the types we didn't have.
136 * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
137 (_dbus_marshal_validate_arg):
140 * dbus/dbus-message.c: (dbus_message_set_sender):
141 Remove todo about being able to set sender to NULL.
143 (dbus_message_set_is_error_reply),
144 (dbus_message_get_is_error_reply):
145 * dbus/dbus-message.h:
148 * dbus/dbus-protocol.h:
149 Add error reply flag.
151 * test/data/valid-messages/opposite-endian.message:
152 Add NIL type to test.
154 2003-01-31 Havoc Pennington <hp@pobox.com>
156 * doc/dbus-specification.sgml: fully specify the header. Add
157 flags and major protocol version, and change header/body len to
160 * dbus/dbus-message-builder.c (append_saved_length): append length
163 * dbus/dbus-message.c (dbus_message_create_header): change header
164 length and body length to unsigned. Add the new fields from the
166 (_dbus_message_loader_return_buffer): unsigned header/body len
168 2003-01-30 Havoc Pennington <hp@pobox.com>
170 * dbus/dbus-auth.c: rework to use only REJECTED, no
173 * doc/dbus-sasl-profile.txt: drop MECHANISMS and just
174 use REJECTED, suggested by Mark McLoughlin
176 2003-01-30 Havoc Pennington <hp@pobox.com>
178 * dbus/dbus-server.c (dbus_server_listen): @todo about how we need
179 a better way to report errors here. e.g. "unix address lacks
180 path" or something. also "no such file" when the path doesn't
183 * dbus/dbus-address.c (dbus_address_entries_free): add @todo about
185 (dbus_parse_address): add @todo about documenting address format,
186 and allowing , and ; to be escaped
188 2003-01-30 Anders Carlsson <andersca@codefactory.se>
191 Add dbus-address.[ch]
193 * dbus/dbus-address.c: (dbus_address_entry_free),
194 (dbus_address_entries_free), (create_entry),
195 (dbus_address_entry_get_method), (dbus_address_entry_get_value),
196 (dbus_parse_address), (_dbus_address_test):
197 * dbus/dbus-address.h:
198 New files for dealing with address parsing.
200 * dbus/dbus-connection.c:
201 Document timeout functions.
203 * dbus/dbus-message.c:
204 Document dbus_message_new_from_message.
206 * dbus/dbus-server-debug.c:
209 * dbus/dbus-server.c: (dbus_server_listen):
210 Parse address and use correct server implementation.
212 * dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
213 * dbus/dbus-string.h:
214 New function with test.
216 * dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
220 * dbus/dbus-transport-debug.c:
223 * dbus/dbus-transport.c: (_dbus_transport_open):
224 Parse address and use correct transport implementation.
226 2003-01-30 Havoc Pennington <hp@pobox.com>
228 * dbus/dbus-message.c: use message->byte_order instead of
229 DBUS_COMPILER_BYTE_ORDER throughout.
230 (dbus_message_create_header): pad header to align the
231 start of the body of the message to 8-byte boundary
233 * dbus/dbus-marshal.h: make all the demarshalers take const
234 DBusString arguments.
236 * dbus/dbus-message.c (_dbus_message_loader_return_buffer):
237 validate message args here, so we don't have to do slow validation
238 later, and so we catch bad messages as they are incoming. Also add
239 better checks on header_len and body_len. Also fill in
242 * dbus/dbus-string.c (_dbus_string_validate_utf8): new (not
243 implemented properly)
244 (_dbus_string_validate_nul): new function to check all-nul
246 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): rename
247 get_arg_end_pos and remove all validation
248 (_dbus_marshal_validate_arg): actually do validation here.
250 2003-01-29 Havoc Pennington <hp@pobox.com>
252 * dbus/dbus-message.c (check_message_handling): fix assertion
253 failure on set_client_serial
255 2003-01-28 Havoc Pennington <hp@pobox.com>
257 * dbus/dbus-server-debug.c: Add doc section comments
259 * dbus/dbus-transport-debug.c: add doc section comments
261 2003-01-28 Havoc Pennington <hp@redhat.com>
263 * dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
264 the reverse order from how I had it
265 (_dbus_string_base64_encode): reverse encoding order. I was
266 basically byteswapping everything during encoding.
268 2003-01-28 Anders Carlsson <andersca@codefactory.se>
270 * dbus/dbus-connection-internal.h:
271 * dbus/dbus-connection.c: (_dbus_connection_add_timeout),
272 (_dbus_connection_remove_timeout):
273 Add functions for adding and removing timeouts.
275 * dbus/dbus-message.c: (dbus_message_new_from_message):
276 Add new function that takes a message and creates an exact
277 copy of it, but with the refcount set to 1.
278 (check_message_handling):
281 * dbus/dbus-server-protected.h:
282 * dbus/dbus-server.c: (_dbus_server_init_base),
283 (_dbus_server_finalize_base), (_dbus_server_add_timeout),
284 (dbus_server_set_timeout_functions):
285 (_dbus_server_remove_timeout):
286 New functions so that a server can add and remove timeouts.
288 (dbus_server_listen):
289 Add commented out call to dbus_server_debug_new.
291 * dbus/dbus-timeout.c: (_dbus_timeout_new):
292 Actually set the handler, doh.
294 * dbus/dbus-transport.c: (_dbus_transport_open):
295 Add commented out call to dbus_transport_debug_client_new.
298 Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
300 2003-01-28 Havoc Pennington <hp@pobox.com>
302 * dbus/dbus-message.c (check_message_handling): function to check
303 on the loaded message, iterates over it etc.
305 2003-01-28 Havoc Pennington <hp@pobox.com>
307 * test/Makefile.am (dist-hook): fix make distdir
309 * dbus/Makefile.am (TESTS_ENVIRONMENT): fix make check
311 2003-01-27 Havoc Pennington <hp@pobox.com>
313 * dbus/dbus-mempool.c (time_for_size): replace printf with
316 * dbus/dbus-message-builder.c (_dbus_message_data_load): allow
317 empty lines; fix the SAVE_LENGTH stuff to be
318 START_LENGTH/END_LENGTH so it actually works; couple other
321 * test/Makefile.am (dist-hook): add dist-hook for .message files
323 * dbus/dbus-string.c (DBUS_STRING_COPY_PREAMBLE): source of a copy
324 can be constant or locked.
325 (_dbus_string_free): allow freeing a const string as
328 * dbus/dbus-sysdeps.c (_dbus_concat_dir_and_file): utility
330 * dbus/dbus-test-main.c (main): take an argument which is the
331 directory containing test data
333 * dbus/dbus-message.c (_dbus_message_test): pass a test_data_dir
334 argument to this and load all the messages in test/data/
335 checking that they can be loaded or not loaded as appropriate.
337 2003-01-27 Anders Carlsson <andersca@codefactory.se>
339 * bus/dispatch.c: (bus_dispatch_message_handler):
340 Dispatch messages sent to services.
342 * bus/driver.c: (bus_driver_send_service_deleted),
343 (bus_driver_send_service_created), (bus_driver_send_service_lost),
344 (bus_driver_send_service_acquired):
345 Add helper functions for sending service related messages.
347 (bus_driver_send_welcome_message):
348 Send HELLO_REPLY instead of WELCOME.
350 (bus_driver_handle_list_services):
351 Send LIST_SERVICES_REPLY instead of SERVICES.
353 (bus_driver_handle_own_service),
354 (bus_driver_handle_service_exists):
355 New message handlers.
357 (bus_driver_handle_message):
358 Invoke new message handlers.
360 (bus_driver_remove_connection):
361 Don't remove any services here since that's done automatically
362 by bus_service_remove_owner now.
365 New function signatures.
367 * bus/services.c: (bus_service_add_owner):
368 Send ServiceAcquired message if we're the only primary owner.
370 (bus_service_remove_owner):
371 Send ServiceAcquired/ServiceLost messages.
373 (bus_service_set_prohibit_replacement),
374 (bus_service_get_prohibit_replacement):
375 Functions for setting prohibit replacement.
377 (bus_service_has_owner):
378 New function that checks if a connection is in the owner queue of
382 Add new function signatures.
384 * dbus/dbus-list.c: (_dbus_list_test):
385 Add tests for _dbus_list_remove_last and traversing the list backwards.
388 Fix a typo in _dbus_list_get_prev_link, if we're at the first element we can't
389 go any further, so return NULL then.
391 * dbus/dbus-protocol.h:
392 Add new messages, service flags and service replies.
394 2003-01-26 Havoc Pennington <hp@pobox.com>
396 * dbus/dbus-message-builder.c: implement, completely untested.
398 * test/data/*: add data to be used in testing.
399 ".message" files are our simple loadable text format.
400 ".message-raw" will be binary dumps of messages.
402 * dbus/dbus-string.c (_dbus_string_starts_with_c_str): new
404 2003-01-26 Havoc Pennington <hp@pobox.com>
406 * dbus/dbus-sysdeps.c (_dbus_file_get_contents): new function
408 * dbus/dbus-errors.c (dbus_result_to_string): add
411 * dbus/dbus-message-builder.c: new file, will contain code to load
412 up messages from files. Not implemented yet.
414 2003-01-26 Havoc Pennington <hp@pobox.com>
416 * dbus/dbus-message.c (dbus_message_set_sender): support deleting
417 the sender by setting to NULL
419 2003-01-26 Havoc Pennington <hp@pobox.com>
421 The unit tests pass, but otherwise untested. If it breaks, the
422 tests should have been better. ;-)
424 * bus/driver.c (bus_driver_handle_hello): return if we disconnect
427 * dbus/dbus-message.c: redo everything so we maintain
428 message->header as the only copy of the various fields.
429 This avoids the possibility of out-of-memory in some cases,
430 for example dbus_message_lock() can't run out of memory anymore,
431 and avoids extra copying. Figured I may as well go ahead and do
432 this since it was busted for dbus_message_lock to not return
433 failure on OOM, and dbus_message_write_header was totally
434 unchecked for OOM. Also fixed some random other bugs.
436 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): verify
437 that strings are nul-terminated. Also, end_pos can be equal
438 to string length just not greater than, I think.
439 (_dbus_marshal_set_int32): new function
440 (_dbus_marshal_set_uint32): new function
441 (_dbus_marshal_set_string): new function
443 * dbus/dbus-connection.c (_dbus_connection_new_for_transport): fix
444 a warning, init timeout_list to NULL
445 (dbus_connection_send_message): don't use uninitialized variable
448 * dbus/dbus-string.c (_dbus_string_replace_len): new function
450 2003-01-26 Anders Carlsson <andersca@codefactory.se>
452 * bus/driver.c: (bus_driver_handle_hello),
453 (bus_driver_send_welcome_message):
456 2003-01-26 Anders Carlsson <andersca@codefactory.se>
458 * dbus/dbus-auth.c: (process_auth), (_dbus_auth_unref):
459 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
460 (dbus_connection_unref):
461 * dbus/dbus-marshal.c: (_dbus_marshal_test):
462 * dbus/dbus-message.c: (dbus_message_unref),
465 (dbus_message_get_fields):
466 Remove debugging printout.
468 (_dbus_message_loader_return_buffer):
469 Don't store the header string.
471 (_dbus_message_test):
474 2003-01-26 Richard Hult <rhult@codefactory.se>
476 * glib/dbus-gmain.c (dbus_connection_dispatch): Traverse a copy of
477 the file descriptor list, since it can change under us.
479 2003-01-25 Anders Carlsson <andersca@codefactory.se>
481 * glib/dbus-gmain.c: (dbus_connection_prepare),
482 (dbus_connection_check), (dbus_connection_dispatch), (add_watch),
483 (remove_watch), (dbus_connection_hookup_with_g_main):
484 Rewrite the glib handling to use its own GSource instead of a
485 GIOChannel so we can catch messages put in the queue while waiting
488 2003-01-25 Anders Carlsson <andersca@codefactory.se>
491 * bus/connection.c: (connection_disconnect_handler),
492 (connection_watch_callback), (bus_connection_setup):
493 * bus/dispatch.c: (send_one_message),
494 (bus_dispatch_broadcast_message), (bus_dispatch_message_handler),
495 (bus_dispatch_add_connection), (bus_dispatch_remove_connection):
497 * bus/driver.c: (bus_driver_send_service_deleted),
498 (bus_driver_send_service_created), (bus_driver_handle_hello),
499 (bus_driver_send_welcome_message),
500 (bus_driver_handle_list_services), (bus_driver_remove_connection),
501 (bus_driver_handle_message):
503 Refactor code, put the message dispatching in its own file. Use
504 _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client
507 2003-01-25 Anders Carlsson <andersca@codefactory.se>
509 * dbus/dbus-internals.h:
510 Add _DBUS_HANDLE_OOM macro, it doesn't do anything currently.
512 * dbus/dbus-message.c: (dbus_message_get_sender):
513 * dbus/dbus-message.h:
514 Implement dbus_message_get_sender.
516 * dbus/dbus-protocol.h:
517 Add message and service defines.
519 2003-01-25 Anders Carlsson <andersca@codefactory.se>
521 * dbus/dbus-connection.c: (dbus_connection_send_message):
522 * dbus/dbus-message-internal.h:
523 * dbus/dbus-message.c: (_dbus_message_get_client_serial),
524 (dbus_message_write_header):
525 Remove _dbus_messag_unlock and don't set the client serial on a
526 message if one already exists.
528 2003-01-24 Havoc Pennington <hp@pobox.com>
530 * dbus/dbus-list.c (alloc_link): put a thread lock on the global
533 * bus/driver.c (bus_driver_handle_list_services): fix a leak
536 2003-01-25 Anders Carlsson <andersca@codefactory.se>
538 * dbus/dbus-list.c: (alloc_link), (free_link):
539 Use a memory pool for the links.
541 2003-01-25 Anders Carlsson <andersca@codefactory.se>
543 * bus/connection.c: (bus_connection_foreach):
545 Add new bus_connection_foreach function.
547 * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
548 Add function that broadcasts a message to all clients.
550 (bus_driver_send_service_created), (bus_driver_handle_hello),
551 (bus_driver_send_welcome_message),
552 (bus_driver_handle_list_services), (bus_driver_message_handler):
553 Implement functions that take care of listing services, and notifying
554 clients when new services are created.
556 * bus/services.c: (bus_services_list):
558 Add new function that returns an array of strings with the currently
563 Update copyright year.
565 2003-01-25 Anders Carlsson <andersca@codefactory.se>
567 * dbus/dbus-connection.c: (dbus_connection_send_message):
568 Unlock the message in case it was sent earlier.
570 (dbus_connection_send_message_with_reply_and_block):
571 Remove the reply message from the list.
573 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
574 Set array_len and new_pos correctly.
576 (_dbus_marshal_test):
579 * dbus/dbus-message-internal.h:
580 * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
581 New function that returns the reply serial.
583 (_dbus_message_unlock):
584 New function that unlocks a message and resets its header.
586 (dbus_message_append_string_array),
587 (dbus_message_get_fields_valist),
588 (dbus_message_iter_get_field_type),
589 (dbus_message_iter_get_string_array),
590 (dbus_message_get_fields),
591 (dbus_message_append_fields_valist):
592 Handle string arrays.
594 (dbus_message_set_sender):
595 Make this function public since the bus daemon needs it.
597 (decode_header_data):
598 Set the reply serial to -1 initially.
600 * dbus/dbus-message.h:
601 Add dbus_message_set_sender.
603 2003-01-24 Havoc Pennington <hp@pobox.com>
605 * doc/dbus-specification.sgml: add some stuff
607 2003-01-22 Havoc Pennington <hp@pobox.com>
609 * doc/dbus-specification.sgml: Start to document the protocol.
611 2003-01-22 Havoc Pennington <hp@pobox.com>
613 * dbus/dbus-connection.c
614 (dbus_connection_send_message_with_reply_and_block): add some @todo
616 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
618 2003-01-21 Havoc Pennington <hp@pobox.com>
620 (patch untested because can't compile)
622 * bus/driver.c (create_unique_client_name): make this function
623 never recycle client names. Also, caller should initialize
626 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
628 2003-01-21 Anders Carlsson <andersca@codefactory.se>
630 * dbus/dbus-marshal.c: (_dbus_marshal_double),
631 (_dbus_marshal_int32), (_dbus_marshal_uint32),
632 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
633 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
634 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
635 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
636 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
637 * dbus/dbus-marshal.h:
638 * dbus/dbus-protocol.h:
639 Add support for marshalling and demarshalling integer, double
642 2003-01-21 Anders Carlsson <andersca@codefactory.se>
647 * bus/connection.c: (connection_disconnect_handler):
648 Remove the connection from the bus driver's list.
650 (connection_watch_callback): Dispatch messages.
652 (free_connection_data): Free connection name.
654 (bus_connection_setup): Add connection to the bus driver's list.
655 (bus_connection_remove_owned_service):
656 (bus_connection_set_name), (bus_connection_get_name):
657 Add functions for setting and getting the connection's name.
660 Add function headers.
662 * bus/driver.c: (create_unique_client_name),
663 (bus_driver_handle_hello_message),
664 (bus_driver_send_welcome_message), (bus_driver_message_handler),
665 (bus_driver_add_connection), (bus_driver_remove_connection):
668 * bus/services.c: (bus_service_free):
670 New file that handles communication and registreation with the bus
673 2003-01-21 Anders Carlsson <andersca@codefactory.se>
675 * dbus/dbus-connection.c: (dbus_connection_send_message):
676 Add a new client_serial parameter.
678 (dbus_connection_send_message_with_reply):
679 Remove a @todo since we've implemented the blocking function.
681 (dbus_connection_send_message_with_reply_and_block):
682 New function that sends a message and waits for a reply and
683 then returns the reply.
685 * dbus/dbus-connection.h:
688 * dbus/dbus-errors.c: (dbus_result_to_string):
689 * dbus/dbus-errors.h:
692 * dbus/dbus-message-internal.h:
693 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
694 (_dbus_message_set_sender), (dbus_message_write_header),
695 (dbus_message_new_reply), (decode_header_data),
696 (_dbus_message_loader_return_buffer), (_dbus_message_test):
697 * dbus/dbus-message.h:
698 Add new functions that set the reply serial and sender.
699 Also marshal and demarshal them correctly and add test.
701 * dbus/dbus-protocol.h:
702 Add new DBUS_MESSAGE_TYPE_SENDER.
705 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
706 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
707 (dbus_connection_hookup_with_g_main):
708 * glib/test-dbus-glib.c: (main):
709 Rewrite to use GIOChannel and remove the GSource crack.
711 * test/echo-client.c: (main):
712 * test/watch.c: (check_messages):
713 Update for changed APIs
715 2003-01-19 Anders Carlsson <andersca@codefactory.se>
717 * dbus/Makefile.am: Add dbus-timeout.[cħ]
719 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
720 Create a DBusTimeoutList.
721 (dbus_connection_set_timeout_functions): Add new function to
722 set timeout callbacks
724 * dbus/dbus-connection.h: Add public DBusTimeout API.
726 * dbus/dbus-message.c: (dbus_message_get_service):
727 * dbus/dbus-message.h: New function.
729 * dbus/dbus-server.c: Fix small doc typo.
731 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
733 2003-01-19 Anders Carlsson <andersca@codefactory.se>
735 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
736 of the string, just as long as specified.
738 2003-01-19 Havoc Pennington <hp@pobox.com>
740 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
743 * dbus/dbus-server.c (dbus_server_set_max_connections)
744 (dbus_server_get_max_connections, dbus_server_get_n_connections):
745 keep track of current number of connections, and add API for
746 setting a max (but haven't implemented enforcing the max yet)
748 2003-01-18 Havoc Pennington <hp@pobox.com>
750 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
751 reading/writing if read_watch != NULL or write_watch != NULL.
753 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
754 the message loader code to actually load message->header and
755 message->body into the newly-created message.
757 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
760 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
761 (dbus_connection_get_max_message_size)
762 (dbus_connection_set_max_live_messages_size)
763 (dbus_connection_get_max_live_messages_size): implement some
764 resource limitation functions
766 * dbus/dbus-resources.c: new file implementing some of the
767 resource limits stuff
769 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
770 missing docs, add @todo to handle OOM etc.
772 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
775 2003-01-18 Havoc Pennington <hp@pobox.com>
777 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
778 connection if it hasn't been already.
780 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
781 replace with DisconnectFunction.
783 2003-01-18 Havoc Pennington <hp@pobox.com>
785 Building --disable-verbose-mode --disable-asserts --disable-tests
786 cuts the library from 112K to 45K or so
788 * configure.in: check for varargs macro support,
789 add --enable-verbose-mode, --enable-asserts.
791 * dbus/dbus-internals.h (_dbus_assert): support
793 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
795 2003-01-18 Havoc Pennington <hp@pobox.com>
797 * dbus/dbus-test.c: include config.h so that tests actually run
799 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
800 so the failure mode when that assumption fails will be plenty
803 2003-01-18 Havoc Pennington <hp@pobox.com>
805 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
807 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
810 * test/Makefile.am: don't use special variable "TESTS" for echo-*
811 since we don't want to use those in make check
813 2003-01-15 Havoc Pennington <hp@redhat.com>
819 2003-01-15 Havoc Pennington <hp@redhat.com>
821 * test/Makefile.am: fix so that test source code ends up in the
822 distribution on make distcheck
824 2003-01-15 Havoc Pennington <hp@redhat.com>
830 2003-01-15 Havoc Pennington <hp@redhat.com>
832 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
833 fix build when --disable-tests
835 * Makefile.am (EXTRA_DIST): put HACKING in here
837 * HACKING: document procedure for making a tarball release.
839 2003-01-14 Anders Carlsson <andersca@codefactory.se>
841 * bus/connection.c: (connection_error_handler),
842 (bus_connection_setup):
843 * bus/main.c: (main):
844 Make sure that the DBusConnectionData struct is NULLed
845 out to prevent a segfault.
847 * dbus/dbus-errors.c: (dbus_result_to_string):
848 * dbus/dbus-errors.h:
849 * dbus/dbus-message.c: (dbus_message_get_fields),
850 (dbus_message_get_fields_valist), (_dbus_message_test):
851 * dbus/dbus-message.h:
852 Make dbus_message_get_fields return a result code so we can
853 track invalid fields as well as oom.
855 2003-01-11 Havoc Pennington <hp@pobox.com>
857 * configure.in: change --enable-test/--enable-ansi action-if-given
858 to enable_foo=$enableval instead of enable_foo=yes
860 2003-01-08 Havoc Pennington <hp@pobox.com>
862 * dbus/dbus-string.c (_dbus_string_align_length): new function
864 * dbus/dbus-test-main.c: move main() for test app here
866 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
867 symbol to run tests, because dbus-test isn't in the main
870 Code review nitpicks.
872 * dbus/dbus-message.c (dbus_message_write_header): add newlines
873 for people with narrow emacs ;-). Assert client_serial was filled
874 in. Assert message->name != NULL.
875 (dbus_message_append_fields): have "first_field_type" arg separate
876 from va list, needed for C++ binding that also uses varargs IIRC
877 and helps with type safety
878 (dbus_message_new): add @todo about using DBusString to store
879 service/name internally
880 (dbus_message_new): don't leak ->service and ->name on OOM later
882 (dbus_message_unref): free the service name
883 (dbus_message_get_fields): same change to varargs
884 i.e. first_field_type
885 (_dbus_message_loader_return_buffer): assert that the message data
886 is aligned (if not it's a bug in our code). Put in verbose griping
887 about why we set corrupted = TRUE.
888 (decode_header_data): add FIXME that char* is evil. Was going to
889 add FIXME about evil locale-specific string.h strncmp, but just
890 switched to wacky string-as-uint32 optimization. Move check for
891 "no room for field name" above get_const_data_len() to avoid
892 assertion failure in get_const_data_len if we have trailing 2
893 bytes or the like. Check for service and name fields being
894 provided twice. Don't leak service/name on error. Require field
895 names to be aligned to 4 bytes.
897 * dbus/dbus-marshal.c: move byte swap stuff to header
898 (_dbus_pack_int32): uscore-prefix
899 (_dbus_unpack_int32): uscore-prefix
900 (_dbus_unpack_uint32): export
901 (_dbus_demarshal_string): add @todo complaining about use of
903 (_dbus_marshal_get_field_end_pos): add @todo about bad error
904 handling allowing corrupt data to go unchecked
906 2003-01-08 Havoc Pennington <hp@redhat.com>
908 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
909 to the select() as needed for authentication. (should be using
910 _dbus_poll() not select, but for another day)
912 * dbus/dbus.h: include dbus/dbus-protocol.h
914 2003-01-08 Anders Carlsson <andersca@codefactory.se>
916 * dbus/Makefile.am (dbusinclude_HEADERS): Install
919 2003-01-08 Anders Carlsson <andersca@codefactory.se>
921 * dbus/dbus-internals.c: (_dbus_type_to_string):
922 New function that returns a string describing a type.
924 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
925 * dbus/dbus-marshal.h:
926 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
927 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
928 (dbus_message_iter_get_byte_array):
929 * dbus/dbus-message.h:
930 Add new convenience functions for appending and getting message fields.
931 Also add demarshalling routines for byte arrays.
933 2003-01-07 Anders Carlsson <andersca@codefactory.se>
935 * dbus/dbus-connection-internal.h:
936 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
937 (_dbus_connection_get_next_client_serial),
938 (dbus_connection_send_message):
939 * dbus/dbus-internals.h:
940 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
941 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
942 (_dbus_marshal_uint32), (_dbus_demarshal_double),
943 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
944 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
945 (_dbus_verbose_bytes), (_dbus_marshal_test):
946 * dbus/dbus-marshal.h:
947 * dbus/dbus-message-internal.h:
948 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
949 (dbus_message_write_header), (_dbus_message_lock),
950 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
951 (dbus_message_get_name), (dbus_message_append_int32),
952 (dbus_message_append_uint32), (dbus_message_append_double),
953 (dbus_message_append_string), (dbus_message_append_byte_array),
954 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
955 (dbus_message_iter_unref), (dbus_message_iter_has_next),
956 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
957 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
958 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
959 (decode_header_data), (_dbus_message_loader_return_buffer),
960 (message_iter_test), (_dbus_message_test):
961 * dbus/dbus-message.h:
962 * dbus/dbus-protocol.h:
963 * dbus/dbus-test.c: (main):
965 * glib/test-dbus-glib.c: (message_handler), (main):
966 * test/echo-client.c: (main):
967 * test/watch.c: (check_messages):
968 Make messages sendable and receivable for real.
970 2003-01-07 Anders Carlsson <andersca@codefactory.se>
972 * dbus/dbus-marshal.c: (_dbus_marshal_double),
973 (_dbus_marshal_string), (_dbus_marshal_byte_array):
974 * dbus/dbus-message.c: (dbus_message_append_int32),
975 (dbus_message_append_uint32), (dbus_message_append_double),
976 (dbus_message_append_string), (dbus_message_append_byte_array):
977 Handle OOM restoration.
979 2003-01-07 Anders Carlsson <andersca@codefactory.se>
981 * dbus/dbus-marshal.c: (_dbus_marshal_string),
982 (_dbus_demarshal_string), (_dbus_marshal_test):
983 * dbus/dbus-marshal.h:
984 * dbus/dbus-message.c: (dbus_message_get_name),
985 Document these functions.
987 (dbus_message_append_int32), (dbus_message_append_uint32),
988 (dbus_message_append_double), (dbus_message_append_string),
989 (dbus_message_append_byte_array):
990 * dbus/dbus-message.h:
991 Add functions for adding message fields of different types.
993 * dbus/dbus-protocol.h:
994 Add the different types.
996 2003-01-05 Havoc Pennington <hp@pobox.com>
998 * bus/connection.c: implement routines for handling connections,
999 first thing is keeping a list of owned services on each connection
1000 and setting up watches etc.
1002 * bus/services.c: implement a mapping from service names to lists
1005 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
1007 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
1008 to use static mutexes for global data
1010 * dbus/dbus-connection.c (dbus_connection_set_data): add new
1011 collection of functions to set/get application-specific data
1012 on the DBusConnection.
1014 2003-01-04 Havoc Pennington <hp@pobox.com>
1016 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
1017 (_dbus_poll): new function
1019 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
1022 * bus/loop.c: initial code for the daemon main loop
1024 2003-01-04 Havoc Pennington <hp@pobox.com>
1026 * test/watch.c (error_handler): make it safe if the error handler
1027 is called multiple times (if we s/error handler/disconnect
1028 handler/ we should just guarantee it's called only once)
1030 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
1031 error handler on disconnect (it's quite possible we should
1032 just change the error handler to a "disconnect handler," I'm
1033 not sure we have any other meaningful errors)
1035 * configure.in: check for getpwnam_r
1037 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
1038 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
1039 mechanism as in SASL spec, using socket credentials
1041 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
1042 (_dbus_send_credentials_unix_socket): new function
1044 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
1046 (_dbus_write): only check errno if <0 returned
1047 (_dbus_write_two): ditto
1049 2003-01-02 Anders Carlsson <andersca@codefactory.se>
1051 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
1052 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
1053 (_dbus_marshal_test):
1054 * dbus/dbus-marshal.h:
1055 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
1056 to _dbus_marshal_utf8_string. Also fix some tests.
1058 2002-12-28 Harri Porten <porten@kde.org>
1060 * configure.in: added check for C++ compiler and a very cheesy
1061 check for the Qt integration
1063 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
1065 * qt/Makefile.am: added
1067 * qt/.cvsignore: added
1069 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
1070 latter, added #ifdef QT_THREAD_SUPPORT guard.
1072 * dbus/Makefile.am: added missing headers for make dist
1074 2002-12-28 Kristian Rietveld <kris@gtk.org>
1076 * dbus/Makefile.am: fixup export-symbols-regex.
1078 2002-12-27 Anders Carlsson <andersca@codefactory.se>
1080 * acinclude.m4: Add this file and put the
1081 PKG_CHECK_MODULE macro in it.
1083 2002-12-27 Anders Carlsson <andersca@codefactory.se>
1085 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1086 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1087 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1088 (_dbus_marshal_test):
1089 Make the demarshalling routines align the pos argument.
1090 Add string marshalling tests and fix the obvious bugs
1093 2002-12-26 Havoc Pennington <hp@pobox.com>
1095 * dbus/dbus-auth.c: fixes fixes fixes
1097 * dbus/dbus-transport-unix.c: wire up support for
1098 encoding/decoding data on the wire
1100 * dbus/dbus-auth.c (_dbus_auth_encode_data)
1101 (_dbus_auth_decode_data): append to target string
1102 instead of nuking it.
1104 2002-12-26 Havoc Pennington <hp@pobox.com>
1106 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
1107 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
1110 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
1111 avoid swap_bytes() overhead (ignoring possible assembly stuff for
1112 now). Main point is because I wanted unpack_uint32 to implement
1114 (_dbus_verbose_bytes): new function
1116 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
1118 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
1119 mechanism to handle a corrupt message stream
1120 (_dbus_message_loader_new): fix preallocation to only prealloc,
1123 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
1124 (_dbus_string_test): enhance tests for copy/move and fix the
1127 * dbus/dbus-transport-unix.c: Hold references in more places to
1128 avoid reentrancy problems
1130 * dbus/dbus-transport.c: ditto
1132 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
1133 leak reference count in no-message case
1135 * test/watch.c (do_mainloop): handle adding/removing watches
1136 during iteration over the watches. Also, ref the connection/server
1137 stored on a watch, so we don't try to mangle a destroyed one.
1139 * dbus/dbus-transport-unix.c (do_authentication): perform
1142 * dbus/dbus-auth.c (get_state): add a state
1143 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
1144 (_dbus_auth_get_unused_bytes): append the unused bytes
1145 to the passed in string, rather than prepend
1147 * dbus/dbus-transport.c (_dbus_transport_init_base): create
1148 the auth conversation DBusAuth
1150 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
1151 (_dbus_transport_new_for_domain_socket): when creating a
1152 transport, pass in whether it's a client-side or server-side
1153 transport so we know which DBusAuth to create
1155 2002-12-03 Havoc Pennington <hp@pobox.com>
1157 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
1158 _after_ finalizing the derived members
1159 (unix_connection_set): unref watch if we fail to add it
1161 * dbus/dbus-connection.c (dbus_connection_unref): delete the
1162 transport first, so that the connection owned by the
1163 transport will be valid as the transport finalizes.
1165 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
1166 if necessary, and remove watches from the connection.
1168 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
1170 2002-12-26 Anders Carlsson <andersca@codefactory.se>
1172 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1173 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1174 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1175 (_dbus_marshal_test):
1176 * dbus/dbus-marshal.h:
1177 Add string marshal functions and have the demarshal functions
1178 return the new position.
1180 2002-12-25 Havoc Pennington <hp@pobox.com>
1182 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
1183 it is a simple protocol that just maps directly to SASL.
1185 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
1186 initial implementation, not actually used yet.
1188 * dbus/dbus-string.c (_dbus_string_find): new function
1189 (_dbus_string_equal): new function
1190 (_dbus_string_base64_encode): new function
1191 (_dbus_string_base64_decode): new function
1193 2002-12-25 Anders Carlsson <andersca@codefactory.se>
1196 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
1197 (_dbus_marshal_int32), (_dbus_marshal_uint32),
1198 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1199 (_dbus_demarshal_uint32), (_dbus_marshal_test):
1200 * dbus/dbus-marshal.h:
1201 * dbus/dbus-protocol.h:
1202 * dbus/dbus-test.c: (main):
1204 Add un-optimized marshalling/demarshalling routines.
1206 2002-12-25 Harri Porten <porten@kde.org>
1208 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
1210 2002-12-24 Zack Rusin <zack@kde.org>
1212 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
1213 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
1216 2002-12-24 Havoc Pennington <hp@pobox.com>
1218 * glib/dbus-gthread.c: fix include
1220 * glib/dbus-glib.h: rename DBusMessageHandler for now.
1221 I think glib API needs to change, though, as you don't
1222 want to use DBusMessageFunction, you want to use the
1223 DBusMessageHandler object. Probably
1224 dbus_connection_open_with_g_main_loop()
1225 and dbus_connection_setup_g_main_loop() or something like that
1226 (but think of better names...) that just create a connection
1227 that has watch/timeout functions etc. already set up.
1229 * dbus/dbus-connection.c
1230 (dbus_connection_send_message_with_reply): new function just to
1231 show how the message handler helps us deal with replies.
1233 * dbus/dbus-list.c (_dbus_list_remove_last): new function
1235 * dbus/dbus-string.c (_dbus_string_test): free a string that
1238 * dbus/dbus-hash.c: use memory pools for the hash entries
1239 (rebuild_table): be more paranoid about overflow, and
1240 shrink table when we can
1241 (_dbus_hash_test): reduce number of sprintfs and write
1242 valid C89. Add tests for case where we grow and then
1243 shrink the hash table.
1245 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
1247 * dbus/dbus-connection.c (dbus_connection_register_handler)
1248 (dbus_connection_unregister_handler): new functions
1250 * dbus/dbus-message.c (dbus_message_get_name): new
1252 * dbus/dbus-list.c: fix docs typo
1254 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
1255 an object representing a handler for messages.
1257 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1260 * glib/dbus-gthread.c: (dbus_gthread_init):
1261 Don't use the gdbus prefix for public functions.
1263 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1267 Add GLib checks and fixup .pc files
1271 * glib/dbus-gmain.c: (gdbus_connection_prepare),
1272 (gdbus_connection_check), (gdbus_connection_dispatch),
1273 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
1274 (dbus_connection_gsource_new):
1275 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
1276 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
1277 * glib/test-dbus-glib.c: (message_handler), (main):
1280 2002-12-15 Harri Porten <porten@kde.org>
1282 * autogen.sh: check for libtoolize before attempting to use it
1284 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
1287 * .cvsignore: ignore more stamp files
1289 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
1291 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
1292 without make install.
1294 2002-12-15 Havoc Pennington <hp@pobox.com>
1296 * dbus/dbus-threads.c: add thread stubs that a higher library
1297 layer can fill in. e.g. the GLib wrapper might fill them in with
1298 GThread stuff. We still need to use this thread API to
1299 thread-safe-ize the library.
1301 2002-12-12 Havoc Pennington <hp@pobox.com>
1303 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
1304 below new interfaces and include fewer system headers.
1306 * dbus/dbus-sysdeps.c (_dbus_read): new function
1307 (_dbus_write): new function
1308 (_dbus_write_two): new function
1309 (_dbus_connect_unix_socket): new function
1310 (_dbus_listen_unix_socket): new function
1312 * dbus/dbus-message-internal.h: change interfaces to use
1315 2002-12-11 Havoc Pennington <hp@pobox.com>
1317 * dbus/dbus-types.h: add dbus_unichar
1319 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
1321 * dbus/dbus-connection.c (dbus_connection_send_message): return
1324 * dbus/dbus-transport.c: include dbus-watch.h
1326 * dbus/dbus-connection.c: include dbus-message-internal.h
1328 * HACKING: add file with coding guidelines stuff.
1330 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
1331 handling here, for security purposes (as in vsftpd). Not actually
1332 using this class yet.
1334 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
1335 system/libc usage here, as in vsftpd, for ease of auditing (and
1336 should also simplify portability). Haven't actually moved all the
1337 system/libc usage into here yet.
1339 2002-11-25 Havoc Pennington <hp@pobox.com>
1341 * dbus/dbus-internals.c (_dbus_verbose): fix to not
1342 always print the first verbose message.
1344 2002-11-24 Havoc Pennington <hp@pobox.com>
1346 * test/echo-client.c, test/echo-server.c: cheesy test
1349 * configure.in (AC_CHECK_FUNCS): check for writev
1351 * dbus/dbus-message.c (_dbus_message_get_network_data): new
1354 * dbus/dbus-list.c (_dbus_list_foreach): new function
1356 * dbus/dbus-internals.c (_dbus_verbose): new function
1358 * dbus/dbus-server.c, dbus/dbus-server.h: public object
1359 representing a server that listens for connections.
1361 * dbus/.cvsignore: create
1363 * dbus/dbus-errors.h, dbus/dbus-errors.c:
1364 public API for reporting errors
1366 * dbus/dbus-connection.h, dbus/dbus-connection.c:
1367 public object representing a connection that
1368 sends/receives messages. (Same object used for
1369 both client and server.)
1371 * dbus/dbus-transport.h, dbus/dbus-transport.c:
1372 Basic abstraction for different kinds of stream
1373 that we might read/write messages from.
1375 2002-11-23 Havoc Pennington <hp@pobox.com>
1377 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
1380 * dbus/dbus-test.c (main): add list test, and include
1381 dbus-test.h as intended
1383 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
1384 (_dbus_hash_table_remove_int): return value indicates
1385 whether the entry existed to remove
1387 * dbus/dbus-list.c: add linked list utility class,
1390 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
1393 2002-11-23 Havoc Pennington <hp@pobox.com>
1395 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
1396 DBUS_END_DECLS to nothing, that should fix this once and for all
1398 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
1400 * dbus/dbus-message.c, dbus/dbus-hash.c:
1401 add some missing @brief
1403 2002-11-23 Havoc Pennington <hp@pobox.com>
1405 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
1406 to avoid confusing Doxygen
1408 * dbus/dbus-hash.c: @} not }@
1410 * dbus/dbus-message.c (struct DBusMessage): split out
1413 2002-11-23 Havoc Pennington <hp@pobox.com>
1415 * configure.in: pile on more warning flags if using gcc
1417 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
1418 to document static functions
1420 * configure.in: add summary to end of configure so it
1421 looks nice and attractive
1423 * dbus/dbus-hash.c: finish implementation and write unit
1426 * configure.in: add --enable-tests to enable unit tests
1428 * dbus/dbus-test.c: test program to run unit tests
1429 for all files in dbus/*, initially runs a test for
1432 * dbus/dbus-internals.h: file to hold some internal utility stuff
1434 2002-11-22 Havoc Pennington <hp@redhat.com>
1436 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
1437 "ported" away from Tcl
1439 * dbus/dbus-types.h: header for types such as dbus_bool_t
1441 2002-11-22 Havoc Pennington <hp@redhat.com>
1443 * dbus/dbus.h: fixups for doc warnings
1445 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
1447 (QUIET): make it quiet so we can see warnings
1449 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
1451 2002-11-22 Havoc Pennington <hp@redhat.com>
1453 * Makefile.am: include "Doxyfile" target in all-local
1455 * configure.in: generate the Doxyfile
1457 * Doxyfile.in: move Doxyfile here, so we can use
1458 configure to generate a Doxyfile with the right
1461 2002-11-22 Havoc Pennington <hp@redhat.com>
1463 * dbus/dbus-message.c: move inline docs into .c file
1465 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
1466 so all docs are under doc/
1467 (MAN_EXTENSION): generate man pages. Use extension
1468 ".3dbus" which matches ".3qt" on my system,
1469 I guess this is OK, I don't know really.
1470 (FILE_PATTERNS): look for .c files not .h, makes sense
1473 2002-11-22 Havoc Pennington <hp@pobox.com>
1475 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
1476 because any app can be a server, and any app can be a client,
1477 the bus is a special kind of server.
1479 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
1481 * Doxyfile : adding. Still needs Makefile rules to be generated
1482 automatically (just run "doxygen" in the toplevel dir for now to
1485 * dbus/dbus-message.h : Adding sample docs (javadoc since
1486 resembles gtk-doc a little more)
1488 * dbus/dbus.h : Adding sample docs
1490 2002-11-21 Havoc Pennington <hp@redhat.com>
1492 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
1493 so we can allow ourselves to include files directly,
1494 instead of having to use dbus.h
1496 * dbus/dbus.h: fill in
1498 * dbus/dbus-message.h: sketch out a sample header file.
1499 Include griping if you include it directly instead of
1502 * dbus/dbus-macros.h: new file with macros for extern "C",
1503 TRUE/FALSE, NULL, etc.
1505 * doc/file-boilerplate.c: put include guards in here
1507 2002-11-21 Havoc Pennington <hp@redhat.com>
1509 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
1511 * COPYING: include the GPL as well, and license code
1512 under both AFL and GPL.
1514 2002-11-21 Havoc Pennington <hp@redhat.com>
1516 * acconfig.h: get rid of this
1518 * autogen.sh (run_configure): add --no-configure option
1520 * configure.in: remove AC_ARG_PROGRAM to make
1521 autoconf complain less. add AC_PREREQ.
1522 add AC_DEFINE third arg.
1524 2002-11-21 Anders Carlsson <andersca@codefactory.se>
1527 Fix references so we can distcheck.
1529 2002-11-21 Havoc Pennington <hp@redhat.com>
1531 * Initial module creation