1 2003-01-21 Anders Carlsson <andersca@codefactory.se>
6 * bus/connection.c: (connection_disconnect_handler):
7 Remove the connection from the bus driver's list.
9 (connection_watch_callback): Dispatch messages.
11 (free_connection_data): Free connection name.
13 (bus_connection_setup): Add connection to the bus driver's list.
14 (bus_connection_remove_owned_service):
15 (bus_connection_set_name), (bus_connection_get_name):
16 Add functions for setting and getting the connection's name.
21 * bus/driver.c: (create_unique_client_name),
22 (bus_driver_handle_hello_message),
23 (bus_driver_send_welcome_message), (bus_driver_message_handler),
24 (bus_driver_add_connection), (bus_driver_remove_connection):
27 * bus/services.c: (bus_service_free):
29 New file that handles communication and registreation with the bus
32 2003-01-21 Anders Carlsson <andersca@codefactory.se>
34 * dbus/dbus-connection.c: (dbus_connection_send_message):
35 Add a new client_serial parameter.
37 (dbus_connection_send_message_with_reply):
38 Remove a @todo since we've implemented the blocking function.
40 (dbus_connection_send_message_with_reply_and_block):
41 New function that sends a message and waits for a reply and
42 then returns the reply.
44 * dbus/dbus-connection.h:
47 * dbus/dbus-errors.c: (dbus_result_to_string):
51 * dbus/dbus-message-internal.h:
52 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
53 (_dbus_message_set_sender), (dbus_message_write_header),
54 (dbus_message_new_reply), (decode_header_data),
55 (_dbus_message_loader_return_buffer), (_dbus_message_test):
56 * dbus/dbus-message.h:
57 Add new functions that set the reply serial and sender.
58 Also marshal and demarshal them correctly and add test.
60 * dbus/dbus-protocol.h:
61 Add new DBUS_MESSAGE_TYPE_SENDER.
64 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
65 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
66 (dbus_connection_hookup_with_g_main):
67 * glib/test-dbus-glib.c: (main):
68 Rewrite to use GIOChannel and remove the GSource crack.
70 * test/echo-client.c: (main):
71 * test/watch.c: (check_messages):
72 Update for changed APIs
74 2003-01-19 Anders Carlsson <andersca@codefactory.se>
76 * dbus/Makefile.am: Add dbus-timeout.[cħ]
78 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
79 Create a DBusTimeoutList.
80 (dbus_connection_set_timeout_functions): Add new function to
83 * dbus/dbus-connection.h: Add public DBusTimeout API.
85 * dbus/dbus-message.c: (dbus_message_get_service):
86 * dbus/dbus-message.h: New function.
88 * dbus/dbus-server.c: Fix small doc typo.
90 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
92 2003-01-19 Anders Carlsson <andersca@codefactory.se>
94 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
95 of the string, just as long as specified.
97 2003-01-19 Havoc Pennington <hp@pobox.com>
99 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
102 * dbus/dbus-server.c (dbus_server_set_max_connections)
103 (dbus_server_get_max_connections, dbus_server_get_n_connections):
104 keep track of current number of connections, and add API for
105 setting a max (but haven't implemented enforcing the max yet)
107 2003-01-18 Havoc Pennington <hp@pobox.com>
109 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
110 reading/writing if read_watch != NULL or write_watch != NULL.
112 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
113 the message loader code to actually load message->header and
114 message->body into the newly-created message.
116 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
119 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
120 (dbus_connection_get_max_message_size)
121 (dbus_connection_set_max_live_messages_size)
122 (dbus_connection_get_max_live_messages_size): implement some
123 resource limitation functions
125 * dbus/dbus-resources.c: new file implementing some of the
126 resource limits stuff
128 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
129 missing docs, add @todo to handle OOM etc.
131 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
134 2003-01-18 Havoc Pennington <hp@pobox.com>
136 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
137 connection if it hasn't been already.
139 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
140 replace with DisconnectFunction.
142 2003-01-18 Havoc Pennington <hp@pobox.com>
144 Building --disable-verbose-mode --disable-asserts --disable-tests
145 cuts the library from 112K to 45K or so
147 * configure.in: check for varargs macro support,
148 add --enable-verbose-mode, --enable-asserts.
150 * dbus/dbus-internals.h (_dbus_assert): support
152 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
154 2003-01-18 Havoc Pennington <hp@pobox.com>
156 * dbus/dbus-test.c: include config.h so that tests actually run
158 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
159 so the failure mode when that assumption fails will be plenty
162 2003-01-18 Havoc Pennington <hp@pobox.com>
164 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
166 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
169 * test/Makefile.am: don't use special variable "TESTS" for echo-*
170 since we don't want to use those in make check
172 2003-01-15 Havoc Pennington <hp@redhat.com>
178 2003-01-15 Havoc Pennington <hp@redhat.com>
180 * test/Makefile.am: fix so that test source code ends up in the
181 distribution on make distcheck
183 2003-01-15 Havoc Pennington <hp@redhat.com>
189 2003-01-15 Havoc Pennington <hp@redhat.com>
191 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
192 fix build when --disable-tests
194 * Makefile.am (EXTRA_DIST): put HACKING in here
196 * HACKING: document procedure for making a tarball release.
198 2003-01-14 Anders Carlsson <andersca@codefactory.se>
200 * bus/connection.c: (connection_error_handler),
201 (bus_connection_setup):
202 * bus/main.c: (main):
203 Make sure that the DBusConnectionData struct is NULLed
204 out to prevent a segfault.
206 * dbus/dbus-errors.c: (dbus_result_to_string):
207 * dbus/dbus-errors.h:
208 * dbus/dbus-message.c: (dbus_message_get_fields),
209 (dbus_message_get_fields_valist), (_dbus_message_test):
210 * dbus/dbus-message.h:
211 Make dbus_message_get_fields return a result code so we can
212 track invalid fields as well as oom.
214 2003-01-11 Havoc Pennington <hp@pobox.com>
216 * configure.in: change --enable-test/--enable-ansi action-if-given
217 to enable_foo=$enableval instead of enable_foo=yes
219 2003-01-08 Havoc Pennington <hp@pobox.com>
221 * dbus/dbus-string.c (_dbus_string_align_length): new function
223 * dbus/dbus-test-main.c: move main() for test app here
225 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
226 symbol to run tests, because dbus-test isn't in the main
229 Code review nitpicks.
231 * dbus/dbus-message.c (dbus_message_write_header): add newlines
232 for people with narrow emacs ;-). Assert client_serial was filled
233 in. Assert message->name != NULL.
234 (dbus_message_append_fields): have "first_field_type" arg separate
235 from va list, needed for C++ binding that also uses varargs IIRC
236 and helps with type safety
237 (dbus_message_new): add @todo about using DBusString to store
238 service/name internally
239 (dbus_message_new): don't leak ->service and ->name on OOM later
241 (dbus_message_unref): free the service name
242 (dbus_message_get_fields): same change to varargs
243 i.e. first_field_type
244 (_dbus_message_loader_return_buffer): assert that the message data
245 is aligned (if not it's a bug in our code). Put in verbose griping
246 about why we set corrupted = TRUE.
247 (decode_header_data): add FIXME that char* is evil. Was going to
248 add FIXME about evil locale-specific string.h strncmp, but just
249 switched to wacky string-as-uint32 optimization. Move check for
250 "no room for field name" above get_const_data_len() to avoid
251 assertion failure in get_const_data_len if we have trailing 2
252 bytes or the like. Check for service and name fields being
253 provided twice. Don't leak service/name on error. Require field
254 names to be aligned to 4 bytes.
256 * dbus/dbus-marshal.c: move byte swap stuff to header
257 (_dbus_pack_int32): uscore-prefix
258 (_dbus_unpack_int32): uscore-prefix
259 (_dbus_unpack_uint32): export
260 (_dbus_demarshal_string): add @todo complaining about use of
262 (_dbus_marshal_get_field_end_pos): add @todo about bad error
263 handling allowing corrupt data to go unchecked
265 2003-01-08 Havoc Pennington <hp@redhat.com>
267 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
268 to the select() as needed for authentication. (should be using
269 _dbus_poll() not select, but for another day)
271 * dbus/dbus.h: include dbus/dbus-protocol.h
273 2003-01-08 Anders Carlsson <andersca@codefactory.se>
275 * dbus/Makefile.am (dbusinclude_HEADERS): Install
278 2003-01-08 Anders Carlsson <andersca@codefactory.se>
280 * dbus/dbus-internals.c: (_dbus_type_to_string):
281 New function that returns a string describing a type.
283 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
284 * dbus/dbus-marshal.h:
285 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
286 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
287 (dbus_message_iter_get_byte_array):
288 * dbus/dbus-message.h:
289 Add new convenience functions for appending and getting message fields.
290 Also add demarshalling routines for byte arrays.
292 2003-01-07 Anders Carlsson <andersca@codefactory.se>
294 * dbus/dbus-connection-internal.h:
295 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
296 (_dbus_connection_get_next_client_serial),
297 (dbus_connection_send_message):
298 * dbus/dbus-internals.h:
299 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
300 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
301 (_dbus_marshal_uint32), (_dbus_demarshal_double),
302 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
303 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
304 (_dbus_verbose_bytes), (_dbus_marshal_test):
305 * dbus/dbus-marshal.h:
306 * dbus/dbus-message-internal.h:
307 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
308 (dbus_message_write_header), (_dbus_message_lock),
309 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
310 (dbus_message_get_name), (dbus_message_append_int32),
311 (dbus_message_append_uint32), (dbus_message_append_double),
312 (dbus_message_append_string), (dbus_message_append_byte_array),
313 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
314 (dbus_message_iter_unref), (dbus_message_iter_has_next),
315 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
316 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
317 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
318 (decode_header_data), (_dbus_message_loader_return_buffer),
319 (message_iter_test), (_dbus_message_test):
320 * dbus/dbus-message.h:
321 * dbus/dbus-protocol.h:
322 * dbus/dbus-test.c: (main):
324 * glib/test-dbus-glib.c: (message_handler), (main):
325 * test/echo-client.c: (main):
326 * test/watch.c: (check_messages):
327 Make messages sendable and receivable for real.
329 2003-01-07 Anders Carlsson <andersca@codefactory.se>
331 * dbus/dbus-marshal.c: (_dbus_marshal_double),
332 (_dbus_marshal_string), (_dbus_marshal_byte_array):
333 * dbus/dbus-message.c: (dbus_message_append_int32),
334 (dbus_message_append_uint32), (dbus_message_append_double),
335 (dbus_message_append_string), (dbus_message_append_byte_array):
336 Handle OOM restoration.
338 2003-01-07 Anders Carlsson <andersca@codefactory.se>
340 * dbus/dbus-marshal.c: (_dbus_marshal_string),
341 (_dbus_demarshal_string), (_dbus_marshal_test):
342 * dbus/dbus-marshal.h:
343 * dbus/dbus-message.c: (dbus_message_get_name),
344 Document these functions.
346 (dbus_message_append_int32), (dbus_message_append_uint32),
347 (dbus_message_append_double), (dbus_message_append_string),
348 (dbus_message_append_byte_array):
349 * dbus/dbus-message.h:
350 Add functions for adding message fields of different types.
352 * dbus/dbus-protocol.h:
353 Add the different types.
355 2003-01-05 Havoc Pennington <hp@pobox.com>
357 * bus/connection.c: implement routines for handling connections,
358 first thing is keeping a list of owned services on each connection
359 and setting up watches etc.
361 * bus/services.c: implement a mapping from service names to lists
364 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
366 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
367 to use static mutexes for global data
369 * dbus/dbus-connection.c (dbus_connection_set_data): add new
370 collection of functions to set/get application-specific data
371 on the DBusConnection.
373 2003-01-04 Havoc Pennington <hp@pobox.com>
375 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
376 (_dbus_poll): new function
378 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
381 * bus/loop.c: initial code for the daemon main loop
383 2003-01-04 Havoc Pennington <hp@pobox.com>
385 * test/watch.c (error_handler): make it safe if the error handler
386 is called multiple times (if we s/error handler/disconnect
387 handler/ we should just guarantee it's called only once)
389 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
390 error handler on disconnect (it's quite possible we should
391 just change the error handler to a "disconnect handler," I'm
392 not sure we have any other meaningful errors)
394 * configure.in: check for getpwnam_r
396 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
397 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
398 mechanism as in SASL spec, using socket credentials
400 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
401 (_dbus_send_credentials_unix_socket): new function
403 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
405 (_dbus_write): only check errno if <0 returned
406 (_dbus_write_two): ditto
408 2003-01-02 Anders Carlsson <andersca@codefactory.se>
410 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
411 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
412 (_dbus_marshal_test):
413 * dbus/dbus-marshal.h:
414 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
415 to _dbus_marshal_utf8_string. Also fix some tests.
417 2002-12-28 Harri Porten <porten@kde.org>
419 * configure.in: added check for C++ compiler and a very cheesy
420 check for the Qt integration
422 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
424 * qt/Makefile.am: added
426 * qt/.cvsignore: added
428 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
429 latter, added #ifdef QT_THREAD_SUPPORT guard.
431 * dbus/Makefile.am: added missing headers for make dist
433 2002-12-28 Kristian Rietveld <kris@gtk.org>
435 * dbus/Makefile.am: fixup export-symbols-regex.
437 2002-12-27 Anders Carlsson <andersca@codefactory.se>
439 * acinclude.m4: Add this file and put the
440 PKG_CHECK_MODULE macro in it.
442 2002-12-27 Anders Carlsson <andersca@codefactory.se>
444 * dbus/dbus-marshal.c: (_dbus_marshal_string),
445 (_dbus_demarshal_double), (_dbus_demarshal_int32),
446 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
447 (_dbus_marshal_test):
448 Make the demarshalling routines align the pos argument.
449 Add string marshalling tests and fix the obvious bugs
452 2002-12-26 Havoc Pennington <hp@pobox.com>
454 * dbus/dbus-auth.c: fixes fixes fixes
456 * dbus/dbus-transport-unix.c: wire up support for
457 encoding/decoding data on the wire
459 * dbus/dbus-auth.c (_dbus_auth_encode_data)
460 (_dbus_auth_decode_data): append to target string
461 instead of nuking it.
463 2002-12-26 Havoc Pennington <hp@pobox.com>
465 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
466 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
469 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
470 avoid swap_bytes() overhead (ignoring possible assembly stuff for
471 now). Main point is because I wanted unpack_uint32 to implement
473 (_dbus_verbose_bytes): new function
475 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
477 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
478 mechanism to handle a corrupt message stream
479 (_dbus_message_loader_new): fix preallocation to only prealloc,
482 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
483 (_dbus_string_test): enhance tests for copy/move and fix the
486 * dbus/dbus-transport-unix.c: Hold references in more places to
487 avoid reentrancy problems
489 * dbus/dbus-transport.c: ditto
491 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
492 leak reference count in no-message case
494 * test/watch.c (do_mainloop): handle adding/removing watches
495 during iteration over the watches. Also, ref the connection/server
496 stored on a watch, so we don't try to mangle a destroyed one.
498 * dbus/dbus-transport-unix.c (do_authentication): perform
501 * dbus/dbus-auth.c (get_state): add a state
502 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
503 (_dbus_auth_get_unused_bytes): append the unused bytes
504 to the passed in string, rather than prepend
506 * dbus/dbus-transport.c (_dbus_transport_init_base): create
507 the auth conversation DBusAuth
509 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
510 (_dbus_transport_new_for_domain_socket): when creating a
511 transport, pass in whether it's a client-side or server-side
512 transport so we know which DBusAuth to create
514 2002-12-03 Havoc Pennington <hp@pobox.com>
516 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
517 _after_ finalizing the derived members
518 (unix_connection_set): unref watch if we fail to add it
520 * dbus/dbus-connection.c (dbus_connection_unref): delete the
521 transport first, so that the connection owned by the
522 transport will be valid as the transport finalizes.
524 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
525 if necessary, and remove watches from the connection.
527 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
529 2002-12-26 Anders Carlsson <andersca@codefactory.se>
531 * dbus/dbus-marshal.c: (_dbus_marshal_string),
532 (_dbus_demarshal_double), (_dbus_demarshal_int32),
533 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
534 (_dbus_marshal_test):
535 * dbus/dbus-marshal.h:
536 Add string marshal functions and have the demarshal functions
537 return the new position.
539 2002-12-25 Havoc Pennington <hp@pobox.com>
541 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
542 it is a simple protocol that just maps directly to SASL.
544 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
545 initial implementation, not actually used yet.
547 * dbus/dbus-string.c (_dbus_string_find): new function
548 (_dbus_string_equal): new function
549 (_dbus_string_base64_encode): new function
550 (_dbus_string_base64_decode): new function
552 2002-12-25 Anders Carlsson <andersca@codefactory.se>
555 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
556 (_dbus_marshal_int32), (_dbus_marshal_uint32),
557 (_dbus_demarshal_double), (_dbus_demarshal_int32),
558 (_dbus_demarshal_uint32), (_dbus_marshal_test):
559 * dbus/dbus-marshal.h:
560 * dbus/dbus-protocol.h:
561 * dbus/dbus-test.c: (main):
563 Add un-optimized marshalling/demarshalling routines.
565 2002-12-25 Harri Porten <porten@kde.org>
567 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
569 2002-12-24 Zack Rusin <zack@kde.org>
571 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
572 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
575 2002-12-24 Havoc Pennington <hp@pobox.com>
577 * glib/dbus-gthread.c: fix include
579 * glib/dbus-glib.h: rename DBusMessageHandler for now.
580 I think glib API needs to change, though, as you don't
581 want to use DBusMessageFunction, you want to use the
582 DBusMessageHandler object. Probably
583 dbus_connection_open_with_g_main_loop()
584 and dbus_connection_setup_g_main_loop() or something like that
585 (but think of better names...) that just create a connection
586 that has watch/timeout functions etc. already set up.
588 * dbus/dbus-connection.c
589 (dbus_connection_send_message_with_reply): new function just to
590 show how the message handler helps us deal with replies.
592 * dbus/dbus-list.c (_dbus_list_remove_last): new function
594 * dbus/dbus-string.c (_dbus_string_test): free a string that
597 * dbus/dbus-hash.c: use memory pools for the hash entries
598 (rebuild_table): be more paranoid about overflow, and
599 shrink table when we can
600 (_dbus_hash_test): reduce number of sprintfs and write
601 valid C89. Add tests for case where we grow and then
602 shrink the hash table.
604 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
606 * dbus/dbus-connection.c (dbus_connection_register_handler)
607 (dbus_connection_unregister_handler): new functions
609 * dbus/dbus-message.c (dbus_message_get_name): new
611 * dbus/dbus-list.c: fix docs typo
613 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
614 an object representing a handler for messages.
616 2002-12-16 Anders Carlsson <andersca@codefactory.se>
619 * glib/dbus-gthread.c: (dbus_gthread_init):
620 Don't use the gdbus prefix for public functions.
622 2002-12-16 Anders Carlsson <andersca@codefactory.se>
626 Add GLib checks and fixup .pc files
630 * glib/dbus-gmain.c: (gdbus_connection_prepare),
631 (gdbus_connection_check), (gdbus_connection_dispatch),
632 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
633 (dbus_connection_gsource_new):
634 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
635 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
636 * glib/test-dbus-glib.c: (message_handler), (main):
639 2002-12-15 Harri Porten <porten@kde.org>
641 * autogen.sh: check for libtoolize before attempting to use it
643 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
646 * .cvsignore: ignore more stamp files
648 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
650 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
651 without make install.
653 2002-12-15 Havoc Pennington <hp@pobox.com>
655 * dbus/dbus-threads.c: add thread stubs that a higher library
656 layer can fill in. e.g. the GLib wrapper might fill them in with
657 GThread stuff. We still need to use this thread API to
658 thread-safe-ize the library.
660 2002-12-12 Havoc Pennington <hp@pobox.com>
662 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
663 below new interfaces and include fewer system headers.
665 * dbus/dbus-sysdeps.c (_dbus_read): new function
666 (_dbus_write): new function
667 (_dbus_write_two): new function
668 (_dbus_connect_unix_socket): new function
669 (_dbus_listen_unix_socket): new function
671 * dbus/dbus-message-internal.h: change interfaces to use
674 2002-12-11 Havoc Pennington <hp@pobox.com>
676 * dbus/dbus-types.h: add dbus_unichar
678 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
680 * dbus/dbus-connection.c (dbus_connection_send_message): return
683 * dbus/dbus-transport.c: include dbus-watch.h
685 * dbus/dbus-connection.c: include dbus-message-internal.h
687 * HACKING: add file with coding guidelines stuff.
689 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
690 handling here, for security purposes (as in vsftpd). Not actually
691 using this class yet.
693 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
694 system/libc usage here, as in vsftpd, for ease of auditing (and
695 should also simplify portability). Haven't actually moved all the
696 system/libc usage into here yet.
698 2002-11-25 Havoc Pennington <hp@pobox.com>
700 * dbus/dbus-internals.c (_dbus_verbose): fix to not
701 always print the first verbose message.
703 2002-11-24 Havoc Pennington <hp@pobox.com>
705 * test/echo-client.c, test/echo-server.c: cheesy test
708 * configure.in (AC_CHECK_FUNCS): check for writev
710 * dbus/dbus-message.c (_dbus_message_get_network_data): new
713 * dbus/dbus-list.c (_dbus_list_foreach): new function
715 * dbus/dbus-internals.c (_dbus_verbose): new function
717 * dbus/dbus-server.c, dbus/dbus-server.h: public object
718 representing a server that listens for connections.
720 * dbus/.cvsignore: create
722 * dbus/dbus-errors.h, dbus/dbus-errors.c:
723 public API for reporting errors
725 * dbus/dbus-connection.h, dbus/dbus-connection.c:
726 public object representing a connection that
727 sends/receives messages. (Same object used for
728 both client and server.)
730 * dbus/dbus-transport.h, dbus/dbus-transport.c:
731 Basic abstraction for different kinds of stream
732 that we might read/write messages from.
734 2002-11-23 Havoc Pennington <hp@pobox.com>
736 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
739 * dbus/dbus-test.c (main): add list test, and include
740 dbus-test.h as intended
742 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
743 (_dbus_hash_table_remove_int): return value indicates
744 whether the entry existed to remove
746 * dbus/dbus-list.c: add linked list utility class,
749 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
752 2002-11-23 Havoc Pennington <hp@pobox.com>
754 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
755 DBUS_END_DECLS to nothing, that should fix this once and for all
757 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
759 * dbus/dbus-message.c, dbus/dbus-hash.c:
760 add some missing @brief
762 2002-11-23 Havoc Pennington <hp@pobox.com>
764 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
765 to avoid confusing Doxygen
767 * dbus/dbus-hash.c: @} not }@
769 * dbus/dbus-message.c (struct DBusMessage): split out
772 2002-11-23 Havoc Pennington <hp@pobox.com>
774 * configure.in: pile on more warning flags if using gcc
776 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
777 to document static functions
779 * configure.in: add summary to end of configure so it
780 looks nice and attractive
782 * dbus/dbus-hash.c: finish implementation and write unit
785 * configure.in: add --enable-tests to enable unit tests
787 * dbus/dbus-test.c: test program to run unit tests
788 for all files in dbus/*, initially runs a test for
791 * dbus/dbus-internals.h: file to hold some internal utility stuff
793 2002-11-22 Havoc Pennington <hp@redhat.com>
795 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
796 "ported" away from Tcl
798 * dbus/dbus-types.h: header for types such as dbus_bool_t
800 2002-11-22 Havoc Pennington <hp@redhat.com>
802 * dbus/dbus.h: fixups for doc warnings
804 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
806 (QUIET): make it quiet so we can see warnings
808 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
810 2002-11-22 Havoc Pennington <hp@redhat.com>
812 * Makefile.am: include "Doxyfile" target in all-local
814 * configure.in: generate the Doxyfile
816 * Doxyfile.in: move Doxyfile here, so we can use
817 configure to generate a Doxyfile with the right
820 2002-11-22 Havoc Pennington <hp@redhat.com>
822 * dbus/dbus-message.c: move inline docs into .c file
824 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
825 so all docs are under doc/
826 (MAN_EXTENSION): generate man pages. Use extension
827 ".3dbus" which matches ".3qt" on my system,
828 I guess this is OK, I don't know really.
829 (FILE_PATTERNS): look for .c files not .h, makes sense
832 2002-11-22 Havoc Pennington <hp@pobox.com>
834 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
835 because any app can be a server, and any app can be a client,
836 the bus is a special kind of server.
838 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
840 * Doxyfile : adding. Still needs Makefile rules to be generated
841 automatically (just run "doxygen" in the toplevel dir for now to
844 * dbus/dbus-message.h : Adding sample docs (javadoc since
845 resembles gtk-doc a little more)
847 * dbus/dbus.h : Adding sample docs
849 2002-11-21 Havoc Pennington <hp@redhat.com>
851 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
852 so we can allow ourselves to include files directly,
853 instead of having to use dbus.h
855 * dbus/dbus.h: fill in
857 * dbus/dbus-message.h: sketch out a sample header file.
858 Include griping if you include it directly instead of
861 * dbus/dbus-macros.h: new file with macros for extern "C",
862 TRUE/FALSE, NULL, etc.
864 * doc/file-boilerplate.c: put include guards in here
866 2002-11-21 Havoc Pennington <hp@redhat.com>
868 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
870 * COPYING: include the GPL as well, and license code
871 under both AFL and GPL.
873 2002-11-21 Havoc Pennington <hp@redhat.com>
875 * acconfig.h: get rid of this
877 * autogen.sh (run_configure): add --no-configure option
879 * configure.in: remove AC_ARG_PROGRAM to make
880 autoconf complain less. add AC_PREREQ.
881 add AC_DEFINE third arg.
883 2002-11-21 Anders Carlsson <andersca@codefactory.se>
886 Fix references so we can distcheck.
888 2002-11-21 Havoc Pennington <hp@redhat.com>
890 * Initial module creation