1 2003-02-02 Anders Carlsson <andersca@codefactory.se>
3 * bus/driver.c: (bus_driver_handle_service_exists):
4 Don't unref the incoming message.
6 2003-02-02 Anders Carlsson <andersca@codefactory.se>
8 * dbus/dbus.h: Add dbus-address.h and dbus-bus.h
10 2003-02-02 Anders Carlsson <andersca@codefactory.se>
12 * dbus/dbus-server.c: (dbus_server_listen):
13 * dbus/dbus-transport.c: (_dbus_transport_open):
14 ifdef out the calls to the debug transport and server.
16 2003-02-02 Alexander Larsson <alexl@redhat.com>
18 * dbus/dbus-watch.c (dbus_watch_get_flags):
19 Add note in the docs that ERROR or HANGUP won't be returned
20 and are assumed always on.
22 * glib/dbus-gmain.c (add_watch):
23 Always add IO_ERR | IO_HUP
25 * dbus/dbus-message.h:
26 Add semicolon after dbus_message_iter_get_string_array().
27 Makes qt code build again
29 2003-02-01 Anders Carlsson <andersca@codefactory.se>
31 * bus/driver.c: (create_unique_client_name),
32 (bus_driver_handle_hello):
33 Don't take a name, just use a numeric id to identify
37 * dbus/dbus-bus.c: (dbus_bus_register_client),
38 (dbus_bus_acquire_service), (dbus_bus_service_exists):
40 Add new convenience functions for communicating with the bus.
42 * dbus/dbus-message.h:
44 * dbus/dbus-protocol.h:
47 2003-02-01 Alexander Larsson <alexl@redhat.com>
49 * dbus/dbus-message.c (dbus_message_append_fields):
50 Add some more doc comments.
52 2003-02-01 Havoc Pennington <hp@pobox.com>
54 * dbus/dbus-break-loader.c (randomly_modify_length): change
55 a 4-byte value in the message as if it were a length
57 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): don't set
58 execute bit on saved files
60 2003-02-01 Havoc Pennington <hp@pobox.com>
62 * dbus/dbus-break-loader.c (main): new program to find messages
63 that break the loader.
65 * dbus/dbus-sysdeps.c (_dbus_string_append_uint): new function
66 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): new function
68 * dbus/dbus-string.c (_dbus_string_set_byte): new
70 2003-01-31 Havoc Pennington <hp@pobox.com>
72 * dbus/dbus-message.c: refactor the test code to be more general,
73 in preparation for writing a "randomly permute test cases to
74 try to break the loader" program.
76 2003-01-31 Havoc Pennington <hp@pobox.com>
78 * doc/dbus-specification.sgml: work on the specification
80 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): check
81 the protocol version of the message.
83 * dbus/dbus-protocol.h: drop special _REPLY names, the spec
84 no longer specifies that.
85 (DBUS_SERVICE_REPLY_SERVICE_EXISTS): fix flags (1/2/4/8 not
88 * dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos): add missing
89 "break" for DBUS_TYPE_NIL, remove @todo
91 2003-01-31 Havoc Pennington <hp@pobox.com>
93 * dbus/dbus-message.c (dbus_message_set_is_error_reply): rename
94 just set_is_error/get_is_error as this is a commonly-used
95 function, and write docs.
97 2003-01-31 Anders Carlsson <andersca@codefactory.se>
99 * dbus/dbus-address.c: (dbus_address_entry_free):
100 Free key and value lists.
102 * dbus/dbus-internals.c: (_dbus_type_to_string):
103 Add the types we didn't have.
105 * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
106 (_dbus_marshal_validate_arg):
109 * dbus/dbus-message.c: (dbus_message_set_sender):
110 Remove todo about being able to set sender to NULL.
112 (dbus_message_set_is_error_reply),
113 (dbus_message_get_is_error_reply):
114 * dbus/dbus-message.h:
117 * dbus/dbus-protocol.h:
118 Add error reply flag.
120 * test/data/valid-messages/opposite-endian.message:
121 Add NIL type to test.
123 2003-01-31 Havoc Pennington <hp@pobox.com>
125 * doc/dbus-specification.sgml: fully specify the header. Add
126 flags and major protocol version, and change header/body len to
129 * dbus/dbus-message-builder.c (append_saved_length): append length
132 * dbus/dbus-message.c (dbus_message_create_header): change header
133 length and body length to unsigned. Add the new fields from the
135 (_dbus_message_loader_return_buffer): unsigned header/body len
137 2003-01-30 Havoc Pennington <hp@pobox.com>
139 * dbus/dbus-auth.c: rework to use only REJECTED, no
142 * doc/dbus-sasl-profile.txt: drop MECHANISMS and just
143 use REJECTED, suggested by Mark McLoughlin
145 2003-01-30 Havoc Pennington <hp@pobox.com>
147 * dbus/dbus-server.c (dbus_server_listen): @todo about how we need
148 a better way to report errors here. e.g. "unix address lacks
149 path" or something. also "no such file" when the path doesn't
152 * dbus/dbus-address.c (dbus_address_entries_free): add @todo about
154 (dbus_parse_address): add @todo about documenting address format,
155 and allowing , and ; to be escaped
157 2003-01-30 Anders Carlsson <andersca@codefactory.se>
160 Add dbus-address.[ch]
162 * dbus/dbus-address.c: (dbus_address_entry_free),
163 (dbus_address_entries_free), (create_entry),
164 (dbus_address_entry_get_method), (dbus_address_entry_get_value),
165 (dbus_parse_address), (_dbus_address_test):
166 * dbus/dbus-address.h:
167 New files for dealing with address parsing.
169 * dbus/dbus-connection.c:
170 Document timeout functions.
172 * dbus/dbus-message.c:
173 Document dbus_message_new_from_message.
175 * dbus/dbus-server-debug.c:
178 * dbus/dbus-server.c: (dbus_server_listen):
179 Parse address and use correct server implementation.
181 * dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
182 * dbus/dbus-string.h:
183 New function with test.
185 * dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
189 * dbus/dbus-transport-debug.c:
192 * dbus/dbus-transport.c: (_dbus_transport_open):
193 Parse address and use correct transport implementation.
195 2003-01-30 Havoc Pennington <hp@pobox.com>
197 * dbus/dbus-message.c: use message->byte_order instead of
198 DBUS_COMPILER_BYTE_ORDER throughout.
199 (dbus_message_create_header): pad header to align the
200 start of the body of the message to 8-byte boundary
202 * dbus/dbus-marshal.h: make all the demarshalers take const
203 DBusString arguments.
205 * dbus/dbus-message.c (_dbus_message_loader_return_buffer):
206 validate message args here, so we don't have to do slow validation
207 later, and so we catch bad messages as they are incoming. Also add
208 better checks on header_len and body_len. Also fill in
211 * dbus/dbus-string.c (_dbus_string_validate_utf8): new (not
212 implemented properly)
213 (_dbus_string_validate_nul): new function to check all-nul
215 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): rename
216 get_arg_end_pos and remove all validation
217 (_dbus_marshal_validate_arg): actually do validation here.
219 2003-01-29 Havoc Pennington <hp@pobox.com>
221 * dbus/dbus-message.c (check_message_handling): fix assertion
222 failure on set_client_serial
224 2003-01-28 Havoc Pennington <hp@pobox.com>
226 * dbus/dbus-server-debug.c: Add doc section comments
228 * dbus/dbus-transport-debug.c: add doc section comments
230 2003-01-28 Havoc Pennington <hp@redhat.com>
232 * dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
233 the reverse order from how I had it
234 (_dbus_string_base64_encode): reverse encoding order. I was
235 basically byteswapping everything during encoding.
237 2003-01-28 Anders Carlsson <andersca@codefactory.se>
239 * dbus/dbus-connection-internal.h:
240 * dbus/dbus-connection.c: (_dbus_connection_add_timeout),
241 (_dbus_connection_remove_timeout):
242 Add functions for adding and removing timeouts.
244 * dbus/dbus-message.c: (dbus_message_new_from_message):
245 Add new function that takes a message and creates an exact
246 copy of it, but with the refcount set to 1.
247 (check_message_handling):
250 * dbus/dbus-server-protected.h:
251 * dbus/dbus-server.c: (_dbus_server_init_base),
252 (_dbus_server_finalize_base), (_dbus_server_add_timeout),
253 (dbus_server_set_timeout_functions):
254 (_dbus_server_remove_timeout):
255 New functions so that a server can add and remove timeouts.
257 (dbus_server_listen):
258 Add commented out call to dbus_server_debug_new.
260 * dbus/dbus-timeout.c: (_dbus_timeout_new):
261 Actually set the handler, doh.
263 * dbus/dbus-transport.c: (_dbus_transport_open):
264 Add commented out call to dbus_transport_debug_client_new.
267 Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
269 2003-01-28 Havoc Pennington <hp@pobox.com>
271 * dbus/dbus-message.c (check_message_handling): function to check
272 on the loaded message, iterates over it etc.
274 2003-01-28 Havoc Pennington <hp@pobox.com>
276 * test/Makefile.am (dist-hook): fix make distdir
278 * dbus/Makefile.am (TESTS_ENVIRONMENT): fix make check
280 2003-01-27 Havoc Pennington <hp@pobox.com>
282 * dbus/dbus-mempool.c (time_for_size): replace printf with
285 * dbus/dbus-message-builder.c (_dbus_message_data_load): allow
286 empty lines; fix the SAVE_LENGTH stuff to be
287 START_LENGTH/END_LENGTH so it actually works; couple other
290 * test/Makefile.am (dist-hook): add dist-hook for .message files
292 * dbus/dbus-string.c (DBUS_STRING_COPY_PREAMBLE): source of a copy
293 can be constant or locked.
294 (_dbus_string_free): allow freeing a const string as
297 * dbus/dbus-sysdeps.c (_dbus_concat_dir_and_file): utility
299 * dbus/dbus-test-main.c (main): take an argument which is the
300 directory containing test data
302 * dbus/dbus-message.c (_dbus_message_test): pass a test_data_dir
303 argument to this and load all the messages in test/data/
304 checking that they can be loaded or not loaded as appropriate.
306 2003-01-27 Anders Carlsson <andersca@codefactory.se>
308 * bus/dispatch.c: (bus_dispatch_message_handler):
309 Dispatch messages sent to services.
311 * bus/driver.c: (bus_driver_send_service_deleted),
312 (bus_driver_send_service_created), (bus_driver_send_service_lost),
313 (bus_driver_send_service_acquired):
314 Add helper functions for sending service related messages.
316 (bus_driver_send_welcome_message):
317 Send HELLO_REPLY instead of WELCOME.
319 (bus_driver_handle_list_services):
320 Send LIST_SERVICES_REPLY instead of SERVICES.
322 (bus_driver_handle_own_service),
323 (bus_driver_handle_service_exists):
324 New message handlers.
326 (bus_driver_handle_message):
327 Invoke new message handlers.
329 (bus_driver_remove_connection):
330 Don't remove any services here since that's done automatically
331 by bus_service_remove_owner now.
334 New function signatures.
336 * bus/services.c: (bus_service_add_owner):
337 Send ServiceAcquired message if we're the only primary owner.
339 (bus_service_remove_owner):
340 Send ServiceAcquired/ServiceLost messages.
342 (bus_service_set_prohibit_replacement),
343 (bus_service_get_prohibit_replacement):
344 Functions for setting prohibit replacement.
346 (bus_service_has_owner):
347 New function that checks if a connection is in the owner queue of
351 Add new function signatures.
353 * dbus/dbus-list.c: (_dbus_list_test):
354 Add tests for _dbus_list_remove_last and traversing the list backwards.
357 Fix a typo in _dbus_list_get_prev_link, if we're at the first element we can't
358 go any further, so return NULL then.
360 * dbus/dbus-protocol.h:
361 Add new messages, service flags and service replies.
363 2003-01-26 Havoc Pennington <hp@pobox.com>
365 * dbus/dbus-message-builder.c: implement, completely untested.
367 * test/data/*: add data to be used in testing.
368 ".message" files are our simple loadable text format.
369 ".message-raw" will be binary dumps of messages.
371 * dbus/dbus-string.c (_dbus_string_starts_with_c_str): new
373 2003-01-26 Havoc Pennington <hp@pobox.com>
375 * dbus/dbus-sysdeps.c (_dbus_file_get_contents): new function
377 * dbus/dbus-errors.c (dbus_result_to_string): add
380 * dbus/dbus-message-builder.c: new file, will contain code to load
381 up messages from files. Not implemented yet.
383 2003-01-26 Havoc Pennington <hp@pobox.com>
385 * dbus/dbus-message.c (dbus_message_set_sender): support deleting
386 the sender by setting to NULL
388 2003-01-26 Havoc Pennington <hp@pobox.com>
390 The unit tests pass, but otherwise untested. If it breaks, the
391 tests should have been better. ;-)
393 * bus/driver.c (bus_driver_handle_hello): return if we disconnect
396 * dbus/dbus-message.c: redo everything so we maintain
397 message->header as the only copy of the various fields.
398 This avoids the possibility of out-of-memory in some cases,
399 for example dbus_message_lock() can't run out of memory anymore,
400 and avoids extra copying. Figured I may as well go ahead and do
401 this since it was busted for dbus_message_lock to not return
402 failure on OOM, and dbus_message_write_header was totally
403 unchecked for OOM. Also fixed some random other bugs.
405 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): verify
406 that strings are nul-terminated. Also, end_pos can be equal
407 to string length just not greater than, I think.
408 (_dbus_marshal_set_int32): new function
409 (_dbus_marshal_set_uint32): new function
410 (_dbus_marshal_set_string): new function
412 * dbus/dbus-connection.c (_dbus_connection_new_for_transport): fix
413 a warning, init timeout_list to NULL
414 (dbus_connection_send_message): don't use uninitialized variable
417 * dbus/dbus-string.c (_dbus_string_replace_len): new function
419 2003-01-26 Anders Carlsson <andersca@codefactory.se>
421 * bus/driver.c: (bus_driver_handle_hello),
422 (bus_driver_send_welcome_message):
425 2003-01-26 Anders Carlsson <andersca@codefactory.se>
427 * dbus/dbus-auth.c: (process_auth), (_dbus_auth_unref):
428 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
429 (dbus_connection_unref):
430 * dbus/dbus-marshal.c: (_dbus_marshal_test):
431 * dbus/dbus-message.c: (dbus_message_unref),
434 (dbus_message_get_fields):
435 Remove debugging printout.
437 (_dbus_message_loader_return_buffer):
438 Don't store the header string.
440 (_dbus_message_test):
443 2003-01-26 Richard Hult <rhult@codefactory.se>
445 * glib/dbus-gmain.c (dbus_connection_dispatch): Traverse a copy of
446 the file descriptor list, since it can change under us.
448 2003-01-25 Anders Carlsson <andersca@codefactory.se>
450 * glib/dbus-gmain.c: (dbus_connection_prepare),
451 (dbus_connection_check), (dbus_connection_dispatch), (add_watch),
452 (remove_watch), (dbus_connection_hookup_with_g_main):
453 Rewrite the glib handling to use its own GSource instead of a
454 GIOChannel so we can catch messages put in the queue while waiting
457 2003-01-25 Anders Carlsson <andersca@codefactory.se>
460 * bus/connection.c: (connection_disconnect_handler),
461 (connection_watch_callback), (bus_connection_setup):
462 * bus/dispatch.c: (send_one_message),
463 (bus_dispatch_broadcast_message), (bus_dispatch_message_handler),
464 (bus_dispatch_add_connection), (bus_dispatch_remove_connection):
466 * bus/driver.c: (bus_driver_send_service_deleted),
467 (bus_driver_send_service_created), (bus_driver_handle_hello),
468 (bus_driver_send_welcome_message),
469 (bus_driver_handle_list_services), (bus_driver_remove_connection),
470 (bus_driver_handle_message):
472 Refactor code, put the message dispatching in its own file. Use
473 _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client
476 2003-01-25 Anders Carlsson <andersca@codefactory.se>
478 * dbus/dbus-internals.h:
479 Add _DBUS_HANDLE_OOM macro, it doesn't do anything currently.
481 * dbus/dbus-message.c: (dbus_message_get_sender):
482 * dbus/dbus-message.h:
483 Implement dbus_message_get_sender.
485 * dbus/dbus-protocol.h:
486 Add message and service defines.
488 2003-01-25 Anders Carlsson <andersca@codefactory.se>
490 * dbus/dbus-connection.c: (dbus_connection_send_message):
491 * dbus/dbus-message-internal.h:
492 * dbus/dbus-message.c: (_dbus_message_get_client_serial),
493 (dbus_message_write_header):
494 Remove _dbus_messag_unlock and don't set the client serial on a
495 message if one already exists.
497 2003-01-24 Havoc Pennington <hp@pobox.com>
499 * dbus/dbus-list.c (alloc_link): put a thread lock on the global
502 * bus/driver.c (bus_driver_handle_list_services): fix a leak
505 2003-01-25 Anders Carlsson <andersca@codefactory.se>
507 * dbus/dbus-list.c: (alloc_link), (free_link):
508 Use a memory pool for the links.
510 2003-01-25 Anders Carlsson <andersca@codefactory.se>
512 * bus/connection.c: (bus_connection_foreach):
514 Add new bus_connection_foreach function.
516 * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
517 Add function that broadcasts a message to all clients.
519 (bus_driver_send_service_created), (bus_driver_handle_hello),
520 (bus_driver_send_welcome_message),
521 (bus_driver_handle_list_services), (bus_driver_message_handler):
522 Implement functions that take care of listing services, and notifying
523 clients when new services are created.
525 * bus/services.c: (bus_services_list):
527 Add new function that returns an array of strings with the currently
532 Update copyright year.
534 2003-01-25 Anders Carlsson <andersca@codefactory.se>
536 * dbus/dbus-connection.c: (dbus_connection_send_message):
537 Unlock the message in case it was sent earlier.
539 (dbus_connection_send_message_with_reply_and_block):
540 Remove the reply message from the list.
542 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
543 Set array_len and new_pos correctly.
545 (_dbus_marshal_test):
548 * dbus/dbus-message-internal.h:
549 * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
550 New function that returns the reply serial.
552 (_dbus_message_unlock):
553 New function that unlocks a message and resets its header.
555 (dbus_message_append_string_array),
556 (dbus_message_get_fields_valist),
557 (dbus_message_iter_get_field_type),
558 (dbus_message_iter_get_string_array),
559 (dbus_message_get_fields),
560 (dbus_message_append_fields_valist):
561 Handle string arrays.
563 (dbus_message_set_sender):
564 Make this function public since the bus daemon needs it.
566 (decode_header_data):
567 Set the reply serial to -1 initially.
569 * dbus/dbus-message.h:
570 Add dbus_message_set_sender.
572 2003-01-24 Havoc Pennington <hp@pobox.com>
574 * doc/dbus-specification.sgml: add some stuff
576 2003-01-22 Havoc Pennington <hp@pobox.com>
578 * doc/dbus-specification.sgml: Start to document the protocol.
580 2003-01-22 Havoc Pennington <hp@pobox.com>
582 * dbus/dbus-connection.c
583 (dbus_connection_send_message_with_reply_and_block): add some @todo
585 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
587 2003-01-21 Havoc Pennington <hp@pobox.com>
589 (patch untested because can't compile)
591 * bus/driver.c (create_unique_client_name): make this function
592 never recycle client names. Also, caller should initialize
595 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
597 2003-01-21 Anders Carlsson <andersca@codefactory.se>
599 * dbus/dbus-marshal.c: (_dbus_marshal_double),
600 (_dbus_marshal_int32), (_dbus_marshal_uint32),
601 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
602 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
603 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
604 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
605 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
606 * dbus/dbus-marshal.h:
607 * dbus/dbus-protocol.h:
608 Add support for marshalling and demarshalling integer, double
611 2003-01-21 Anders Carlsson <andersca@codefactory.se>
616 * bus/connection.c: (connection_disconnect_handler):
617 Remove the connection from the bus driver's list.
619 (connection_watch_callback): Dispatch messages.
621 (free_connection_data): Free connection name.
623 (bus_connection_setup): Add connection to the bus driver's list.
624 (bus_connection_remove_owned_service):
625 (bus_connection_set_name), (bus_connection_get_name):
626 Add functions for setting and getting the connection's name.
629 Add function headers.
631 * bus/driver.c: (create_unique_client_name),
632 (bus_driver_handle_hello_message),
633 (bus_driver_send_welcome_message), (bus_driver_message_handler),
634 (bus_driver_add_connection), (bus_driver_remove_connection):
637 * bus/services.c: (bus_service_free):
639 New file that handles communication and registreation with the bus
642 2003-01-21 Anders Carlsson <andersca@codefactory.se>
644 * dbus/dbus-connection.c: (dbus_connection_send_message):
645 Add a new client_serial parameter.
647 (dbus_connection_send_message_with_reply):
648 Remove a @todo since we've implemented the blocking function.
650 (dbus_connection_send_message_with_reply_and_block):
651 New function that sends a message and waits for a reply and
652 then returns the reply.
654 * dbus/dbus-connection.h:
657 * dbus/dbus-errors.c: (dbus_result_to_string):
658 * dbus/dbus-errors.h:
661 * dbus/dbus-message-internal.h:
662 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
663 (_dbus_message_set_sender), (dbus_message_write_header),
664 (dbus_message_new_reply), (decode_header_data),
665 (_dbus_message_loader_return_buffer), (_dbus_message_test):
666 * dbus/dbus-message.h:
667 Add new functions that set the reply serial and sender.
668 Also marshal and demarshal them correctly and add test.
670 * dbus/dbus-protocol.h:
671 Add new DBUS_MESSAGE_TYPE_SENDER.
674 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
675 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
676 (dbus_connection_hookup_with_g_main):
677 * glib/test-dbus-glib.c: (main):
678 Rewrite to use GIOChannel and remove the GSource crack.
680 * test/echo-client.c: (main):
681 * test/watch.c: (check_messages):
682 Update for changed APIs
684 2003-01-19 Anders Carlsson <andersca@codefactory.se>
686 * dbus/Makefile.am: Add dbus-timeout.[cħ]
688 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
689 Create a DBusTimeoutList.
690 (dbus_connection_set_timeout_functions): Add new function to
691 set timeout callbacks
693 * dbus/dbus-connection.h: Add public DBusTimeout API.
695 * dbus/dbus-message.c: (dbus_message_get_service):
696 * dbus/dbus-message.h: New function.
698 * dbus/dbus-server.c: Fix small doc typo.
700 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
702 2003-01-19 Anders Carlsson <andersca@codefactory.se>
704 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
705 of the string, just as long as specified.
707 2003-01-19 Havoc Pennington <hp@pobox.com>
709 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
712 * dbus/dbus-server.c (dbus_server_set_max_connections)
713 (dbus_server_get_max_connections, dbus_server_get_n_connections):
714 keep track of current number of connections, and add API for
715 setting a max (but haven't implemented enforcing the max yet)
717 2003-01-18 Havoc Pennington <hp@pobox.com>
719 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
720 reading/writing if read_watch != NULL or write_watch != NULL.
722 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
723 the message loader code to actually load message->header and
724 message->body into the newly-created message.
726 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
729 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
730 (dbus_connection_get_max_message_size)
731 (dbus_connection_set_max_live_messages_size)
732 (dbus_connection_get_max_live_messages_size): implement some
733 resource limitation functions
735 * dbus/dbus-resources.c: new file implementing some of the
736 resource limits stuff
738 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
739 missing docs, add @todo to handle OOM etc.
741 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
744 2003-01-18 Havoc Pennington <hp@pobox.com>
746 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
747 connection if it hasn't been already.
749 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
750 replace with DisconnectFunction.
752 2003-01-18 Havoc Pennington <hp@pobox.com>
754 Building --disable-verbose-mode --disable-asserts --disable-tests
755 cuts the library from 112K to 45K or so
757 * configure.in: check for varargs macro support,
758 add --enable-verbose-mode, --enable-asserts.
760 * dbus/dbus-internals.h (_dbus_assert): support
762 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
764 2003-01-18 Havoc Pennington <hp@pobox.com>
766 * dbus/dbus-test.c: include config.h so that tests actually run
768 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
769 so the failure mode when that assumption fails will be plenty
772 2003-01-18 Havoc Pennington <hp@pobox.com>
774 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
776 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
779 * test/Makefile.am: don't use special variable "TESTS" for echo-*
780 since we don't want to use those in make check
782 2003-01-15 Havoc Pennington <hp@redhat.com>
788 2003-01-15 Havoc Pennington <hp@redhat.com>
790 * test/Makefile.am: fix so that test source code ends up in the
791 distribution on make distcheck
793 2003-01-15 Havoc Pennington <hp@redhat.com>
799 2003-01-15 Havoc Pennington <hp@redhat.com>
801 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
802 fix build when --disable-tests
804 * Makefile.am (EXTRA_DIST): put HACKING in here
806 * HACKING: document procedure for making a tarball release.
808 2003-01-14 Anders Carlsson <andersca@codefactory.se>
810 * bus/connection.c: (connection_error_handler),
811 (bus_connection_setup):
812 * bus/main.c: (main):
813 Make sure that the DBusConnectionData struct is NULLed
814 out to prevent a segfault.
816 * dbus/dbus-errors.c: (dbus_result_to_string):
817 * dbus/dbus-errors.h:
818 * dbus/dbus-message.c: (dbus_message_get_fields),
819 (dbus_message_get_fields_valist), (_dbus_message_test):
820 * dbus/dbus-message.h:
821 Make dbus_message_get_fields return a result code so we can
822 track invalid fields as well as oom.
824 2003-01-11 Havoc Pennington <hp@pobox.com>
826 * configure.in: change --enable-test/--enable-ansi action-if-given
827 to enable_foo=$enableval instead of enable_foo=yes
829 2003-01-08 Havoc Pennington <hp@pobox.com>
831 * dbus/dbus-string.c (_dbus_string_align_length): new function
833 * dbus/dbus-test-main.c: move main() for test app here
835 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
836 symbol to run tests, because dbus-test isn't in the main
839 Code review nitpicks.
841 * dbus/dbus-message.c (dbus_message_write_header): add newlines
842 for people with narrow emacs ;-). Assert client_serial was filled
843 in. Assert message->name != NULL.
844 (dbus_message_append_fields): have "first_field_type" arg separate
845 from va list, needed for C++ binding that also uses varargs IIRC
846 and helps with type safety
847 (dbus_message_new): add @todo about using DBusString to store
848 service/name internally
849 (dbus_message_new): don't leak ->service and ->name on OOM later
851 (dbus_message_unref): free the service name
852 (dbus_message_get_fields): same change to varargs
853 i.e. first_field_type
854 (_dbus_message_loader_return_buffer): assert that the message data
855 is aligned (if not it's a bug in our code). Put in verbose griping
856 about why we set corrupted = TRUE.
857 (decode_header_data): add FIXME that char* is evil. Was going to
858 add FIXME about evil locale-specific string.h strncmp, but just
859 switched to wacky string-as-uint32 optimization. Move check for
860 "no room for field name" above get_const_data_len() to avoid
861 assertion failure in get_const_data_len if we have trailing 2
862 bytes or the like. Check for service and name fields being
863 provided twice. Don't leak service/name on error. Require field
864 names to be aligned to 4 bytes.
866 * dbus/dbus-marshal.c: move byte swap stuff to header
867 (_dbus_pack_int32): uscore-prefix
868 (_dbus_unpack_int32): uscore-prefix
869 (_dbus_unpack_uint32): export
870 (_dbus_demarshal_string): add @todo complaining about use of
872 (_dbus_marshal_get_field_end_pos): add @todo about bad error
873 handling allowing corrupt data to go unchecked
875 2003-01-08 Havoc Pennington <hp@redhat.com>
877 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
878 to the select() as needed for authentication. (should be using
879 _dbus_poll() not select, but for another day)
881 * dbus/dbus.h: include dbus/dbus-protocol.h
883 2003-01-08 Anders Carlsson <andersca@codefactory.se>
885 * dbus/Makefile.am (dbusinclude_HEADERS): Install
888 2003-01-08 Anders Carlsson <andersca@codefactory.se>
890 * dbus/dbus-internals.c: (_dbus_type_to_string):
891 New function that returns a string describing a type.
893 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
894 * dbus/dbus-marshal.h:
895 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
896 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
897 (dbus_message_iter_get_byte_array):
898 * dbus/dbus-message.h:
899 Add new convenience functions for appending and getting message fields.
900 Also add demarshalling routines for byte arrays.
902 2003-01-07 Anders Carlsson <andersca@codefactory.se>
904 * dbus/dbus-connection-internal.h:
905 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
906 (_dbus_connection_get_next_client_serial),
907 (dbus_connection_send_message):
908 * dbus/dbus-internals.h:
909 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
910 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
911 (_dbus_marshal_uint32), (_dbus_demarshal_double),
912 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
913 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
914 (_dbus_verbose_bytes), (_dbus_marshal_test):
915 * dbus/dbus-marshal.h:
916 * dbus/dbus-message-internal.h:
917 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
918 (dbus_message_write_header), (_dbus_message_lock),
919 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
920 (dbus_message_get_name), (dbus_message_append_int32),
921 (dbus_message_append_uint32), (dbus_message_append_double),
922 (dbus_message_append_string), (dbus_message_append_byte_array),
923 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
924 (dbus_message_iter_unref), (dbus_message_iter_has_next),
925 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
926 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
927 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
928 (decode_header_data), (_dbus_message_loader_return_buffer),
929 (message_iter_test), (_dbus_message_test):
930 * dbus/dbus-message.h:
931 * dbus/dbus-protocol.h:
932 * dbus/dbus-test.c: (main):
934 * glib/test-dbus-glib.c: (message_handler), (main):
935 * test/echo-client.c: (main):
936 * test/watch.c: (check_messages):
937 Make messages sendable and receivable for real.
939 2003-01-07 Anders Carlsson <andersca@codefactory.se>
941 * dbus/dbus-marshal.c: (_dbus_marshal_double),
942 (_dbus_marshal_string), (_dbus_marshal_byte_array):
943 * dbus/dbus-message.c: (dbus_message_append_int32),
944 (dbus_message_append_uint32), (dbus_message_append_double),
945 (dbus_message_append_string), (dbus_message_append_byte_array):
946 Handle OOM restoration.
948 2003-01-07 Anders Carlsson <andersca@codefactory.se>
950 * dbus/dbus-marshal.c: (_dbus_marshal_string),
951 (_dbus_demarshal_string), (_dbus_marshal_test):
952 * dbus/dbus-marshal.h:
953 * dbus/dbus-message.c: (dbus_message_get_name),
954 Document these functions.
956 (dbus_message_append_int32), (dbus_message_append_uint32),
957 (dbus_message_append_double), (dbus_message_append_string),
958 (dbus_message_append_byte_array):
959 * dbus/dbus-message.h:
960 Add functions for adding message fields of different types.
962 * dbus/dbus-protocol.h:
963 Add the different types.
965 2003-01-05 Havoc Pennington <hp@pobox.com>
967 * bus/connection.c: implement routines for handling connections,
968 first thing is keeping a list of owned services on each connection
969 and setting up watches etc.
971 * bus/services.c: implement a mapping from service names to lists
974 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
976 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
977 to use static mutexes for global data
979 * dbus/dbus-connection.c (dbus_connection_set_data): add new
980 collection of functions to set/get application-specific data
981 on the DBusConnection.
983 2003-01-04 Havoc Pennington <hp@pobox.com>
985 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
986 (_dbus_poll): new function
988 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
991 * bus/loop.c: initial code for the daemon main loop
993 2003-01-04 Havoc Pennington <hp@pobox.com>
995 * test/watch.c (error_handler): make it safe if the error handler
996 is called multiple times (if we s/error handler/disconnect
997 handler/ we should just guarantee it's called only once)
999 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
1000 error handler on disconnect (it's quite possible we should
1001 just change the error handler to a "disconnect handler," I'm
1002 not sure we have any other meaningful errors)
1004 * configure.in: check for getpwnam_r
1006 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
1007 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
1008 mechanism as in SASL spec, using socket credentials
1010 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
1011 (_dbus_send_credentials_unix_socket): new function
1013 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
1015 (_dbus_write): only check errno if <0 returned
1016 (_dbus_write_two): ditto
1018 2003-01-02 Anders Carlsson <andersca@codefactory.se>
1020 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
1021 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
1022 (_dbus_marshal_test):
1023 * dbus/dbus-marshal.h:
1024 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
1025 to _dbus_marshal_utf8_string. Also fix some tests.
1027 2002-12-28 Harri Porten <porten@kde.org>
1029 * configure.in: added check for C++ compiler and a very cheesy
1030 check for the Qt integration
1032 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
1034 * qt/Makefile.am: added
1036 * qt/.cvsignore: added
1038 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
1039 latter, added #ifdef QT_THREAD_SUPPORT guard.
1041 * dbus/Makefile.am: added missing headers for make dist
1043 2002-12-28 Kristian Rietveld <kris@gtk.org>
1045 * dbus/Makefile.am: fixup export-symbols-regex.
1047 2002-12-27 Anders Carlsson <andersca@codefactory.se>
1049 * acinclude.m4: Add this file and put the
1050 PKG_CHECK_MODULE macro in it.
1052 2002-12-27 Anders Carlsson <andersca@codefactory.se>
1054 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1055 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1056 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1057 (_dbus_marshal_test):
1058 Make the demarshalling routines align the pos argument.
1059 Add string marshalling tests and fix the obvious bugs
1062 2002-12-26 Havoc Pennington <hp@pobox.com>
1064 * dbus/dbus-auth.c: fixes fixes fixes
1066 * dbus/dbus-transport-unix.c: wire up support for
1067 encoding/decoding data on the wire
1069 * dbus/dbus-auth.c (_dbus_auth_encode_data)
1070 (_dbus_auth_decode_data): append to target string
1071 instead of nuking it.
1073 2002-12-26 Havoc Pennington <hp@pobox.com>
1075 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
1076 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
1079 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
1080 avoid swap_bytes() overhead (ignoring possible assembly stuff for
1081 now). Main point is because I wanted unpack_uint32 to implement
1083 (_dbus_verbose_bytes): new function
1085 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
1087 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
1088 mechanism to handle a corrupt message stream
1089 (_dbus_message_loader_new): fix preallocation to only prealloc,
1092 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
1093 (_dbus_string_test): enhance tests for copy/move and fix the
1096 * dbus/dbus-transport-unix.c: Hold references in more places to
1097 avoid reentrancy problems
1099 * dbus/dbus-transport.c: ditto
1101 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
1102 leak reference count in no-message case
1104 * test/watch.c (do_mainloop): handle adding/removing watches
1105 during iteration over the watches. Also, ref the connection/server
1106 stored on a watch, so we don't try to mangle a destroyed one.
1108 * dbus/dbus-transport-unix.c (do_authentication): perform
1111 * dbus/dbus-auth.c (get_state): add a state
1112 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
1113 (_dbus_auth_get_unused_bytes): append the unused bytes
1114 to the passed in string, rather than prepend
1116 * dbus/dbus-transport.c (_dbus_transport_init_base): create
1117 the auth conversation DBusAuth
1119 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
1120 (_dbus_transport_new_for_domain_socket): when creating a
1121 transport, pass in whether it's a client-side or server-side
1122 transport so we know which DBusAuth to create
1124 2002-12-03 Havoc Pennington <hp@pobox.com>
1126 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
1127 _after_ finalizing the derived members
1128 (unix_connection_set): unref watch if we fail to add it
1130 * dbus/dbus-connection.c (dbus_connection_unref): delete the
1131 transport first, so that the connection owned by the
1132 transport will be valid as the transport finalizes.
1134 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
1135 if necessary, and remove watches from the connection.
1137 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
1139 2002-12-26 Anders Carlsson <andersca@codefactory.se>
1141 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1142 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1143 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1144 (_dbus_marshal_test):
1145 * dbus/dbus-marshal.h:
1146 Add string marshal functions and have the demarshal functions
1147 return the new position.
1149 2002-12-25 Havoc Pennington <hp@pobox.com>
1151 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
1152 it is a simple protocol that just maps directly to SASL.
1154 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
1155 initial implementation, not actually used yet.
1157 * dbus/dbus-string.c (_dbus_string_find): new function
1158 (_dbus_string_equal): new function
1159 (_dbus_string_base64_encode): new function
1160 (_dbus_string_base64_decode): new function
1162 2002-12-25 Anders Carlsson <andersca@codefactory.se>
1165 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
1166 (_dbus_marshal_int32), (_dbus_marshal_uint32),
1167 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1168 (_dbus_demarshal_uint32), (_dbus_marshal_test):
1169 * dbus/dbus-marshal.h:
1170 * dbus/dbus-protocol.h:
1171 * dbus/dbus-test.c: (main):
1173 Add un-optimized marshalling/demarshalling routines.
1175 2002-12-25 Harri Porten <porten@kde.org>
1177 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
1179 2002-12-24 Zack Rusin <zack@kde.org>
1181 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
1182 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
1185 2002-12-24 Havoc Pennington <hp@pobox.com>
1187 * glib/dbus-gthread.c: fix include
1189 * glib/dbus-glib.h: rename DBusMessageHandler for now.
1190 I think glib API needs to change, though, as you don't
1191 want to use DBusMessageFunction, you want to use the
1192 DBusMessageHandler object. Probably
1193 dbus_connection_open_with_g_main_loop()
1194 and dbus_connection_setup_g_main_loop() or something like that
1195 (but think of better names...) that just create a connection
1196 that has watch/timeout functions etc. already set up.
1198 * dbus/dbus-connection.c
1199 (dbus_connection_send_message_with_reply): new function just to
1200 show how the message handler helps us deal with replies.
1202 * dbus/dbus-list.c (_dbus_list_remove_last): new function
1204 * dbus/dbus-string.c (_dbus_string_test): free a string that
1207 * dbus/dbus-hash.c: use memory pools for the hash entries
1208 (rebuild_table): be more paranoid about overflow, and
1209 shrink table when we can
1210 (_dbus_hash_test): reduce number of sprintfs and write
1211 valid C89. Add tests for case where we grow and then
1212 shrink the hash table.
1214 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
1216 * dbus/dbus-connection.c (dbus_connection_register_handler)
1217 (dbus_connection_unregister_handler): new functions
1219 * dbus/dbus-message.c (dbus_message_get_name): new
1221 * dbus/dbus-list.c: fix docs typo
1223 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
1224 an object representing a handler for messages.
1226 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1229 * glib/dbus-gthread.c: (dbus_gthread_init):
1230 Don't use the gdbus prefix for public functions.
1232 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1236 Add GLib checks and fixup .pc files
1240 * glib/dbus-gmain.c: (gdbus_connection_prepare),
1241 (gdbus_connection_check), (gdbus_connection_dispatch),
1242 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
1243 (dbus_connection_gsource_new):
1244 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
1245 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
1246 * glib/test-dbus-glib.c: (message_handler), (main):
1249 2002-12-15 Harri Porten <porten@kde.org>
1251 * autogen.sh: check for libtoolize before attempting to use it
1253 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
1256 * .cvsignore: ignore more stamp files
1258 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
1260 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
1261 without make install.
1263 2002-12-15 Havoc Pennington <hp@pobox.com>
1265 * dbus/dbus-threads.c: add thread stubs that a higher library
1266 layer can fill in. e.g. the GLib wrapper might fill them in with
1267 GThread stuff. We still need to use this thread API to
1268 thread-safe-ize the library.
1270 2002-12-12 Havoc Pennington <hp@pobox.com>
1272 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
1273 below new interfaces and include fewer system headers.
1275 * dbus/dbus-sysdeps.c (_dbus_read): new function
1276 (_dbus_write): new function
1277 (_dbus_write_two): new function
1278 (_dbus_connect_unix_socket): new function
1279 (_dbus_listen_unix_socket): new function
1281 * dbus/dbus-message-internal.h: change interfaces to use
1284 2002-12-11 Havoc Pennington <hp@pobox.com>
1286 * dbus/dbus-types.h: add dbus_unichar
1288 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
1290 * dbus/dbus-connection.c (dbus_connection_send_message): return
1293 * dbus/dbus-transport.c: include dbus-watch.h
1295 * dbus/dbus-connection.c: include dbus-message-internal.h
1297 * HACKING: add file with coding guidelines stuff.
1299 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
1300 handling here, for security purposes (as in vsftpd). Not actually
1301 using this class yet.
1303 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
1304 system/libc usage here, as in vsftpd, for ease of auditing (and
1305 should also simplify portability). Haven't actually moved all the
1306 system/libc usage into here yet.
1308 2002-11-25 Havoc Pennington <hp@pobox.com>
1310 * dbus/dbus-internals.c (_dbus_verbose): fix to not
1311 always print the first verbose message.
1313 2002-11-24 Havoc Pennington <hp@pobox.com>
1315 * test/echo-client.c, test/echo-server.c: cheesy test
1318 * configure.in (AC_CHECK_FUNCS): check for writev
1320 * dbus/dbus-message.c (_dbus_message_get_network_data): new
1323 * dbus/dbus-list.c (_dbus_list_foreach): new function
1325 * dbus/dbus-internals.c (_dbus_verbose): new function
1327 * dbus/dbus-server.c, dbus/dbus-server.h: public object
1328 representing a server that listens for connections.
1330 * dbus/.cvsignore: create
1332 * dbus/dbus-errors.h, dbus/dbus-errors.c:
1333 public API for reporting errors
1335 * dbus/dbus-connection.h, dbus/dbus-connection.c:
1336 public object representing a connection that
1337 sends/receives messages. (Same object used for
1338 both client and server.)
1340 * dbus/dbus-transport.h, dbus/dbus-transport.c:
1341 Basic abstraction for different kinds of stream
1342 that we might read/write messages from.
1344 2002-11-23 Havoc Pennington <hp@pobox.com>
1346 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
1349 * dbus/dbus-test.c (main): add list test, and include
1350 dbus-test.h as intended
1352 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
1353 (_dbus_hash_table_remove_int): return value indicates
1354 whether the entry existed to remove
1356 * dbus/dbus-list.c: add linked list utility class,
1359 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
1362 2002-11-23 Havoc Pennington <hp@pobox.com>
1364 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
1365 DBUS_END_DECLS to nothing, that should fix this once and for all
1367 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
1369 * dbus/dbus-message.c, dbus/dbus-hash.c:
1370 add some missing @brief
1372 2002-11-23 Havoc Pennington <hp@pobox.com>
1374 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
1375 to avoid confusing Doxygen
1377 * dbus/dbus-hash.c: @} not }@
1379 * dbus/dbus-message.c (struct DBusMessage): split out
1382 2002-11-23 Havoc Pennington <hp@pobox.com>
1384 * configure.in: pile on more warning flags if using gcc
1386 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
1387 to document static functions
1389 * configure.in: add summary to end of configure so it
1390 looks nice and attractive
1392 * dbus/dbus-hash.c: finish implementation and write unit
1395 * configure.in: add --enable-tests to enable unit tests
1397 * dbus/dbus-test.c: test program to run unit tests
1398 for all files in dbus/*, initially runs a test for
1401 * dbus/dbus-internals.h: file to hold some internal utility stuff
1403 2002-11-22 Havoc Pennington <hp@redhat.com>
1405 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
1406 "ported" away from Tcl
1408 * dbus/dbus-types.h: header for types such as dbus_bool_t
1410 2002-11-22 Havoc Pennington <hp@redhat.com>
1412 * dbus/dbus.h: fixups for doc warnings
1414 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
1416 (QUIET): make it quiet so we can see warnings
1418 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
1420 2002-11-22 Havoc Pennington <hp@redhat.com>
1422 * Makefile.am: include "Doxyfile" target in all-local
1424 * configure.in: generate the Doxyfile
1426 * Doxyfile.in: move Doxyfile here, so we can use
1427 configure to generate a Doxyfile with the right
1430 2002-11-22 Havoc Pennington <hp@redhat.com>
1432 * dbus/dbus-message.c: move inline docs into .c file
1434 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
1435 so all docs are under doc/
1436 (MAN_EXTENSION): generate man pages. Use extension
1437 ".3dbus" which matches ".3qt" on my system,
1438 I guess this is OK, I don't know really.
1439 (FILE_PATTERNS): look for .c files not .h, makes sense
1442 2002-11-22 Havoc Pennington <hp@pobox.com>
1444 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
1445 because any app can be a server, and any app can be a client,
1446 the bus is a special kind of server.
1448 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
1450 * Doxyfile : adding. Still needs Makefile rules to be generated
1451 automatically (just run "doxygen" in the toplevel dir for now to
1454 * dbus/dbus-message.h : Adding sample docs (javadoc since
1455 resembles gtk-doc a little more)
1457 * dbus/dbus.h : Adding sample docs
1459 2002-11-21 Havoc Pennington <hp@redhat.com>
1461 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
1462 so we can allow ourselves to include files directly,
1463 instead of having to use dbus.h
1465 * dbus/dbus.h: fill in
1467 * dbus/dbus-message.h: sketch out a sample header file.
1468 Include griping if you include it directly instead of
1471 * dbus/dbus-macros.h: new file with macros for extern "C",
1472 TRUE/FALSE, NULL, etc.
1474 * doc/file-boilerplate.c: put include guards in here
1476 2002-11-21 Havoc Pennington <hp@redhat.com>
1478 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
1480 * COPYING: include the GPL as well, and license code
1481 under both AFL and GPL.
1483 2002-11-21 Havoc Pennington <hp@redhat.com>
1485 * acconfig.h: get rid of this
1487 * autogen.sh (run_configure): add --no-configure option
1489 * configure.in: remove AC_ARG_PROGRAM to make
1490 autoconf complain less. add AC_PREREQ.
1491 add AC_DEFINE third arg.
1493 2002-11-21 Anders Carlsson <andersca@codefactory.se>
1496 Fix references so we can distcheck.
1498 2002-11-21 Havoc Pennington <hp@redhat.com>
1500 * Initial module creation