1 2003-01-22 Havoc Pennington <hp@pobox.com>
3 * doc/dbus-specification.sgml: Start to document the protocol.
5 2003-01-22 Havoc Pennington <hp@pobox.com>
7 * dbus/dbus-connection.c
8 (dbus_connection_send_message_with_reply_and_block): add some @todo
10 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
12 2003-01-21 Havoc Pennington <hp@pobox.com>
14 (patch untested because can't compile)
16 * bus/driver.c (create_unique_client_name): make this function
17 never recycle client names. Also, caller should initialize
20 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
22 2003-01-21 Anders Carlsson <andersca@codefactory.se>
24 * dbus/dbus-marshal.c: (_dbus_marshal_double),
25 (_dbus_marshal_int32), (_dbus_marshal_uint32),
26 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
27 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
28 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
29 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
30 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
31 * dbus/dbus-marshal.h:
32 * dbus/dbus-protocol.h:
33 Add support for marshalling and demarshalling integer, double
36 2003-01-21 Anders Carlsson <andersca@codefactory.se>
41 * bus/connection.c: (connection_disconnect_handler):
42 Remove the connection from the bus driver's list.
44 (connection_watch_callback): Dispatch messages.
46 (free_connection_data): Free connection name.
48 (bus_connection_setup): Add connection to the bus driver's list.
49 (bus_connection_remove_owned_service):
50 (bus_connection_set_name), (bus_connection_get_name):
51 Add functions for setting and getting the connection's name.
56 * bus/driver.c: (create_unique_client_name),
57 (bus_driver_handle_hello_message),
58 (bus_driver_send_welcome_message), (bus_driver_message_handler),
59 (bus_driver_add_connection), (bus_driver_remove_connection):
62 * bus/services.c: (bus_service_free):
64 New file that handles communication and registreation with the bus
67 2003-01-21 Anders Carlsson <andersca@codefactory.se>
69 * dbus/dbus-connection.c: (dbus_connection_send_message):
70 Add a new client_serial parameter.
72 (dbus_connection_send_message_with_reply):
73 Remove a @todo since we've implemented the blocking function.
75 (dbus_connection_send_message_with_reply_and_block):
76 New function that sends a message and waits for a reply and
77 then returns the reply.
79 * dbus/dbus-connection.h:
82 * dbus/dbus-errors.c: (dbus_result_to_string):
86 * dbus/dbus-message-internal.h:
87 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
88 (_dbus_message_set_sender), (dbus_message_write_header),
89 (dbus_message_new_reply), (decode_header_data),
90 (_dbus_message_loader_return_buffer), (_dbus_message_test):
91 * dbus/dbus-message.h:
92 Add new functions that set the reply serial and sender.
93 Also marshal and demarshal them correctly and add test.
95 * dbus/dbus-protocol.h:
96 Add new DBUS_MESSAGE_TYPE_SENDER.
99 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
100 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
101 (dbus_connection_hookup_with_g_main):
102 * glib/test-dbus-glib.c: (main):
103 Rewrite to use GIOChannel and remove the GSource crack.
105 * test/echo-client.c: (main):
106 * test/watch.c: (check_messages):
107 Update for changed APIs
109 2003-01-19 Anders Carlsson <andersca@codefactory.se>
111 * dbus/Makefile.am: Add dbus-timeout.[cħ]
113 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
114 Create a DBusTimeoutList.
115 (dbus_connection_set_timeout_functions): Add new function to
116 set timeout callbacks
118 * dbus/dbus-connection.h: Add public DBusTimeout API.
120 * dbus/dbus-message.c: (dbus_message_get_service):
121 * dbus/dbus-message.h: New function.
123 * dbus/dbus-server.c: Fix small doc typo.
125 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
127 2003-01-19 Anders Carlsson <andersca@codefactory.se>
129 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
130 of the string, just as long as specified.
132 2003-01-19 Havoc Pennington <hp@pobox.com>
134 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
137 * dbus/dbus-server.c (dbus_server_set_max_connections)
138 (dbus_server_get_max_connections, dbus_server_get_n_connections):
139 keep track of current number of connections, and add API for
140 setting a max (but haven't implemented enforcing the max yet)
142 2003-01-18 Havoc Pennington <hp@pobox.com>
144 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
145 reading/writing if read_watch != NULL or write_watch != NULL.
147 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
148 the message loader code to actually load message->header and
149 message->body into the newly-created message.
151 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
154 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
155 (dbus_connection_get_max_message_size)
156 (dbus_connection_set_max_live_messages_size)
157 (dbus_connection_get_max_live_messages_size): implement some
158 resource limitation functions
160 * dbus/dbus-resources.c: new file implementing some of the
161 resource limits stuff
163 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
164 missing docs, add @todo to handle OOM etc.
166 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
169 2003-01-18 Havoc Pennington <hp@pobox.com>
171 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
172 connection if it hasn't been already.
174 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
175 replace with DisconnectFunction.
177 2003-01-18 Havoc Pennington <hp@pobox.com>
179 Building --disable-verbose-mode --disable-asserts --disable-tests
180 cuts the library from 112K to 45K or so
182 * configure.in: check for varargs macro support,
183 add --enable-verbose-mode, --enable-asserts.
185 * dbus/dbus-internals.h (_dbus_assert): support
187 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
189 2003-01-18 Havoc Pennington <hp@pobox.com>
191 * dbus/dbus-test.c: include config.h so that tests actually run
193 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
194 so the failure mode when that assumption fails will be plenty
197 2003-01-18 Havoc Pennington <hp@pobox.com>
199 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
201 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
204 * test/Makefile.am: don't use special variable "TESTS" for echo-*
205 since we don't want to use those in make check
207 2003-01-15 Havoc Pennington <hp@redhat.com>
213 2003-01-15 Havoc Pennington <hp@redhat.com>
215 * test/Makefile.am: fix so that test source code ends up in the
216 distribution on make distcheck
218 2003-01-15 Havoc Pennington <hp@redhat.com>
224 2003-01-15 Havoc Pennington <hp@redhat.com>
226 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
227 fix build when --disable-tests
229 * Makefile.am (EXTRA_DIST): put HACKING in here
231 * HACKING: document procedure for making a tarball release.
233 2003-01-14 Anders Carlsson <andersca@codefactory.se>
235 * bus/connection.c: (connection_error_handler),
236 (bus_connection_setup):
237 * bus/main.c: (main):
238 Make sure that the DBusConnectionData struct is NULLed
239 out to prevent a segfault.
241 * dbus/dbus-errors.c: (dbus_result_to_string):
242 * dbus/dbus-errors.h:
243 * dbus/dbus-message.c: (dbus_message_get_fields),
244 (dbus_message_get_fields_valist), (_dbus_message_test):
245 * dbus/dbus-message.h:
246 Make dbus_message_get_fields return a result code so we can
247 track invalid fields as well as oom.
249 2003-01-11 Havoc Pennington <hp@pobox.com>
251 * configure.in: change --enable-test/--enable-ansi action-if-given
252 to enable_foo=$enableval instead of enable_foo=yes
254 2003-01-08 Havoc Pennington <hp@pobox.com>
256 * dbus/dbus-string.c (_dbus_string_align_length): new function
258 * dbus/dbus-test-main.c: move main() for test app here
260 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
261 symbol to run tests, because dbus-test isn't in the main
264 Code review nitpicks.
266 * dbus/dbus-message.c (dbus_message_write_header): add newlines
267 for people with narrow emacs ;-). Assert client_serial was filled
268 in. Assert message->name != NULL.
269 (dbus_message_append_fields): have "first_field_type" arg separate
270 from va list, needed for C++ binding that also uses varargs IIRC
271 and helps with type safety
272 (dbus_message_new): add @todo about using DBusString to store
273 service/name internally
274 (dbus_message_new): don't leak ->service and ->name on OOM later
276 (dbus_message_unref): free the service name
277 (dbus_message_get_fields): same change to varargs
278 i.e. first_field_type
279 (_dbus_message_loader_return_buffer): assert that the message data
280 is aligned (if not it's a bug in our code). Put in verbose griping
281 about why we set corrupted = TRUE.
282 (decode_header_data): add FIXME that char* is evil. Was going to
283 add FIXME about evil locale-specific string.h strncmp, but just
284 switched to wacky string-as-uint32 optimization. Move check for
285 "no room for field name" above get_const_data_len() to avoid
286 assertion failure in get_const_data_len if we have trailing 2
287 bytes or the like. Check for service and name fields being
288 provided twice. Don't leak service/name on error. Require field
289 names to be aligned to 4 bytes.
291 * dbus/dbus-marshal.c: move byte swap stuff to header
292 (_dbus_pack_int32): uscore-prefix
293 (_dbus_unpack_int32): uscore-prefix
294 (_dbus_unpack_uint32): export
295 (_dbus_demarshal_string): add @todo complaining about use of
297 (_dbus_marshal_get_field_end_pos): add @todo about bad error
298 handling allowing corrupt data to go unchecked
300 2003-01-08 Havoc Pennington <hp@redhat.com>
302 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
303 to the select() as needed for authentication. (should be using
304 _dbus_poll() not select, but for another day)
306 * dbus/dbus.h: include dbus/dbus-protocol.h
308 2003-01-08 Anders Carlsson <andersca@codefactory.se>
310 * dbus/Makefile.am (dbusinclude_HEADERS): Install
313 2003-01-08 Anders Carlsson <andersca@codefactory.se>
315 * dbus/dbus-internals.c: (_dbus_type_to_string):
316 New function that returns a string describing a type.
318 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
319 * dbus/dbus-marshal.h:
320 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
321 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
322 (dbus_message_iter_get_byte_array):
323 * dbus/dbus-message.h:
324 Add new convenience functions for appending and getting message fields.
325 Also add demarshalling routines for byte arrays.
327 2003-01-07 Anders Carlsson <andersca@codefactory.se>
329 * dbus/dbus-connection-internal.h:
330 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
331 (_dbus_connection_get_next_client_serial),
332 (dbus_connection_send_message):
333 * dbus/dbus-internals.h:
334 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
335 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
336 (_dbus_marshal_uint32), (_dbus_demarshal_double),
337 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
338 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
339 (_dbus_verbose_bytes), (_dbus_marshal_test):
340 * dbus/dbus-marshal.h:
341 * dbus/dbus-message-internal.h:
342 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
343 (dbus_message_write_header), (_dbus_message_lock),
344 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
345 (dbus_message_get_name), (dbus_message_append_int32),
346 (dbus_message_append_uint32), (dbus_message_append_double),
347 (dbus_message_append_string), (dbus_message_append_byte_array),
348 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
349 (dbus_message_iter_unref), (dbus_message_iter_has_next),
350 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
351 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
352 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
353 (decode_header_data), (_dbus_message_loader_return_buffer),
354 (message_iter_test), (_dbus_message_test):
355 * dbus/dbus-message.h:
356 * dbus/dbus-protocol.h:
357 * dbus/dbus-test.c: (main):
359 * glib/test-dbus-glib.c: (message_handler), (main):
360 * test/echo-client.c: (main):
361 * test/watch.c: (check_messages):
362 Make messages sendable and receivable for real.
364 2003-01-07 Anders Carlsson <andersca@codefactory.se>
366 * dbus/dbus-marshal.c: (_dbus_marshal_double),
367 (_dbus_marshal_string), (_dbus_marshal_byte_array):
368 * dbus/dbus-message.c: (dbus_message_append_int32),
369 (dbus_message_append_uint32), (dbus_message_append_double),
370 (dbus_message_append_string), (dbus_message_append_byte_array):
371 Handle OOM restoration.
373 2003-01-07 Anders Carlsson <andersca@codefactory.se>
375 * dbus/dbus-marshal.c: (_dbus_marshal_string),
376 (_dbus_demarshal_string), (_dbus_marshal_test):
377 * dbus/dbus-marshal.h:
378 * dbus/dbus-message.c: (dbus_message_get_name),
379 Document these functions.
381 (dbus_message_append_int32), (dbus_message_append_uint32),
382 (dbus_message_append_double), (dbus_message_append_string),
383 (dbus_message_append_byte_array):
384 * dbus/dbus-message.h:
385 Add functions for adding message fields of different types.
387 * dbus/dbus-protocol.h:
388 Add the different types.
390 2003-01-05 Havoc Pennington <hp@pobox.com>
392 * bus/connection.c: implement routines for handling connections,
393 first thing is keeping a list of owned services on each connection
394 and setting up watches etc.
396 * bus/services.c: implement a mapping from service names to lists
399 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
401 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
402 to use static mutexes for global data
404 * dbus/dbus-connection.c (dbus_connection_set_data): add new
405 collection of functions to set/get application-specific data
406 on the DBusConnection.
408 2003-01-04 Havoc Pennington <hp@pobox.com>
410 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
411 (_dbus_poll): new function
413 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
416 * bus/loop.c: initial code for the daemon main loop
418 2003-01-04 Havoc Pennington <hp@pobox.com>
420 * test/watch.c (error_handler): make it safe if the error handler
421 is called multiple times (if we s/error handler/disconnect
422 handler/ we should just guarantee it's called only once)
424 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
425 error handler on disconnect (it's quite possible we should
426 just change the error handler to a "disconnect handler," I'm
427 not sure we have any other meaningful errors)
429 * configure.in: check for getpwnam_r
431 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
432 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
433 mechanism as in SASL spec, using socket credentials
435 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
436 (_dbus_send_credentials_unix_socket): new function
438 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
440 (_dbus_write): only check errno if <0 returned
441 (_dbus_write_two): ditto
443 2003-01-02 Anders Carlsson <andersca@codefactory.se>
445 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
446 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
447 (_dbus_marshal_test):
448 * dbus/dbus-marshal.h:
449 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
450 to _dbus_marshal_utf8_string. Also fix some tests.
452 2002-12-28 Harri Porten <porten@kde.org>
454 * configure.in: added check for C++ compiler and a very cheesy
455 check for the Qt integration
457 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
459 * qt/Makefile.am: added
461 * qt/.cvsignore: added
463 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
464 latter, added #ifdef QT_THREAD_SUPPORT guard.
466 * dbus/Makefile.am: added missing headers for make dist
468 2002-12-28 Kristian Rietveld <kris@gtk.org>
470 * dbus/Makefile.am: fixup export-symbols-regex.
472 2002-12-27 Anders Carlsson <andersca@codefactory.se>
474 * acinclude.m4: Add this file and put the
475 PKG_CHECK_MODULE macro in it.
477 2002-12-27 Anders Carlsson <andersca@codefactory.se>
479 * dbus/dbus-marshal.c: (_dbus_marshal_string),
480 (_dbus_demarshal_double), (_dbus_demarshal_int32),
481 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
482 (_dbus_marshal_test):
483 Make the demarshalling routines align the pos argument.
484 Add string marshalling tests and fix the obvious bugs
487 2002-12-26 Havoc Pennington <hp@pobox.com>
489 * dbus/dbus-auth.c: fixes fixes fixes
491 * dbus/dbus-transport-unix.c: wire up support for
492 encoding/decoding data on the wire
494 * dbus/dbus-auth.c (_dbus_auth_encode_data)
495 (_dbus_auth_decode_data): append to target string
496 instead of nuking it.
498 2002-12-26 Havoc Pennington <hp@pobox.com>
500 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
501 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
504 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
505 avoid swap_bytes() overhead (ignoring possible assembly stuff for
506 now). Main point is because I wanted unpack_uint32 to implement
508 (_dbus_verbose_bytes): new function
510 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
512 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
513 mechanism to handle a corrupt message stream
514 (_dbus_message_loader_new): fix preallocation to only prealloc,
517 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
518 (_dbus_string_test): enhance tests for copy/move and fix the
521 * dbus/dbus-transport-unix.c: Hold references in more places to
522 avoid reentrancy problems
524 * dbus/dbus-transport.c: ditto
526 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
527 leak reference count in no-message case
529 * test/watch.c (do_mainloop): handle adding/removing watches
530 during iteration over the watches. Also, ref the connection/server
531 stored on a watch, so we don't try to mangle a destroyed one.
533 * dbus/dbus-transport-unix.c (do_authentication): perform
536 * dbus/dbus-auth.c (get_state): add a state
537 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
538 (_dbus_auth_get_unused_bytes): append the unused bytes
539 to the passed in string, rather than prepend
541 * dbus/dbus-transport.c (_dbus_transport_init_base): create
542 the auth conversation DBusAuth
544 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
545 (_dbus_transport_new_for_domain_socket): when creating a
546 transport, pass in whether it's a client-side or server-side
547 transport so we know which DBusAuth to create
549 2002-12-03 Havoc Pennington <hp@pobox.com>
551 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
552 _after_ finalizing the derived members
553 (unix_connection_set): unref watch if we fail to add it
555 * dbus/dbus-connection.c (dbus_connection_unref): delete the
556 transport first, so that the connection owned by the
557 transport will be valid as the transport finalizes.
559 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
560 if necessary, and remove watches from the connection.
562 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
564 2002-12-26 Anders Carlsson <andersca@codefactory.se>
566 * dbus/dbus-marshal.c: (_dbus_marshal_string),
567 (_dbus_demarshal_double), (_dbus_demarshal_int32),
568 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
569 (_dbus_marshal_test):
570 * dbus/dbus-marshal.h:
571 Add string marshal functions and have the demarshal functions
572 return the new position.
574 2002-12-25 Havoc Pennington <hp@pobox.com>
576 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
577 it is a simple protocol that just maps directly to SASL.
579 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
580 initial implementation, not actually used yet.
582 * dbus/dbus-string.c (_dbus_string_find): new function
583 (_dbus_string_equal): new function
584 (_dbus_string_base64_encode): new function
585 (_dbus_string_base64_decode): new function
587 2002-12-25 Anders Carlsson <andersca@codefactory.se>
590 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
591 (_dbus_marshal_int32), (_dbus_marshal_uint32),
592 (_dbus_demarshal_double), (_dbus_demarshal_int32),
593 (_dbus_demarshal_uint32), (_dbus_marshal_test):
594 * dbus/dbus-marshal.h:
595 * dbus/dbus-protocol.h:
596 * dbus/dbus-test.c: (main):
598 Add un-optimized marshalling/demarshalling routines.
600 2002-12-25 Harri Porten <porten@kde.org>
602 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
604 2002-12-24 Zack Rusin <zack@kde.org>
606 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
607 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
610 2002-12-24 Havoc Pennington <hp@pobox.com>
612 * glib/dbus-gthread.c: fix include
614 * glib/dbus-glib.h: rename DBusMessageHandler for now.
615 I think glib API needs to change, though, as you don't
616 want to use DBusMessageFunction, you want to use the
617 DBusMessageHandler object. Probably
618 dbus_connection_open_with_g_main_loop()
619 and dbus_connection_setup_g_main_loop() or something like that
620 (but think of better names...) that just create a connection
621 that has watch/timeout functions etc. already set up.
623 * dbus/dbus-connection.c
624 (dbus_connection_send_message_with_reply): new function just to
625 show how the message handler helps us deal with replies.
627 * dbus/dbus-list.c (_dbus_list_remove_last): new function
629 * dbus/dbus-string.c (_dbus_string_test): free a string that
632 * dbus/dbus-hash.c: use memory pools for the hash entries
633 (rebuild_table): be more paranoid about overflow, and
634 shrink table when we can
635 (_dbus_hash_test): reduce number of sprintfs and write
636 valid C89. Add tests for case where we grow and then
637 shrink the hash table.
639 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
641 * dbus/dbus-connection.c (dbus_connection_register_handler)
642 (dbus_connection_unregister_handler): new functions
644 * dbus/dbus-message.c (dbus_message_get_name): new
646 * dbus/dbus-list.c: fix docs typo
648 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
649 an object representing a handler for messages.
651 2002-12-16 Anders Carlsson <andersca@codefactory.se>
654 * glib/dbus-gthread.c: (dbus_gthread_init):
655 Don't use the gdbus prefix for public functions.
657 2002-12-16 Anders Carlsson <andersca@codefactory.se>
661 Add GLib checks and fixup .pc files
665 * glib/dbus-gmain.c: (gdbus_connection_prepare),
666 (gdbus_connection_check), (gdbus_connection_dispatch),
667 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
668 (dbus_connection_gsource_new):
669 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
670 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
671 * glib/test-dbus-glib.c: (message_handler), (main):
674 2002-12-15 Harri Porten <porten@kde.org>
676 * autogen.sh: check for libtoolize before attempting to use it
678 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
681 * .cvsignore: ignore more stamp files
683 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
685 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
686 without make install.
688 2002-12-15 Havoc Pennington <hp@pobox.com>
690 * dbus/dbus-threads.c: add thread stubs that a higher library
691 layer can fill in. e.g. the GLib wrapper might fill them in with
692 GThread stuff. We still need to use this thread API to
693 thread-safe-ize the library.
695 2002-12-12 Havoc Pennington <hp@pobox.com>
697 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
698 below new interfaces and include fewer system headers.
700 * dbus/dbus-sysdeps.c (_dbus_read): new function
701 (_dbus_write): new function
702 (_dbus_write_two): new function
703 (_dbus_connect_unix_socket): new function
704 (_dbus_listen_unix_socket): new function
706 * dbus/dbus-message-internal.h: change interfaces to use
709 2002-12-11 Havoc Pennington <hp@pobox.com>
711 * dbus/dbus-types.h: add dbus_unichar
713 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
715 * dbus/dbus-connection.c (dbus_connection_send_message): return
718 * dbus/dbus-transport.c: include dbus-watch.h
720 * dbus/dbus-connection.c: include dbus-message-internal.h
722 * HACKING: add file with coding guidelines stuff.
724 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
725 handling here, for security purposes (as in vsftpd). Not actually
726 using this class yet.
728 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
729 system/libc usage here, as in vsftpd, for ease of auditing (and
730 should also simplify portability). Haven't actually moved all the
731 system/libc usage into here yet.
733 2002-11-25 Havoc Pennington <hp@pobox.com>
735 * dbus/dbus-internals.c (_dbus_verbose): fix to not
736 always print the first verbose message.
738 2002-11-24 Havoc Pennington <hp@pobox.com>
740 * test/echo-client.c, test/echo-server.c: cheesy test
743 * configure.in (AC_CHECK_FUNCS): check for writev
745 * dbus/dbus-message.c (_dbus_message_get_network_data): new
748 * dbus/dbus-list.c (_dbus_list_foreach): new function
750 * dbus/dbus-internals.c (_dbus_verbose): new function
752 * dbus/dbus-server.c, dbus/dbus-server.h: public object
753 representing a server that listens for connections.
755 * dbus/.cvsignore: create
757 * dbus/dbus-errors.h, dbus/dbus-errors.c:
758 public API for reporting errors
760 * dbus/dbus-connection.h, dbus/dbus-connection.c:
761 public object representing a connection that
762 sends/receives messages. (Same object used for
763 both client and server.)
765 * dbus/dbus-transport.h, dbus/dbus-transport.c:
766 Basic abstraction for different kinds of stream
767 that we might read/write messages from.
769 2002-11-23 Havoc Pennington <hp@pobox.com>
771 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
774 * dbus/dbus-test.c (main): add list test, and include
775 dbus-test.h as intended
777 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
778 (_dbus_hash_table_remove_int): return value indicates
779 whether the entry existed to remove
781 * dbus/dbus-list.c: add linked list utility class,
784 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
787 2002-11-23 Havoc Pennington <hp@pobox.com>
789 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
790 DBUS_END_DECLS to nothing, that should fix this once and for all
792 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
794 * dbus/dbus-message.c, dbus/dbus-hash.c:
795 add some missing @brief
797 2002-11-23 Havoc Pennington <hp@pobox.com>
799 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
800 to avoid confusing Doxygen
802 * dbus/dbus-hash.c: @} not }@
804 * dbus/dbus-message.c (struct DBusMessage): split out
807 2002-11-23 Havoc Pennington <hp@pobox.com>
809 * configure.in: pile on more warning flags if using gcc
811 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
812 to document static functions
814 * configure.in: add summary to end of configure so it
815 looks nice and attractive
817 * dbus/dbus-hash.c: finish implementation and write unit
820 * configure.in: add --enable-tests to enable unit tests
822 * dbus/dbus-test.c: test program to run unit tests
823 for all files in dbus/*, initially runs a test for
826 * dbus/dbus-internals.h: file to hold some internal utility stuff
828 2002-11-22 Havoc Pennington <hp@redhat.com>
830 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
831 "ported" away from Tcl
833 * dbus/dbus-types.h: header for types such as dbus_bool_t
835 2002-11-22 Havoc Pennington <hp@redhat.com>
837 * dbus/dbus.h: fixups for doc warnings
839 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
841 (QUIET): make it quiet so we can see warnings
843 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
845 2002-11-22 Havoc Pennington <hp@redhat.com>
847 * Makefile.am: include "Doxyfile" target in all-local
849 * configure.in: generate the Doxyfile
851 * Doxyfile.in: move Doxyfile here, so we can use
852 configure to generate a Doxyfile with the right
855 2002-11-22 Havoc Pennington <hp@redhat.com>
857 * dbus/dbus-message.c: move inline docs into .c file
859 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
860 so all docs are under doc/
861 (MAN_EXTENSION): generate man pages. Use extension
862 ".3dbus" which matches ".3qt" on my system,
863 I guess this is OK, I don't know really.
864 (FILE_PATTERNS): look for .c files not .h, makes sense
867 2002-11-22 Havoc Pennington <hp@pobox.com>
869 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
870 because any app can be a server, and any app can be a client,
871 the bus is a special kind of server.
873 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
875 * Doxyfile : adding. Still needs Makefile rules to be generated
876 automatically (just run "doxygen" in the toplevel dir for now to
879 * dbus/dbus-message.h : Adding sample docs (javadoc since
880 resembles gtk-doc a little more)
882 * dbus/dbus.h : Adding sample docs
884 2002-11-21 Havoc Pennington <hp@redhat.com>
886 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
887 so we can allow ourselves to include files directly,
888 instead of having to use dbus.h
890 * dbus/dbus.h: fill in
892 * dbus/dbus-message.h: sketch out a sample header file.
893 Include griping if you include it directly instead of
896 * dbus/dbus-macros.h: new file with macros for extern "C",
897 TRUE/FALSE, NULL, etc.
899 * doc/file-boilerplate.c: put include guards in here
901 2002-11-21 Havoc Pennington <hp@redhat.com>
903 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
905 * COPYING: include the GPL as well, and license code
906 under both AFL and GPL.
908 2002-11-21 Havoc Pennington <hp@redhat.com>
910 * acconfig.h: get rid of this
912 * autogen.sh (run_configure): add --no-configure option
914 * configure.in: remove AC_ARG_PROGRAM to make
915 autoconf complain less. add AC_PREREQ.
916 add AC_DEFINE third arg.
918 2002-11-21 Anders Carlsson <andersca@codefactory.se>
921 Fix references so we can distcheck.
923 2002-11-21 Havoc Pennington <hp@redhat.com>
925 * Initial module creation