1 2003-01-24 Havoc Pennington <hp@pobox.com>
3 * dbus/dbus-list.c (alloc_link): put a thread lock on the global
6 * bus/driver.c (bus_driver_handle_list_services): fix a leak
9 2003-01-25 Anders Carlsson <andersca@codefactory.se>
11 * dbus/dbus-list.c: (alloc_link), (free_link):
12 Use a memory pool for the links.
14 2003-01-25 Anders Carlsson <andersca@codefactory.se>
16 * bus/connection.c: (bus_connection_foreach):
18 Add new bus_connection_foreach function.
20 * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
21 Add function that broadcasts a message to all clients.
23 (bus_driver_send_service_created), (bus_driver_handle_hello),
24 (bus_driver_send_welcome_message),
25 (bus_driver_handle_list_services), (bus_driver_message_handler):
26 Implement functions that take care of listing services, and notifying
27 clients when new services are created.
29 * bus/services.c: (bus_services_list):
31 Add new function that returns an array of strings with the currently
36 Update copyright year.
38 2003-01-25 Anders Carlsson <andersca@codefactory.se>
40 * dbus/dbus-connection.c: (dbus_connection_send_message):
41 Unlock the message in case it was sent earlier.
43 (dbus_connection_send_message_with_reply_and_block):
44 Remove the reply message from the list.
46 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
47 Set array_len and new_pos correctly.
52 * dbus/dbus-message-internal.h:
53 * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
54 New function that returns the reply serial.
56 (_dbus_message_unlock):
57 New function that unlocks a message and resets its header.
59 (dbus_message_append_string_array),
60 (dbus_message_get_fields_valist),
61 (dbus_message_iter_get_field_type),
62 (dbus_message_iter_get_string_array),
63 (dbus_message_get_fields),
64 (dbus_message_append_fields_valist):
67 (dbus_message_set_sender):
68 Make this function public since the bus daemon needs it.
71 Set the reply serial to -1 initially.
73 * dbus/dbus-message.h:
74 Add dbus_message_set_sender.
76 2003-01-24 Havoc Pennington <hp@pobox.com>
78 * doc/dbus-specification.sgml: add some stuff
80 2003-01-22 Havoc Pennington <hp@pobox.com>
82 * doc/dbus-specification.sgml: Start to document the protocol.
84 2003-01-22 Havoc Pennington <hp@pobox.com>
86 * dbus/dbus-connection.c
87 (dbus_connection_send_message_with_reply_and_block): add some @todo
89 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
91 2003-01-21 Havoc Pennington <hp@pobox.com>
93 (patch untested because can't compile)
95 * bus/driver.c (create_unique_client_name): make this function
96 never recycle client names. Also, caller should initialize
99 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
101 2003-01-21 Anders Carlsson <andersca@codefactory.se>
103 * dbus/dbus-marshal.c: (_dbus_marshal_double),
104 (_dbus_marshal_int32), (_dbus_marshal_uint32),
105 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
106 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
107 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
108 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
109 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
110 * dbus/dbus-marshal.h:
111 * dbus/dbus-protocol.h:
112 Add support for marshalling and demarshalling integer, double
115 2003-01-21 Anders Carlsson <andersca@codefactory.se>
120 * bus/connection.c: (connection_disconnect_handler):
121 Remove the connection from the bus driver's list.
123 (connection_watch_callback): Dispatch messages.
125 (free_connection_data): Free connection name.
127 (bus_connection_setup): Add connection to the bus driver's list.
128 (bus_connection_remove_owned_service):
129 (bus_connection_set_name), (bus_connection_get_name):
130 Add functions for setting and getting the connection's name.
133 Add function headers.
135 * bus/driver.c: (create_unique_client_name),
136 (bus_driver_handle_hello_message),
137 (bus_driver_send_welcome_message), (bus_driver_message_handler),
138 (bus_driver_add_connection), (bus_driver_remove_connection):
141 * bus/services.c: (bus_service_free):
143 New file that handles communication and registreation with the bus
146 2003-01-21 Anders Carlsson <andersca@codefactory.se>
148 * dbus/dbus-connection.c: (dbus_connection_send_message):
149 Add a new client_serial parameter.
151 (dbus_connection_send_message_with_reply):
152 Remove a @todo since we've implemented the blocking function.
154 (dbus_connection_send_message_with_reply_and_block):
155 New function that sends a message and waits for a reply and
156 then returns the reply.
158 * dbus/dbus-connection.h:
161 * dbus/dbus-errors.c: (dbus_result_to_string):
162 * dbus/dbus-errors.h:
165 * dbus/dbus-message-internal.h:
166 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
167 (_dbus_message_set_sender), (dbus_message_write_header),
168 (dbus_message_new_reply), (decode_header_data),
169 (_dbus_message_loader_return_buffer), (_dbus_message_test):
170 * dbus/dbus-message.h:
171 Add new functions that set the reply serial and sender.
172 Also marshal and demarshal them correctly and add test.
174 * dbus/dbus-protocol.h:
175 Add new DBUS_MESSAGE_TYPE_SENDER.
178 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
179 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
180 (dbus_connection_hookup_with_g_main):
181 * glib/test-dbus-glib.c: (main):
182 Rewrite to use GIOChannel and remove the GSource crack.
184 * test/echo-client.c: (main):
185 * test/watch.c: (check_messages):
186 Update for changed APIs
188 2003-01-19 Anders Carlsson <andersca@codefactory.se>
190 * dbus/Makefile.am: Add dbus-timeout.[cħ]
192 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
193 Create a DBusTimeoutList.
194 (dbus_connection_set_timeout_functions): Add new function to
195 set timeout callbacks
197 * dbus/dbus-connection.h: Add public DBusTimeout API.
199 * dbus/dbus-message.c: (dbus_message_get_service):
200 * dbus/dbus-message.h: New function.
202 * dbus/dbus-server.c: Fix small doc typo.
204 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
206 2003-01-19 Anders Carlsson <andersca@codefactory.se>
208 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
209 of the string, just as long as specified.
211 2003-01-19 Havoc Pennington <hp@pobox.com>
213 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
216 * dbus/dbus-server.c (dbus_server_set_max_connections)
217 (dbus_server_get_max_connections, dbus_server_get_n_connections):
218 keep track of current number of connections, and add API for
219 setting a max (but haven't implemented enforcing the max yet)
221 2003-01-18 Havoc Pennington <hp@pobox.com>
223 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
224 reading/writing if read_watch != NULL or write_watch != NULL.
226 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
227 the message loader code to actually load message->header and
228 message->body into the newly-created message.
230 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
233 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
234 (dbus_connection_get_max_message_size)
235 (dbus_connection_set_max_live_messages_size)
236 (dbus_connection_get_max_live_messages_size): implement some
237 resource limitation functions
239 * dbus/dbus-resources.c: new file implementing some of the
240 resource limits stuff
242 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
243 missing docs, add @todo to handle OOM etc.
245 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
248 2003-01-18 Havoc Pennington <hp@pobox.com>
250 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
251 connection if it hasn't been already.
253 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
254 replace with DisconnectFunction.
256 2003-01-18 Havoc Pennington <hp@pobox.com>
258 Building --disable-verbose-mode --disable-asserts --disable-tests
259 cuts the library from 112K to 45K or so
261 * configure.in: check for varargs macro support,
262 add --enable-verbose-mode, --enable-asserts.
264 * dbus/dbus-internals.h (_dbus_assert): support
266 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
268 2003-01-18 Havoc Pennington <hp@pobox.com>
270 * dbus/dbus-test.c: include config.h so that tests actually run
272 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
273 so the failure mode when that assumption fails will be plenty
276 2003-01-18 Havoc Pennington <hp@pobox.com>
278 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
280 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
283 * test/Makefile.am: don't use special variable "TESTS" for echo-*
284 since we don't want to use those in make check
286 2003-01-15 Havoc Pennington <hp@redhat.com>
292 2003-01-15 Havoc Pennington <hp@redhat.com>
294 * test/Makefile.am: fix so that test source code ends up in the
295 distribution on make distcheck
297 2003-01-15 Havoc Pennington <hp@redhat.com>
303 2003-01-15 Havoc Pennington <hp@redhat.com>
305 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
306 fix build when --disable-tests
308 * Makefile.am (EXTRA_DIST): put HACKING in here
310 * HACKING: document procedure for making a tarball release.
312 2003-01-14 Anders Carlsson <andersca@codefactory.se>
314 * bus/connection.c: (connection_error_handler),
315 (bus_connection_setup):
316 * bus/main.c: (main):
317 Make sure that the DBusConnectionData struct is NULLed
318 out to prevent a segfault.
320 * dbus/dbus-errors.c: (dbus_result_to_string):
321 * dbus/dbus-errors.h:
322 * dbus/dbus-message.c: (dbus_message_get_fields),
323 (dbus_message_get_fields_valist), (_dbus_message_test):
324 * dbus/dbus-message.h:
325 Make dbus_message_get_fields return a result code so we can
326 track invalid fields as well as oom.
328 2003-01-11 Havoc Pennington <hp@pobox.com>
330 * configure.in: change --enable-test/--enable-ansi action-if-given
331 to enable_foo=$enableval instead of enable_foo=yes
333 2003-01-08 Havoc Pennington <hp@pobox.com>
335 * dbus/dbus-string.c (_dbus_string_align_length): new function
337 * dbus/dbus-test-main.c: move main() for test app here
339 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
340 symbol to run tests, because dbus-test isn't in the main
343 Code review nitpicks.
345 * dbus/dbus-message.c (dbus_message_write_header): add newlines
346 for people with narrow emacs ;-). Assert client_serial was filled
347 in. Assert message->name != NULL.
348 (dbus_message_append_fields): have "first_field_type" arg separate
349 from va list, needed for C++ binding that also uses varargs IIRC
350 and helps with type safety
351 (dbus_message_new): add @todo about using DBusString to store
352 service/name internally
353 (dbus_message_new): don't leak ->service and ->name on OOM later
355 (dbus_message_unref): free the service name
356 (dbus_message_get_fields): same change to varargs
357 i.e. first_field_type
358 (_dbus_message_loader_return_buffer): assert that the message data
359 is aligned (if not it's a bug in our code). Put in verbose griping
360 about why we set corrupted = TRUE.
361 (decode_header_data): add FIXME that char* is evil. Was going to
362 add FIXME about evil locale-specific string.h strncmp, but just
363 switched to wacky string-as-uint32 optimization. Move check for
364 "no room for field name" above get_const_data_len() to avoid
365 assertion failure in get_const_data_len if we have trailing 2
366 bytes or the like. Check for service and name fields being
367 provided twice. Don't leak service/name on error. Require field
368 names to be aligned to 4 bytes.
370 * dbus/dbus-marshal.c: move byte swap stuff to header
371 (_dbus_pack_int32): uscore-prefix
372 (_dbus_unpack_int32): uscore-prefix
373 (_dbus_unpack_uint32): export
374 (_dbus_demarshal_string): add @todo complaining about use of
376 (_dbus_marshal_get_field_end_pos): add @todo about bad error
377 handling allowing corrupt data to go unchecked
379 2003-01-08 Havoc Pennington <hp@redhat.com>
381 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
382 to the select() as needed for authentication. (should be using
383 _dbus_poll() not select, but for another day)
385 * dbus/dbus.h: include dbus/dbus-protocol.h
387 2003-01-08 Anders Carlsson <andersca@codefactory.se>
389 * dbus/Makefile.am (dbusinclude_HEADERS): Install
392 2003-01-08 Anders Carlsson <andersca@codefactory.se>
394 * dbus/dbus-internals.c: (_dbus_type_to_string):
395 New function that returns a string describing a type.
397 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
398 * dbus/dbus-marshal.h:
399 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
400 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
401 (dbus_message_iter_get_byte_array):
402 * dbus/dbus-message.h:
403 Add new convenience functions for appending and getting message fields.
404 Also add demarshalling routines for byte arrays.
406 2003-01-07 Anders Carlsson <andersca@codefactory.se>
408 * dbus/dbus-connection-internal.h:
409 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
410 (_dbus_connection_get_next_client_serial),
411 (dbus_connection_send_message):
412 * dbus/dbus-internals.h:
413 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
414 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
415 (_dbus_marshal_uint32), (_dbus_demarshal_double),
416 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
417 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
418 (_dbus_verbose_bytes), (_dbus_marshal_test):
419 * dbus/dbus-marshal.h:
420 * dbus/dbus-message-internal.h:
421 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
422 (dbus_message_write_header), (_dbus_message_lock),
423 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
424 (dbus_message_get_name), (dbus_message_append_int32),
425 (dbus_message_append_uint32), (dbus_message_append_double),
426 (dbus_message_append_string), (dbus_message_append_byte_array),
427 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
428 (dbus_message_iter_unref), (dbus_message_iter_has_next),
429 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
430 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
431 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
432 (decode_header_data), (_dbus_message_loader_return_buffer),
433 (message_iter_test), (_dbus_message_test):
434 * dbus/dbus-message.h:
435 * dbus/dbus-protocol.h:
436 * dbus/dbus-test.c: (main):
438 * glib/test-dbus-glib.c: (message_handler), (main):
439 * test/echo-client.c: (main):
440 * test/watch.c: (check_messages):
441 Make messages sendable and receivable for real.
443 2003-01-07 Anders Carlsson <andersca@codefactory.se>
445 * dbus/dbus-marshal.c: (_dbus_marshal_double),
446 (_dbus_marshal_string), (_dbus_marshal_byte_array):
447 * dbus/dbus-message.c: (dbus_message_append_int32),
448 (dbus_message_append_uint32), (dbus_message_append_double),
449 (dbus_message_append_string), (dbus_message_append_byte_array):
450 Handle OOM restoration.
452 2003-01-07 Anders Carlsson <andersca@codefactory.se>
454 * dbus/dbus-marshal.c: (_dbus_marshal_string),
455 (_dbus_demarshal_string), (_dbus_marshal_test):
456 * dbus/dbus-marshal.h:
457 * dbus/dbus-message.c: (dbus_message_get_name),
458 Document these functions.
460 (dbus_message_append_int32), (dbus_message_append_uint32),
461 (dbus_message_append_double), (dbus_message_append_string),
462 (dbus_message_append_byte_array):
463 * dbus/dbus-message.h:
464 Add functions for adding message fields of different types.
466 * dbus/dbus-protocol.h:
467 Add the different types.
469 2003-01-05 Havoc Pennington <hp@pobox.com>
471 * bus/connection.c: implement routines for handling connections,
472 first thing is keeping a list of owned services on each connection
473 and setting up watches etc.
475 * bus/services.c: implement a mapping from service names to lists
478 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
480 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
481 to use static mutexes for global data
483 * dbus/dbus-connection.c (dbus_connection_set_data): add new
484 collection of functions to set/get application-specific data
485 on the DBusConnection.
487 2003-01-04 Havoc Pennington <hp@pobox.com>
489 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
490 (_dbus_poll): new function
492 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
495 * bus/loop.c: initial code for the daemon main loop
497 2003-01-04 Havoc Pennington <hp@pobox.com>
499 * test/watch.c (error_handler): make it safe if the error handler
500 is called multiple times (if we s/error handler/disconnect
501 handler/ we should just guarantee it's called only once)
503 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
504 error handler on disconnect (it's quite possible we should
505 just change the error handler to a "disconnect handler," I'm
506 not sure we have any other meaningful errors)
508 * configure.in: check for getpwnam_r
510 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
511 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
512 mechanism as in SASL spec, using socket credentials
514 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
515 (_dbus_send_credentials_unix_socket): new function
517 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
519 (_dbus_write): only check errno if <0 returned
520 (_dbus_write_two): ditto
522 2003-01-02 Anders Carlsson <andersca@codefactory.se>
524 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
525 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
526 (_dbus_marshal_test):
527 * dbus/dbus-marshal.h:
528 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
529 to _dbus_marshal_utf8_string. Also fix some tests.
531 2002-12-28 Harri Porten <porten@kde.org>
533 * configure.in: added check for C++ compiler and a very cheesy
534 check for the Qt integration
536 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
538 * qt/Makefile.am: added
540 * qt/.cvsignore: added
542 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
543 latter, added #ifdef QT_THREAD_SUPPORT guard.
545 * dbus/Makefile.am: added missing headers for make dist
547 2002-12-28 Kristian Rietveld <kris@gtk.org>
549 * dbus/Makefile.am: fixup export-symbols-regex.
551 2002-12-27 Anders Carlsson <andersca@codefactory.se>
553 * acinclude.m4: Add this file and put the
554 PKG_CHECK_MODULE macro in it.
556 2002-12-27 Anders Carlsson <andersca@codefactory.se>
558 * dbus/dbus-marshal.c: (_dbus_marshal_string),
559 (_dbus_demarshal_double), (_dbus_demarshal_int32),
560 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
561 (_dbus_marshal_test):
562 Make the demarshalling routines align the pos argument.
563 Add string marshalling tests and fix the obvious bugs
566 2002-12-26 Havoc Pennington <hp@pobox.com>
568 * dbus/dbus-auth.c: fixes fixes fixes
570 * dbus/dbus-transport-unix.c: wire up support for
571 encoding/decoding data on the wire
573 * dbus/dbus-auth.c (_dbus_auth_encode_data)
574 (_dbus_auth_decode_data): append to target string
575 instead of nuking it.
577 2002-12-26 Havoc Pennington <hp@pobox.com>
579 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
580 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
583 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
584 avoid swap_bytes() overhead (ignoring possible assembly stuff for
585 now). Main point is because I wanted unpack_uint32 to implement
587 (_dbus_verbose_bytes): new function
589 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
591 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
592 mechanism to handle a corrupt message stream
593 (_dbus_message_loader_new): fix preallocation to only prealloc,
596 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
597 (_dbus_string_test): enhance tests for copy/move and fix the
600 * dbus/dbus-transport-unix.c: Hold references in more places to
601 avoid reentrancy problems
603 * dbus/dbus-transport.c: ditto
605 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
606 leak reference count in no-message case
608 * test/watch.c (do_mainloop): handle adding/removing watches
609 during iteration over the watches. Also, ref the connection/server
610 stored on a watch, so we don't try to mangle a destroyed one.
612 * dbus/dbus-transport-unix.c (do_authentication): perform
615 * dbus/dbus-auth.c (get_state): add a state
616 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
617 (_dbus_auth_get_unused_bytes): append the unused bytes
618 to the passed in string, rather than prepend
620 * dbus/dbus-transport.c (_dbus_transport_init_base): create
621 the auth conversation DBusAuth
623 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
624 (_dbus_transport_new_for_domain_socket): when creating a
625 transport, pass in whether it's a client-side or server-side
626 transport so we know which DBusAuth to create
628 2002-12-03 Havoc Pennington <hp@pobox.com>
630 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
631 _after_ finalizing the derived members
632 (unix_connection_set): unref watch if we fail to add it
634 * dbus/dbus-connection.c (dbus_connection_unref): delete the
635 transport first, so that the connection owned by the
636 transport will be valid as the transport finalizes.
638 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
639 if necessary, and remove watches from the connection.
641 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
643 2002-12-26 Anders Carlsson <andersca@codefactory.se>
645 * dbus/dbus-marshal.c: (_dbus_marshal_string),
646 (_dbus_demarshal_double), (_dbus_demarshal_int32),
647 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
648 (_dbus_marshal_test):
649 * dbus/dbus-marshal.h:
650 Add string marshal functions and have the demarshal functions
651 return the new position.
653 2002-12-25 Havoc Pennington <hp@pobox.com>
655 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
656 it is a simple protocol that just maps directly to SASL.
658 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
659 initial implementation, not actually used yet.
661 * dbus/dbus-string.c (_dbus_string_find): new function
662 (_dbus_string_equal): new function
663 (_dbus_string_base64_encode): new function
664 (_dbus_string_base64_decode): new function
666 2002-12-25 Anders Carlsson <andersca@codefactory.se>
669 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
670 (_dbus_marshal_int32), (_dbus_marshal_uint32),
671 (_dbus_demarshal_double), (_dbus_demarshal_int32),
672 (_dbus_demarshal_uint32), (_dbus_marshal_test):
673 * dbus/dbus-marshal.h:
674 * dbus/dbus-protocol.h:
675 * dbus/dbus-test.c: (main):
677 Add un-optimized marshalling/demarshalling routines.
679 2002-12-25 Harri Porten <porten@kde.org>
681 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
683 2002-12-24 Zack Rusin <zack@kde.org>
685 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
686 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
689 2002-12-24 Havoc Pennington <hp@pobox.com>
691 * glib/dbus-gthread.c: fix include
693 * glib/dbus-glib.h: rename DBusMessageHandler for now.
694 I think glib API needs to change, though, as you don't
695 want to use DBusMessageFunction, you want to use the
696 DBusMessageHandler object. Probably
697 dbus_connection_open_with_g_main_loop()
698 and dbus_connection_setup_g_main_loop() or something like that
699 (but think of better names...) that just create a connection
700 that has watch/timeout functions etc. already set up.
702 * dbus/dbus-connection.c
703 (dbus_connection_send_message_with_reply): new function just to
704 show how the message handler helps us deal with replies.
706 * dbus/dbus-list.c (_dbus_list_remove_last): new function
708 * dbus/dbus-string.c (_dbus_string_test): free a string that
711 * dbus/dbus-hash.c: use memory pools for the hash entries
712 (rebuild_table): be more paranoid about overflow, and
713 shrink table when we can
714 (_dbus_hash_test): reduce number of sprintfs and write
715 valid C89. Add tests for case where we grow and then
716 shrink the hash table.
718 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
720 * dbus/dbus-connection.c (dbus_connection_register_handler)
721 (dbus_connection_unregister_handler): new functions
723 * dbus/dbus-message.c (dbus_message_get_name): new
725 * dbus/dbus-list.c: fix docs typo
727 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
728 an object representing a handler for messages.
730 2002-12-16 Anders Carlsson <andersca@codefactory.se>
733 * glib/dbus-gthread.c: (dbus_gthread_init):
734 Don't use the gdbus prefix for public functions.
736 2002-12-16 Anders Carlsson <andersca@codefactory.se>
740 Add GLib checks and fixup .pc files
744 * glib/dbus-gmain.c: (gdbus_connection_prepare),
745 (gdbus_connection_check), (gdbus_connection_dispatch),
746 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
747 (dbus_connection_gsource_new):
748 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
749 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
750 * glib/test-dbus-glib.c: (message_handler), (main):
753 2002-12-15 Harri Porten <porten@kde.org>
755 * autogen.sh: check for libtoolize before attempting to use it
757 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
760 * .cvsignore: ignore more stamp files
762 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
764 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
765 without make install.
767 2002-12-15 Havoc Pennington <hp@pobox.com>
769 * dbus/dbus-threads.c: add thread stubs that a higher library
770 layer can fill in. e.g. the GLib wrapper might fill them in with
771 GThread stuff. We still need to use this thread API to
772 thread-safe-ize the library.
774 2002-12-12 Havoc Pennington <hp@pobox.com>
776 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
777 below new interfaces and include fewer system headers.
779 * dbus/dbus-sysdeps.c (_dbus_read): new function
780 (_dbus_write): new function
781 (_dbus_write_two): new function
782 (_dbus_connect_unix_socket): new function
783 (_dbus_listen_unix_socket): new function
785 * dbus/dbus-message-internal.h: change interfaces to use
788 2002-12-11 Havoc Pennington <hp@pobox.com>
790 * dbus/dbus-types.h: add dbus_unichar
792 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
794 * dbus/dbus-connection.c (dbus_connection_send_message): return
797 * dbus/dbus-transport.c: include dbus-watch.h
799 * dbus/dbus-connection.c: include dbus-message-internal.h
801 * HACKING: add file with coding guidelines stuff.
803 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
804 handling here, for security purposes (as in vsftpd). Not actually
805 using this class yet.
807 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
808 system/libc usage here, as in vsftpd, for ease of auditing (and
809 should also simplify portability). Haven't actually moved all the
810 system/libc usage into here yet.
812 2002-11-25 Havoc Pennington <hp@pobox.com>
814 * dbus/dbus-internals.c (_dbus_verbose): fix to not
815 always print the first verbose message.
817 2002-11-24 Havoc Pennington <hp@pobox.com>
819 * test/echo-client.c, test/echo-server.c: cheesy test
822 * configure.in (AC_CHECK_FUNCS): check for writev
824 * dbus/dbus-message.c (_dbus_message_get_network_data): new
827 * dbus/dbus-list.c (_dbus_list_foreach): new function
829 * dbus/dbus-internals.c (_dbus_verbose): new function
831 * dbus/dbus-server.c, dbus/dbus-server.h: public object
832 representing a server that listens for connections.
834 * dbus/.cvsignore: create
836 * dbus/dbus-errors.h, dbus/dbus-errors.c:
837 public API for reporting errors
839 * dbus/dbus-connection.h, dbus/dbus-connection.c:
840 public object representing a connection that
841 sends/receives messages. (Same object used for
842 both client and server.)
844 * dbus/dbus-transport.h, dbus/dbus-transport.c:
845 Basic abstraction for different kinds of stream
846 that we might read/write messages from.
848 2002-11-23 Havoc Pennington <hp@pobox.com>
850 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
853 * dbus/dbus-test.c (main): add list test, and include
854 dbus-test.h as intended
856 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
857 (_dbus_hash_table_remove_int): return value indicates
858 whether the entry existed to remove
860 * dbus/dbus-list.c: add linked list utility class,
863 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
866 2002-11-23 Havoc Pennington <hp@pobox.com>
868 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
869 DBUS_END_DECLS to nothing, that should fix this once and for all
871 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
873 * dbus/dbus-message.c, dbus/dbus-hash.c:
874 add some missing @brief
876 2002-11-23 Havoc Pennington <hp@pobox.com>
878 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
879 to avoid confusing Doxygen
881 * dbus/dbus-hash.c: @} not }@
883 * dbus/dbus-message.c (struct DBusMessage): split out
886 2002-11-23 Havoc Pennington <hp@pobox.com>
888 * configure.in: pile on more warning flags if using gcc
890 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
891 to document static functions
893 * configure.in: add summary to end of configure so it
894 looks nice and attractive
896 * dbus/dbus-hash.c: finish implementation and write unit
899 * configure.in: add --enable-tests to enable unit tests
901 * dbus/dbus-test.c: test program to run unit tests
902 for all files in dbus/*, initially runs a test for
905 * dbus/dbus-internals.h: file to hold some internal utility stuff
907 2002-11-22 Havoc Pennington <hp@redhat.com>
909 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
910 "ported" away from Tcl
912 * dbus/dbus-types.h: header for types such as dbus_bool_t
914 2002-11-22 Havoc Pennington <hp@redhat.com>
916 * dbus/dbus.h: fixups for doc warnings
918 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
920 (QUIET): make it quiet so we can see warnings
922 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
924 2002-11-22 Havoc Pennington <hp@redhat.com>
926 * Makefile.am: include "Doxyfile" target in all-local
928 * configure.in: generate the Doxyfile
930 * Doxyfile.in: move Doxyfile here, so we can use
931 configure to generate a Doxyfile with the right
934 2002-11-22 Havoc Pennington <hp@redhat.com>
936 * dbus/dbus-message.c: move inline docs into .c file
938 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
939 so all docs are under doc/
940 (MAN_EXTENSION): generate man pages. Use extension
941 ".3dbus" which matches ".3qt" on my system,
942 I guess this is OK, I don't know really.
943 (FILE_PATTERNS): look for .c files not .h, makes sense
946 2002-11-22 Havoc Pennington <hp@pobox.com>
948 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
949 because any app can be a server, and any app can be a client,
950 the bus is a special kind of server.
952 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
954 * Doxyfile : adding. Still needs Makefile rules to be generated
955 automatically (just run "doxygen" in the toplevel dir for now to
958 * dbus/dbus-message.h : Adding sample docs (javadoc since
959 resembles gtk-doc a little more)
961 * dbus/dbus.h : Adding sample docs
963 2002-11-21 Havoc Pennington <hp@redhat.com>
965 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
966 so we can allow ourselves to include files directly,
967 instead of having to use dbus.h
969 * dbus/dbus.h: fill in
971 * dbus/dbus-message.h: sketch out a sample header file.
972 Include griping if you include it directly instead of
975 * dbus/dbus-macros.h: new file with macros for extern "C",
976 TRUE/FALSE, NULL, etc.
978 * doc/file-boilerplate.c: put include guards in here
980 2002-11-21 Havoc Pennington <hp@redhat.com>
982 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
984 * COPYING: include the GPL as well, and license code
985 under both AFL and GPL.
987 2002-11-21 Havoc Pennington <hp@redhat.com>
989 * acconfig.h: get rid of this
991 * autogen.sh (run_configure): add --no-configure option
993 * configure.in: remove AC_ARG_PROGRAM to make
994 autoconf complain less. add AC_PREREQ.
995 add AC_DEFINE third arg.
997 2002-11-21 Anders Carlsson <andersca@codefactory.se>
1000 Fix references so we can distcheck.
1002 2002-11-21 Havoc Pennington <hp@redhat.com>
1004 * Initial module creation