1 2003-01-21 Havoc Pennington <hp@pobox.com>
3 (patch untested because can't compile)
5 * bus/driver.c (create_unique_client_name): make this function
6 never recycle client names. Also, caller should initialize
9 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
11 2003-01-21 Anders Carlsson <andersca@codefactory.se>
13 * dbus/dbus-marshal.c: (_dbus_marshal_double),
14 (_dbus_marshal_int32), (_dbus_marshal_uint32),
15 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
16 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
17 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
18 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
19 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
20 * dbus/dbus-marshal.h:
21 * dbus/dbus-protocol.h:
22 Add support for marshalling and demarshalling integer, double
25 2003-01-21 Anders Carlsson <andersca@codefactory.se>
30 * bus/connection.c: (connection_disconnect_handler):
31 Remove the connection from the bus driver's list.
33 (connection_watch_callback): Dispatch messages.
35 (free_connection_data): Free connection name.
37 (bus_connection_setup): Add connection to the bus driver's list.
38 (bus_connection_remove_owned_service):
39 (bus_connection_set_name), (bus_connection_get_name):
40 Add functions for setting and getting the connection's name.
45 * bus/driver.c: (create_unique_client_name),
46 (bus_driver_handle_hello_message),
47 (bus_driver_send_welcome_message), (bus_driver_message_handler),
48 (bus_driver_add_connection), (bus_driver_remove_connection):
51 * bus/services.c: (bus_service_free):
53 New file that handles communication and registreation with the bus
56 2003-01-21 Anders Carlsson <andersca@codefactory.se>
58 * dbus/dbus-connection.c: (dbus_connection_send_message):
59 Add a new client_serial parameter.
61 (dbus_connection_send_message_with_reply):
62 Remove a @todo since we've implemented the blocking function.
64 (dbus_connection_send_message_with_reply_and_block):
65 New function that sends a message and waits for a reply and
66 then returns the reply.
68 * dbus/dbus-connection.h:
71 * dbus/dbus-errors.c: (dbus_result_to_string):
75 * dbus/dbus-message-internal.h:
76 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
77 (_dbus_message_set_sender), (dbus_message_write_header),
78 (dbus_message_new_reply), (decode_header_data),
79 (_dbus_message_loader_return_buffer), (_dbus_message_test):
80 * dbus/dbus-message.h:
81 Add new functions that set the reply serial and sender.
82 Also marshal and demarshal them correctly and add test.
84 * dbus/dbus-protocol.h:
85 Add new DBUS_MESSAGE_TYPE_SENDER.
88 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
89 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
90 (dbus_connection_hookup_with_g_main):
91 * glib/test-dbus-glib.c: (main):
92 Rewrite to use GIOChannel and remove the GSource crack.
94 * test/echo-client.c: (main):
95 * test/watch.c: (check_messages):
96 Update for changed APIs
98 2003-01-19 Anders Carlsson <andersca@codefactory.se>
100 * dbus/Makefile.am: Add dbus-timeout.[cħ]
102 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
103 Create a DBusTimeoutList.
104 (dbus_connection_set_timeout_functions): Add new function to
105 set timeout callbacks
107 * dbus/dbus-connection.h: Add public DBusTimeout API.
109 * dbus/dbus-message.c: (dbus_message_get_service):
110 * dbus/dbus-message.h: New function.
112 * dbus/dbus-server.c: Fix small doc typo.
114 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
116 2003-01-19 Anders Carlsson <andersca@codefactory.se>
118 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
119 of the string, just as long as specified.
121 2003-01-19 Havoc Pennington <hp@pobox.com>
123 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
126 * dbus/dbus-server.c (dbus_server_set_max_connections)
127 (dbus_server_get_max_connections, dbus_server_get_n_connections):
128 keep track of current number of connections, and add API for
129 setting a max (but haven't implemented enforcing the max yet)
131 2003-01-18 Havoc Pennington <hp@pobox.com>
133 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
134 reading/writing if read_watch != NULL or write_watch != NULL.
136 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
137 the message loader code to actually load message->header and
138 message->body into the newly-created message.
140 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
143 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
144 (dbus_connection_get_max_message_size)
145 (dbus_connection_set_max_live_messages_size)
146 (dbus_connection_get_max_live_messages_size): implement some
147 resource limitation functions
149 * dbus/dbus-resources.c: new file implementing some of the
150 resource limits stuff
152 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
153 missing docs, add @todo to handle OOM etc.
155 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
158 2003-01-18 Havoc Pennington <hp@pobox.com>
160 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
161 connection if it hasn't been already.
163 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
164 replace with DisconnectFunction.
166 2003-01-18 Havoc Pennington <hp@pobox.com>
168 Building --disable-verbose-mode --disable-asserts --disable-tests
169 cuts the library from 112K to 45K or so
171 * configure.in: check for varargs macro support,
172 add --enable-verbose-mode, --enable-asserts.
174 * dbus/dbus-internals.h (_dbus_assert): support
176 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
178 2003-01-18 Havoc Pennington <hp@pobox.com>
180 * dbus/dbus-test.c: include config.h so that tests actually run
182 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
183 so the failure mode when that assumption fails will be plenty
186 2003-01-18 Havoc Pennington <hp@pobox.com>
188 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
190 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
193 * test/Makefile.am: don't use special variable "TESTS" for echo-*
194 since we don't want to use those in make check
196 2003-01-15 Havoc Pennington <hp@redhat.com>
202 2003-01-15 Havoc Pennington <hp@redhat.com>
204 * test/Makefile.am: fix so that test source code ends up in the
205 distribution on make distcheck
207 2003-01-15 Havoc Pennington <hp@redhat.com>
213 2003-01-15 Havoc Pennington <hp@redhat.com>
215 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
216 fix build when --disable-tests
218 * Makefile.am (EXTRA_DIST): put HACKING in here
220 * HACKING: document procedure for making a tarball release.
222 2003-01-14 Anders Carlsson <andersca@codefactory.se>
224 * bus/connection.c: (connection_error_handler),
225 (bus_connection_setup):
226 * bus/main.c: (main):
227 Make sure that the DBusConnectionData struct is NULLed
228 out to prevent a segfault.
230 * dbus/dbus-errors.c: (dbus_result_to_string):
231 * dbus/dbus-errors.h:
232 * dbus/dbus-message.c: (dbus_message_get_fields),
233 (dbus_message_get_fields_valist), (_dbus_message_test):
234 * dbus/dbus-message.h:
235 Make dbus_message_get_fields return a result code so we can
236 track invalid fields as well as oom.
238 2003-01-11 Havoc Pennington <hp@pobox.com>
240 * configure.in: change --enable-test/--enable-ansi action-if-given
241 to enable_foo=$enableval instead of enable_foo=yes
243 2003-01-08 Havoc Pennington <hp@pobox.com>
245 * dbus/dbus-string.c (_dbus_string_align_length): new function
247 * dbus/dbus-test-main.c: move main() for test app here
249 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
250 symbol to run tests, because dbus-test isn't in the main
253 Code review nitpicks.
255 * dbus/dbus-message.c (dbus_message_write_header): add newlines
256 for people with narrow emacs ;-). Assert client_serial was filled
257 in. Assert message->name != NULL.
258 (dbus_message_append_fields): have "first_field_type" arg separate
259 from va list, needed for C++ binding that also uses varargs IIRC
260 and helps with type safety
261 (dbus_message_new): add @todo about using DBusString to store
262 service/name internally
263 (dbus_message_new): don't leak ->service and ->name on OOM later
265 (dbus_message_unref): free the service name
266 (dbus_message_get_fields): same change to varargs
267 i.e. first_field_type
268 (_dbus_message_loader_return_buffer): assert that the message data
269 is aligned (if not it's a bug in our code). Put in verbose griping
270 about why we set corrupted = TRUE.
271 (decode_header_data): add FIXME that char* is evil. Was going to
272 add FIXME about evil locale-specific string.h strncmp, but just
273 switched to wacky string-as-uint32 optimization. Move check for
274 "no room for field name" above get_const_data_len() to avoid
275 assertion failure in get_const_data_len if we have trailing 2
276 bytes or the like. Check for service and name fields being
277 provided twice. Don't leak service/name on error. Require field
278 names to be aligned to 4 bytes.
280 * dbus/dbus-marshal.c: move byte swap stuff to header
281 (_dbus_pack_int32): uscore-prefix
282 (_dbus_unpack_int32): uscore-prefix
283 (_dbus_unpack_uint32): export
284 (_dbus_demarshal_string): add @todo complaining about use of
286 (_dbus_marshal_get_field_end_pos): add @todo about bad error
287 handling allowing corrupt data to go unchecked
289 2003-01-08 Havoc Pennington <hp@redhat.com>
291 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
292 to the select() as needed for authentication. (should be using
293 _dbus_poll() not select, but for another day)
295 * dbus/dbus.h: include dbus/dbus-protocol.h
297 2003-01-08 Anders Carlsson <andersca@codefactory.se>
299 * dbus/Makefile.am (dbusinclude_HEADERS): Install
302 2003-01-08 Anders Carlsson <andersca@codefactory.se>
304 * dbus/dbus-internals.c: (_dbus_type_to_string):
305 New function that returns a string describing a type.
307 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
308 * dbus/dbus-marshal.h:
309 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
310 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
311 (dbus_message_iter_get_byte_array):
312 * dbus/dbus-message.h:
313 Add new convenience functions for appending and getting message fields.
314 Also add demarshalling routines for byte arrays.
316 2003-01-07 Anders Carlsson <andersca@codefactory.se>
318 * dbus/dbus-connection-internal.h:
319 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
320 (_dbus_connection_get_next_client_serial),
321 (dbus_connection_send_message):
322 * dbus/dbus-internals.h:
323 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
324 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
325 (_dbus_marshal_uint32), (_dbus_demarshal_double),
326 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
327 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
328 (_dbus_verbose_bytes), (_dbus_marshal_test):
329 * dbus/dbus-marshal.h:
330 * dbus/dbus-message-internal.h:
331 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
332 (dbus_message_write_header), (_dbus_message_lock),
333 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
334 (dbus_message_get_name), (dbus_message_append_int32),
335 (dbus_message_append_uint32), (dbus_message_append_double),
336 (dbus_message_append_string), (dbus_message_append_byte_array),
337 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
338 (dbus_message_iter_unref), (dbus_message_iter_has_next),
339 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
340 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
341 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
342 (decode_header_data), (_dbus_message_loader_return_buffer),
343 (message_iter_test), (_dbus_message_test):
344 * dbus/dbus-message.h:
345 * dbus/dbus-protocol.h:
346 * dbus/dbus-test.c: (main):
348 * glib/test-dbus-glib.c: (message_handler), (main):
349 * test/echo-client.c: (main):
350 * test/watch.c: (check_messages):
351 Make messages sendable and receivable for real.
353 2003-01-07 Anders Carlsson <andersca@codefactory.se>
355 * dbus/dbus-marshal.c: (_dbus_marshal_double),
356 (_dbus_marshal_string), (_dbus_marshal_byte_array):
357 * dbus/dbus-message.c: (dbus_message_append_int32),
358 (dbus_message_append_uint32), (dbus_message_append_double),
359 (dbus_message_append_string), (dbus_message_append_byte_array):
360 Handle OOM restoration.
362 2003-01-07 Anders Carlsson <andersca@codefactory.se>
364 * dbus/dbus-marshal.c: (_dbus_marshal_string),
365 (_dbus_demarshal_string), (_dbus_marshal_test):
366 * dbus/dbus-marshal.h:
367 * dbus/dbus-message.c: (dbus_message_get_name),
368 Document these functions.
370 (dbus_message_append_int32), (dbus_message_append_uint32),
371 (dbus_message_append_double), (dbus_message_append_string),
372 (dbus_message_append_byte_array):
373 * dbus/dbus-message.h:
374 Add functions for adding message fields of different types.
376 * dbus/dbus-protocol.h:
377 Add the different types.
379 2003-01-05 Havoc Pennington <hp@pobox.com>
381 * bus/connection.c: implement routines for handling connections,
382 first thing is keeping a list of owned services on each connection
383 and setting up watches etc.
385 * bus/services.c: implement a mapping from service names to lists
388 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
390 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
391 to use static mutexes for global data
393 * dbus/dbus-connection.c (dbus_connection_set_data): add new
394 collection of functions to set/get application-specific data
395 on the DBusConnection.
397 2003-01-04 Havoc Pennington <hp@pobox.com>
399 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
400 (_dbus_poll): new function
402 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
405 * bus/loop.c: initial code for the daemon main loop
407 2003-01-04 Havoc Pennington <hp@pobox.com>
409 * test/watch.c (error_handler): make it safe if the error handler
410 is called multiple times (if we s/error handler/disconnect
411 handler/ we should just guarantee it's called only once)
413 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
414 error handler on disconnect (it's quite possible we should
415 just change the error handler to a "disconnect handler," I'm
416 not sure we have any other meaningful errors)
418 * configure.in: check for getpwnam_r
420 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
421 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
422 mechanism as in SASL spec, using socket credentials
424 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
425 (_dbus_send_credentials_unix_socket): new function
427 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
429 (_dbus_write): only check errno if <0 returned
430 (_dbus_write_two): ditto
432 2003-01-02 Anders Carlsson <andersca@codefactory.se>
434 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
435 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
436 (_dbus_marshal_test):
437 * dbus/dbus-marshal.h:
438 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
439 to _dbus_marshal_utf8_string. Also fix some tests.
441 2002-12-28 Harri Porten <porten@kde.org>
443 * configure.in: added check for C++ compiler and a very cheesy
444 check for the Qt integration
446 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
448 * qt/Makefile.am: added
450 * qt/.cvsignore: added
452 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
453 latter, added #ifdef QT_THREAD_SUPPORT guard.
455 * dbus/Makefile.am: added missing headers for make dist
457 2002-12-28 Kristian Rietveld <kris@gtk.org>
459 * dbus/Makefile.am: fixup export-symbols-regex.
461 2002-12-27 Anders Carlsson <andersca@codefactory.se>
463 * acinclude.m4: Add this file and put the
464 PKG_CHECK_MODULE macro in it.
466 2002-12-27 Anders Carlsson <andersca@codefactory.se>
468 * dbus/dbus-marshal.c: (_dbus_marshal_string),
469 (_dbus_demarshal_double), (_dbus_demarshal_int32),
470 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
471 (_dbus_marshal_test):
472 Make the demarshalling routines align the pos argument.
473 Add string marshalling tests and fix the obvious bugs
476 2002-12-26 Havoc Pennington <hp@pobox.com>
478 * dbus/dbus-auth.c: fixes fixes fixes
480 * dbus/dbus-transport-unix.c: wire up support for
481 encoding/decoding data on the wire
483 * dbus/dbus-auth.c (_dbus_auth_encode_data)
484 (_dbus_auth_decode_data): append to target string
485 instead of nuking it.
487 2002-12-26 Havoc Pennington <hp@pobox.com>
489 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
490 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
493 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
494 avoid swap_bytes() overhead (ignoring possible assembly stuff for
495 now). Main point is because I wanted unpack_uint32 to implement
497 (_dbus_verbose_bytes): new function
499 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
501 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
502 mechanism to handle a corrupt message stream
503 (_dbus_message_loader_new): fix preallocation to only prealloc,
506 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
507 (_dbus_string_test): enhance tests for copy/move and fix the
510 * dbus/dbus-transport-unix.c: Hold references in more places to
511 avoid reentrancy problems
513 * dbus/dbus-transport.c: ditto
515 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
516 leak reference count in no-message case
518 * test/watch.c (do_mainloop): handle adding/removing watches
519 during iteration over the watches. Also, ref the connection/server
520 stored on a watch, so we don't try to mangle a destroyed one.
522 * dbus/dbus-transport-unix.c (do_authentication): perform
525 * dbus/dbus-auth.c (get_state): add a state
526 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
527 (_dbus_auth_get_unused_bytes): append the unused bytes
528 to the passed in string, rather than prepend
530 * dbus/dbus-transport.c (_dbus_transport_init_base): create
531 the auth conversation DBusAuth
533 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
534 (_dbus_transport_new_for_domain_socket): when creating a
535 transport, pass in whether it's a client-side or server-side
536 transport so we know which DBusAuth to create
538 2002-12-03 Havoc Pennington <hp@pobox.com>
540 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
541 _after_ finalizing the derived members
542 (unix_connection_set): unref watch if we fail to add it
544 * dbus/dbus-connection.c (dbus_connection_unref): delete the
545 transport first, so that the connection owned by the
546 transport will be valid as the transport finalizes.
548 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
549 if necessary, and remove watches from the connection.
551 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
553 2002-12-26 Anders Carlsson <andersca@codefactory.se>
555 * dbus/dbus-marshal.c: (_dbus_marshal_string),
556 (_dbus_demarshal_double), (_dbus_demarshal_int32),
557 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
558 (_dbus_marshal_test):
559 * dbus/dbus-marshal.h:
560 Add string marshal functions and have the demarshal functions
561 return the new position.
563 2002-12-25 Havoc Pennington <hp@pobox.com>
565 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
566 it is a simple protocol that just maps directly to SASL.
568 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
569 initial implementation, not actually used yet.
571 * dbus/dbus-string.c (_dbus_string_find): new function
572 (_dbus_string_equal): new function
573 (_dbus_string_base64_encode): new function
574 (_dbus_string_base64_decode): new function
576 2002-12-25 Anders Carlsson <andersca@codefactory.se>
579 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
580 (_dbus_marshal_int32), (_dbus_marshal_uint32),
581 (_dbus_demarshal_double), (_dbus_demarshal_int32),
582 (_dbus_demarshal_uint32), (_dbus_marshal_test):
583 * dbus/dbus-marshal.h:
584 * dbus/dbus-protocol.h:
585 * dbus/dbus-test.c: (main):
587 Add un-optimized marshalling/demarshalling routines.
589 2002-12-25 Harri Porten <porten@kde.org>
591 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
593 2002-12-24 Zack Rusin <zack@kde.org>
595 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
596 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
599 2002-12-24 Havoc Pennington <hp@pobox.com>
601 * glib/dbus-gthread.c: fix include
603 * glib/dbus-glib.h: rename DBusMessageHandler for now.
604 I think glib API needs to change, though, as you don't
605 want to use DBusMessageFunction, you want to use the
606 DBusMessageHandler object. Probably
607 dbus_connection_open_with_g_main_loop()
608 and dbus_connection_setup_g_main_loop() or something like that
609 (but think of better names...) that just create a connection
610 that has watch/timeout functions etc. already set up.
612 * dbus/dbus-connection.c
613 (dbus_connection_send_message_with_reply): new function just to
614 show how the message handler helps us deal with replies.
616 * dbus/dbus-list.c (_dbus_list_remove_last): new function
618 * dbus/dbus-string.c (_dbus_string_test): free a string that
621 * dbus/dbus-hash.c: use memory pools for the hash entries
622 (rebuild_table): be more paranoid about overflow, and
623 shrink table when we can
624 (_dbus_hash_test): reduce number of sprintfs and write
625 valid C89. Add tests for case where we grow and then
626 shrink the hash table.
628 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
630 * dbus/dbus-connection.c (dbus_connection_register_handler)
631 (dbus_connection_unregister_handler): new functions
633 * dbus/dbus-message.c (dbus_message_get_name): new
635 * dbus/dbus-list.c: fix docs typo
637 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
638 an object representing a handler for messages.
640 2002-12-16 Anders Carlsson <andersca@codefactory.se>
643 * glib/dbus-gthread.c: (dbus_gthread_init):
644 Don't use the gdbus prefix for public functions.
646 2002-12-16 Anders Carlsson <andersca@codefactory.se>
650 Add GLib checks and fixup .pc files
654 * glib/dbus-gmain.c: (gdbus_connection_prepare),
655 (gdbus_connection_check), (gdbus_connection_dispatch),
656 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
657 (dbus_connection_gsource_new):
658 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
659 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
660 * glib/test-dbus-glib.c: (message_handler), (main):
663 2002-12-15 Harri Porten <porten@kde.org>
665 * autogen.sh: check for libtoolize before attempting to use it
667 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
670 * .cvsignore: ignore more stamp files
672 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
674 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
675 without make install.
677 2002-12-15 Havoc Pennington <hp@pobox.com>
679 * dbus/dbus-threads.c: add thread stubs that a higher library
680 layer can fill in. e.g. the GLib wrapper might fill them in with
681 GThread stuff. We still need to use this thread API to
682 thread-safe-ize the library.
684 2002-12-12 Havoc Pennington <hp@pobox.com>
686 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
687 below new interfaces and include fewer system headers.
689 * dbus/dbus-sysdeps.c (_dbus_read): new function
690 (_dbus_write): new function
691 (_dbus_write_two): new function
692 (_dbus_connect_unix_socket): new function
693 (_dbus_listen_unix_socket): new function
695 * dbus/dbus-message-internal.h: change interfaces to use
698 2002-12-11 Havoc Pennington <hp@pobox.com>
700 * dbus/dbus-types.h: add dbus_unichar
702 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
704 * dbus/dbus-connection.c (dbus_connection_send_message): return
707 * dbus/dbus-transport.c: include dbus-watch.h
709 * dbus/dbus-connection.c: include dbus-message-internal.h
711 * HACKING: add file with coding guidelines stuff.
713 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
714 handling here, for security purposes (as in vsftpd). Not actually
715 using this class yet.
717 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
718 system/libc usage here, as in vsftpd, for ease of auditing (and
719 should also simplify portability). Haven't actually moved all the
720 system/libc usage into here yet.
722 2002-11-25 Havoc Pennington <hp@pobox.com>
724 * dbus/dbus-internals.c (_dbus_verbose): fix to not
725 always print the first verbose message.
727 2002-11-24 Havoc Pennington <hp@pobox.com>
729 * test/echo-client.c, test/echo-server.c: cheesy test
732 * configure.in (AC_CHECK_FUNCS): check for writev
734 * dbus/dbus-message.c (_dbus_message_get_network_data): new
737 * dbus/dbus-list.c (_dbus_list_foreach): new function
739 * dbus/dbus-internals.c (_dbus_verbose): new function
741 * dbus/dbus-server.c, dbus/dbus-server.h: public object
742 representing a server that listens for connections.
744 * dbus/.cvsignore: create
746 * dbus/dbus-errors.h, dbus/dbus-errors.c:
747 public API for reporting errors
749 * dbus/dbus-connection.h, dbus/dbus-connection.c:
750 public object representing a connection that
751 sends/receives messages. (Same object used for
752 both client and server.)
754 * dbus/dbus-transport.h, dbus/dbus-transport.c:
755 Basic abstraction for different kinds of stream
756 that we might read/write messages from.
758 2002-11-23 Havoc Pennington <hp@pobox.com>
760 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
763 * dbus/dbus-test.c (main): add list test, and include
764 dbus-test.h as intended
766 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
767 (_dbus_hash_table_remove_int): return value indicates
768 whether the entry existed to remove
770 * dbus/dbus-list.c: add linked list utility class,
773 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
776 2002-11-23 Havoc Pennington <hp@pobox.com>
778 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
779 DBUS_END_DECLS to nothing, that should fix this once and for all
781 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
783 * dbus/dbus-message.c, dbus/dbus-hash.c:
784 add some missing @brief
786 2002-11-23 Havoc Pennington <hp@pobox.com>
788 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
789 to avoid confusing Doxygen
791 * dbus/dbus-hash.c: @} not }@
793 * dbus/dbus-message.c (struct DBusMessage): split out
796 2002-11-23 Havoc Pennington <hp@pobox.com>
798 * configure.in: pile on more warning flags if using gcc
800 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
801 to document static functions
803 * configure.in: add summary to end of configure so it
804 looks nice and attractive
806 * dbus/dbus-hash.c: finish implementation and write unit
809 * configure.in: add --enable-tests to enable unit tests
811 * dbus/dbus-test.c: test program to run unit tests
812 for all files in dbus/*, initially runs a test for
815 * dbus/dbus-internals.h: file to hold some internal utility stuff
817 2002-11-22 Havoc Pennington <hp@redhat.com>
819 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
820 "ported" away from Tcl
822 * dbus/dbus-types.h: header for types such as dbus_bool_t
824 2002-11-22 Havoc Pennington <hp@redhat.com>
826 * dbus/dbus.h: fixups for doc warnings
828 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
830 (QUIET): make it quiet so we can see warnings
832 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
834 2002-11-22 Havoc Pennington <hp@redhat.com>
836 * Makefile.am: include "Doxyfile" target in all-local
838 * configure.in: generate the Doxyfile
840 * Doxyfile.in: move Doxyfile here, so we can use
841 configure to generate a Doxyfile with the right
844 2002-11-22 Havoc Pennington <hp@redhat.com>
846 * dbus/dbus-message.c: move inline docs into .c file
848 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
849 so all docs are under doc/
850 (MAN_EXTENSION): generate man pages. Use extension
851 ".3dbus" which matches ".3qt" on my system,
852 I guess this is OK, I don't know really.
853 (FILE_PATTERNS): look for .c files not .h, makes sense
856 2002-11-22 Havoc Pennington <hp@pobox.com>
858 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
859 because any app can be a server, and any app can be a client,
860 the bus is a special kind of server.
862 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
864 * Doxyfile : adding. Still needs Makefile rules to be generated
865 automatically (just run "doxygen" in the toplevel dir for now to
868 * dbus/dbus-message.h : Adding sample docs (javadoc since
869 resembles gtk-doc a little more)
871 * dbus/dbus.h : Adding sample docs
873 2002-11-21 Havoc Pennington <hp@redhat.com>
875 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
876 so we can allow ourselves to include files directly,
877 instead of having to use dbus.h
879 * dbus/dbus.h: fill in
881 * dbus/dbus-message.h: sketch out a sample header file.
882 Include griping if you include it directly instead of
885 * dbus/dbus-macros.h: new file with macros for extern "C",
886 TRUE/FALSE, NULL, etc.
888 * doc/file-boilerplate.c: put include guards in here
890 2002-11-21 Havoc Pennington <hp@redhat.com>
892 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
894 * COPYING: include the GPL as well, and license code
895 under both AFL and GPL.
897 2002-11-21 Havoc Pennington <hp@redhat.com>
899 * acconfig.h: get rid of this
901 * autogen.sh (run_configure): add --no-configure option
903 * configure.in: remove AC_ARG_PROGRAM to make
904 autoconf complain less. add AC_PREREQ.
905 add AC_DEFINE third arg.
907 2002-11-21 Anders Carlsson <andersca@codefactory.se>
910 Fix references so we can distcheck.
912 2002-11-21 Havoc Pennington <hp@redhat.com>
914 * Initial module creation