1 2003-01-25 Anders Carlsson <andersca@codefactory.se>
3 * dbus/dbus-connection.c: (dbus_connection_send_message):
4 Unlock the message in case it was sent earlier.
6 (dbus_connection_send_message_with_reply_and_block):
7 Remove the reply message from the list.
9 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
10 Set array_len and new_pos correctly.
15 * dbus/dbus-message-internal.h:
16 * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
17 New function that returns the reply serial.
19 (_dbus_message_unlock):
20 New function that unlocks a message and resets its header.
22 (dbus_message_append_string_array),
23 (dbus_message_get_fields_valist),
24 (dbus_message_iter_get_field_type),
25 (dbus_message_iter_get_string_array),
26 (dbus_message_get_fields),
27 (dbus_message_append_fields_valist):
30 (dbus_message_set_sender):
31 Make this function public since the bus daemon needs it.
34 Set the reply serial to -1 initially.
36 * dbus/dbus-message.h:
37 Add dbus_message_set_sender.
39 2003-01-24 Havoc Pennington <hp@pobox.com>
41 * doc/dbus-specification.sgml: add some stuff
43 2003-01-22 Havoc Pennington <hp@pobox.com>
45 * doc/dbus-specification.sgml: Start to document the protocol.
47 2003-01-22 Havoc Pennington <hp@pobox.com>
49 * dbus/dbus-connection.c
50 (dbus_connection_send_message_with_reply_and_block): add some @todo
52 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
54 2003-01-21 Havoc Pennington <hp@pobox.com>
56 (patch untested because can't compile)
58 * bus/driver.c (create_unique_client_name): make this function
59 never recycle client names. Also, caller should initialize
62 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
64 2003-01-21 Anders Carlsson <andersca@codefactory.se>
66 * dbus/dbus-marshal.c: (_dbus_marshal_double),
67 (_dbus_marshal_int32), (_dbus_marshal_uint32),
68 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
69 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
70 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
71 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
72 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
73 * dbus/dbus-marshal.h:
74 * dbus/dbus-protocol.h:
75 Add support for marshalling and demarshalling integer, double
78 2003-01-21 Anders Carlsson <andersca@codefactory.se>
83 * bus/connection.c: (connection_disconnect_handler):
84 Remove the connection from the bus driver's list.
86 (connection_watch_callback): Dispatch messages.
88 (free_connection_data): Free connection name.
90 (bus_connection_setup): Add connection to the bus driver's list.
91 (bus_connection_remove_owned_service):
92 (bus_connection_set_name), (bus_connection_get_name):
93 Add functions for setting and getting the connection's name.
98 * bus/driver.c: (create_unique_client_name),
99 (bus_driver_handle_hello_message),
100 (bus_driver_send_welcome_message), (bus_driver_message_handler),
101 (bus_driver_add_connection), (bus_driver_remove_connection):
104 * bus/services.c: (bus_service_free):
106 New file that handles communication and registreation with the bus
109 2003-01-21 Anders Carlsson <andersca@codefactory.se>
111 * dbus/dbus-connection.c: (dbus_connection_send_message):
112 Add a new client_serial parameter.
114 (dbus_connection_send_message_with_reply):
115 Remove a @todo since we've implemented the blocking function.
117 (dbus_connection_send_message_with_reply_and_block):
118 New function that sends a message and waits for a reply and
119 then returns the reply.
121 * dbus/dbus-connection.h:
124 * dbus/dbus-errors.c: (dbus_result_to_string):
125 * dbus/dbus-errors.h:
128 * dbus/dbus-message-internal.h:
129 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
130 (_dbus_message_set_sender), (dbus_message_write_header),
131 (dbus_message_new_reply), (decode_header_data),
132 (_dbus_message_loader_return_buffer), (_dbus_message_test):
133 * dbus/dbus-message.h:
134 Add new functions that set the reply serial and sender.
135 Also marshal and demarshal them correctly and add test.
137 * dbus/dbus-protocol.h:
138 Add new DBUS_MESSAGE_TYPE_SENDER.
141 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
142 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
143 (dbus_connection_hookup_with_g_main):
144 * glib/test-dbus-glib.c: (main):
145 Rewrite to use GIOChannel and remove the GSource crack.
147 * test/echo-client.c: (main):
148 * test/watch.c: (check_messages):
149 Update for changed APIs
151 2003-01-19 Anders Carlsson <andersca@codefactory.se>
153 * dbus/Makefile.am: Add dbus-timeout.[cħ]
155 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
156 Create a DBusTimeoutList.
157 (dbus_connection_set_timeout_functions): Add new function to
158 set timeout callbacks
160 * dbus/dbus-connection.h: Add public DBusTimeout API.
162 * dbus/dbus-message.c: (dbus_message_get_service):
163 * dbus/dbus-message.h: New function.
165 * dbus/dbus-server.c: Fix small doc typo.
167 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
169 2003-01-19 Anders Carlsson <andersca@codefactory.se>
171 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
172 of the string, just as long as specified.
174 2003-01-19 Havoc Pennington <hp@pobox.com>
176 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
179 * dbus/dbus-server.c (dbus_server_set_max_connections)
180 (dbus_server_get_max_connections, dbus_server_get_n_connections):
181 keep track of current number of connections, and add API for
182 setting a max (but haven't implemented enforcing the max yet)
184 2003-01-18 Havoc Pennington <hp@pobox.com>
186 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
187 reading/writing if read_watch != NULL or write_watch != NULL.
189 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
190 the message loader code to actually load message->header and
191 message->body into the newly-created message.
193 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
196 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
197 (dbus_connection_get_max_message_size)
198 (dbus_connection_set_max_live_messages_size)
199 (dbus_connection_get_max_live_messages_size): implement some
200 resource limitation functions
202 * dbus/dbus-resources.c: new file implementing some of the
203 resource limits stuff
205 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
206 missing docs, add @todo to handle OOM etc.
208 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
211 2003-01-18 Havoc Pennington <hp@pobox.com>
213 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
214 connection if it hasn't been already.
216 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
217 replace with DisconnectFunction.
219 2003-01-18 Havoc Pennington <hp@pobox.com>
221 Building --disable-verbose-mode --disable-asserts --disable-tests
222 cuts the library from 112K to 45K or so
224 * configure.in: check for varargs macro support,
225 add --enable-verbose-mode, --enable-asserts.
227 * dbus/dbus-internals.h (_dbus_assert): support
229 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
231 2003-01-18 Havoc Pennington <hp@pobox.com>
233 * dbus/dbus-test.c: include config.h so that tests actually run
235 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
236 so the failure mode when that assumption fails will be plenty
239 2003-01-18 Havoc Pennington <hp@pobox.com>
241 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
243 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
246 * test/Makefile.am: don't use special variable "TESTS" for echo-*
247 since we don't want to use those in make check
249 2003-01-15 Havoc Pennington <hp@redhat.com>
255 2003-01-15 Havoc Pennington <hp@redhat.com>
257 * test/Makefile.am: fix so that test source code ends up in the
258 distribution on make distcheck
260 2003-01-15 Havoc Pennington <hp@redhat.com>
266 2003-01-15 Havoc Pennington <hp@redhat.com>
268 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
269 fix build when --disable-tests
271 * Makefile.am (EXTRA_DIST): put HACKING in here
273 * HACKING: document procedure for making a tarball release.
275 2003-01-14 Anders Carlsson <andersca@codefactory.se>
277 * bus/connection.c: (connection_error_handler),
278 (bus_connection_setup):
279 * bus/main.c: (main):
280 Make sure that the DBusConnectionData struct is NULLed
281 out to prevent a segfault.
283 * dbus/dbus-errors.c: (dbus_result_to_string):
284 * dbus/dbus-errors.h:
285 * dbus/dbus-message.c: (dbus_message_get_fields),
286 (dbus_message_get_fields_valist), (_dbus_message_test):
287 * dbus/dbus-message.h:
288 Make dbus_message_get_fields return a result code so we can
289 track invalid fields as well as oom.
291 2003-01-11 Havoc Pennington <hp@pobox.com>
293 * configure.in: change --enable-test/--enable-ansi action-if-given
294 to enable_foo=$enableval instead of enable_foo=yes
296 2003-01-08 Havoc Pennington <hp@pobox.com>
298 * dbus/dbus-string.c (_dbus_string_align_length): new function
300 * dbus/dbus-test-main.c: move main() for test app here
302 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
303 symbol to run tests, because dbus-test isn't in the main
306 Code review nitpicks.
308 * dbus/dbus-message.c (dbus_message_write_header): add newlines
309 for people with narrow emacs ;-). Assert client_serial was filled
310 in. Assert message->name != NULL.
311 (dbus_message_append_fields): have "first_field_type" arg separate
312 from va list, needed for C++ binding that also uses varargs IIRC
313 and helps with type safety
314 (dbus_message_new): add @todo about using DBusString to store
315 service/name internally
316 (dbus_message_new): don't leak ->service and ->name on OOM later
318 (dbus_message_unref): free the service name
319 (dbus_message_get_fields): same change to varargs
320 i.e. first_field_type
321 (_dbus_message_loader_return_buffer): assert that the message data
322 is aligned (if not it's a bug in our code). Put in verbose griping
323 about why we set corrupted = TRUE.
324 (decode_header_data): add FIXME that char* is evil. Was going to
325 add FIXME about evil locale-specific string.h strncmp, but just
326 switched to wacky string-as-uint32 optimization. Move check for
327 "no room for field name" above get_const_data_len() to avoid
328 assertion failure in get_const_data_len if we have trailing 2
329 bytes or the like. Check for service and name fields being
330 provided twice. Don't leak service/name on error. Require field
331 names to be aligned to 4 bytes.
333 * dbus/dbus-marshal.c: move byte swap stuff to header
334 (_dbus_pack_int32): uscore-prefix
335 (_dbus_unpack_int32): uscore-prefix
336 (_dbus_unpack_uint32): export
337 (_dbus_demarshal_string): add @todo complaining about use of
339 (_dbus_marshal_get_field_end_pos): add @todo about bad error
340 handling allowing corrupt data to go unchecked
342 2003-01-08 Havoc Pennington <hp@redhat.com>
344 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
345 to the select() as needed for authentication. (should be using
346 _dbus_poll() not select, but for another day)
348 * dbus/dbus.h: include dbus/dbus-protocol.h
350 2003-01-08 Anders Carlsson <andersca@codefactory.se>
352 * dbus/Makefile.am (dbusinclude_HEADERS): Install
355 2003-01-08 Anders Carlsson <andersca@codefactory.se>
357 * dbus/dbus-internals.c: (_dbus_type_to_string):
358 New function that returns a string describing a type.
360 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
361 * dbus/dbus-marshal.h:
362 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
363 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
364 (dbus_message_iter_get_byte_array):
365 * dbus/dbus-message.h:
366 Add new convenience functions for appending and getting message fields.
367 Also add demarshalling routines for byte arrays.
369 2003-01-07 Anders Carlsson <andersca@codefactory.se>
371 * dbus/dbus-connection-internal.h:
372 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
373 (_dbus_connection_get_next_client_serial),
374 (dbus_connection_send_message):
375 * dbus/dbus-internals.h:
376 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
377 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
378 (_dbus_marshal_uint32), (_dbus_demarshal_double),
379 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
380 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
381 (_dbus_verbose_bytes), (_dbus_marshal_test):
382 * dbus/dbus-marshal.h:
383 * dbus/dbus-message-internal.h:
384 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
385 (dbus_message_write_header), (_dbus_message_lock),
386 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
387 (dbus_message_get_name), (dbus_message_append_int32),
388 (dbus_message_append_uint32), (dbus_message_append_double),
389 (dbus_message_append_string), (dbus_message_append_byte_array),
390 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
391 (dbus_message_iter_unref), (dbus_message_iter_has_next),
392 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
393 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
394 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
395 (decode_header_data), (_dbus_message_loader_return_buffer),
396 (message_iter_test), (_dbus_message_test):
397 * dbus/dbus-message.h:
398 * dbus/dbus-protocol.h:
399 * dbus/dbus-test.c: (main):
401 * glib/test-dbus-glib.c: (message_handler), (main):
402 * test/echo-client.c: (main):
403 * test/watch.c: (check_messages):
404 Make messages sendable and receivable for real.
406 2003-01-07 Anders Carlsson <andersca@codefactory.se>
408 * dbus/dbus-marshal.c: (_dbus_marshal_double),
409 (_dbus_marshal_string), (_dbus_marshal_byte_array):
410 * dbus/dbus-message.c: (dbus_message_append_int32),
411 (dbus_message_append_uint32), (dbus_message_append_double),
412 (dbus_message_append_string), (dbus_message_append_byte_array):
413 Handle OOM restoration.
415 2003-01-07 Anders Carlsson <andersca@codefactory.se>
417 * dbus/dbus-marshal.c: (_dbus_marshal_string),
418 (_dbus_demarshal_string), (_dbus_marshal_test):
419 * dbus/dbus-marshal.h:
420 * dbus/dbus-message.c: (dbus_message_get_name),
421 Document these functions.
423 (dbus_message_append_int32), (dbus_message_append_uint32),
424 (dbus_message_append_double), (dbus_message_append_string),
425 (dbus_message_append_byte_array):
426 * dbus/dbus-message.h:
427 Add functions for adding message fields of different types.
429 * dbus/dbus-protocol.h:
430 Add the different types.
432 2003-01-05 Havoc Pennington <hp@pobox.com>
434 * bus/connection.c: implement routines for handling connections,
435 first thing is keeping a list of owned services on each connection
436 and setting up watches etc.
438 * bus/services.c: implement a mapping from service names to lists
441 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
443 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
444 to use static mutexes for global data
446 * dbus/dbus-connection.c (dbus_connection_set_data): add new
447 collection of functions to set/get application-specific data
448 on the DBusConnection.
450 2003-01-04 Havoc Pennington <hp@pobox.com>
452 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
453 (_dbus_poll): new function
455 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
458 * bus/loop.c: initial code for the daemon main loop
460 2003-01-04 Havoc Pennington <hp@pobox.com>
462 * test/watch.c (error_handler): make it safe if the error handler
463 is called multiple times (if we s/error handler/disconnect
464 handler/ we should just guarantee it's called only once)
466 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
467 error handler on disconnect (it's quite possible we should
468 just change the error handler to a "disconnect handler," I'm
469 not sure we have any other meaningful errors)
471 * configure.in: check for getpwnam_r
473 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
474 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
475 mechanism as in SASL spec, using socket credentials
477 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
478 (_dbus_send_credentials_unix_socket): new function
480 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
482 (_dbus_write): only check errno if <0 returned
483 (_dbus_write_two): ditto
485 2003-01-02 Anders Carlsson <andersca@codefactory.se>
487 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
488 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
489 (_dbus_marshal_test):
490 * dbus/dbus-marshal.h:
491 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
492 to _dbus_marshal_utf8_string. Also fix some tests.
494 2002-12-28 Harri Porten <porten@kde.org>
496 * configure.in: added check for C++ compiler and a very cheesy
497 check for the Qt integration
499 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
501 * qt/Makefile.am: added
503 * qt/.cvsignore: added
505 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
506 latter, added #ifdef QT_THREAD_SUPPORT guard.
508 * dbus/Makefile.am: added missing headers for make dist
510 2002-12-28 Kristian Rietveld <kris@gtk.org>
512 * dbus/Makefile.am: fixup export-symbols-regex.
514 2002-12-27 Anders Carlsson <andersca@codefactory.se>
516 * acinclude.m4: Add this file and put the
517 PKG_CHECK_MODULE macro in it.
519 2002-12-27 Anders Carlsson <andersca@codefactory.se>
521 * dbus/dbus-marshal.c: (_dbus_marshal_string),
522 (_dbus_demarshal_double), (_dbus_demarshal_int32),
523 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
524 (_dbus_marshal_test):
525 Make the demarshalling routines align the pos argument.
526 Add string marshalling tests and fix the obvious bugs
529 2002-12-26 Havoc Pennington <hp@pobox.com>
531 * dbus/dbus-auth.c: fixes fixes fixes
533 * dbus/dbus-transport-unix.c: wire up support for
534 encoding/decoding data on the wire
536 * dbus/dbus-auth.c (_dbus_auth_encode_data)
537 (_dbus_auth_decode_data): append to target string
538 instead of nuking it.
540 2002-12-26 Havoc Pennington <hp@pobox.com>
542 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
543 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
546 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
547 avoid swap_bytes() overhead (ignoring possible assembly stuff for
548 now). Main point is because I wanted unpack_uint32 to implement
550 (_dbus_verbose_bytes): new function
552 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
554 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
555 mechanism to handle a corrupt message stream
556 (_dbus_message_loader_new): fix preallocation to only prealloc,
559 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
560 (_dbus_string_test): enhance tests for copy/move and fix the
563 * dbus/dbus-transport-unix.c: Hold references in more places to
564 avoid reentrancy problems
566 * dbus/dbus-transport.c: ditto
568 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
569 leak reference count in no-message case
571 * test/watch.c (do_mainloop): handle adding/removing watches
572 during iteration over the watches. Also, ref the connection/server
573 stored on a watch, so we don't try to mangle a destroyed one.
575 * dbus/dbus-transport-unix.c (do_authentication): perform
578 * dbus/dbus-auth.c (get_state): add a state
579 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
580 (_dbus_auth_get_unused_bytes): append the unused bytes
581 to the passed in string, rather than prepend
583 * dbus/dbus-transport.c (_dbus_transport_init_base): create
584 the auth conversation DBusAuth
586 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
587 (_dbus_transport_new_for_domain_socket): when creating a
588 transport, pass in whether it's a client-side or server-side
589 transport so we know which DBusAuth to create
591 2002-12-03 Havoc Pennington <hp@pobox.com>
593 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
594 _after_ finalizing the derived members
595 (unix_connection_set): unref watch if we fail to add it
597 * dbus/dbus-connection.c (dbus_connection_unref): delete the
598 transport first, so that the connection owned by the
599 transport will be valid as the transport finalizes.
601 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
602 if necessary, and remove watches from the connection.
604 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
606 2002-12-26 Anders Carlsson <andersca@codefactory.se>
608 * dbus/dbus-marshal.c: (_dbus_marshal_string),
609 (_dbus_demarshal_double), (_dbus_demarshal_int32),
610 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
611 (_dbus_marshal_test):
612 * dbus/dbus-marshal.h:
613 Add string marshal functions and have the demarshal functions
614 return the new position.
616 2002-12-25 Havoc Pennington <hp@pobox.com>
618 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
619 it is a simple protocol that just maps directly to SASL.
621 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
622 initial implementation, not actually used yet.
624 * dbus/dbus-string.c (_dbus_string_find): new function
625 (_dbus_string_equal): new function
626 (_dbus_string_base64_encode): new function
627 (_dbus_string_base64_decode): new function
629 2002-12-25 Anders Carlsson <andersca@codefactory.se>
632 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
633 (_dbus_marshal_int32), (_dbus_marshal_uint32),
634 (_dbus_demarshal_double), (_dbus_demarshal_int32),
635 (_dbus_demarshal_uint32), (_dbus_marshal_test):
636 * dbus/dbus-marshal.h:
637 * dbus/dbus-protocol.h:
638 * dbus/dbus-test.c: (main):
640 Add un-optimized marshalling/demarshalling routines.
642 2002-12-25 Harri Porten <porten@kde.org>
644 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
646 2002-12-24 Zack Rusin <zack@kde.org>
648 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
649 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
652 2002-12-24 Havoc Pennington <hp@pobox.com>
654 * glib/dbus-gthread.c: fix include
656 * glib/dbus-glib.h: rename DBusMessageHandler for now.
657 I think glib API needs to change, though, as you don't
658 want to use DBusMessageFunction, you want to use the
659 DBusMessageHandler object. Probably
660 dbus_connection_open_with_g_main_loop()
661 and dbus_connection_setup_g_main_loop() or something like that
662 (but think of better names...) that just create a connection
663 that has watch/timeout functions etc. already set up.
665 * dbus/dbus-connection.c
666 (dbus_connection_send_message_with_reply): new function just to
667 show how the message handler helps us deal with replies.
669 * dbus/dbus-list.c (_dbus_list_remove_last): new function
671 * dbus/dbus-string.c (_dbus_string_test): free a string that
674 * dbus/dbus-hash.c: use memory pools for the hash entries
675 (rebuild_table): be more paranoid about overflow, and
676 shrink table when we can
677 (_dbus_hash_test): reduce number of sprintfs and write
678 valid C89. Add tests for case where we grow and then
679 shrink the hash table.
681 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
683 * dbus/dbus-connection.c (dbus_connection_register_handler)
684 (dbus_connection_unregister_handler): new functions
686 * dbus/dbus-message.c (dbus_message_get_name): new
688 * dbus/dbus-list.c: fix docs typo
690 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
691 an object representing a handler for messages.
693 2002-12-16 Anders Carlsson <andersca@codefactory.se>
696 * glib/dbus-gthread.c: (dbus_gthread_init):
697 Don't use the gdbus prefix for public functions.
699 2002-12-16 Anders Carlsson <andersca@codefactory.se>
703 Add GLib checks and fixup .pc files
707 * glib/dbus-gmain.c: (gdbus_connection_prepare),
708 (gdbus_connection_check), (gdbus_connection_dispatch),
709 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
710 (dbus_connection_gsource_new):
711 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
712 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
713 * glib/test-dbus-glib.c: (message_handler), (main):
716 2002-12-15 Harri Porten <porten@kde.org>
718 * autogen.sh: check for libtoolize before attempting to use it
720 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
723 * .cvsignore: ignore more stamp files
725 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
727 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
728 without make install.
730 2002-12-15 Havoc Pennington <hp@pobox.com>
732 * dbus/dbus-threads.c: add thread stubs that a higher library
733 layer can fill in. e.g. the GLib wrapper might fill them in with
734 GThread stuff. We still need to use this thread API to
735 thread-safe-ize the library.
737 2002-12-12 Havoc Pennington <hp@pobox.com>
739 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
740 below new interfaces and include fewer system headers.
742 * dbus/dbus-sysdeps.c (_dbus_read): new function
743 (_dbus_write): new function
744 (_dbus_write_two): new function
745 (_dbus_connect_unix_socket): new function
746 (_dbus_listen_unix_socket): new function
748 * dbus/dbus-message-internal.h: change interfaces to use
751 2002-12-11 Havoc Pennington <hp@pobox.com>
753 * dbus/dbus-types.h: add dbus_unichar
755 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
757 * dbus/dbus-connection.c (dbus_connection_send_message): return
760 * dbus/dbus-transport.c: include dbus-watch.h
762 * dbus/dbus-connection.c: include dbus-message-internal.h
764 * HACKING: add file with coding guidelines stuff.
766 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
767 handling here, for security purposes (as in vsftpd). Not actually
768 using this class yet.
770 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
771 system/libc usage here, as in vsftpd, for ease of auditing (and
772 should also simplify portability). Haven't actually moved all the
773 system/libc usage into here yet.
775 2002-11-25 Havoc Pennington <hp@pobox.com>
777 * dbus/dbus-internals.c (_dbus_verbose): fix to not
778 always print the first verbose message.
780 2002-11-24 Havoc Pennington <hp@pobox.com>
782 * test/echo-client.c, test/echo-server.c: cheesy test
785 * configure.in (AC_CHECK_FUNCS): check for writev
787 * dbus/dbus-message.c (_dbus_message_get_network_data): new
790 * dbus/dbus-list.c (_dbus_list_foreach): new function
792 * dbus/dbus-internals.c (_dbus_verbose): new function
794 * dbus/dbus-server.c, dbus/dbus-server.h: public object
795 representing a server that listens for connections.
797 * dbus/.cvsignore: create
799 * dbus/dbus-errors.h, dbus/dbus-errors.c:
800 public API for reporting errors
802 * dbus/dbus-connection.h, dbus/dbus-connection.c:
803 public object representing a connection that
804 sends/receives messages. (Same object used for
805 both client and server.)
807 * dbus/dbus-transport.h, dbus/dbus-transport.c:
808 Basic abstraction for different kinds of stream
809 that we might read/write messages from.
811 2002-11-23 Havoc Pennington <hp@pobox.com>
813 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
816 * dbus/dbus-test.c (main): add list test, and include
817 dbus-test.h as intended
819 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
820 (_dbus_hash_table_remove_int): return value indicates
821 whether the entry existed to remove
823 * dbus/dbus-list.c: add linked list utility class,
826 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
829 2002-11-23 Havoc Pennington <hp@pobox.com>
831 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
832 DBUS_END_DECLS to nothing, that should fix this once and for all
834 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
836 * dbus/dbus-message.c, dbus/dbus-hash.c:
837 add some missing @brief
839 2002-11-23 Havoc Pennington <hp@pobox.com>
841 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
842 to avoid confusing Doxygen
844 * dbus/dbus-hash.c: @} not }@
846 * dbus/dbus-message.c (struct DBusMessage): split out
849 2002-11-23 Havoc Pennington <hp@pobox.com>
851 * configure.in: pile on more warning flags if using gcc
853 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
854 to document static functions
856 * configure.in: add summary to end of configure so it
857 looks nice and attractive
859 * dbus/dbus-hash.c: finish implementation and write unit
862 * configure.in: add --enable-tests to enable unit tests
864 * dbus/dbus-test.c: test program to run unit tests
865 for all files in dbus/*, initially runs a test for
868 * dbus/dbus-internals.h: file to hold some internal utility stuff
870 2002-11-22 Havoc Pennington <hp@redhat.com>
872 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
873 "ported" away from Tcl
875 * dbus/dbus-types.h: header for types such as dbus_bool_t
877 2002-11-22 Havoc Pennington <hp@redhat.com>
879 * dbus/dbus.h: fixups for doc warnings
881 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
883 (QUIET): make it quiet so we can see warnings
885 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
887 2002-11-22 Havoc Pennington <hp@redhat.com>
889 * Makefile.am: include "Doxyfile" target in all-local
891 * configure.in: generate the Doxyfile
893 * Doxyfile.in: move Doxyfile here, so we can use
894 configure to generate a Doxyfile with the right
897 2002-11-22 Havoc Pennington <hp@redhat.com>
899 * dbus/dbus-message.c: move inline docs into .c file
901 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
902 so all docs are under doc/
903 (MAN_EXTENSION): generate man pages. Use extension
904 ".3dbus" which matches ".3qt" on my system,
905 I guess this is OK, I don't know really.
906 (FILE_PATTERNS): look for .c files not .h, makes sense
909 2002-11-22 Havoc Pennington <hp@pobox.com>
911 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
912 because any app can be a server, and any app can be a client,
913 the bus is a special kind of server.
915 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
917 * Doxyfile : adding. Still needs Makefile rules to be generated
918 automatically (just run "doxygen" in the toplevel dir for now to
921 * dbus/dbus-message.h : Adding sample docs (javadoc since
922 resembles gtk-doc a little more)
924 * dbus/dbus.h : Adding sample docs
926 2002-11-21 Havoc Pennington <hp@redhat.com>
928 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
929 so we can allow ourselves to include files directly,
930 instead of having to use dbus.h
932 * dbus/dbus.h: fill in
934 * dbus/dbus-message.h: sketch out a sample header file.
935 Include griping if you include it directly instead of
938 * dbus/dbus-macros.h: new file with macros for extern "C",
939 TRUE/FALSE, NULL, etc.
941 * doc/file-boilerplate.c: put include guards in here
943 2002-11-21 Havoc Pennington <hp@redhat.com>
945 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
947 * COPYING: include the GPL as well, and license code
948 under both AFL and GPL.
950 2002-11-21 Havoc Pennington <hp@redhat.com>
952 * acconfig.h: get rid of this
954 * autogen.sh (run_configure): add --no-configure option
956 * configure.in: remove AC_ARG_PROGRAM to make
957 autoconf complain less. add AC_PREREQ.
958 add AC_DEFINE third arg.
960 2002-11-21 Anders Carlsson <andersca@codefactory.se>
963 Fix references so we can distcheck.
965 2002-11-21 Havoc Pennington <hp@redhat.com>
967 * Initial module creation