1 2003-01-22 Havoc Pennington <hp@pobox.com>
3 * dbus/dbus-connection.c
4 (dbus_connection_send_message_with_reply_and_block): add some @todo
6 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
8 2003-01-21 Havoc Pennington <hp@pobox.com>
10 (patch untested because can't compile)
12 * bus/driver.c (create_unique_client_name): make this function
13 never recycle client names. Also, caller should initialize
16 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
18 2003-01-21 Anders Carlsson <andersca@codefactory.se>
20 * dbus/dbus-marshal.c: (_dbus_marshal_double),
21 (_dbus_marshal_int32), (_dbus_marshal_uint32),
22 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
23 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
24 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
25 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
26 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
27 * dbus/dbus-marshal.h:
28 * dbus/dbus-protocol.h:
29 Add support for marshalling and demarshalling integer, double
32 2003-01-21 Anders Carlsson <andersca@codefactory.se>
37 * bus/connection.c: (connection_disconnect_handler):
38 Remove the connection from the bus driver's list.
40 (connection_watch_callback): Dispatch messages.
42 (free_connection_data): Free connection name.
44 (bus_connection_setup): Add connection to the bus driver's list.
45 (bus_connection_remove_owned_service):
46 (bus_connection_set_name), (bus_connection_get_name):
47 Add functions for setting and getting the connection's name.
52 * bus/driver.c: (create_unique_client_name),
53 (bus_driver_handle_hello_message),
54 (bus_driver_send_welcome_message), (bus_driver_message_handler),
55 (bus_driver_add_connection), (bus_driver_remove_connection):
58 * bus/services.c: (bus_service_free):
60 New file that handles communication and registreation with the bus
63 2003-01-21 Anders Carlsson <andersca@codefactory.se>
65 * dbus/dbus-connection.c: (dbus_connection_send_message):
66 Add a new client_serial parameter.
68 (dbus_connection_send_message_with_reply):
69 Remove a @todo since we've implemented the blocking function.
71 (dbus_connection_send_message_with_reply_and_block):
72 New function that sends a message and waits for a reply and
73 then returns the reply.
75 * dbus/dbus-connection.h:
78 * dbus/dbus-errors.c: (dbus_result_to_string):
82 * dbus/dbus-message-internal.h:
83 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
84 (_dbus_message_set_sender), (dbus_message_write_header),
85 (dbus_message_new_reply), (decode_header_data),
86 (_dbus_message_loader_return_buffer), (_dbus_message_test):
87 * dbus/dbus-message.h:
88 Add new functions that set the reply serial and sender.
89 Also marshal and demarshal them correctly and add test.
91 * dbus/dbus-protocol.h:
92 Add new DBUS_MESSAGE_TYPE_SENDER.
95 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
96 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
97 (dbus_connection_hookup_with_g_main):
98 * glib/test-dbus-glib.c: (main):
99 Rewrite to use GIOChannel and remove the GSource crack.
101 * test/echo-client.c: (main):
102 * test/watch.c: (check_messages):
103 Update for changed APIs
105 2003-01-19 Anders Carlsson <andersca@codefactory.se>
107 * dbus/Makefile.am: Add dbus-timeout.[cħ]
109 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
110 Create a DBusTimeoutList.
111 (dbus_connection_set_timeout_functions): Add new function to
112 set timeout callbacks
114 * dbus/dbus-connection.h: Add public DBusTimeout API.
116 * dbus/dbus-message.c: (dbus_message_get_service):
117 * dbus/dbus-message.h: New function.
119 * dbus/dbus-server.c: Fix small doc typo.
121 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
123 2003-01-19 Anders Carlsson <andersca@codefactory.se>
125 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
126 of the string, just as long as specified.
128 2003-01-19 Havoc Pennington <hp@pobox.com>
130 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
133 * dbus/dbus-server.c (dbus_server_set_max_connections)
134 (dbus_server_get_max_connections, dbus_server_get_n_connections):
135 keep track of current number of connections, and add API for
136 setting a max (but haven't implemented enforcing the max yet)
138 2003-01-18 Havoc Pennington <hp@pobox.com>
140 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
141 reading/writing if read_watch != NULL or write_watch != NULL.
143 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
144 the message loader code to actually load message->header and
145 message->body into the newly-created message.
147 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
150 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
151 (dbus_connection_get_max_message_size)
152 (dbus_connection_set_max_live_messages_size)
153 (dbus_connection_get_max_live_messages_size): implement some
154 resource limitation functions
156 * dbus/dbus-resources.c: new file implementing some of the
157 resource limits stuff
159 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
160 missing docs, add @todo to handle OOM etc.
162 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
165 2003-01-18 Havoc Pennington <hp@pobox.com>
167 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
168 connection if it hasn't been already.
170 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
171 replace with DisconnectFunction.
173 2003-01-18 Havoc Pennington <hp@pobox.com>
175 Building --disable-verbose-mode --disable-asserts --disable-tests
176 cuts the library from 112K to 45K or so
178 * configure.in: check for varargs macro support,
179 add --enable-verbose-mode, --enable-asserts.
181 * dbus/dbus-internals.h (_dbus_assert): support
183 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
185 2003-01-18 Havoc Pennington <hp@pobox.com>
187 * dbus/dbus-test.c: include config.h so that tests actually run
189 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
190 so the failure mode when that assumption fails will be plenty
193 2003-01-18 Havoc Pennington <hp@pobox.com>
195 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
197 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
200 * test/Makefile.am: don't use special variable "TESTS" for echo-*
201 since we don't want to use those in make check
203 2003-01-15 Havoc Pennington <hp@redhat.com>
209 2003-01-15 Havoc Pennington <hp@redhat.com>
211 * test/Makefile.am: fix so that test source code ends up in the
212 distribution on make distcheck
214 2003-01-15 Havoc Pennington <hp@redhat.com>
220 2003-01-15 Havoc Pennington <hp@redhat.com>
222 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
223 fix build when --disable-tests
225 * Makefile.am (EXTRA_DIST): put HACKING in here
227 * HACKING: document procedure for making a tarball release.
229 2003-01-14 Anders Carlsson <andersca@codefactory.se>
231 * bus/connection.c: (connection_error_handler),
232 (bus_connection_setup):
233 * bus/main.c: (main):
234 Make sure that the DBusConnectionData struct is NULLed
235 out to prevent a segfault.
237 * dbus/dbus-errors.c: (dbus_result_to_string):
238 * dbus/dbus-errors.h:
239 * dbus/dbus-message.c: (dbus_message_get_fields),
240 (dbus_message_get_fields_valist), (_dbus_message_test):
241 * dbus/dbus-message.h:
242 Make dbus_message_get_fields return a result code so we can
243 track invalid fields as well as oom.
245 2003-01-11 Havoc Pennington <hp@pobox.com>
247 * configure.in: change --enable-test/--enable-ansi action-if-given
248 to enable_foo=$enableval instead of enable_foo=yes
250 2003-01-08 Havoc Pennington <hp@pobox.com>
252 * dbus/dbus-string.c (_dbus_string_align_length): new function
254 * dbus/dbus-test-main.c: move main() for test app here
256 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
257 symbol to run tests, because dbus-test isn't in the main
260 Code review nitpicks.
262 * dbus/dbus-message.c (dbus_message_write_header): add newlines
263 for people with narrow emacs ;-). Assert client_serial was filled
264 in. Assert message->name != NULL.
265 (dbus_message_append_fields): have "first_field_type" arg separate
266 from va list, needed for C++ binding that also uses varargs IIRC
267 and helps with type safety
268 (dbus_message_new): add @todo about using DBusString to store
269 service/name internally
270 (dbus_message_new): don't leak ->service and ->name on OOM later
272 (dbus_message_unref): free the service name
273 (dbus_message_get_fields): same change to varargs
274 i.e. first_field_type
275 (_dbus_message_loader_return_buffer): assert that the message data
276 is aligned (if not it's a bug in our code). Put in verbose griping
277 about why we set corrupted = TRUE.
278 (decode_header_data): add FIXME that char* is evil. Was going to
279 add FIXME about evil locale-specific string.h strncmp, but just
280 switched to wacky string-as-uint32 optimization. Move check for
281 "no room for field name" above get_const_data_len() to avoid
282 assertion failure in get_const_data_len if we have trailing 2
283 bytes or the like. Check for service and name fields being
284 provided twice. Don't leak service/name on error. Require field
285 names to be aligned to 4 bytes.
287 * dbus/dbus-marshal.c: move byte swap stuff to header
288 (_dbus_pack_int32): uscore-prefix
289 (_dbus_unpack_int32): uscore-prefix
290 (_dbus_unpack_uint32): export
291 (_dbus_demarshal_string): add @todo complaining about use of
293 (_dbus_marshal_get_field_end_pos): add @todo about bad error
294 handling allowing corrupt data to go unchecked
296 2003-01-08 Havoc Pennington <hp@redhat.com>
298 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
299 to the select() as needed for authentication. (should be using
300 _dbus_poll() not select, but for another day)
302 * dbus/dbus.h: include dbus/dbus-protocol.h
304 2003-01-08 Anders Carlsson <andersca@codefactory.se>
306 * dbus/Makefile.am (dbusinclude_HEADERS): Install
309 2003-01-08 Anders Carlsson <andersca@codefactory.se>
311 * dbus/dbus-internals.c: (_dbus_type_to_string):
312 New function that returns a string describing a type.
314 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
315 * dbus/dbus-marshal.h:
316 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
317 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
318 (dbus_message_iter_get_byte_array):
319 * dbus/dbus-message.h:
320 Add new convenience functions for appending and getting message fields.
321 Also add demarshalling routines for byte arrays.
323 2003-01-07 Anders Carlsson <andersca@codefactory.se>
325 * dbus/dbus-connection-internal.h:
326 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
327 (_dbus_connection_get_next_client_serial),
328 (dbus_connection_send_message):
329 * dbus/dbus-internals.h:
330 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
331 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
332 (_dbus_marshal_uint32), (_dbus_demarshal_double),
333 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
334 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
335 (_dbus_verbose_bytes), (_dbus_marshal_test):
336 * dbus/dbus-marshal.h:
337 * dbus/dbus-message-internal.h:
338 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
339 (dbus_message_write_header), (_dbus_message_lock),
340 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
341 (dbus_message_get_name), (dbus_message_append_int32),
342 (dbus_message_append_uint32), (dbus_message_append_double),
343 (dbus_message_append_string), (dbus_message_append_byte_array),
344 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
345 (dbus_message_iter_unref), (dbus_message_iter_has_next),
346 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
347 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
348 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
349 (decode_header_data), (_dbus_message_loader_return_buffer),
350 (message_iter_test), (_dbus_message_test):
351 * dbus/dbus-message.h:
352 * dbus/dbus-protocol.h:
353 * dbus/dbus-test.c: (main):
355 * glib/test-dbus-glib.c: (message_handler), (main):
356 * test/echo-client.c: (main):
357 * test/watch.c: (check_messages):
358 Make messages sendable and receivable for real.
360 2003-01-07 Anders Carlsson <andersca@codefactory.se>
362 * dbus/dbus-marshal.c: (_dbus_marshal_double),
363 (_dbus_marshal_string), (_dbus_marshal_byte_array):
364 * dbus/dbus-message.c: (dbus_message_append_int32),
365 (dbus_message_append_uint32), (dbus_message_append_double),
366 (dbus_message_append_string), (dbus_message_append_byte_array):
367 Handle OOM restoration.
369 2003-01-07 Anders Carlsson <andersca@codefactory.se>
371 * dbus/dbus-marshal.c: (_dbus_marshal_string),
372 (_dbus_demarshal_string), (_dbus_marshal_test):
373 * dbus/dbus-marshal.h:
374 * dbus/dbus-message.c: (dbus_message_get_name),
375 Document these functions.
377 (dbus_message_append_int32), (dbus_message_append_uint32),
378 (dbus_message_append_double), (dbus_message_append_string),
379 (dbus_message_append_byte_array):
380 * dbus/dbus-message.h:
381 Add functions for adding message fields of different types.
383 * dbus/dbus-protocol.h:
384 Add the different types.
386 2003-01-05 Havoc Pennington <hp@pobox.com>
388 * bus/connection.c: implement routines for handling connections,
389 first thing is keeping a list of owned services on each connection
390 and setting up watches etc.
392 * bus/services.c: implement a mapping from service names to lists
395 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
397 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
398 to use static mutexes for global data
400 * dbus/dbus-connection.c (dbus_connection_set_data): add new
401 collection of functions to set/get application-specific data
402 on the DBusConnection.
404 2003-01-04 Havoc Pennington <hp@pobox.com>
406 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
407 (_dbus_poll): new function
409 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
412 * bus/loop.c: initial code for the daemon main loop
414 2003-01-04 Havoc Pennington <hp@pobox.com>
416 * test/watch.c (error_handler): make it safe if the error handler
417 is called multiple times (if we s/error handler/disconnect
418 handler/ we should just guarantee it's called only once)
420 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
421 error handler on disconnect (it's quite possible we should
422 just change the error handler to a "disconnect handler," I'm
423 not sure we have any other meaningful errors)
425 * configure.in: check for getpwnam_r
427 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
428 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
429 mechanism as in SASL spec, using socket credentials
431 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
432 (_dbus_send_credentials_unix_socket): new function
434 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
436 (_dbus_write): only check errno if <0 returned
437 (_dbus_write_two): ditto
439 2003-01-02 Anders Carlsson <andersca@codefactory.se>
441 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
442 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
443 (_dbus_marshal_test):
444 * dbus/dbus-marshal.h:
445 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
446 to _dbus_marshal_utf8_string. Also fix some tests.
448 2002-12-28 Harri Porten <porten@kde.org>
450 * configure.in: added check for C++ compiler and a very cheesy
451 check for the Qt integration
453 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
455 * qt/Makefile.am: added
457 * qt/.cvsignore: added
459 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
460 latter, added #ifdef QT_THREAD_SUPPORT guard.
462 * dbus/Makefile.am: added missing headers for make dist
464 2002-12-28 Kristian Rietveld <kris@gtk.org>
466 * dbus/Makefile.am: fixup export-symbols-regex.
468 2002-12-27 Anders Carlsson <andersca@codefactory.se>
470 * acinclude.m4: Add this file and put the
471 PKG_CHECK_MODULE macro in it.
473 2002-12-27 Anders Carlsson <andersca@codefactory.se>
475 * dbus/dbus-marshal.c: (_dbus_marshal_string),
476 (_dbus_demarshal_double), (_dbus_demarshal_int32),
477 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
478 (_dbus_marshal_test):
479 Make the demarshalling routines align the pos argument.
480 Add string marshalling tests and fix the obvious bugs
483 2002-12-26 Havoc Pennington <hp@pobox.com>
485 * dbus/dbus-auth.c: fixes fixes fixes
487 * dbus/dbus-transport-unix.c: wire up support for
488 encoding/decoding data on the wire
490 * dbus/dbus-auth.c (_dbus_auth_encode_data)
491 (_dbus_auth_decode_data): append to target string
492 instead of nuking it.
494 2002-12-26 Havoc Pennington <hp@pobox.com>
496 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
497 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
500 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
501 avoid swap_bytes() overhead (ignoring possible assembly stuff for
502 now). Main point is because I wanted unpack_uint32 to implement
504 (_dbus_verbose_bytes): new function
506 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
508 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
509 mechanism to handle a corrupt message stream
510 (_dbus_message_loader_new): fix preallocation to only prealloc,
513 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
514 (_dbus_string_test): enhance tests for copy/move and fix the
517 * dbus/dbus-transport-unix.c: Hold references in more places to
518 avoid reentrancy problems
520 * dbus/dbus-transport.c: ditto
522 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
523 leak reference count in no-message case
525 * test/watch.c (do_mainloop): handle adding/removing watches
526 during iteration over the watches. Also, ref the connection/server
527 stored on a watch, so we don't try to mangle a destroyed one.
529 * dbus/dbus-transport-unix.c (do_authentication): perform
532 * dbus/dbus-auth.c (get_state): add a state
533 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
534 (_dbus_auth_get_unused_bytes): append the unused bytes
535 to the passed in string, rather than prepend
537 * dbus/dbus-transport.c (_dbus_transport_init_base): create
538 the auth conversation DBusAuth
540 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
541 (_dbus_transport_new_for_domain_socket): when creating a
542 transport, pass in whether it's a client-side or server-side
543 transport so we know which DBusAuth to create
545 2002-12-03 Havoc Pennington <hp@pobox.com>
547 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
548 _after_ finalizing the derived members
549 (unix_connection_set): unref watch if we fail to add it
551 * dbus/dbus-connection.c (dbus_connection_unref): delete the
552 transport first, so that the connection owned by the
553 transport will be valid as the transport finalizes.
555 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
556 if necessary, and remove watches from the connection.
558 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
560 2002-12-26 Anders Carlsson <andersca@codefactory.se>
562 * dbus/dbus-marshal.c: (_dbus_marshal_string),
563 (_dbus_demarshal_double), (_dbus_demarshal_int32),
564 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
565 (_dbus_marshal_test):
566 * dbus/dbus-marshal.h:
567 Add string marshal functions and have the demarshal functions
568 return the new position.
570 2002-12-25 Havoc Pennington <hp@pobox.com>
572 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
573 it is a simple protocol that just maps directly to SASL.
575 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
576 initial implementation, not actually used yet.
578 * dbus/dbus-string.c (_dbus_string_find): new function
579 (_dbus_string_equal): new function
580 (_dbus_string_base64_encode): new function
581 (_dbus_string_base64_decode): new function
583 2002-12-25 Anders Carlsson <andersca@codefactory.se>
586 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
587 (_dbus_marshal_int32), (_dbus_marshal_uint32),
588 (_dbus_demarshal_double), (_dbus_demarshal_int32),
589 (_dbus_demarshal_uint32), (_dbus_marshal_test):
590 * dbus/dbus-marshal.h:
591 * dbus/dbus-protocol.h:
592 * dbus/dbus-test.c: (main):
594 Add un-optimized marshalling/demarshalling routines.
596 2002-12-25 Harri Porten <porten@kde.org>
598 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
600 2002-12-24 Zack Rusin <zack@kde.org>
602 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
603 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
606 2002-12-24 Havoc Pennington <hp@pobox.com>
608 * glib/dbus-gthread.c: fix include
610 * glib/dbus-glib.h: rename DBusMessageHandler for now.
611 I think glib API needs to change, though, as you don't
612 want to use DBusMessageFunction, you want to use the
613 DBusMessageHandler object. Probably
614 dbus_connection_open_with_g_main_loop()
615 and dbus_connection_setup_g_main_loop() or something like that
616 (but think of better names...) that just create a connection
617 that has watch/timeout functions etc. already set up.
619 * dbus/dbus-connection.c
620 (dbus_connection_send_message_with_reply): new function just to
621 show how the message handler helps us deal with replies.
623 * dbus/dbus-list.c (_dbus_list_remove_last): new function
625 * dbus/dbus-string.c (_dbus_string_test): free a string that
628 * dbus/dbus-hash.c: use memory pools for the hash entries
629 (rebuild_table): be more paranoid about overflow, and
630 shrink table when we can
631 (_dbus_hash_test): reduce number of sprintfs and write
632 valid C89. Add tests for case where we grow and then
633 shrink the hash table.
635 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
637 * dbus/dbus-connection.c (dbus_connection_register_handler)
638 (dbus_connection_unregister_handler): new functions
640 * dbus/dbus-message.c (dbus_message_get_name): new
642 * dbus/dbus-list.c: fix docs typo
644 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
645 an object representing a handler for messages.
647 2002-12-16 Anders Carlsson <andersca@codefactory.se>
650 * glib/dbus-gthread.c: (dbus_gthread_init):
651 Don't use the gdbus prefix for public functions.
653 2002-12-16 Anders Carlsson <andersca@codefactory.se>
657 Add GLib checks and fixup .pc files
661 * glib/dbus-gmain.c: (gdbus_connection_prepare),
662 (gdbus_connection_check), (gdbus_connection_dispatch),
663 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
664 (dbus_connection_gsource_new):
665 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
666 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
667 * glib/test-dbus-glib.c: (message_handler), (main):
670 2002-12-15 Harri Porten <porten@kde.org>
672 * autogen.sh: check for libtoolize before attempting to use it
674 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
677 * .cvsignore: ignore more stamp files
679 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
681 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
682 without make install.
684 2002-12-15 Havoc Pennington <hp@pobox.com>
686 * dbus/dbus-threads.c: add thread stubs that a higher library
687 layer can fill in. e.g. the GLib wrapper might fill them in with
688 GThread stuff. We still need to use this thread API to
689 thread-safe-ize the library.
691 2002-12-12 Havoc Pennington <hp@pobox.com>
693 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
694 below new interfaces and include fewer system headers.
696 * dbus/dbus-sysdeps.c (_dbus_read): new function
697 (_dbus_write): new function
698 (_dbus_write_two): new function
699 (_dbus_connect_unix_socket): new function
700 (_dbus_listen_unix_socket): new function
702 * dbus/dbus-message-internal.h: change interfaces to use
705 2002-12-11 Havoc Pennington <hp@pobox.com>
707 * dbus/dbus-types.h: add dbus_unichar
709 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
711 * dbus/dbus-connection.c (dbus_connection_send_message): return
714 * dbus/dbus-transport.c: include dbus-watch.h
716 * dbus/dbus-connection.c: include dbus-message-internal.h
718 * HACKING: add file with coding guidelines stuff.
720 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
721 handling here, for security purposes (as in vsftpd). Not actually
722 using this class yet.
724 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
725 system/libc usage here, as in vsftpd, for ease of auditing (and
726 should also simplify portability). Haven't actually moved all the
727 system/libc usage into here yet.
729 2002-11-25 Havoc Pennington <hp@pobox.com>
731 * dbus/dbus-internals.c (_dbus_verbose): fix to not
732 always print the first verbose message.
734 2002-11-24 Havoc Pennington <hp@pobox.com>
736 * test/echo-client.c, test/echo-server.c: cheesy test
739 * configure.in (AC_CHECK_FUNCS): check for writev
741 * dbus/dbus-message.c (_dbus_message_get_network_data): new
744 * dbus/dbus-list.c (_dbus_list_foreach): new function
746 * dbus/dbus-internals.c (_dbus_verbose): new function
748 * dbus/dbus-server.c, dbus/dbus-server.h: public object
749 representing a server that listens for connections.
751 * dbus/.cvsignore: create
753 * dbus/dbus-errors.h, dbus/dbus-errors.c:
754 public API for reporting errors
756 * dbus/dbus-connection.h, dbus/dbus-connection.c:
757 public object representing a connection that
758 sends/receives messages. (Same object used for
759 both client and server.)
761 * dbus/dbus-transport.h, dbus/dbus-transport.c:
762 Basic abstraction for different kinds of stream
763 that we might read/write messages from.
765 2002-11-23 Havoc Pennington <hp@pobox.com>
767 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
770 * dbus/dbus-test.c (main): add list test, and include
771 dbus-test.h as intended
773 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
774 (_dbus_hash_table_remove_int): return value indicates
775 whether the entry existed to remove
777 * dbus/dbus-list.c: add linked list utility class,
780 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
783 2002-11-23 Havoc Pennington <hp@pobox.com>
785 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
786 DBUS_END_DECLS to nothing, that should fix this once and for all
788 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
790 * dbus/dbus-message.c, dbus/dbus-hash.c:
791 add some missing @brief
793 2002-11-23 Havoc Pennington <hp@pobox.com>
795 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
796 to avoid confusing Doxygen
798 * dbus/dbus-hash.c: @} not }@
800 * dbus/dbus-message.c (struct DBusMessage): split out
803 2002-11-23 Havoc Pennington <hp@pobox.com>
805 * configure.in: pile on more warning flags if using gcc
807 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
808 to document static functions
810 * configure.in: add summary to end of configure so it
811 looks nice and attractive
813 * dbus/dbus-hash.c: finish implementation and write unit
816 * configure.in: add --enable-tests to enable unit tests
818 * dbus/dbus-test.c: test program to run unit tests
819 for all files in dbus/*, initially runs a test for
822 * dbus/dbus-internals.h: file to hold some internal utility stuff
824 2002-11-22 Havoc Pennington <hp@redhat.com>
826 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
827 "ported" away from Tcl
829 * dbus/dbus-types.h: header for types such as dbus_bool_t
831 2002-11-22 Havoc Pennington <hp@redhat.com>
833 * dbus/dbus.h: fixups for doc warnings
835 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
837 (QUIET): make it quiet so we can see warnings
839 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
841 2002-11-22 Havoc Pennington <hp@redhat.com>
843 * Makefile.am: include "Doxyfile" target in all-local
845 * configure.in: generate the Doxyfile
847 * Doxyfile.in: move Doxyfile here, so we can use
848 configure to generate a Doxyfile with the right
851 2002-11-22 Havoc Pennington <hp@redhat.com>
853 * dbus/dbus-message.c: move inline docs into .c file
855 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
856 so all docs are under doc/
857 (MAN_EXTENSION): generate man pages. Use extension
858 ".3dbus" which matches ".3qt" on my system,
859 I guess this is OK, I don't know really.
860 (FILE_PATTERNS): look for .c files not .h, makes sense
863 2002-11-22 Havoc Pennington <hp@pobox.com>
865 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
866 because any app can be a server, and any app can be a client,
867 the bus is a special kind of server.
869 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
871 * Doxyfile : adding. Still needs Makefile rules to be generated
872 automatically (just run "doxygen" in the toplevel dir for now to
875 * dbus/dbus-message.h : Adding sample docs (javadoc since
876 resembles gtk-doc a little more)
878 * dbus/dbus.h : Adding sample docs
880 2002-11-21 Havoc Pennington <hp@redhat.com>
882 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
883 so we can allow ourselves to include files directly,
884 instead of having to use dbus.h
886 * dbus/dbus.h: fill in
888 * dbus/dbus-message.h: sketch out a sample header file.
889 Include griping if you include it directly instead of
892 * dbus/dbus-macros.h: new file with macros for extern "C",
893 TRUE/FALSE, NULL, etc.
895 * doc/file-boilerplate.c: put include guards in here
897 2002-11-21 Havoc Pennington <hp@redhat.com>
899 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
901 * COPYING: include the GPL as well, and license code
902 under both AFL and GPL.
904 2002-11-21 Havoc Pennington <hp@redhat.com>
906 * acconfig.h: get rid of this
908 * autogen.sh (run_configure): add --no-configure option
910 * configure.in: remove AC_ARG_PROGRAM to make
911 autoconf complain less. add AC_PREREQ.
912 add AC_DEFINE third arg.
914 2002-11-21 Anders Carlsson <andersca@codefactory.se>
917 Fix references so we can distcheck.
919 2002-11-21 Havoc Pennington <hp@redhat.com>
921 * Initial module creation