1 2003-01-24 Havoc Pennington <hp@pobox.com>
3 * doc/dbus-specification.sgml: add some stuff
5 2003-01-22 Havoc Pennington <hp@pobox.com>
7 * doc/dbus-specification.sgml: Start to document the protocol.
9 2003-01-22 Havoc Pennington <hp@pobox.com>
11 * dbus/dbus-connection.c
12 (dbus_connection_send_message_with_reply_and_block): add some @todo
14 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
16 2003-01-21 Havoc Pennington <hp@pobox.com>
18 (patch untested because can't compile)
20 * bus/driver.c (create_unique_client_name): make this function
21 never recycle client names. Also, caller should initialize
24 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
26 2003-01-21 Anders Carlsson <andersca@codefactory.se>
28 * dbus/dbus-marshal.c: (_dbus_marshal_double),
29 (_dbus_marshal_int32), (_dbus_marshal_uint32),
30 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
31 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
32 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
33 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
34 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
35 * dbus/dbus-marshal.h:
36 * dbus/dbus-protocol.h:
37 Add support for marshalling and demarshalling integer, double
40 2003-01-21 Anders Carlsson <andersca@codefactory.se>
45 * bus/connection.c: (connection_disconnect_handler):
46 Remove the connection from the bus driver's list.
48 (connection_watch_callback): Dispatch messages.
50 (free_connection_data): Free connection name.
52 (bus_connection_setup): Add connection to the bus driver's list.
53 (bus_connection_remove_owned_service):
54 (bus_connection_set_name), (bus_connection_get_name):
55 Add functions for setting and getting the connection's name.
60 * bus/driver.c: (create_unique_client_name),
61 (bus_driver_handle_hello_message),
62 (bus_driver_send_welcome_message), (bus_driver_message_handler),
63 (bus_driver_add_connection), (bus_driver_remove_connection):
66 * bus/services.c: (bus_service_free):
68 New file that handles communication and registreation with the bus
71 2003-01-21 Anders Carlsson <andersca@codefactory.se>
73 * dbus/dbus-connection.c: (dbus_connection_send_message):
74 Add a new client_serial parameter.
76 (dbus_connection_send_message_with_reply):
77 Remove a @todo since we've implemented the blocking function.
79 (dbus_connection_send_message_with_reply_and_block):
80 New function that sends a message and waits for a reply and
81 then returns the reply.
83 * dbus/dbus-connection.h:
86 * dbus/dbus-errors.c: (dbus_result_to_string):
90 * dbus/dbus-message-internal.h:
91 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
92 (_dbus_message_set_sender), (dbus_message_write_header),
93 (dbus_message_new_reply), (decode_header_data),
94 (_dbus_message_loader_return_buffer), (_dbus_message_test):
95 * dbus/dbus-message.h:
96 Add new functions that set the reply serial and sender.
97 Also marshal and demarshal them correctly and add test.
99 * dbus/dbus-protocol.h:
100 Add new DBUS_MESSAGE_TYPE_SENDER.
103 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
104 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
105 (dbus_connection_hookup_with_g_main):
106 * glib/test-dbus-glib.c: (main):
107 Rewrite to use GIOChannel and remove the GSource crack.
109 * test/echo-client.c: (main):
110 * test/watch.c: (check_messages):
111 Update for changed APIs
113 2003-01-19 Anders Carlsson <andersca@codefactory.se>
115 * dbus/Makefile.am: Add dbus-timeout.[cħ]
117 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
118 Create a DBusTimeoutList.
119 (dbus_connection_set_timeout_functions): Add new function to
120 set timeout callbacks
122 * dbus/dbus-connection.h: Add public DBusTimeout API.
124 * dbus/dbus-message.c: (dbus_message_get_service):
125 * dbus/dbus-message.h: New function.
127 * dbus/dbus-server.c: Fix small doc typo.
129 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
131 2003-01-19 Anders Carlsson <andersca@codefactory.se>
133 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
134 of the string, just as long as specified.
136 2003-01-19 Havoc Pennington <hp@pobox.com>
138 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
141 * dbus/dbus-server.c (dbus_server_set_max_connections)
142 (dbus_server_get_max_connections, dbus_server_get_n_connections):
143 keep track of current number of connections, and add API for
144 setting a max (but haven't implemented enforcing the max yet)
146 2003-01-18 Havoc Pennington <hp@pobox.com>
148 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
149 reading/writing if read_watch != NULL or write_watch != NULL.
151 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
152 the message loader code to actually load message->header and
153 message->body into the newly-created message.
155 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
158 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
159 (dbus_connection_get_max_message_size)
160 (dbus_connection_set_max_live_messages_size)
161 (dbus_connection_get_max_live_messages_size): implement some
162 resource limitation functions
164 * dbus/dbus-resources.c: new file implementing some of the
165 resource limits stuff
167 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
168 missing docs, add @todo to handle OOM etc.
170 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
173 2003-01-18 Havoc Pennington <hp@pobox.com>
175 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
176 connection if it hasn't been already.
178 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
179 replace with DisconnectFunction.
181 2003-01-18 Havoc Pennington <hp@pobox.com>
183 Building --disable-verbose-mode --disable-asserts --disable-tests
184 cuts the library from 112K to 45K or so
186 * configure.in: check for varargs macro support,
187 add --enable-verbose-mode, --enable-asserts.
189 * dbus/dbus-internals.h (_dbus_assert): support
191 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
193 2003-01-18 Havoc Pennington <hp@pobox.com>
195 * dbus/dbus-test.c: include config.h so that tests actually run
197 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
198 so the failure mode when that assumption fails will be plenty
201 2003-01-18 Havoc Pennington <hp@pobox.com>
203 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
205 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
208 * test/Makefile.am: don't use special variable "TESTS" for echo-*
209 since we don't want to use those in make check
211 2003-01-15 Havoc Pennington <hp@redhat.com>
217 2003-01-15 Havoc Pennington <hp@redhat.com>
219 * test/Makefile.am: fix so that test source code ends up in the
220 distribution on make distcheck
222 2003-01-15 Havoc Pennington <hp@redhat.com>
228 2003-01-15 Havoc Pennington <hp@redhat.com>
230 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
231 fix build when --disable-tests
233 * Makefile.am (EXTRA_DIST): put HACKING in here
235 * HACKING: document procedure for making a tarball release.
237 2003-01-14 Anders Carlsson <andersca@codefactory.se>
239 * bus/connection.c: (connection_error_handler),
240 (bus_connection_setup):
241 * bus/main.c: (main):
242 Make sure that the DBusConnectionData struct is NULLed
243 out to prevent a segfault.
245 * dbus/dbus-errors.c: (dbus_result_to_string):
246 * dbus/dbus-errors.h:
247 * dbus/dbus-message.c: (dbus_message_get_fields),
248 (dbus_message_get_fields_valist), (_dbus_message_test):
249 * dbus/dbus-message.h:
250 Make dbus_message_get_fields return a result code so we can
251 track invalid fields as well as oom.
253 2003-01-11 Havoc Pennington <hp@pobox.com>
255 * configure.in: change --enable-test/--enable-ansi action-if-given
256 to enable_foo=$enableval instead of enable_foo=yes
258 2003-01-08 Havoc Pennington <hp@pobox.com>
260 * dbus/dbus-string.c (_dbus_string_align_length): new function
262 * dbus/dbus-test-main.c: move main() for test app here
264 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
265 symbol to run tests, because dbus-test isn't in the main
268 Code review nitpicks.
270 * dbus/dbus-message.c (dbus_message_write_header): add newlines
271 for people with narrow emacs ;-). Assert client_serial was filled
272 in. Assert message->name != NULL.
273 (dbus_message_append_fields): have "first_field_type" arg separate
274 from va list, needed for C++ binding that also uses varargs IIRC
275 and helps with type safety
276 (dbus_message_new): add @todo about using DBusString to store
277 service/name internally
278 (dbus_message_new): don't leak ->service and ->name on OOM later
280 (dbus_message_unref): free the service name
281 (dbus_message_get_fields): same change to varargs
282 i.e. first_field_type
283 (_dbus_message_loader_return_buffer): assert that the message data
284 is aligned (if not it's a bug in our code). Put in verbose griping
285 about why we set corrupted = TRUE.
286 (decode_header_data): add FIXME that char* is evil. Was going to
287 add FIXME about evil locale-specific string.h strncmp, but just
288 switched to wacky string-as-uint32 optimization. Move check for
289 "no room for field name" above get_const_data_len() to avoid
290 assertion failure in get_const_data_len if we have trailing 2
291 bytes or the like. Check for service and name fields being
292 provided twice. Don't leak service/name on error. Require field
293 names to be aligned to 4 bytes.
295 * dbus/dbus-marshal.c: move byte swap stuff to header
296 (_dbus_pack_int32): uscore-prefix
297 (_dbus_unpack_int32): uscore-prefix
298 (_dbus_unpack_uint32): export
299 (_dbus_demarshal_string): add @todo complaining about use of
301 (_dbus_marshal_get_field_end_pos): add @todo about bad error
302 handling allowing corrupt data to go unchecked
304 2003-01-08 Havoc Pennington <hp@redhat.com>
306 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
307 to the select() as needed for authentication. (should be using
308 _dbus_poll() not select, but for another day)
310 * dbus/dbus.h: include dbus/dbus-protocol.h
312 2003-01-08 Anders Carlsson <andersca@codefactory.se>
314 * dbus/Makefile.am (dbusinclude_HEADERS): Install
317 2003-01-08 Anders Carlsson <andersca@codefactory.se>
319 * dbus/dbus-internals.c: (_dbus_type_to_string):
320 New function that returns a string describing a type.
322 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
323 * dbus/dbus-marshal.h:
324 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
325 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
326 (dbus_message_iter_get_byte_array):
327 * dbus/dbus-message.h:
328 Add new convenience functions for appending and getting message fields.
329 Also add demarshalling routines for byte arrays.
331 2003-01-07 Anders Carlsson <andersca@codefactory.se>
333 * dbus/dbus-connection-internal.h:
334 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
335 (_dbus_connection_get_next_client_serial),
336 (dbus_connection_send_message):
337 * dbus/dbus-internals.h:
338 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
339 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
340 (_dbus_marshal_uint32), (_dbus_demarshal_double),
341 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
342 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
343 (_dbus_verbose_bytes), (_dbus_marshal_test):
344 * dbus/dbus-marshal.h:
345 * dbus/dbus-message-internal.h:
346 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
347 (dbus_message_write_header), (_dbus_message_lock),
348 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
349 (dbus_message_get_name), (dbus_message_append_int32),
350 (dbus_message_append_uint32), (dbus_message_append_double),
351 (dbus_message_append_string), (dbus_message_append_byte_array),
352 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
353 (dbus_message_iter_unref), (dbus_message_iter_has_next),
354 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
355 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
356 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
357 (decode_header_data), (_dbus_message_loader_return_buffer),
358 (message_iter_test), (_dbus_message_test):
359 * dbus/dbus-message.h:
360 * dbus/dbus-protocol.h:
361 * dbus/dbus-test.c: (main):
363 * glib/test-dbus-glib.c: (message_handler), (main):
364 * test/echo-client.c: (main):
365 * test/watch.c: (check_messages):
366 Make messages sendable and receivable for real.
368 2003-01-07 Anders Carlsson <andersca@codefactory.se>
370 * dbus/dbus-marshal.c: (_dbus_marshal_double),
371 (_dbus_marshal_string), (_dbus_marshal_byte_array):
372 * dbus/dbus-message.c: (dbus_message_append_int32),
373 (dbus_message_append_uint32), (dbus_message_append_double),
374 (dbus_message_append_string), (dbus_message_append_byte_array):
375 Handle OOM restoration.
377 2003-01-07 Anders Carlsson <andersca@codefactory.se>
379 * dbus/dbus-marshal.c: (_dbus_marshal_string),
380 (_dbus_demarshal_string), (_dbus_marshal_test):
381 * dbus/dbus-marshal.h:
382 * dbus/dbus-message.c: (dbus_message_get_name),
383 Document these functions.
385 (dbus_message_append_int32), (dbus_message_append_uint32),
386 (dbus_message_append_double), (dbus_message_append_string),
387 (dbus_message_append_byte_array):
388 * dbus/dbus-message.h:
389 Add functions for adding message fields of different types.
391 * dbus/dbus-protocol.h:
392 Add the different types.
394 2003-01-05 Havoc Pennington <hp@pobox.com>
396 * bus/connection.c: implement routines for handling connections,
397 first thing is keeping a list of owned services on each connection
398 and setting up watches etc.
400 * bus/services.c: implement a mapping from service names to lists
403 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
405 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
406 to use static mutexes for global data
408 * dbus/dbus-connection.c (dbus_connection_set_data): add new
409 collection of functions to set/get application-specific data
410 on the DBusConnection.
412 2003-01-04 Havoc Pennington <hp@pobox.com>
414 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
415 (_dbus_poll): new function
417 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
420 * bus/loop.c: initial code for the daemon main loop
422 2003-01-04 Havoc Pennington <hp@pobox.com>
424 * test/watch.c (error_handler): make it safe if the error handler
425 is called multiple times (if we s/error handler/disconnect
426 handler/ we should just guarantee it's called only once)
428 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
429 error handler on disconnect (it's quite possible we should
430 just change the error handler to a "disconnect handler," I'm
431 not sure we have any other meaningful errors)
433 * configure.in: check for getpwnam_r
435 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
436 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
437 mechanism as in SASL spec, using socket credentials
439 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
440 (_dbus_send_credentials_unix_socket): new function
442 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
444 (_dbus_write): only check errno if <0 returned
445 (_dbus_write_two): ditto
447 2003-01-02 Anders Carlsson <andersca@codefactory.se>
449 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
450 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
451 (_dbus_marshal_test):
452 * dbus/dbus-marshal.h:
453 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
454 to _dbus_marshal_utf8_string. Also fix some tests.
456 2002-12-28 Harri Porten <porten@kde.org>
458 * configure.in: added check for C++ compiler and a very cheesy
459 check for the Qt integration
461 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
463 * qt/Makefile.am: added
465 * qt/.cvsignore: added
467 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
468 latter, added #ifdef QT_THREAD_SUPPORT guard.
470 * dbus/Makefile.am: added missing headers for make dist
472 2002-12-28 Kristian Rietveld <kris@gtk.org>
474 * dbus/Makefile.am: fixup export-symbols-regex.
476 2002-12-27 Anders Carlsson <andersca@codefactory.se>
478 * acinclude.m4: Add this file and put the
479 PKG_CHECK_MODULE macro in it.
481 2002-12-27 Anders Carlsson <andersca@codefactory.se>
483 * dbus/dbus-marshal.c: (_dbus_marshal_string),
484 (_dbus_demarshal_double), (_dbus_demarshal_int32),
485 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
486 (_dbus_marshal_test):
487 Make the demarshalling routines align the pos argument.
488 Add string marshalling tests and fix the obvious bugs
491 2002-12-26 Havoc Pennington <hp@pobox.com>
493 * dbus/dbus-auth.c: fixes fixes fixes
495 * dbus/dbus-transport-unix.c: wire up support for
496 encoding/decoding data on the wire
498 * dbus/dbus-auth.c (_dbus_auth_encode_data)
499 (_dbus_auth_decode_data): append to target string
500 instead of nuking it.
502 2002-12-26 Havoc Pennington <hp@pobox.com>
504 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
505 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
508 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
509 avoid swap_bytes() overhead (ignoring possible assembly stuff for
510 now). Main point is because I wanted unpack_uint32 to implement
512 (_dbus_verbose_bytes): new function
514 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
516 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
517 mechanism to handle a corrupt message stream
518 (_dbus_message_loader_new): fix preallocation to only prealloc,
521 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
522 (_dbus_string_test): enhance tests for copy/move and fix the
525 * dbus/dbus-transport-unix.c: Hold references in more places to
526 avoid reentrancy problems
528 * dbus/dbus-transport.c: ditto
530 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
531 leak reference count in no-message case
533 * test/watch.c (do_mainloop): handle adding/removing watches
534 during iteration over the watches. Also, ref the connection/server
535 stored on a watch, so we don't try to mangle a destroyed one.
537 * dbus/dbus-transport-unix.c (do_authentication): perform
540 * dbus/dbus-auth.c (get_state): add a state
541 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
542 (_dbus_auth_get_unused_bytes): append the unused bytes
543 to the passed in string, rather than prepend
545 * dbus/dbus-transport.c (_dbus_transport_init_base): create
546 the auth conversation DBusAuth
548 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
549 (_dbus_transport_new_for_domain_socket): when creating a
550 transport, pass in whether it's a client-side or server-side
551 transport so we know which DBusAuth to create
553 2002-12-03 Havoc Pennington <hp@pobox.com>
555 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
556 _after_ finalizing the derived members
557 (unix_connection_set): unref watch if we fail to add it
559 * dbus/dbus-connection.c (dbus_connection_unref): delete the
560 transport first, so that the connection owned by the
561 transport will be valid as the transport finalizes.
563 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
564 if necessary, and remove watches from the connection.
566 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
568 2002-12-26 Anders Carlsson <andersca@codefactory.se>
570 * dbus/dbus-marshal.c: (_dbus_marshal_string),
571 (_dbus_demarshal_double), (_dbus_demarshal_int32),
572 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
573 (_dbus_marshal_test):
574 * dbus/dbus-marshal.h:
575 Add string marshal functions and have the demarshal functions
576 return the new position.
578 2002-12-25 Havoc Pennington <hp@pobox.com>
580 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
581 it is a simple protocol that just maps directly to SASL.
583 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
584 initial implementation, not actually used yet.
586 * dbus/dbus-string.c (_dbus_string_find): new function
587 (_dbus_string_equal): new function
588 (_dbus_string_base64_encode): new function
589 (_dbus_string_base64_decode): new function
591 2002-12-25 Anders Carlsson <andersca@codefactory.se>
594 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
595 (_dbus_marshal_int32), (_dbus_marshal_uint32),
596 (_dbus_demarshal_double), (_dbus_demarshal_int32),
597 (_dbus_demarshal_uint32), (_dbus_marshal_test):
598 * dbus/dbus-marshal.h:
599 * dbus/dbus-protocol.h:
600 * dbus/dbus-test.c: (main):
602 Add un-optimized marshalling/demarshalling routines.
604 2002-12-25 Harri Porten <porten@kde.org>
606 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
608 2002-12-24 Zack Rusin <zack@kde.org>
610 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
611 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
614 2002-12-24 Havoc Pennington <hp@pobox.com>
616 * glib/dbus-gthread.c: fix include
618 * glib/dbus-glib.h: rename DBusMessageHandler for now.
619 I think glib API needs to change, though, as you don't
620 want to use DBusMessageFunction, you want to use the
621 DBusMessageHandler object. Probably
622 dbus_connection_open_with_g_main_loop()
623 and dbus_connection_setup_g_main_loop() or something like that
624 (but think of better names...) that just create a connection
625 that has watch/timeout functions etc. already set up.
627 * dbus/dbus-connection.c
628 (dbus_connection_send_message_with_reply): new function just to
629 show how the message handler helps us deal with replies.
631 * dbus/dbus-list.c (_dbus_list_remove_last): new function
633 * dbus/dbus-string.c (_dbus_string_test): free a string that
636 * dbus/dbus-hash.c: use memory pools for the hash entries
637 (rebuild_table): be more paranoid about overflow, and
638 shrink table when we can
639 (_dbus_hash_test): reduce number of sprintfs and write
640 valid C89. Add tests for case where we grow and then
641 shrink the hash table.
643 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
645 * dbus/dbus-connection.c (dbus_connection_register_handler)
646 (dbus_connection_unregister_handler): new functions
648 * dbus/dbus-message.c (dbus_message_get_name): new
650 * dbus/dbus-list.c: fix docs typo
652 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
653 an object representing a handler for messages.
655 2002-12-16 Anders Carlsson <andersca@codefactory.se>
658 * glib/dbus-gthread.c: (dbus_gthread_init):
659 Don't use the gdbus prefix for public functions.
661 2002-12-16 Anders Carlsson <andersca@codefactory.se>
665 Add GLib checks and fixup .pc files
669 * glib/dbus-gmain.c: (gdbus_connection_prepare),
670 (gdbus_connection_check), (gdbus_connection_dispatch),
671 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
672 (dbus_connection_gsource_new):
673 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
674 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
675 * glib/test-dbus-glib.c: (message_handler), (main):
678 2002-12-15 Harri Porten <porten@kde.org>
680 * autogen.sh: check for libtoolize before attempting to use it
682 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
685 * .cvsignore: ignore more stamp files
687 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
689 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
690 without make install.
692 2002-12-15 Havoc Pennington <hp@pobox.com>
694 * dbus/dbus-threads.c: add thread stubs that a higher library
695 layer can fill in. e.g. the GLib wrapper might fill them in with
696 GThread stuff. We still need to use this thread API to
697 thread-safe-ize the library.
699 2002-12-12 Havoc Pennington <hp@pobox.com>
701 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
702 below new interfaces and include fewer system headers.
704 * dbus/dbus-sysdeps.c (_dbus_read): new function
705 (_dbus_write): new function
706 (_dbus_write_two): new function
707 (_dbus_connect_unix_socket): new function
708 (_dbus_listen_unix_socket): new function
710 * dbus/dbus-message-internal.h: change interfaces to use
713 2002-12-11 Havoc Pennington <hp@pobox.com>
715 * dbus/dbus-types.h: add dbus_unichar
717 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
719 * dbus/dbus-connection.c (dbus_connection_send_message): return
722 * dbus/dbus-transport.c: include dbus-watch.h
724 * dbus/dbus-connection.c: include dbus-message-internal.h
726 * HACKING: add file with coding guidelines stuff.
728 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
729 handling here, for security purposes (as in vsftpd). Not actually
730 using this class yet.
732 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
733 system/libc usage here, as in vsftpd, for ease of auditing (and
734 should also simplify portability). Haven't actually moved all the
735 system/libc usage into here yet.
737 2002-11-25 Havoc Pennington <hp@pobox.com>
739 * dbus/dbus-internals.c (_dbus_verbose): fix to not
740 always print the first verbose message.
742 2002-11-24 Havoc Pennington <hp@pobox.com>
744 * test/echo-client.c, test/echo-server.c: cheesy test
747 * configure.in (AC_CHECK_FUNCS): check for writev
749 * dbus/dbus-message.c (_dbus_message_get_network_data): new
752 * dbus/dbus-list.c (_dbus_list_foreach): new function
754 * dbus/dbus-internals.c (_dbus_verbose): new function
756 * dbus/dbus-server.c, dbus/dbus-server.h: public object
757 representing a server that listens for connections.
759 * dbus/.cvsignore: create
761 * dbus/dbus-errors.h, dbus/dbus-errors.c:
762 public API for reporting errors
764 * dbus/dbus-connection.h, dbus/dbus-connection.c:
765 public object representing a connection that
766 sends/receives messages. (Same object used for
767 both client and server.)
769 * dbus/dbus-transport.h, dbus/dbus-transport.c:
770 Basic abstraction for different kinds of stream
771 that we might read/write messages from.
773 2002-11-23 Havoc Pennington <hp@pobox.com>
775 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
778 * dbus/dbus-test.c (main): add list test, and include
779 dbus-test.h as intended
781 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
782 (_dbus_hash_table_remove_int): return value indicates
783 whether the entry existed to remove
785 * dbus/dbus-list.c: add linked list utility class,
788 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
791 2002-11-23 Havoc Pennington <hp@pobox.com>
793 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
794 DBUS_END_DECLS to nothing, that should fix this once and for all
796 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
798 * dbus/dbus-message.c, dbus/dbus-hash.c:
799 add some missing @brief
801 2002-11-23 Havoc Pennington <hp@pobox.com>
803 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
804 to avoid confusing Doxygen
806 * dbus/dbus-hash.c: @} not }@
808 * dbus/dbus-message.c (struct DBusMessage): split out
811 2002-11-23 Havoc Pennington <hp@pobox.com>
813 * configure.in: pile on more warning flags if using gcc
815 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
816 to document static functions
818 * configure.in: add summary to end of configure so it
819 looks nice and attractive
821 * dbus/dbus-hash.c: finish implementation and write unit
824 * configure.in: add --enable-tests to enable unit tests
826 * dbus/dbus-test.c: test program to run unit tests
827 for all files in dbus/*, initially runs a test for
830 * dbus/dbus-internals.h: file to hold some internal utility stuff
832 2002-11-22 Havoc Pennington <hp@redhat.com>
834 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
835 "ported" away from Tcl
837 * dbus/dbus-types.h: header for types such as dbus_bool_t
839 2002-11-22 Havoc Pennington <hp@redhat.com>
841 * dbus/dbus.h: fixups for doc warnings
843 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
845 (QUIET): make it quiet so we can see warnings
847 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
849 2002-11-22 Havoc Pennington <hp@redhat.com>
851 * Makefile.am: include "Doxyfile" target in all-local
853 * configure.in: generate the Doxyfile
855 * Doxyfile.in: move Doxyfile here, so we can use
856 configure to generate a Doxyfile with the right
859 2002-11-22 Havoc Pennington <hp@redhat.com>
861 * dbus/dbus-message.c: move inline docs into .c file
863 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
864 so all docs are under doc/
865 (MAN_EXTENSION): generate man pages. Use extension
866 ".3dbus" which matches ".3qt" on my system,
867 I guess this is OK, I don't know really.
868 (FILE_PATTERNS): look for .c files not .h, makes sense
871 2002-11-22 Havoc Pennington <hp@pobox.com>
873 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
874 because any app can be a server, and any app can be a client,
875 the bus is a special kind of server.
877 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
879 * Doxyfile : adding. Still needs Makefile rules to be generated
880 automatically (just run "doxygen" in the toplevel dir for now to
883 * dbus/dbus-message.h : Adding sample docs (javadoc since
884 resembles gtk-doc a little more)
886 * dbus/dbus.h : Adding sample docs
888 2002-11-21 Havoc Pennington <hp@redhat.com>
890 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
891 so we can allow ourselves to include files directly,
892 instead of having to use dbus.h
894 * dbus/dbus.h: fill in
896 * dbus/dbus-message.h: sketch out a sample header file.
897 Include griping if you include it directly instead of
900 * dbus/dbus-macros.h: new file with macros for extern "C",
901 TRUE/FALSE, NULL, etc.
903 * doc/file-boilerplate.c: put include guards in here
905 2002-11-21 Havoc Pennington <hp@redhat.com>
907 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
909 * COPYING: include the GPL as well, and license code
910 under both AFL and GPL.
912 2002-11-21 Havoc Pennington <hp@redhat.com>
914 * acconfig.h: get rid of this
916 * autogen.sh (run_configure): add --no-configure option
918 * configure.in: remove AC_ARG_PROGRAM to make
919 autoconf complain less. add AC_PREREQ.
920 add AC_DEFINE third arg.
922 2002-11-21 Anders Carlsson <andersca@codefactory.se>
925 Fix references so we can distcheck.
927 2002-11-21 Havoc Pennington <hp@redhat.com>
929 * Initial module creation