1 2003-01-21 Anders Carlsson <andersca@codefactory.se>
3 * dbus/dbus-connection.c: (dbus_connection_send_message):
4 Add a new client_serial parameter.
6 (dbus_connection_send_message_with_reply):
7 Remove a @todo since we've implemented the blocking function.
9 (dbus_connection_send_message_with_reply_and_block):
10 New function that sends a message and waits for a reply and
11 then returns the reply.
13 * dbus/dbus-connection.h:
16 * dbus/dbus-errors.c: (dbus_result_to_string):
20 * dbus/dbus-message-internal.h:
21 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
22 (_dbus_message_set_sender), (dbus_message_write_header),
23 (dbus_message_new_reply), (decode_header_data),
24 (_dbus_message_loader_return_buffer), (_dbus_message_test):
25 * dbus/dbus-message.h:
26 Add new functions that set the reply serial and sender.
27 Also marshal and demarshal them correctly and add test.
29 * dbus/dbus-protocol.h:
30 Add new DBUS_MESSAGE_TYPE_SENDER.
33 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
34 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
35 (dbus_connection_hookup_with_g_main):
36 * glib/test-dbus-glib.c: (main):
37 Rewrite to use GIOChannel and remove the GSource crack.
39 * test/echo-client.c: (main):
40 * test/watch.c: (check_messages):
41 Update for changed APIs
43 2003-01-19 Anders Carlsson <andersca@codefactory.se>
45 * dbus/Makefile.am: Add dbus-timeout.[cħ]
47 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
48 Create a DBusTimeoutList.
49 (dbus_connection_set_timeout_functions): Add new function to
52 * dbus/dbus-connection.h: Add public DBusTimeout API.
54 * dbus/dbus-message.c: (dbus_message_get_service):
55 * dbus/dbus-message.h: New function.
57 * dbus/dbus-server.c: Fix small doc typo.
59 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
61 2003-01-19 Anders Carlsson <andersca@codefactory.se>
63 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
64 of the string, just as long as specified.
66 2003-01-19 Havoc Pennington <hp@pobox.com>
68 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
71 * dbus/dbus-server.c (dbus_server_set_max_connections)
72 (dbus_server_get_max_connections, dbus_server_get_n_connections):
73 keep track of current number of connections, and add API for
74 setting a max (but haven't implemented enforcing the max yet)
76 2003-01-18 Havoc Pennington <hp@pobox.com>
78 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
79 reading/writing if read_watch != NULL or write_watch != NULL.
81 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
82 the message loader code to actually load message->header and
83 message->body into the newly-created message.
85 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
88 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
89 (dbus_connection_get_max_message_size)
90 (dbus_connection_set_max_live_messages_size)
91 (dbus_connection_get_max_live_messages_size): implement some
92 resource limitation functions
94 * dbus/dbus-resources.c: new file implementing some of the
97 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
98 missing docs, add @todo to handle OOM etc.
100 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
103 2003-01-18 Havoc Pennington <hp@pobox.com>
105 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
106 connection if it hasn't been already.
108 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
109 replace with DisconnectFunction.
111 2003-01-18 Havoc Pennington <hp@pobox.com>
113 Building --disable-verbose-mode --disable-asserts --disable-tests
114 cuts the library from 112K to 45K or so
116 * configure.in: check for varargs macro support,
117 add --enable-verbose-mode, --enable-asserts.
119 * dbus/dbus-internals.h (_dbus_assert): support
121 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
123 2003-01-18 Havoc Pennington <hp@pobox.com>
125 * dbus/dbus-test.c: include config.h so that tests actually run
127 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
128 so the failure mode when that assumption fails will be plenty
131 2003-01-18 Havoc Pennington <hp@pobox.com>
133 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
135 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
138 * test/Makefile.am: don't use special variable "TESTS" for echo-*
139 since we don't want to use those in make check
141 2003-01-15 Havoc Pennington <hp@redhat.com>
147 2003-01-15 Havoc Pennington <hp@redhat.com>
149 * test/Makefile.am: fix so that test source code ends up in the
150 distribution on make distcheck
152 2003-01-15 Havoc Pennington <hp@redhat.com>
158 2003-01-15 Havoc Pennington <hp@redhat.com>
160 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
161 fix build when --disable-tests
163 * Makefile.am (EXTRA_DIST): put HACKING in here
165 * HACKING: document procedure for making a tarball release.
167 2003-01-14 Anders Carlsson <andersca@codefactory.se>
169 * bus/connection.c: (connection_error_handler),
170 (bus_connection_setup):
171 * bus/main.c: (main):
172 Make sure that the DBusConnectionData struct is NULLed
173 out to prevent a segfault.
175 * dbus/dbus-errors.c: (dbus_result_to_string):
176 * dbus/dbus-errors.h:
177 * dbus/dbus-message.c: (dbus_message_get_fields),
178 (dbus_message_get_fields_valist), (_dbus_message_test):
179 * dbus/dbus-message.h:
180 Make dbus_message_get_fields return a result code so we can
181 track invalid fields as well as oom.
183 2003-01-11 Havoc Pennington <hp@pobox.com>
185 * configure.in: change --enable-test/--enable-ansi action-if-given
186 to enable_foo=$enableval instead of enable_foo=yes
188 2003-01-08 Havoc Pennington <hp@pobox.com>
190 * dbus/dbus-string.c (_dbus_string_align_length): new function
192 * dbus/dbus-test-main.c: move main() for test app here
194 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
195 symbol to run tests, because dbus-test isn't in the main
198 Code review nitpicks.
200 * dbus/dbus-message.c (dbus_message_write_header): add newlines
201 for people with narrow emacs ;-). Assert client_serial was filled
202 in. Assert message->name != NULL.
203 (dbus_message_append_fields): have "first_field_type" arg separate
204 from va list, needed for C++ binding that also uses varargs IIRC
205 and helps with type safety
206 (dbus_message_new): add @todo about using DBusString to store
207 service/name internally
208 (dbus_message_new): don't leak ->service and ->name on OOM later
210 (dbus_message_unref): free the service name
211 (dbus_message_get_fields): same change to varargs
212 i.e. first_field_type
213 (_dbus_message_loader_return_buffer): assert that the message data
214 is aligned (if not it's a bug in our code). Put in verbose griping
215 about why we set corrupted = TRUE.
216 (decode_header_data): add FIXME that char* is evil. Was going to
217 add FIXME about evil locale-specific string.h strncmp, but just
218 switched to wacky string-as-uint32 optimization. Move check for
219 "no room for field name" above get_const_data_len() to avoid
220 assertion failure in get_const_data_len if we have trailing 2
221 bytes or the like. Check for service and name fields being
222 provided twice. Don't leak service/name on error. Require field
223 names to be aligned to 4 bytes.
225 * dbus/dbus-marshal.c: move byte swap stuff to header
226 (_dbus_pack_int32): uscore-prefix
227 (_dbus_unpack_int32): uscore-prefix
228 (_dbus_unpack_uint32): export
229 (_dbus_demarshal_string): add @todo complaining about use of
231 (_dbus_marshal_get_field_end_pos): add @todo about bad error
232 handling allowing corrupt data to go unchecked
234 2003-01-08 Havoc Pennington <hp@redhat.com>
236 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
237 to the select() as needed for authentication. (should be using
238 _dbus_poll() not select, but for another day)
240 * dbus/dbus.h: include dbus/dbus-protocol.h
242 2003-01-08 Anders Carlsson <andersca@codefactory.se>
244 * dbus/Makefile.am (dbusinclude_HEADERS): Install
247 2003-01-08 Anders Carlsson <andersca@codefactory.se>
249 * dbus/dbus-internals.c: (_dbus_type_to_string):
250 New function that returns a string describing a type.
252 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
253 * dbus/dbus-marshal.h:
254 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
255 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
256 (dbus_message_iter_get_byte_array):
257 * dbus/dbus-message.h:
258 Add new convenience functions for appending and getting message fields.
259 Also add demarshalling routines for byte arrays.
261 2003-01-07 Anders Carlsson <andersca@codefactory.se>
263 * dbus/dbus-connection-internal.h:
264 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
265 (_dbus_connection_get_next_client_serial),
266 (dbus_connection_send_message):
267 * dbus/dbus-internals.h:
268 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
269 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
270 (_dbus_marshal_uint32), (_dbus_demarshal_double),
271 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
272 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
273 (_dbus_verbose_bytes), (_dbus_marshal_test):
274 * dbus/dbus-marshal.h:
275 * dbus/dbus-message-internal.h:
276 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
277 (dbus_message_write_header), (_dbus_message_lock),
278 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
279 (dbus_message_get_name), (dbus_message_append_int32),
280 (dbus_message_append_uint32), (dbus_message_append_double),
281 (dbus_message_append_string), (dbus_message_append_byte_array),
282 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
283 (dbus_message_iter_unref), (dbus_message_iter_has_next),
284 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
285 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
286 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
287 (decode_header_data), (_dbus_message_loader_return_buffer),
288 (message_iter_test), (_dbus_message_test):
289 * dbus/dbus-message.h:
290 * dbus/dbus-protocol.h:
291 * dbus/dbus-test.c: (main):
293 * glib/test-dbus-glib.c: (message_handler), (main):
294 * test/echo-client.c: (main):
295 * test/watch.c: (check_messages):
296 Make messages sendable and receivable for real.
298 2003-01-07 Anders Carlsson <andersca@codefactory.se>
300 * dbus/dbus-marshal.c: (_dbus_marshal_double),
301 (_dbus_marshal_string), (_dbus_marshal_byte_array):
302 * dbus/dbus-message.c: (dbus_message_append_int32),
303 (dbus_message_append_uint32), (dbus_message_append_double),
304 (dbus_message_append_string), (dbus_message_append_byte_array):
305 Handle OOM restoration.
307 2003-01-07 Anders Carlsson <andersca@codefactory.se>
309 * dbus/dbus-marshal.c: (_dbus_marshal_string),
310 (_dbus_demarshal_string), (_dbus_marshal_test):
311 * dbus/dbus-marshal.h:
312 * dbus/dbus-message.c: (dbus_message_get_name),
313 Document these functions.
315 (dbus_message_append_int32), (dbus_message_append_uint32),
316 (dbus_message_append_double), (dbus_message_append_string),
317 (dbus_message_append_byte_array):
318 * dbus/dbus-message.h:
319 Add functions for adding message fields of different types.
321 * dbus/dbus-protocol.h:
322 Add the different types.
324 2003-01-05 Havoc Pennington <hp@pobox.com>
326 * bus/connection.c: implement routines for handling connections,
327 first thing is keeping a list of owned services on each connection
328 and setting up watches etc.
330 * bus/services.c: implement a mapping from service names to lists
333 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
335 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
336 to use static mutexes for global data
338 * dbus/dbus-connection.c (dbus_connection_set_data): add new
339 collection of functions to set/get application-specific data
340 on the DBusConnection.
342 2003-01-04 Havoc Pennington <hp@pobox.com>
344 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
345 (_dbus_poll): new function
347 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
350 * bus/loop.c: initial code for the daemon main loop
352 2003-01-04 Havoc Pennington <hp@pobox.com>
354 * test/watch.c (error_handler): make it safe if the error handler
355 is called multiple times (if we s/error handler/disconnect
356 handler/ we should just guarantee it's called only once)
358 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
359 error handler on disconnect (it's quite possible we should
360 just change the error handler to a "disconnect handler," I'm
361 not sure we have any other meaningful errors)
363 * configure.in: check for getpwnam_r
365 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
366 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
367 mechanism as in SASL spec, using socket credentials
369 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
370 (_dbus_send_credentials_unix_socket): new function
372 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
374 (_dbus_write): only check errno if <0 returned
375 (_dbus_write_two): ditto
377 2003-01-02 Anders Carlsson <andersca@codefactory.se>
379 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
380 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
381 (_dbus_marshal_test):
382 * dbus/dbus-marshal.h:
383 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
384 to _dbus_marshal_utf8_string. Also fix some tests.
386 2002-12-28 Harri Porten <porten@kde.org>
388 * configure.in: added check for C++ compiler and a very cheesy
389 check for the Qt integration
391 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
393 * qt/Makefile.am: added
395 * qt/.cvsignore: added
397 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
398 latter, added #ifdef QT_THREAD_SUPPORT guard.
400 * dbus/Makefile.am: added missing headers for make dist
402 2002-12-28 Kristian Rietveld <kris@gtk.org>
404 * dbus/Makefile.am: fixup export-symbols-regex.
406 2002-12-27 Anders Carlsson <andersca@codefactory.se>
408 * acinclude.m4: Add this file and put the
409 PKG_CHECK_MODULE macro in it.
411 2002-12-27 Anders Carlsson <andersca@codefactory.se>
413 * dbus/dbus-marshal.c: (_dbus_marshal_string),
414 (_dbus_demarshal_double), (_dbus_demarshal_int32),
415 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
416 (_dbus_marshal_test):
417 Make the demarshalling routines align the pos argument.
418 Add string marshalling tests and fix the obvious bugs
421 2002-12-26 Havoc Pennington <hp@pobox.com>
423 * dbus/dbus-auth.c: fixes fixes fixes
425 * dbus/dbus-transport-unix.c: wire up support for
426 encoding/decoding data on the wire
428 * dbus/dbus-auth.c (_dbus_auth_encode_data)
429 (_dbus_auth_decode_data): append to target string
430 instead of nuking it.
432 2002-12-26 Havoc Pennington <hp@pobox.com>
434 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
435 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
438 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
439 avoid swap_bytes() overhead (ignoring possible assembly stuff for
440 now). Main point is because I wanted unpack_uint32 to implement
442 (_dbus_verbose_bytes): new function
444 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
446 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
447 mechanism to handle a corrupt message stream
448 (_dbus_message_loader_new): fix preallocation to only prealloc,
451 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
452 (_dbus_string_test): enhance tests for copy/move and fix the
455 * dbus/dbus-transport-unix.c: Hold references in more places to
456 avoid reentrancy problems
458 * dbus/dbus-transport.c: ditto
460 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
461 leak reference count in no-message case
463 * test/watch.c (do_mainloop): handle adding/removing watches
464 during iteration over the watches. Also, ref the connection/server
465 stored on a watch, so we don't try to mangle a destroyed one.
467 * dbus/dbus-transport-unix.c (do_authentication): perform
470 * dbus/dbus-auth.c (get_state): add a state
471 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
472 (_dbus_auth_get_unused_bytes): append the unused bytes
473 to the passed in string, rather than prepend
475 * dbus/dbus-transport.c (_dbus_transport_init_base): create
476 the auth conversation DBusAuth
478 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
479 (_dbus_transport_new_for_domain_socket): when creating a
480 transport, pass in whether it's a client-side or server-side
481 transport so we know which DBusAuth to create
483 2002-12-03 Havoc Pennington <hp@pobox.com>
485 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
486 _after_ finalizing the derived members
487 (unix_connection_set): unref watch if we fail to add it
489 * dbus/dbus-connection.c (dbus_connection_unref): delete the
490 transport first, so that the connection owned by the
491 transport will be valid as the transport finalizes.
493 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
494 if necessary, and remove watches from the connection.
496 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
498 2002-12-26 Anders Carlsson <andersca@codefactory.se>
500 * dbus/dbus-marshal.c: (_dbus_marshal_string),
501 (_dbus_demarshal_double), (_dbus_demarshal_int32),
502 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
503 (_dbus_marshal_test):
504 * dbus/dbus-marshal.h:
505 Add string marshal functions and have the demarshal functions
506 return the new position.
508 2002-12-25 Havoc Pennington <hp@pobox.com>
510 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
511 it is a simple protocol that just maps directly to SASL.
513 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
514 initial implementation, not actually used yet.
516 * dbus/dbus-string.c (_dbus_string_find): new function
517 (_dbus_string_equal): new function
518 (_dbus_string_base64_encode): new function
519 (_dbus_string_base64_decode): new function
521 2002-12-25 Anders Carlsson <andersca@codefactory.se>
524 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
525 (_dbus_marshal_int32), (_dbus_marshal_uint32),
526 (_dbus_demarshal_double), (_dbus_demarshal_int32),
527 (_dbus_demarshal_uint32), (_dbus_marshal_test):
528 * dbus/dbus-marshal.h:
529 * dbus/dbus-protocol.h:
530 * dbus/dbus-test.c: (main):
532 Add un-optimized marshalling/demarshalling routines.
534 2002-12-25 Harri Porten <porten@kde.org>
536 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
538 2002-12-24 Zack Rusin <zack@kde.org>
540 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
541 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
544 2002-12-24 Havoc Pennington <hp@pobox.com>
546 * glib/dbus-gthread.c: fix include
548 * glib/dbus-glib.h: rename DBusMessageHandler for now.
549 I think glib API needs to change, though, as you don't
550 want to use DBusMessageFunction, you want to use the
551 DBusMessageHandler object. Probably
552 dbus_connection_open_with_g_main_loop()
553 and dbus_connection_setup_g_main_loop() or something like that
554 (but think of better names...) that just create a connection
555 that has watch/timeout functions etc. already set up.
557 * dbus/dbus-connection.c
558 (dbus_connection_send_message_with_reply): new function just to
559 show how the message handler helps us deal with replies.
561 * dbus/dbus-list.c (_dbus_list_remove_last): new function
563 * dbus/dbus-string.c (_dbus_string_test): free a string that
566 * dbus/dbus-hash.c: use memory pools for the hash entries
567 (rebuild_table): be more paranoid about overflow, and
568 shrink table when we can
569 (_dbus_hash_test): reduce number of sprintfs and write
570 valid C89. Add tests for case where we grow and then
571 shrink the hash table.
573 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
575 * dbus/dbus-connection.c (dbus_connection_register_handler)
576 (dbus_connection_unregister_handler): new functions
578 * dbus/dbus-message.c (dbus_message_get_name): new
580 * dbus/dbus-list.c: fix docs typo
582 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
583 an object representing a handler for messages.
585 2002-12-16 Anders Carlsson <andersca@codefactory.se>
588 * glib/dbus-gthread.c: (dbus_gthread_init):
589 Don't use the gdbus prefix for public functions.
591 2002-12-16 Anders Carlsson <andersca@codefactory.se>
595 Add GLib checks and fixup .pc files
599 * glib/dbus-gmain.c: (gdbus_connection_prepare),
600 (gdbus_connection_check), (gdbus_connection_dispatch),
601 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
602 (dbus_connection_gsource_new):
603 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
604 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
605 * glib/test-dbus-glib.c: (message_handler), (main):
608 2002-12-15 Harri Porten <porten@kde.org>
610 * autogen.sh: check for libtoolize before attempting to use it
612 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
615 * .cvsignore: ignore more stamp files
617 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
619 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
620 without make install.
622 2002-12-15 Havoc Pennington <hp@pobox.com>
624 * dbus/dbus-threads.c: add thread stubs that a higher library
625 layer can fill in. e.g. the GLib wrapper might fill them in with
626 GThread stuff. We still need to use this thread API to
627 thread-safe-ize the library.
629 2002-12-12 Havoc Pennington <hp@pobox.com>
631 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
632 below new interfaces and include fewer system headers.
634 * dbus/dbus-sysdeps.c (_dbus_read): new function
635 (_dbus_write): new function
636 (_dbus_write_two): new function
637 (_dbus_connect_unix_socket): new function
638 (_dbus_listen_unix_socket): new function
640 * dbus/dbus-message-internal.h: change interfaces to use
643 2002-12-11 Havoc Pennington <hp@pobox.com>
645 * dbus/dbus-types.h: add dbus_unichar
647 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
649 * dbus/dbus-connection.c (dbus_connection_send_message): return
652 * dbus/dbus-transport.c: include dbus-watch.h
654 * dbus/dbus-connection.c: include dbus-message-internal.h
656 * HACKING: add file with coding guidelines stuff.
658 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
659 handling here, for security purposes (as in vsftpd). Not actually
660 using this class yet.
662 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
663 system/libc usage here, as in vsftpd, for ease of auditing (and
664 should also simplify portability). Haven't actually moved all the
665 system/libc usage into here yet.
667 2002-11-25 Havoc Pennington <hp@pobox.com>
669 * dbus/dbus-internals.c (_dbus_verbose): fix to not
670 always print the first verbose message.
672 2002-11-24 Havoc Pennington <hp@pobox.com>
674 * test/echo-client.c, test/echo-server.c: cheesy test
677 * configure.in (AC_CHECK_FUNCS): check for writev
679 * dbus/dbus-message.c (_dbus_message_get_network_data): new
682 * dbus/dbus-list.c (_dbus_list_foreach): new function
684 * dbus/dbus-internals.c (_dbus_verbose): new function
686 * dbus/dbus-server.c, dbus/dbus-server.h: public object
687 representing a server that listens for connections.
689 * dbus/.cvsignore: create
691 * dbus/dbus-errors.h, dbus/dbus-errors.c:
692 public API for reporting errors
694 * dbus/dbus-connection.h, dbus/dbus-connection.c:
695 public object representing a connection that
696 sends/receives messages. (Same object used for
697 both client and server.)
699 * dbus/dbus-transport.h, dbus/dbus-transport.c:
700 Basic abstraction for different kinds of stream
701 that we might read/write messages from.
703 2002-11-23 Havoc Pennington <hp@pobox.com>
705 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
708 * dbus/dbus-test.c (main): add list test, and include
709 dbus-test.h as intended
711 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
712 (_dbus_hash_table_remove_int): return value indicates
713 whether the entry existed to remove
715 * dbus/dbus-list.c: add linked list utility class,
718 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
721 2002-11-23 Havoc Pennington <hp@pobox.com>
723 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
724 DBUS_END_DECLS to nothing, that should fix this once and for all
726 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
728 * dbus/dbus-message.c, dbus/dbus-hash.c:
729 add some missing @brief
731 2002-11-23 Havoc Pennington <hp@pobox.com>
733 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
734 to avoid confusing Doxygen
736 * dbus/dbus-hash.c: @} not }@
738 * dbus/dbus-message.c (struct DBusMessage): split out
741 2002-11-23 Havoc Pennington <hp@pobox.com>
743 * configure.in: pile on more warning flags if using gcc
745 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
746 to document static functions
748 * configure.in: add summary to end of configure so it
749 looks nice and attractive
751 * dbus/dbus-hash.c: finish implementation and write unit
754 * configure.in: add --enable-tests to enable unit tests
756 * dbus/dbus-test.c: test program to run unit tests
757 for all files in dbus/*, initially runs a test for
760 * dbus/dbus-internals.h: file to hold some internal utility stuff
762 2002-11-22 Havoc Pennington <hp@redhat.com>
764 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
765 "ported" away from Tcl
767 * dbus/dbus-types.h: header for types such as dbus_bool_t
769 2002-11-22 Havoc Pennington <hp@redhat.com>
771 * dbus/dbus.h: fixups for doc warnings
773 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
775 (QUIET): make it quiet so we can see warnings
777 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
779 2002-11-22 Havoc Pennington <hp@redhat.com>
781 * Makefile.am: include "Doxyfile" target in all-local
783 * configure.in: generate the Doxyfile
785 * Doxyfile.in: move Doxyfile here, so we can use
786 configure to generate a Doxyfile with the right
789 2002-11-22 Havoc Pennington <hp@redhat.com>
791 * dbus/dbus-message.c: move inline docs into .c file
793 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
794 so all docs are under doc/
795 (MAN_EXTENSION): generate man pages. Use extension
796 ".3dbus" which matches ".3qt" on my system,
797 I guess this is OK, I don't know really.
798 (FILE_PATTERNS): look for .c files not .h, makes sense
801 2002-11-22 Havoc Pennington <hp@pobox.com>
803 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
804 because any app can be a server, and any app can be a client,
805 the bus is a special kind of server.
807 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
809 * Doxyfile : adding. Still needs Makefile rules to be generated
810 automatically (just run "doxygen" in the toplevel dir for now to
813 * dbus/dbus-message.h : Adding sample docs (javadoc since
814 resembles gtk-doc a little more)
816 * dbus/dbus.h : Adding sample docs
818 2002-11-21 Havoc Pennington <hp@redhat.com>
820 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
821 so we can allow ourselves to include files directly,
822 instead of having to use dbus.h
824 * dbus/dbus.h: fill in
826 * dbus/dbus-message.h: sketch out a sample header file.
827 Include griping if you include it directly instead of
830 * dbus/dbus-macros.h: new file with macros for extern "C",
831 TRUE/FALSE, NULL, etc.
833 * doc/file-boilerplate.c: put include guards in here
835 2002-11-21 Havoc Pennington <hp@redhat.com>
837 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
839 * COPYING: include the GPL as well, and license code
840 under both AFL and GPL.
842 2002-11-21 Havoc Pennington <hp@redhat.com>
844 * acconfig.h: get rid of this
846 * autogen.sh (run_configure): add --no-configure option
848 * configure.in: remove AC_ARG_PROGRAM to make
849 autoconf complain less. add AC_PREREQ.
850 add AC_DEFINE third arg.
852 2002-11-21 Anders Carlsson <andersca@codefactory.se>
855 Fix references so we can distcheck.
857 2002-11-21 Havoc Pennington <hp@redhat.com>
859 * Initial module creation