1 2003-02-11 Zack Rusin <zack@kde.org>
3 * qt/message.[h|cpp]: sample implementation
4 of the KDE wrapper for DBusMessage
6 2003-02-09 Zack Rusin <zack@kde.org>
8 * test/bus-test.c: make_it_compile
9 * doc/dbus-specification.sgml: minimal semantic fix
11 2003-02-06 Anders Carlsson <andersca@codefactory.se>
17 2003-02-06 Anders Carlsson <andersca@codefactory.se>
20 * dbus/dbus-break-loader.c:
22 * test/break-loader.c:
23 Move dbus-break-loader to test/ and rename it to break-loader.
25 2003-02-02 Havoc Pennington <hp@pobox.com>
27 * dbus/dbus-keyring.c, dbus/dbus-keyring.h: template files
28 for code to manage cookies in your home directory
30 * dbus/dbus-sysdeps.c (_dbus_generate_random_bytes): new function
32 * dbus/dbus-auth.c (get_state): impose a maximum number of tries
33 to authenticate, then disconnect the client.
35 2003-02-03 Alexander Larsson <alexl@redhat.com>
37 * dbus/dbus-message.c (dbus_message_append_fields):
40 2003-02-02 Anders Carlsson <andersca@codefactory.se>
42 * doc/dbus-specification.sgml:
43 Update address format section.
45 2003-02-02 Anders Carlsson <andersca@codefactory.se>
48 * test/bus-test.c: (get_time), (add_timeout), (remove_timeout),
49 (message_handler), (new_connection_callback), (loop_quit),
53 2003-02-02 Anders Carlsson <andersca@codefactory.se>
55 * bus/driver.c: (bus_driver_handle_service_exists):
56 Simplify the code a bit.
58 * dbus/dbus-bus.c: (dbus_bus_service_exists):
61 2003-02-02 Anders Carlsson <andersca@codefactory.se>
64 Add libdbus-daemon.la and link to it.
66 2003-02-01 James Willcox <jwillcox@gnome.org>
68 * bus/driver.c: (bus_driver_handle_own_service):
69 Actually include the service reply code in the message.
71 2003-02-02 Anders Carlsson <andersca@codefactory.se>
73 * bus/driver.c: (bus_driver_handle_service_exists):
74 Don't unref the incoming message.
76 2003-02-02 Anders Carlsson <andersca@codefactory.se>
78 * dbus/dbus.h: Add dbus-address.h and dbus-bus.h
80 2003-02-02 Anders Carlsson <andersca@codefactory.se>
82 * dbus/dbus-server.c: (dbus_server_listen):
83 * dbus/dbus-transport.c: (_dbus_transport_open):
84 ifdef out the calls to the debug transport and server.
86 2003-02-02 Alexander Larsson <alexl@redhat.com>
88 * dbus/dbus-watch.c (dbus_watch_get_flags):
89 Add note in the docs that ERROR or HANGUP won't be returned
90 and are assumed always on.
92 * glib/dbus-gmain.c (add_watch):
93 Always add IO_ERR | IO_HUP
95 * dbus/dbus-message.h:
96 Add semicolon after dbus_message_iter_get_string_array().
97 Makes qt code build again
99 2003-02-01 Anders Carlsson <andersca@codefactory.se>
101 * bus/driver.c: (create_unique_client_name),
102 (bus_driver_handle_hello):
103 Don't take a name, just use a numeric id to identify
107 * dbus/dbus-bus.c: (dbus_bus_register_client),
108 (dbus_bus_acquire_service), (dbus_bus_service_exists):
110 Add new convenience functions for communicating with the bus.
112 * dbus/dbus-message.h:
114 * dbus/dbus-protocol.h:
117 2003-02-01 Alexander Larsson <alexl@redhat.com>
119 * dbus/dbus-message.c (dbus_message_append_fields):
120 Add some more doc comments.
122 2003-02-01 Havoc Pennington <hp@pobox.com>
124 * dbus/dbus-break-loader.c (randomly_modify_length): change
125 a 4-byte value in the message as if it were a length
127 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): don't set
128 execute bit on saved files
130 2003-02-01 Havoc Pennington <hp@pobox.com>
132 * dbus/dbus-break-loader.c (main): new program to find messages
133 that break the loader.
135 * dbus/dbus-sysdeps.c (_dbus_string_append_uint): new function
136 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): new function
138 * dbus/dbus-string.c (_dbus_string_set_byte): new
140 2003-01-31 Havoc Pennington <hp@pobox.com>
142 * dbus/dbus-message.c: refactor the test code to be more general,
143 in preparation for writing a "randomly permute test cases to
144 try to break the loader" program.
146 2003-01-31 Havoc Pennington <hp@pobox.com>
148 * doc/dbus-specification.sgml: work on the specification
150 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): check
151 the protocol version of the message.
153 * dbus/dbus-protocol.h: drop special _REPLY names, the spec
154 no longer specifies that.
155 (DBUS_SERVICE_REPLY_SERVICE_EXISTS): fix flags (1/2/4/8 not
158 * dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos): add missing
159 "break" for DBUS_TYPE_NIL, remove @todo
161 2003-01-31 Havoc Pennington <hp@pobox.com>
163 * dbus/dbus-message.c (dbus_message_set_is_error_reply): rename
164 just set_is_error/get_is_error as this is a commonly-used
165 function, and write docs.
167 2003-01-31 Anders Carlsson <andersca@codefactory.se>
169 * dbus/dbus-address.c: (dbus_address_entry_free):
170 Free key and value lists.
172 * dbus/dbus-internals.c: (_dbus_type_to_string):
173 Add the types we didn't have.
175 * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
176 (_dbus_marshal_validate_arg):
179 * dbus/dbus-message.c: (dbus_message_set_sender):
180 Remove todo about being able to set sender to NULL.
182 (dbus_message_set_is_error_reply),
183 (dbus_message_get_is_error_reply):
184 * dbus/dbus-message.h:
187 * dbus/dbus-protocol.h:
188 Add error reply flag.
190 * test/data/valid-messages/opposite-endian.message:
191 Add NIL type to test.
193 2003-01-31 Havoc Pennington <hp@pobox.com>
195 * doc/dbus-specification.sgml: fully specify the header. Add
196 flags and major protocol version, and change header/body len to
199 * dbus/dbus-message-builder.c (append_saved_length): append length
202 * dbus/dbus-message.c (dbus_message_create_header): change header
203 length and body length to unsigned. Add the new fields from the
205 (_dbus_message_loader_return_buffer): unsigned header/body len
207 2003-01-30 Havoc Pennington <hp@pobox.com>
209 * dbus/dbus-auth.c: rework to use only REJECTED, no
212 * doc/dbus-sasl-profile.txt: drop MECHANISMS and just
213 use REJECTED, suggested by Mark McLoughlin
215 2003-01-30 Havoc Pennington <hp@pobox.com>
217 * dbus/dbus-server.c (dbus_server_listen): @todo about how we need
218 a better way to report errors here. e.g. "unix address lacks
219 path" or something. also "no such file" when the path doesn't
222 * dbus/dbus-address.c (dbus_address_entries_free): add @todo about
224 (dbus_parse_address): add @todo about documenting address format,
225 and allowing , and ; to be escaped
227 2003-01-30 Anders Carlsson <andersca@codefactory.se>
230 Add dbus-address.[ch]
232 * dbus/dbus-address.c: (dbus_address_entry_free),
233 (dbus_address_entries_free), (create_entry),
234 (dbus_address_entry_get_method), (dbus_address_entry_get_value),
235 (dbus_parse_address), (_dbus_address_test):
236 * dbus/dbus-address.h:
237 New files for dealing with address parsing.
239 * dbus/dbus-connection.c:
240 Document timeout functions.
242 * dbus/dbus-message.c:
243 Document dbus_message_new_from_message.
245 * dbus/dbus-server-debug.c:
248 * dbus/dbus-server.c: (dbus_server_listen):
249 Parse address and use correct server implementation.
251 * dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
252 * dbus/dbus-string.h:
253 New function with test.
255 * dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
259 * dbus/dbus-transport-debug.c:
262 * dbus/dbus-transport.c: (_dbus_transport_open):
263 Parse address and use correct transport implementation.
265 2003-01-30 Havoc Pennington <hp@pobox.com>
267 * dbus/dbus-message.c: use message->byte_order instead of
268 DBUS_COMPILER_BYTE_ORDER throughout.
269 (dbus_message_create_header): pad header to align the
270 start of the body of the message to 8-byte boundary
272 * dbus/dbus-marshal.h: make all the demarshalers take const
273 DBusString arguments.
275 * dbus/dbus-message.c (_dbus_message_loader_return_buffer):
276 validate message args here, so we don't have to do slow validation
277 later, and so we catch bad messages as they are incoming. Also add
278 better checks on header_len and body_len. Also fill in
281 * dbus/dbus-string.c (_dbus_string_validate_utf8): new (not
282 implemented properly)
283 (_dbus_string_validate_nul): new function to check all-nul
285 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): rename
286 get_arg_end_pos and remove all validation
287 (_dbus_marshal_validate_arg): actually do validation here.
289 2003-01-29 Havoc Pennington <hp@pobox.com>
291 * dbus/dbus-message.c (check_message_handling): fix assertion
292 failure on set_client_serial
294 2003-01-28 Havoc Pennington <hp@pobox.com>
296 * dbus/dbus-server-debug.c: Add doc section comments
298 * dbus/dbus-transport-debug.c: add doc section comments
300 2003-01-28 Havoc Pennington <hp@redhat.com>
302 * dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
303 the reverse order from how I had it
304 (_dbus_string_base64_encode): reverse encoding order. I was
305 basically byteswapping everything during encoding.
307 2003-01-28 Anders Carlsson <andersca@codefactory.se>
309 * dbus/dbus-connection-internal.h:
310 * dbus/dbus-connection.c: (_dbus_connection_add_timeout),
311 (_dbus_connection_remove_timeout):
312 Add functions for adding and removing timeouts.
314 * dbus/dbus-message.c: (dbus_message_new_from_message):
315 Add new function that takes a message and creates an exact
316 copy of it, but with the refcount set to 1.
317 (check_message_handling):
320 * dbus/dbus-server-protected.h:
321 * dbus/dbus-server.c: (_dbus_server_init_base),
322 (_dbus_server_finalize_base), (_dbus_server_add_timeout),
323 (dbus_server_set_timeout_functions):
324 (_dbus_server_remove_timeout):
325 New functions so that a server can add and remove timeouts.
327 (dbus_server_listen):
328 Add commented out call to dbus_server_debug_new.
330 * dbus/dbus-timeout.c: (_dbus_timeout_new):
331 Actually set the handler, doh.
333 * dbus/dbus-transport.c: (_dbus_transport_open):
334 Add commented out call to dbus_transport_debug_client_new.
337 Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
339 2003-01-28 Havoc Pennington <hp@pobox.com>
341 * dbus/dbus-message.c (check_message_handling): function to check
342 on the loaded message, iterates over it etc.
344 2003-01-28 Havoc Pennington <hp@pobox.com>
346 * test/Makefile.am (dist-hook): fix make distdir
348 * dbus/Makefile.am (TESTS_ENVIRONMENT): fix make check
350 2003-01-27 Havoc Pennington <hp@pobox.com>
352 * dbus/dbus-mempool.c (time_for_size): replace printf with
355 * dbus/dbus-message-builder.c (_dbus_message_data_load): allow
356 empty lines; fix the SAVE_LENGTH stuff to be
357 START_LENGTH/END_LENGTH so it actually works; couple other
360 * test/Makefile.am (dist-hook): add dist-hook for .message files
362 * dbus/dbus-string.c (DBUS_STRING_COPY_PREAMBLE): source of a copy
363 can be constant or locked.
364 (_dbus_string_free): allow freeing a const string as
367 * dbus/dbus-sysdeps.c (_dbus_concat_dir_and_file): utility
369 * dbus/dbus-test-main.c (main): take an argument which is the
370 directory containing test data
372 * dbus/dbus-message.c (_dbus_message_test): pass a test_data_dir
373 argument to this and load all the messages in test/data/
374 checking that they can be loaded or not loaded as appropriate.
376 2003-01-27 Anders Carlsson <andersca@codefactory.se>
378 * bus/dispatch.c: (bus_dispatch_message_handler):
379 Dispatch messages sent to services.
381 * bus/driver.c: (bus_driver_send_service_deleted),
382 (bus_driver_send_service_created), (bus_driver_send_service_lost),
383 (bus_driver_send_service_acquired):
384 Add helper functions for sending service related messages.
386 (bus_driver_send_welcome_message):
387 Send HELLO_REPLY instead of WELCOME.
389 (bus_driver_handle_list_services):
390 Send LIST_SERVICES_REPLY instead of SERVICES.
392 (bus_driver_handle_own_service),
393 (bus_driver_handle_service_exists):
394 New message handlers.
396 (bus_driver_handle_message):
397 Invoke new message handlers.
399 (bus_driver_remove_connection):
400 Don't remove any services here since that's done automatically
401 by bus_service_remove_owner now.
404 New function signatures.
406 * bus/services.c: (bus_service_add_owner):
407 Send ServiceAcquired message if we're the only primary owner.
409 (bus_service_remove_owner):
410 Send ServiceAcquired/ServiceLost messages.
412 (bus_service_set_prohibit_replacement),
413 (bus_service_get_prohibit_replacement):
414 Functions for setting prohibit replacement.
416 (bus_service_has_owner):
417 New function that checks if a connection is in the owner queue of
421 Add new function signatures.
423 * dbus/dbus-list.c: (_dbus_list_test):
424 Add tests for _dbus_list_remove_last and traversing the list backwards.
427 Fix a typo in _dbus_list_get_prev_link, if we're at the first element we can't
428 go any further, so return NULL then.
430 * dbus/dbus-protocol.h:
431 Add new messages, service flags and service replies.
433 2003-01-26 Havoc Pennington <hp@pobox.com>
435 * dbus/dbus-message-builder.c: implement, completely untested.
437 * test/data/*: add data to be used in testing.
438 ".message" files are our simple loadable text format.
439 ".message-raw" will be binary dumps of messages.
441 * dbus/dbus-string.c (_dbus_string_starts_with_c_str): new
443 2003-01-26 Havoc Pennington <hp@pobox.com>
445 * dbus/dbus-sysdeps.c (_dbus_file_get_contents): new function
447 * dbus/dbus-errors.c (dbus_result_to_string): add
450 * dbus/dbus-message-builder.c: new file, will contain code to load
451 up messages from files. Not implemented yet.
453 2003-01-26 Havoc Pennington <hp@pobox.com>
455 * dbus/dbus-message.c (dbus_message_set_sender): support deleting
456 the sender by setting to NULL
458 2003-01-26 Havoc Pennington <hp@pobox.com>
460 The unit tests pass, but otherwise untested. If it breaks, the
461 tests should have been better. ;-)
463 * bus/driver.c (bus_driver_handle_hello): return if we disconnect
466 * dbus/dbus-message.c: redo everything so we maintain
467 message->header as the only copy of the various fields.
468 This avoids the possibility of out-of-memory in some cases,
469 for example dbus_message_lock() can't run out of memory anymore,
470 and avoids extra copying. Figured I may as well go ahead and do
471 this since it was busted for dbus_message_lock to not return
472 failure on OOM, and dbus_message_write_header was totally
473 unchecked for OOM. Also fixed some random other bugs.
475 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): verify
476 that strings are nul-terminated. Also, end_pos can be equal
477 to string length just not greater than, I think.
478 (_dbus_marshal_set_int32): new function
479 (_dbus_marshal_set_uint32): new function
480 (_dbus_marshal_set_string): new function
482 * dbus/dbus-connection.c (_dbus_connection_new_for_transport): fix
483 a warning, init timeout_list to NULL
484 (dbus_connection_send_message): don't use uninitialized variable
487 * dbus/dbus-string.c (_dbus_string_replace_len): new function
489 2003-01-26 Anders Carlsson <andersca@codefactory.se>
491 * bus/driver.c: (bus_driver_handle_hello),
492 (bus_driver_send_welcome_message):
495 2003-01-26 Anders Carlsson <andersca@codefactory.se>
497 * dbus/dbus-auth.c: (process_auth), (_dbus_auth_unref):
498 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
499 (dbus_connection_unref):
500 * dbus/dbus-marshal.c: (_dbus_marshal_test):
501 * dbus/dbus-message.c: (dbus_message_unref),
504 (dbus_message_get_fields):
505 Remove debugging printout.
507 (_dbus_message_loader_return_buffer):
508 Don't store the header string.
510 (_dbus_message_test):
513 2003-01-26 Richard Hult <rhult@codefactory.se>
515 * glib/dbus-gmain.c (dbus_connection_dispatch): Traverse a copy of
516 the file descriptor list, since it can change under us.
518 2003-01-25 Anders Carlsson <andersca@codefactory.se>
520 * glib/dbus-gmain.c: (dbus_connection_prepare),
521 (dbus_connection_check), (dbus_connection_dispatch), (add_watch),
522 (remove_watch), (dbus_connection_hookup_with_g_main):
523 Rewrite the glib handling to use its own GSource instead of a
524 GIOChannel so we can catch messages put in the queue while waiting
527 2003-01-25 Anders Carlsson <andersca@codefactory.se>
530 * bus/connection.c: (connection_disconnect_handler),
531 (connection_watch_callback), (bus_connection_setup):
532 * bus/dispatch.c: (send_one_message),
533 (bus_dispatch_broadcast_message), (bus_dispatch_message_handler),
534 (bus_dispatch_add_connection), (bus_dispatch_remove_connection):
536 * bus/driver.c: (bus_driver_send_service_deleted),
537 (bus_driver_send_service_created), (bus_driver_handle_hello),
538 (bus_driver_send_welcome_message),
539 (bus_driver_handle_list_services), (bus_driver_remove_connection),
540 (bus_driver_handle_message):
542 Refactor code, put the message dispatching in its own file. Use
543 _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client
546 2003-01-25 Anders Carlsson <andersca@codefactory.se>
548 * dbus/dbus-internals.h:
549 Add _DBUS_HANDLE_OOM macro, it doesn't do anything currently.
551 * dbus/dbus-message.c: (dbus_message_get_sender):
552 * dbus/dbus-message.h:
553 Implement dbus_message_get_sender.
555 * dbus/dbus-protocol.h:
556 Add message and service defines.
558 2003-01-25 Anders Carlsson <andersca@codefactory.se>
560 * dbus/dbus-connection.c: (dbus_connection_send_message):
561 * dbus/dbus-message-internal.h:
562 * dbus/dbus-message.c: (_dbus_message_get_client_serial),
563 (dbus_message_write_header):
564 Remove _dbus_messag_unlock and don't set the client serial on a
565 message if one already exists.
567 2003-01-24 Havoc Pennington <hp@pobox.com>
569 * dbus/dbus-list.c (alloc_link): put a thread lock on the global
572 * bus/driver.c (bus_driver_handle_list_services): fix a leak
575 2003-01-25 Anders Carlsson <andersca@codefactory.se>
577 * dbus/dbus-list.c: (alloc_link), (free_link):
578 Use a memory pool for the links.
580 2003-01-25 Anders Carlsson <andersca@codefactory.se>
582 * bus/connection.c: (bus_connection_foreach):
584 Add new bus_connection_foreach function.
586 * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
587 Add function that broadcasts a message to all clients.
589 (bus_driver_send_service_created), (bus_driver_handle_hello),
590 (bus_driver_send_welcome_message),
591 (bus_driver_handle_list_services), (bus_driver_message_handler):
592 Implement functions that take care of listing services, and notifying
593 clients when new services are created.
595 * bus/services.c: (bus_services_list):
597 Add new function that returns an array of strings with the currently
602 Update copyright year.
604 2003-01-25 Anders Carlsson <andersca@codefactory.se>
606 * dbus/dbus-connection.c: (dbus_connection_send_message):
607 Unlock the message in case it was sent earlier.
609 (dbus_connection_send_message_with_reply_and_block):
610 Remove the reply message from the list.
612 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
613 Set array_len and new_pos correctly.
615 (_dbus_marshal_test):
618 * dbus/dbus-message-internal.h:
619 * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
620 New function that returns the reply serial.
622 (_dbus_message_unlock):
623 New function that unlocks a message and resets its header.
625 (dbus_message_append_string_array),
626 (dbus_message_get_fields_valist),
627 (dbus_message_iter_get_field_type),
628 (dbus_message_iter_get_string_array),
629 (dbus_message_get_fields),
630 (dbus_message_append_fields_valist):
631 Handle string arrays.
633 (dbus_message_set_sender):
634 Make this function public since the bus daemon needs it.
636 (decode_header_data):
637 Set the reply serial to -1 initially.
639 * dbus/dbus-message.h:
640 Add dbus_message_set_sender.
642 2003-01-24 Havoc Pennington <hp@pobox.com>
644 * doc/dbus-specification.sgml: add some stuff
646 2003-01-22 Havoc Pennington <hp@pobox.com>
648 * doc/dbus-specification.sgml: Start to document the protocol.
650 2003-01-22 Havoc Pennington <hp@pobox.com>
652 * dbus/dbus-connection.c
653 (dbus_connection_send_message_with_reply_and_block): add some @todo
655 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
657 2003-01-21 Havoc Pennington <hp@pobox.com>
659 (patch untested because can't compile)
661 * bus/driver.c (create_unique_client_name): make this function
662 never recycle client names. Also, caller should initialize
665 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
667 2003-01-21 Anders Carlsson <andersca@codefactory.se>
669 * dbus/dbus-marshal.c: (_dbus_marshal_double),
670 (_dbus_marshal_int32), (_dbus_marshal_uint32),
671 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
672 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
673 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
674 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
675 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
676 * dbus/dbus-marshal.h:
677 * dbus/dbus-protocol.h:
678 Add support for marshalling and demarshalling integer, double
681 2003-01-21 Anders Carlsson <andersca@codefactory.se>
686 * bus/connection.c: (connection_disconnect_handler):
687 Remove the connection from the bus driver's list.
689 (connection_watch_callback): Dispatch messages.
691 (free_connection_data): Free connection name.
693 (bus_connection_setup): Add connection to the bus driver's list.
694 (bus_connection_remove_owned_service):
695 (bus_connection_set_name), (bus_connection_get_name):
696 Add functions for setting and getting the connection's name.
699 Add function headers.
701 * bus/driver.c: (create_unique_client_name),
702 (bus_driver_handle_hello_message),
703 (bus_driver_send_welcome_message), (bus_driver_message_handler),
704 (bus_driver_add_connection), (bus_driver_remove_connection):
707 * bus/services.c: (bus_service_free):
709 New file that handles communication and registreation with the bus
712 2003-01-21 Anders Carlsson <andersca@codefactory.se>
714 * dbus/dbus-connection.c: (dbus_connection_send_message):
715 Add a new client_serial parameter.
717 (dbus_connection_send_message_with_reply):
718 Remove a @todo since we've implemented the blocking function.
720 (dbus_connection_send_message_with_reply_and_block):
721 New function that sends a message and waits for a reply and
722 then returns the reply.
724 * dbus/dbus-connection.h:
727 * dbus/dbus-errors.c: (dbus_result_to_string):
728 * dbus/dbus-errors.h:
731 * dbus/dbus-message-internal.h:
732 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
733 (_dbus_message_set_sender), (dbus_message_write_header),
734 (dbus_message_new_reply), (decode_header_data),
735 (_dbus_message_loader_return_buffer), (_dbus_message_test):
736 * dbus/dbus-message.h:
737 Add new functions that set the reply serial and sender.
738 Also marshal and demarshal them correctly and add test.
740 * dbus/dbus-protocol.h:
741 Add new DBUS_MESSAGE_TYPE_SENDER.
744 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
745 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
746 (dbus_connection_hookup_with_g_main):
747 * glib/test-dbus-glib.c: (main):
748 Rewrite to use GIOChannel and remove the GSource crack.
750 * test/echo-client.c: (main):
751 * test/watch.c: (check_messages):
752 Update for changed APIs
754 2003-01-19 Anders Carlsson <andersca@codefactory.se>
756 * dbus/Makefile.am: Add dbus-timeout.[cħ]
758 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
759 Create a DBusTimeoutList.
760 (dbus_connection_set_timeout_functions): Add new function to
761 set timeout callbacks
763 * dbus/dbus-connection.h: Add public DBusTimeout API.
765 * dbus/dbus-message.c: (dbus_message_get_service):
766 * dbus/dbus-message.h: New function.
768 * dbus/dbus-server.c: Fix small doc typo.
770 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
772 2003-01-19 Anders Carlsson <andersca@codefactory.se>
774 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
775 of the string, just as long as specified.
777 2003-01-19 Havoc Pennington <hp@pobox.com>
779 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
782 * dbus/dbus-server.c (dbus_server_set_max_connections)
783 (dbus_server_get_max_connections, dbus_server_get_n_connections):
784 keep track of current number of connections, and add API for
785 setting a max (but haven't implemented enforcing the max yet)
787 2003-01-18 Havoc Pennington <hp@pobox.com>
789 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
790 reading/writing if read_watch != NULL or write_watch != NULL.
792 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
793 the message loader code to actually load message->header and
794 message->body into the newly-created message.
796 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
799 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
800 (dbus_connection_get_max_message_size)
801 (dbus_connection_set_max_live_messages_size)
802 (dbus_connection_get_max_live_messages_size): implement some
803 resource limitation functions
805 * dbus/dbus-resources.c: new file implementing some of the
806 resource limits stuff
808 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
809 missing docs, add @todo to handle OOM etc.
811 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
814 2003-01-18 Havoc Pennington <hp@pobox.com>
816 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
817 connection if it hasn't been already.
819 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
820 replace with DisconnectFunction.
822 2003-01-18 Havoc Pennington <hp@pobox.com>
824 Building --disable-verbose-mode --disable-asserts --disable-tests
825 cuts the library from 112K to 45K or so
827 * configure.in: check for varargs macro support,
828 add --enable-verbose-mode, --enable-asserts.
830 * dbus/dbus-internals.h (_dbus_assert): support
832 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
834 2003-01-18 Havoc Pennington <hp@pobox.com>
836 * dbus/dbus-test.c: include config.h so that tests actually run
838 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
839 so the failure mode when that assumption fails will be plenty
842 2003-01-18 Havoc Pennington <hp@pobox.com>
844 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
846 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
849 * test/Makefile.am: don't use special variable "TESTS" for echo-*
850 since we don't want to use those in make check
852 2003-01-15 Havoc Pennington <hp@redhat.com>
858 2003-01-15 Havoc Pennington <hp@redhat.com>
860 * test/Makefile.am: fix so that test source code ends up in the
861 distribution on make distcheck
863 2003-01-15 Havoc Pennington <hp@redhat.com>
869 2003-01-15 Havoc Pennington <hp@redhat.com>
871 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
872 fix build when --disable-tests
874 * Makefile.am (EXTRA_DIST): put HACKING in here
876 * HACKING: document procedure for making a tarball release.
878 2003-01-14 Anders Carlsson <andersca@codefactory.se>
880 * bus/connection.c: (connection_error_handler),
881 (bus_connection_setup):
882 * bus/main.c: (main):
883 Make sure that the DBusConnectionData struct is NULLed
884 out to prevent a segfault.
886 * dbus/dbus-errors.c: (dbus_result_to_string):
887 * dbus/dbus-errors.h:
888 * dbus/dbus-message.c: (dbus_message_get_fields),
889 (dbus_message_get_fields_valist), (_dbus_message_test):
890 * dbus/dbus-message.h:
891 Make dbus_message_get_fields return a result code so we can
892 track invalid fields as well as oom.
894 2003-01-11 Havoc Pennington <hp@pobox.com>
896 * configure.in: change --enable-test/--enable-ansi action-if-given
897 to enable_foo=$enableval instead of enable_foo=yes
899 2003-01-08 Havoc Pennington <hp@pobox.com>
901 * dbus/dbus-string.c (_dbus_string_align_length): new function
903 * dbus/dbus-test-main.c: move main() for test app here
905 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
906 symbol to run tests, because dbus-test isn't in the main
909 Code review nitpicks.
911 * dbus/dbus-message.c (dbus_message_write_header): add newlines
912 for people with narrow emacs ;-). Assert client_serial was filled
913 in. Assert message->name != NULL.
914 (dbus_message_append_fields): have "first_field_type" arg separate
915 from va list, needed for C++ binding that also uses varargs IIRC
916 and helps with type safety
917 (dbus_message_new): add @todo about using DBusString to store
918 service/name internally
919 (dbus_message_new): don't leak ->service and ->name on OOM later
921 (dbus_message_unref): free the service name
922 (dbus_message_get_fields): same change to varargs
923 i.e. first_field_type
924 (_dbus_message_loader_return_buffer): assert that the message data
925 is aligned (if not it's a bug in our code). Put in verbose griping
926 about why we set corrupted = TRUE.
927 (decode_header_data): add FIXME that char* is evil. Was going to
928 add FIXME about evil locale-specific string.h strncmp, but just
929 switched to wacky string-as-uint32 optimization. Move check for
930 "no room for field name" above get_const_data_len() to avoid
931 assertion failure in get_const_data_len if we have trailing 2
932 bytes or the like. Check for service and name fields being
933 provided twice. Don't leak service/name on error. Require field
934 names to be aligned to 4 bytes.
936 * dbus/dbus-marshal.c: move byte swap stuff to header
937 (_dbus_pack_int32): uscore-prefix
938 (_dbus_unpack_int32): uscore-prefix
939 (_dbus_unpack_uint32): export
940 (_dbus_demarshal_string): add @todo complaining about use of
942 (_dbus_marshal_get_field_end_pos): add @todo about bad error
943 handling allowing corrupt data to go unchecked
945 2003-01-08 Havoc Pennington <hp@redhat.com>
947 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
948 to the select() as needed for authentication. (should be using
949 _dbus_poll() not select, but for another day)
951 * dbus/dbus.h: include dbus/dbus-protocol.h
953 2003-01-08 Anders Carlsson <andersca@codefactory.se>
955 * dbus/Makefile.am (dbusinclude_HEADERS): Install
958 2003-01-08 Anders Carlsson <andersca@codefactory.se>
960 * dbus/dbus-internals.c: (_dbus_type_to_string):
961 New function that returns a string describing a type.
963 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
964 * dbus/dbus-marshal.h:
965 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
966 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
967 (dbus_message_iter_get_byte_array):
968 * dbus/dbus-message.h:
969 Add new convenience functions for appending and getting message fields.
970 Also add demarshalling routines for byte arrays.
972 2003-01-07 Anders Carlsson <andersca@codefactory.se>
974 * dbus/dbus-connection-internal.h:
975 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
976 (_dbus_connection_get_next_client_serial),
977 (dbus_connection_send_message):
978 * dbus/dbus-internals.h:
979 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
980 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
981 (_dbus_marshal_uint32), (_dbus_demarshal_double),
982 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
983 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
984 (_dbus_verbose_bytes), (_dbus_marshal_test):
985 * dbus/dbus-marshal.h:
986 * dbus/dbus-message-internal.h:
987 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
988 (dbus_message_write_header), (_dbus_message_lock),
989 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
990 (dbus_message_get_name), (dbus_message_append_int32),
991 (dbus_message_append_uint32), (dbus_message_append_double),
992 (dbus_message_append_string), (dbus_message_append_byte_array),
993 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
994 (dbus_message_iter_unref), (dbus_message_iter_has_next),
995 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
996 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
997 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
998 (decode_header_data), (_dbus_message_loader_return_buffer),
999 (message_iter_test), (_dbus_message_test):
1000 * dbus/dbus-message.h:
1001 * dbus/dbus-protocol.h:
1002 * dbus/dbus-test.c: (main):
1004 * glib/test-dbus-glib.c: (message_handler), (main):
1005 * test/echo-client.c: (main):
1006 * test/watch.c: (check_messages):
1007 Make messages sendable and receivable for real.
1009 2003-01-07 Anders Carlsson <andersca@codefactory.se>
1011 * dbus/dbus-marshal.c: (_dbus_marshal_double),
1012 (_dbus_marshal_string), (_dbus_marshal_byte_array):
1013 * dbus/dbus-message.c: (dbus_message_append_int32),
1014 (dbus_message_append_uint32), (dbus_message_append_double),
1015 (dbus_message_append_string), (dbus_message_append_byte_array):
1016 Handle OOM restoration.
1018 2003-01-07 Anders Carlsson <andersca@codefactory.se>
1020 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1021 (_dbus_demarshal_string), (_dbus_marshal_test):
1022 * dbus/dbus-marshal.h:
1023 * dbus/dbus-message.c: (dbus_message_get_name),
1024 Document these functions.
1026 (dbus_message_append_int32), (dbus_message_append_uint32),
1027 (dbus_message_append_double), (dbus_message_append_string),
1028 (dbus_message_append_byte_array):
1029 * dbus/dbus-message.h:
1030 Add functions for adding message fields of different types.
1032 * dbus/dbus-protocol.h:
1033 Add the different types.
1035 2003-01-05 Havoc Pennington <hp@pobox.com>
1037 * bus/connection.c: implement routines for handling connections,
1038 first thing is keeping a list of owned services on each connection
1039 and setting up watches etc.
1041 * bus/services.c: implement a mapping from service names to lists
1044 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
1046 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
1047 to use static mutexes for global data
1049 * dbus/dbus-connection.c (dbus_connection_set_data): add new
1050 collection of functions to set/get application-specific data
1051 on the DBusConnection.
1053 2003-01-04 Havoc Pennington <hp@pobox.com>
1055 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
1056 (_dbus_poll): new function
1058 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
1061 * bus/loop.c: initial code for the daemon main loop
1063 2003-01-04 Havoc Pennington <hp@pobox.com>
1065 * test/watch.c (error_handler): make it safe if the error handler
1066 is called multiple times (if we s/error handler/disconnect
1067 handler/ we should just guarantee it's called only once)
1069 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
1070 error handler on disconnect (it's quite possible we should
1071 just change the error handler to a "disconnect handler," I'm
1072 not sure we have any other meaningful errors)
1074 * configure.in: check for getpwnam_r
1076 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
1077 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
1078 mechanism as in SASL spec, using socket credentials
1080 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
1081 (_dbus_send_credentials_unix_socket): new function
1083 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
1085 (_dbus_write): only check errno if <0 returned
1086 (_dbus_write_two): ditto
1088 2003-01-02 Anders Carlsson <andersca@codefactory.se>
1090 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
1091 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
1092 (_dbus_marshal_test):
1093 * dbus/dbus-marshal.h:
1094 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
1095 to _dbus_marshal_utf8_string. Also fix some tests.
1097 2002-12-28 Harri Porten <porten@kde.org>
1099 * configure.in: added check for C++ compiler and a very cheesy
1100 check for the Qt integration
1102 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
1104 * qt/Makefile.am: added
1106 * qt/.cvsignore: added
1108 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
1109 latter, added #ifdef QT_THREAD_SUPPORT guard.
1111 * dbus/Makefile.am: added missing headers for make dist
1113 2002-12-28 Kristian Rietveld <kris@gtk.org>
1115 * dbus/Makefile.am: fixup export-symbols-regex.
1117 2002-12-27 Anders Carlsson <andersca@codefactory.se>
1119 * acinclude.m4: Add this file and put the
1120 PKG_CHECK_MODULE macro in it.
1122 2002-12-27 Anders Carlsson <andersca@codefactory.se>
1124 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1125 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1126 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1127 (_dbus_marshal_test):
1128 Make the demarshalling routines align the pos argument.
1129 Add string marshalling tests and fix the obvious bugs
1132 2002-12-26 Havoc Pennington <hp@pobox.com>
1134 * dbus/dbus-auth.c: fixes fixes fixes
1136 * dbus/dbus-transport-unix.c: wire up support for
1137 encoding/decoding data on the wire
1139 * dbus/dbus-auth.c (_dbus_auth_encode_data)
1140 (_dbus_auth_decode_data): append to target string
1141 instead of nuking it.
1143 2002-12-26 Havoc Pennington <hp@pobox.com>
1145 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
1146 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
1149 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
1150 avoid swap_bytes() overhead (ignoring possible assembly stuff for
1151 now). Main point is because I wanted unpack_uint32 to implement
1153 (_dbus_verbose_bytes): new function
1155 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
1157 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
1158 mechanism to handle a corrupt message stream
1159 (_dbus_message_loader_new): fix preallocation to only prealloc,
1162 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
1163 (_dbus_string_test): enhance tests for copy/move and fix the
1166 * dbus/dbus-transport-unix.c: Hold references in more places to
1167 avoid reentrancy problems
1169 * dbus/dbus-transport.c: ditto
1171 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
1172 leak reference count in no-message case
1174 * test/watch.c (do_mainloop): handle adding/removing watches
1175 during iteration over the watches. Also, ref the connection/server
1176 stored on a watch, so we don't try to mangle a destroyed one.
1178 * dbus/dbus-transport-unix.c (do_authentication): perform
1181 * dbus/dbus-auth.c (get_state): add a state
1182 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
1183 (_dbus_auth_get_unused_bytes): append the unused bytes
1184 to the passed in string, rather than prepend
1186 * dbus/dbus-transport.c (_dbus_transport_init_base): create
1187 the auth conversation DBusAuth
1189 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
1190 (_dbus_transport_new_for_domain_socket): when creating a
1191 transport, pass in whether it's a client-side or server-side
1192 transport so we know which DBusAuth to create
1194 2002-12-03 Havoc Pennington <hp@pobox.com>
1196 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
1197 _after_ finalizing the derived members
1198 (unix_connection_set): unref watch if we fail to add it
1200 * dbus/dbus-connection.c (dbus_connection_unref): delete the
1201 transport first, so that the connection owned by the
1202 transport will be valid as the transport finalizes.
1204 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
1205 if necessary, and remove watches from the connection.
1207 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
1209 2002-12-26 Anders Carlsson <andersca@codefactory.se>
1211 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1212 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1213 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1214 (_dbus_marshal_test):
1215 * dbus/dbus-marshal.h:
1216 Add string marshal functions and have the demarshal functions
1217 return the new position.
1219 2002-12-25 Havoc Pennington <hp@pobox.com>
1221 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
1222 it is a simple protocol that just maps directly to SASL.
1224 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
1225 initial implementation, not actually used yet.
1227 * dbus/dbus-string.c (_dbus_string_find): new function
1228 (_dbus_string_equal): new function
1229 (_dbus_string_base64_encode): new function
1230 (_dbus_string_base64_decode): new function
1232 2002-12-25 Anders Carlsson <andersca@codefactory.se>
1235 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
1236 (_dbus_marshal_int32), (_dbus_marshal_uint32),
1237 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1238 (_dbus_demarshal_uint32), (_dbus_marshal_test):
1239 * dbus/dbus-marshal.h:
1240 * dbus/dbus-protocol.h:
1241 * dbus/dbus-test.c: (main):
1243 Add un-optimized marshalling/demarshalling routines.
1245 2002-12-25 Harri Porten <porten@kde.org>
1247 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
1249 2002-12-24 Zack Rusin <zack@kde.org>
1251 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
1252 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
1255 2002-12-24 Havoc Pennington <hp@pobox.com>
1257 * glib/dbus-gthread.c: fix include
1259 * glib/dbus-glib.h: rename DBusMessageHandler for now.
1260 I think glib API needs to change, though, as you don't
1261 want to use DBusMessageFunction, you want to use the
1262 DBusMessageHandler object. Probably
1263 dbus_connection_open_with_g_main_loop()
1264 and dbus_connection_setup_g_main_loop() or something like that
1265 (but think of better names...) that just create a connection
1266 that has watch/timeout functions etc. already set up.
1268 * dbus/dbus-connection.c
1269 (dbus_connection_send_message_with_reply): new function just to
1270 show how the message handler helps us deal with replies.
1272 * dbus/dbus-list.c (_dbus_list_remove_last): new function
1274 * dbus/dbus-string.c (_dbus_string_test): free a string that
1277 * dbus/dbus-hash.c: use memory pools for the hash entries
1278 (rebuild_table): be more paranoid about overflow, and
1279 shrink table when we can
1280 (_dbus_hash_test): reduce number of sprintfs and write
1281 valid C89. Add tests for case where we grow and then
1282 shrink the hash table.
1284 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
1286 * dbus/dbus-connection.c (dbus_connection_register_handler)
1287 (dbus_connection_unregister_handler): new functions
1289 * dbus/dbus-message.c (dbus_message_get_name): new
1291 * dbus/dbus-list.c: fix docs typo
1293 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
1294 an object representing a handler for messages.
1296 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1299 * glib/dbus-gthread.c: (dbus_gthread_init):
1300 Don't use the gdbus prefix for public functions.
1302 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1306 Add GLib checks and fixup .pc files
1310 * glib/dbus-gmain.c: (gdbus_connection_prepare),
1311 (gdbus_connection_check), (gdbus_connection_dispatch),
1312 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
1313 (dbus_connection_gsource_new):
1314 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
1315 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
1316 * glib/test-dbus-glib.c: (message_handler), (main):
1319 2002-12-15 Harri Porten <porten@kde.org>
1321 * autogen.sh: check for libtoolize before attempting to use it
1323 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
1326 * .cvsignore: ignore more stamp files
1328 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
1330 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
1331 without make install.
1333 2002-12-15 Havoc Pennington <hp@pobox.com>
1335 * dbus/dbus-threads.c: add thread stubs that a higher library
1336 layer can fill in. e.g. the GLib wrapper might fill them in with
1337 GThread stuff. We still need to use this thread API to
1338 thread-safe-ize the library.
1340 2002-12-12 Havoc Pennington <hp@pobox.com>
1342 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
1343 below new interfaces and include fewer system headers.
1345 * dbus/dbus-sysdeps.c (_dbus_read): new function
1346 (_dbus_write): new function
1347 (_dbus_write_two): new function
1348 (_dbus_connect_unix_socket): new function
1349 (_dbus_listen_unix_socket): new function
1351 * dbus/dbus-message-internal.h: change interfaces to use
1354 2002-12-11 Havoc Pennington <hp@pobox.com>
1356 * dbus/dbus-types.h: add dbus_unichar
1358 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
1360 * dbus/dbus-connection.c (dbus_connection_send_message): return
1363 * dbus/dbus-transport.c: include dbus-watch.h
1365 * dbus/dbus-connection.c: include dbus-message-internal.h
1367 * HACKING: add file with coding guidelines stuff.
1369 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
1370 handling here, for security purposes (as in vsftpd). Not actually
1371 using this class yet.
1373 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
1374 system/libc usage here, as in vsftpd, for ease of auditing (and
1375 should also simplify portability). Haven't actually moved all the
1376 system/libc usage into here yet.
1378 2002-11-25 Havoc Pennington <hp@pobox.com>
1380 * dbus/dbus-internals.c (_dbus_verbose): fix to not
1381 always print the first verbose message.
1383 2002-11-24 Havoc Pennington <hp@pobox.com>
1385 * test/echo-client.c, test/echo-server.c: cheesy test
1388 * configure.in (AC_CHECK_FUNCS): check for writev
1390 * dbus/dbus-message.c (_dbus_message_get_network_data): new
1393 * dbus/dbus-list.c (_dbus_list_foreach): new function
1395 * dbus/dbus-internals.c (_dbus_verbose): new function
1397 * dbus/dbus-server.c, dbus/dbus-server.h: public object
1398 representing a server that listens for connections.
1400 * dbus/.cvsignore: create
1402 * dbus/dbus-errors.h, dbus/dbus-errors.c:
1403 public API for reporting errors
1405 * dbus/dbus-connection.h, dbus/dbus-connection.c:
1406 public object representing a connection that
1407 sends/receives messages. (Same object used for
1408 both client and server.)
1410 * dbus/dbus-transport.h, dbus/dbus-transport.c:
1411 Basic abstraction for different kinds of stream
1412 that we might read/write messages from.
1414 2002-11-23 Havoc Pennington <hp@pobox.com>
1416 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
1419 * dbus/dbus-test.c (main): add list test, and include
1420 dbus-test.h as intended
1422 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
1423 (_dbus_hash_table_remove_int): return value indicates
1424 whether the entry existed to remove
1426 * dbus/dbus-list.c: add linked list utility class,
1429 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
1432 2002-11-23 Havoc Pennington <hp@pobox.com>
1434 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
1435 DBUS_END_DECLS to nothing, that should fix this once and for all
1437 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
1439 * dbus/dbus-message.c, dbus/dbus-hash.c:
1440 add some missing @brief
1442 2002-11-23 Havoc Pennington <hp@pobox.com>
1444 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
1445 to avoid confusing Doxygen
1447 * dbus/dbus-hash.c: @} not }@
1449 * dbus/dbus-message.c (struct DBusMessage): split out
1452 2002-11-23 Havoc Pennington <hp@pobox.com>
1454 * configure.in: pile on more warning flags if using gcc
1456 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
1457 to document static functions
1459 * configure.in: add summary to end of configure so it
1460 looks nice and attractive
1462 * dbus/dbus-hash.c: finish implementation and write unit
1465 * configure.in: add --enable-tests to enable unit tests
1467 * dbus/dbus-test.c: test program to run unit tests
1468 for all files in dbus/*, initially runs a test for
1471 * dbus/dbus-internals.h: file to hold some internal utility stuff
1473 2002-11-22 Havoc Pennington <hp@redhat.com>
1475 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
1476 "ported" away from Tcl
1478 * dbus/dbus-types.h: header for types such as dbus_bool_t
1480 2002-11-22 Havoc Pennington <hp@redhat.com>
1482 * dbus/dbus.h: fixups for doc warnings
1484 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
1486 (QUIET): make it quiet so we can see warnings
1488 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
1490 2002-11-22 Havoc Pennington <hp@redhat.com>
1492 * Makefile.am: include "Doxyfile" target in all-local
1494 * configure.in: generate the Doxyfile
1496 * Doxyfile.in: move Doxyfile here, so we can use
1497 configure to generate a Doxyfile with the right
1500 2002-11-22 Havoc Pennington <hp@redhat.com>
1502 * dbus/dbus-message.c: move inline docs into .c file
1504 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
1505 so all docs are under doc/
1506 (MAN_EXTENSION): generate man pages. Use extension
1507 ".3dbus" which matches ".3qt" on my system,
1508 I guess this is OK, I don't know really.
1509 (FILE_PATTERNS): look for .c files not .h, makes sense
1512 2002-11-22 Havoc Pennington <hp@pobox.com>
1514 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
1515 because any app can be a server, and any app can be a client,
1516 the bus is a special kind of server.
1518 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
1520 * Doxyfile : adding. Still needs Makefile rules to be generated
1521 automatically (just run "doxygen" in the toplevel dir for now to
1524 * dbus/dbus-message.h : Adding sample docs (javadoc since
1525 resembles gtk-doc a little more)
1527 * dbus/dbus.h : Adding sample docs
1529 2002-11-21 Havoc Pennington <hp@redhat.com>
1531 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
1532 so we can allow ourselves to include files directly,
1533 instead of having to use dbus.h
1535 * dbus/dbus.h: fill in
1537 * dbus/dbus-message.h: sketch out a sample header file.
1538 Include griping if you include it directly instead of
1541 * dbus/dbus-macros.h: new file with macros for extern "C",
1542 TRUE/FALSE, NULL, etc.
1544 * doc/file-boilerplate.c: put include guards in here
1546 2002-11-21 Havoc Pennington <hp@redhat.com>
1548 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
1550 * COPYING: include the GPL as well, and license code
1551 under both AFL and GPL.
1553 2002-11-21 Havoc Pennington <hp@redhat.com>
1555 * acconfig.h: get rid of this
1557 * autogen.sh (run_configure): add --no-configure option
1559 * configure.in: remove AC_ARG_PROGRAM to make
1560 autoconf complain less. add AC_PREREQ.
1561 add AC_DEFINE third arg.
1563 2002-11-21 Anders Carlsson <andersca@codefactory.se>
1566 Fix references so we can distcheck.
1568 2002-11-21 Havoc Pennington <hp@redhat.com>
1570 * Initial module creation