1 2003-01-19 Anders Carlsson <andersca@codefactory.se>
3 * dbus/Makefile.am: Add dbus-timeout.[cħ]
5 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
6 Create a DBusTimeoutList.
7 (dbus_connection_set_timeout_functions): Add new function to
10 * dbus/dbus-connection.h: Add public DBusTimeout API.
12 * dbus/dbus-message.c: (dbus_message_get_service):
13 * dbus/dbus-message.h: New function.
15 * dbus/dbus-server.c: Fix small doc typo.
17 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
19 2003-01-19 Anders Carlsson <andersca@codefactory.se>
21 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
22 of the string, just as long as specified.
24 2003-01-19 Havoc Pennington <hp@pobox.com>
26 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
29 * dbus/dbus-server.c (dbus_server_set_max_connections)
30 (dbus_server_get_max_connections, dbus_server_get_n_connections):
31 keep track of current number of connections, and add API for
32 setting a max (but haven't implemented enforcing the max yet)
34 2003-01-18 Havoc Pennington <hp@pobox.com>
36 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
37 reading/writing if read_watch != NULL or write_watch != NULL.
39 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
40 the message loader code to actually load message->header and
41 message->body into the newly-created message.
43 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
46 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
47 (dbus_connection_get_max_message_size)
48 (dbus_connection_set_max_live_messages_size)
49 (dbus_connection_get_max_live_messages_size): implement some
50 resource limitation functions
52 * dbus/dbus-resources.c: new file implementing some of the
55 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
56 missing docs, add @todo to handle OOM etc.
58 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
61 2003-01-18 Havoc Pennington <hp@pobox.com>
63 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
64 connection if it hasn't been already.
66 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
67 replace with DisconnectFunction.
69 2003-01-18 Havoc Pennington <hp@pobox.com>
71 Building --disable-verbose-mode --disable-asserts --disable-tests
72 cuts the library from 112K to 45K or so
74 * configure.in: check for varargs macro support,
75 add --enable-verbose-mode, --enable-asserts.
77 * dbus/dbus-internals.h (_dbus_assert): support
79 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
81 2003-01-18 Havoc Pennington <hp@pobox.com>
83 * dbus/dbus-test.c: include config.h so that tests actually run
85 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
86 so the failure mode when that assumption fails will be plenty
89 2003-01-18 Havoc Pennington <hp@pobox.com>
91 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
93 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
96 * test/Makefile.am: don't use special variable "TESTS" for echo-*
97 since we don't want to use those in make check
99 2003-01-15 Havoc Pennington <hp@redhat.com>
105 2003-01-15 Havoc Pennington <hp@redhat.com>
107 * test/Makefile.am: fix so that test source code ends up in the
108 distribution on make distcheck
110 2003-01-15 Havoc Pennington <hp@redhat.com>
116 2003-01-15 Havoc Pennington <hp@redhat.com>
118 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
119 fix build when --disable-tests
121 * Makefile.am (EXTRA_DIST): put HACKING in here
123 * HACKING: document procedure for making a tarball release.
125 2003-01-14 Anders Carlsson <andersca@codefactory.se>
127 * bus/connection.c: (connection_error_handler),
128 (bus_connection_setup):
129 * bus/main.c: (main):
130 Make sure that the DBusConnectionData struct is NULLed
131 out to prevent a segfault.
133 * dbus/dbus-errors.c: (dbus_result_to_string):
134 * dbus/dbus-errors.h:
135 * dbus/dbus-message.c: (dbus_message_get_fields),
136 (dbus_message_get_fields_valist), (_dbus_message_test):
137 * dbus/dbus-message.h:
138 Make dbus_message_get_fields return a result code so we can
139 track invalid fields as well as oom.
141 2003-01-11 Havoc Pennington <hp@pobox.com>
143 * configure.in: change --enable-test/--enable-ansi action-if-given
144 to enable_foo=$enableval instead of enable_foo=yes
146 2003-01-08 Havoc Pennington <hp@pobox.com>
148 * dbus/dbus-string.c (_dbus_string_align_length): new function
150 * dbus/dbus-test-main.c: move main() for test app here
152 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
153 symbol to run tests, because dbus-test isn't in the main
156 Code review nitpicks.
158 * dbus/dbus-message.c (dbus_message_write_header): add newlines
159 for people with narrow emacs ;-). Assert client_serial was filled
160 in. Assert message->name != NULL.
161 (dbus_message_append_fields): have "first_field_type" arg separate
162 from va list, needed for C++ binding that also uses varargs IIRC
163 and helps with type safety
164 (dbus_message_new): add @todo about using DBusString to store
165 service/name internally
166 (dbus_message_new): don't leak ->service and ->name on OOM later
168 (dbus_message_unref): free the service name
169 (dbus_message_get_fields): same change to varargs
170 i.e. first_field_type
171 (_dbus_message_loader_return_buffer): assert that the message data
172 is aligned (if not it's a bug in our code). Put in verbose griping
173 about why we set corrupted = TRUE.
174 (decode_header_data): add FIXME that char* is evil. Was going to
175 add FIXME about evil locale-specific string.h strncmp, but just
176 switched to wacky string-as-uint32 optimization. Move check for
177 "no room for field name" above get_const_data_len() to avoid
178 assertion failure in get_const_data_len if we have trailing 2
179 bytes or the like. Check for service and name fields being
180 provided twice. Don't leak service/name on error. Require field
181 names to be aligned to 4 bytes.
183 * dbus/dbus-marshal.c: move byte swap stuff to header
184 (_dbus_pack_int32): uscore-prefix
185 (_dbus_unpack_int32): uscore-prefix
186 (_dbus_unpack_uint32): export
187 (_dbus_demarshal_string): add @todo complaining about use of
189 (_dbus_marshal_get_field_end_pos): add @todo about bad error
190 handling allowing corrupt data to go unchecked
192 2003-01-08 Havoc Pennington <hp@redhat.com>
194 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
195 to the select() as needed for authentication. (should be using
196 _dbus_poll() not select, but for another day)
198 * dbus/dbus.h: include dbus/dbus-protocol.h
200 2003-01-08 Anders Carlsson <andersca@codefactory.se>
202 * dbus/Makefile.am (dbusinclude_HEADERS): Install
205 2003-01-08 Anders Carlsson <andersca@codefactory.se>
207 * dbus/dbus-internals.c: (_dbus_type_to_string):
208 New function that returns a string describing a type.
210 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
211 * dbus/dbus-marshal.h:
212 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
213 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
214 (dbus_message_iter_get_byte_array):
215 * dbus/dbus-message.h:
216 Add new convenience functions for appending and getting message fields.
217 Also add demarshalling routines for byte arrays.
219 2003-01-07 Anders Carlsson <andersca@codefactory.se>
221 * dbus/dbus-connection-internal.h:
222 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
223 (_dbus_connection_get_next_client_serial),
224 (dbus_connection_send_message):
225 * dbus/dbus-internals.h:
226 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
227 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
228 (_dbus_marshal_uint32), (_dbus_demarshal_double),
229 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
230 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
231 (_dbus_verbose_bytes), (_dbus_marshal_test):
232 * dbus/dbus-marshal.h:
233 * dbus/dbus-message-internal.h:
234 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
235 (dbus_message_write_header), (_dbus_message_lock),
236 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
237 (dbus_message_get_name), (dbus_message_append_int32),
238 (dbus_message_append_uint32), (dbus_message_append_double),
239 (dbus_message_append_string), (dbus_message_append_byte_array),
240 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
241 (dbus_message_iter_unref), (dbus_message_iter_has_next),
242 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
243 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
244 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
245 (decode_header_data), (_dbus_message_loader_return_buffer),
246 (message_iter_test), (_dbus_message_test):
247 * dbus/dbus-message.h:
248 * dbus/dbus-protocol.h:
249 * dbus/dbus-test.c: (main):
251 * glib/test-dbus-glib.c: (message_handler), (main):
252 * test/echo-client.c: (main):
253 * test/watch.c: (check_messages):
254 Make messages sendable and receivable for real.
256 2003-01-07 Anders Carlsson <andersca@codefactory.se>
258 * dbus/dbus-marshal.c: (_dbus_marshal_double),
259 (_dbus_marshal_string), (_dbus_marshal_byte_array):
260 * dbus/dbus-message.c: (dbus_message_append_int32),
261 (dbus_message_append_uint32), (dbus_message_append_double),
262 (dbus_message_append_string), (dbus_message_append_byte_array):
263 Handle OOM restoration.
265 2003-01-07 Anders Carlsson <andersca@codefactory.se>
267 * dbus/dbus-marshal.c: (_dbus_marshal_string),
268 (_dbus_demarshal_string), (_dbus_marshal_test):
269 * dbus/dbus-marshal.h:
270 * dbus/dbus-message.c: (dbus_message_get_name),
271 Document these functions.
273 (dbus_message_append_int32), (dbus_message_append_uint32),
274 (dbus_message_append_double), (dbus_message_append_string),
275 (dbus_message_append_byte_array):
276 * dbus/dbus-message.h:
277 Add functions for adding message fields of different types.
279 * dbus/dbus-protocol.h:
280 Add the different types.
282 2003-01-05 Havoc Pennington <hp@pobox.com>
284 * bus/connection.c: implement routines for handling connections,
285 first thing is keeping a list of owned services on each connection
286 and setting up watches etc.
288 * bus/services.c: implement a mapping from service names to lists
291 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
293 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
294 to use static mutexes for global data
296 * dbus/dbus-connection.c (dbus_connection_set_data): add new
297 collection of functions to set/get application-specific data
298 on the DBusConnection.
300 2003-01-04 Havoc Pennington <hp@pobox.com>
302 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
303 (_dbus_poll): new function
305 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
308 * bus/loop.c: initial code for the daemon main loop
310 2003-01-04 Havoc Pennington <hp@pobox.com>
312 * test/watch.c (error_handler): make it safe if the error handler
313 is called multiple times (if we s/error handler/disconnect
314 handler/ we should just guarantee it's called only once)
316 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
317 error handler on disconnect (it's quite possible we should
318 just change the error handler to a "disconnect handler," I'm
319 not sure we have any other meaningful errors)
321 * configure.in: check for getpwnam_r
323 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
324 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
325 mechanism as in SASL spec, using socket credentials
327 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
328 (_dbus_send_credentials_unix_socket): new function
330 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
332 (_dbus_write): only check errno if <0 returned
333 (_dbus_write_two): ditto
335 2003-01-02 Anders Carlsson <andersca@codefactory.se>
337 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
338 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
339 (_dbus_marshal_test):
340 * dbus/dbus-marshal.h:
341 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
342 to _dbus_marshal_utf8_string. Also fix some tests.
344 2002-12-28 Harri Porten <porten@kde.org>
346 * configure.in: added check for C++ compiler and a very cheesy
347 check for the Qt integration
349 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
351 * qt/Makefile.am: added
353 * qt/.cvsignore: added
355 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
356 latter, added #ifdef QT_THREAD_SUPPORT guard.
358 * dbus/Makefile.am: added missing headers for make dist
360 2002-12-28 Kristian Rietveld <kris@gtk.org>
362 * dbus/Makefile.am: fixup export-symbols-regex.
364 2002-12-27 Anders Carlsson <andersca@codefactory.se>
366 * acinclude.m4: Add this file and put the
367 PKG_CHECK_MODULE macro in it.
369 2002-12-27 Anders Carlsson <andersca@codefactory.se>
371 * dbus/dbus-marshal.c: (_dbus_marshal_string),
372 (_dbus_demarshal_double), (_dbus_demarshal_int32),
373 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
374 (_dbus_marshal_test):
375 Make the demarshalling routines align the pos argument.
376 Add string marshalling tests and fix the obvious bugs
379 2002-12-26 Havoc Pennington <hp@pobox.com>
381 * dbus/dbus-auth.c: fixes fixes fixes
383 * dbus/dbus-transport-unix.c: wire up support for
384 encoding/decoding data on the wire
386 * dbus/dbus-auth.c (_dbus_auth_encode_data)
387 (_dbus_auth_decode_data): append to target string
388 instead of nuking it.
390 2002-12-26 Havoc Pennington <hp@pobox.com>
392 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
393 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
396 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
397 avoid swap_bytes() overhead (ignoring possible assembly stuff for
398 now). Main point is because I wanted unpack_uint32 to implement
400 (_dbus_verbose_bytes): new function
402 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
404 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
405 mechanism to handle a corrupt message stream
406 (_dbus_message_loader_new): fix preallocation to only prealloc,
409 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
410 (_dbus_string_test): enhance tests for copy/move and fix the
413 * dbus/dbus-transport-unix.c: Hold references in more places to
414 avoid reentrancy problems
416 * dbus/dbus-transport.c: ditto
418 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
419 leak reference count in no-message case
421 * test/watch.c (do_mainloop): handle adding/removing watches
422 during iteration over the watches. Also, ref the connection/server
423 stored on a watch, so we don't try to mangle a destroyed one.
425 * dbus/dbus-transport-unix.c (do_authentication): perform
428 * dbus/dbus-auth.c (get_state): add a state
429 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
430 (_dbus_auth_get_unused_bytes): append the unused bytes
431 to the passed in string, rather than prepend
433 * dbus/dbus-transport.c (_dbus_transport_init_base): create
434 the auth conversation DBusAuth
436 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
437 (_dbus_transport_new_for_domain_socket): when creating a
438 transport, pass in whether it's a client-side or server-side
439 transport so we know which DBusAuth to create
441 2002-12-03 Havoc Pennington <hp@pobox.com>
443 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
444 _after_ finalizing the derived members
445 (unix_connection_set): unref watch if we fail to add it
447 * dbus/dbus-connection.c (dbus_connection_unref): delete the
448 transport first, so that the connection owned by the
449 transport will be valid as the transport finalizes.
451 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
452 if necessary, and remove watches from the connection.
454 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
456 2002-12-26 Anders Carlsson <andersca@codefactory.se>
458 * dbus/dbus-marshal.c: (_dbus_marshal_string),
459 (_dbus_demarshal_double), (_dbus_demarshal_int32),
460 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
461 (_dbus_marshal_test):
462 * dbus/dbus-marshal.h:
463 Add string marshal functions and have the demarshal functions
464 return the new position.
466 2002-12-25 Havoc Pennington <hp@pobox.com>
468 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
469 it is a simple protocol that just maps directly to SASL.
471 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
472 initial implementation, not actually used yet.
474 * dbus/dbus-string.c (_dbus_string_find): new function
475 (_dbus_string_equal): new function
476 (_dbus_string_base64_encode): new function
477 (_dbus_string_base64_decode): new function
479 2002-12-25 Anders Carlsson <andersca@codefactory.se>
482 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
483 (_dbus_marshal_int32), (_dbus_marshal_uint32),
484 (_dbus_demarshal_double), (_dbus_demarshal_int32),
485 (_dbus_demarshal_uint32), (_dbus_marshal_test):
486 * dbus/dbus-marshal.h:
487 * dbus/dbus-protocol.h:
488 * dbus/dbus-test.c: (main):
490 Add un-optimized marshalling/demarshalling routines.
492 2002-12-25 Harri Porten <porten@kde.org>
494 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
496 2002-12-24 Zack Rusin <zack@kde.org>
498 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
499 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
502 2002-12-24 Havoc Pennington <hp@pobox.com>
504 * glib/dbus-gthread.c: fix include
506 * glib/dbus-glib.h: rename DBusMessageHandler for now.
507 I think glib API needs to change, though, as you don't
508 want to use DBusMessageFunction, you want to use the
509 DBusMessageHandler object. Probably
510 dbus_connection_open_with_g_main_loop()
511 and dbus_connection_setup_g_main_loop() or something like that
512 (but think of better names...) that just create a connection
513 that has watch/timeout functions etc. already set up.
515 * dbus/dbus-connection.c
516 (dbus_connection_send_message_with_reply): new function just to
517 show how the message handler helps us deal with replies.
519 * dbus/dbus-list.c (_dbus_list_remove_last): new function
521 * dbus/dbus-string.c (_dbus_string_test): free a string that
524 * dbus/dbus-hash.c: use memory pools for the hash entries
525 (rebuild_table): be more paranoid about overflow, and
526 shrink table when we can
527 (_dbus_hash_test): reduce number of sprintfs and write
528 valid C89. Add tests for case where we grow and then
529 shrink the hash table.
531 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
533 * dbus/dbus-connection.c (dbus_connection_register_handler)
534 (dbus_connection_unregister_handler): new functions
536 * dbus/dbus-message.c (dbus_message_get_name): new
538 * dbus/dbus-list.c: fix docs typo
540 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
541 an object representing a handler for messages.
543 2002-12-16 Anders Carlsson <andersca@codefactory.se>
546 * glib/dbus-gthread.c: (dbus_gthread_init):
547 Don't use the gdbus prefix for public functions.
549 2002-12-16 Anders Carlsson <andersca@codefactory.se>
553 Add GLib checks and fixup .pc files
557 * glib/dbus-gmain.c: (gdbus_connection_prepare),
558 (gdbus_connection_check), (gdbus_connection_dispatch),
559 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
560 (dbus_connection_gsource_new):
561 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
562 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
563 * glib/test-dbus-glib.c: (message_handler), (main):
566 2002-12-15 Harri Porten <porten@kde.org>
568 * autogen.sh: check for libtoolize before attempting to use it
570 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
573 * .cvsignore: ignore more stamp files
575 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
577 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
578 without make install.
580 2002-12-15 Havoc Pennington <hp@pobox.com>
582 * dbus/dbus-threads.c: add thread stubs that a higher library
583 layer can fill in. e.g. the GLib wrapper might fill them in with
584 GThread stuff. We still need to use this thread API to
585 thread-safe-ize the library.
587 2002-12-12 Havoc Pennington <hp@pobox.com>
589 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
590 below new interfaces and include fewer system headers.
592 * dbus/dbus-sysdeps.c (_dbus_read): new function
593 (_dbus_write): new function
594 (_dbus_write_two): new function
595 (_dbus_connect_unix_socket): new function
596 (_dbus_listen_unix_socket): new function
598 * dbus/dbus-message-internal.h: change interfaces to use
601 2002-12-11 Havoc Pennington <hp@pobox.com>
603 * dbus/dbus-types.h: add dbus_unichar
605 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
607 * dbus/dbus-connection.c (dbus_connection_send_message): return
610 * dbus/dbus-transport.c: include dbus-watch.h
612 * dbus/dbus-connection.c: include dbus-message-internal.h
614 * HACKING: add file with coding guidelines stuff.
616 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
617 handling here, for security purposes (as in vsftpd). Not actually
618 using this class yet.
620 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
621 system/libc usage here, as in vsftpd, for ease of auditing (and
622 should also simplify portability). Haven't actually moved all the
623 system/libc usage into here yet.
625 2002-11-25 Havoc Pennington <hp@pobox.com>
627 * dbus/dbus-internals.c (_dbus_verbose): fix to not
628 always print the first verbose message.
630 2002-11-24 Havoc Pennington <hp@pobox.com>
632 * test/echo-client.c, test/echo-server.c: cheesy test
635 * configure.in (AC_CHECK_FUNCS): check for writev
637 * dbus/dbus-message.c (_dbus_message_get_network_data): new
640 * dbus/dbus-list.c (_dbus_list_foreach): new function
642 * dbus/dbus-internals.c (_dbus_verbose): new function
644 * dbus/dbus-server.c, dbus/dbus-server.h: public object
645 representing a server that listens for connections.
647 * dbus/.cvsignore: create
649 * dbus/dbus-errors.h, dbus/dbus-errors.c:
650 public API for reporting errors
652 * dbus/dbus-connection.h, dbus/dbus-connection.c:
653 public object representing a connection that
654 sends/receives messages. (Same object used for
655 both client and server.)
657 * dbus/dbus-transport.h, dbus/dbus-transport.c:
658 Basic abstraction for different kinds of stream
659 that we might read/write messages from.
661 2002-11-23 Havoc Pennington <hp@pobox.com>
663 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
666 * dbus/dbus-test.c (main): add list test, and include
667 dbus-test.h as intended
669 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
670 (_dbus_hash_table_remove_int): return value indicates
671 whether the entry existed to remove
673 * dbus/dbus-list.c: add linked list utility class,
676 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
679 2002-11-23 Havoc Pennington <hp@pobox.com>
681 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
682 DBUS_END_DECLS to nothing, that should fix this once and for all
684 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
686 * dbus/dbus-message.c, dbus/dbus-hash.c:
687 add some missing @brief
689 2002-11-23 Havoc Pennington <hp@pobox.com>
691 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
692 to avoid confusing Doxygen
694 * dbus/dbus-hash.c: @} not }@
696 * dbus/dbus-message.c (struct DBusMessage): split out
699 2002-11-23 Havoc Pennington <hp@pobox.com>
701 * configure.in: pile on more warning flags if using gcc
703 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
704 to document static functions
706 * configure.in: add summary to end of configure so it
707 looks nice and attractive
709 * dbus/dbus-hash.c: finish implementation and write unit
712 * configure.in: add --enable-tests to enable unit tests
714 * dbus/dbus-test.c: test program to run unit tests
715 for all files in dbus/*, initially runs a test for
718 * dbus/dbus-internals.h: file to hold some internal utility stuff
720 2002-11-22 Havoc Pennington <hp@redhat.com>
722 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
723 "ported" away from Tcl
725 * dbus/dbus-types.h: header for types such as dbus_bool_t
727 2002-11-22 Havoc Pennington <hp@redhat.com>
729 * dbus/dbus.h: fixups for doc warnings
731 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
733 (QUIET): make it quiet so we can see warnings
735 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
737 2002-11-22 Havoc Pennington <hp@redhat.com>
739 * Makefile.am: include "Doxyfile" target in all-local
741 * configure.in: generate the Doxyfile
743 * Doxyfile.in: move Doxyfile here, so we can use
744 configure to generate a Doxyfile with the right
747 2002-11-22 Havoc Pennington <hp@redhat.com>
749 * dbus/dbus-message.c: move inline docs into .c file
751 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
752 so all docs are under doc/
753 (MAN_EXTENSION): generate man pages. Use extension
754 ".3dbus" which matches ".3qt" on my system,
755 I guess this is OK, I don't know really.
756 (FILE_PATTERNS): look for .c files not .h, makes sense
759 2002-11-22 Havoc Pennington <hp@pobox.com>
761 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
762 because any app can be a server, and any app can be a client,
763 the bus is a special kind of server.
765 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
767 * Doxyfile : adding. Still needs Makefile rules to be generated
768 automatically (just run "doxygen" in the toplevel dir for now to
771 * dbus/dbus-message.h : Adding sample docs (javadoc since
772 resembles gtk-doc a little more)
774 * dbus/dbus.h : Adding sample docs
776 2002-11-21 Havoc Pennington <hp@redhat.com>
778 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
779 so we can allow ourselves to include files directly,
780 instead of having to use dbus.h
782 * dbus/dbus.h: fill in
784 * dbus/dbus-message.h: sketch out a sample header file.
785 Include griping if you include it directly instead of
788 * dbus/dbus-macros.h: new file with macros for extern "C",
789 TRUE/FALSE, NULL, etc.
791 * doc/file-boilerplate.c: put include guards in here
793 2002-11-21 Havoc Pennington <hp@redhat.com>
795 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
797 * COPYING: include the GPL as well, and license code
798 under both AFL and GPL.
800 2002-11-21 Havoc Pennington <hp@redhat.com>
802 * acconfig.h: get rid of this
804 * autogen.sh (run_configure): add --no-configure option
806 * configure.in: remove AC_ARG_PROGRAM to make
807 autoconf complain less. add AC_PREREQ.
808 add AC_DEFINE third arg.
810 2002-11-21 Anders Carlsson <andersca@codefactory.se>
813 Fix references so we can distcheck.
815 2002-11-21 Havoc Pennington <hp@redhat.com>
817 * Initial module creation