1 2003-01-21 Anders Carlsson <andersca@codefactory.se>
3 * dbus/dbus-marshal.c: (_dbus_marshal_double),
4 (_dbus_marshal_int32), (_dbus_marshal_uint32),
5 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
6 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
7 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
8 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
9 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
10 * dbus/dbus-marshal.h:
11 * dbus/dbus-protocol.h:
12 Add support for marshalling and demarshalling integer, double
15 2003-01-21 Anders Carlsson <andersca@codefactory.se>
20 * bus/connection.c: (connection_disconnect_handler):
21 Remove the connection from the bus driver's list.
23 (connection_watch_callback): Dispatch messages.
25 (free_connection_data): Free connection name.
27 (bus_connection_setup): Add connection to the bus driver's list.
28 (bus_connection_remove_owned_service):
29 (bus_connection_set_name), (bus_connection_get_name):
30 Add functions for setting and getting the connection's name.
35 * bus/driver.c: (create_unique_client_name),
36 (bus_driver_handle_hello_message),
37 (bus_driver_send_welcome_message), (bus_driver_message_handler),
38 (bus_driver_add_connection), (bus_driver_remove_connection):
41 * bus/services.c: (bus_service_free):
43 New file that handles communication and registreation with the bus
46 2003-01-21 Anders Carlsson <andersca@codefactory.se>
48 * dbus/dbus-connection.c: (dbus_connection_send_message):
49 Add a new client_serial parameter.
51 (dbus_connection_send_message_with_reply):
52 Remove a @todo since we've implemented the blocking function.
54 (dbus_connection_send_message_with_reply_and_block):
55 New function that sends a message and waits for a reply and
56 then returns the reply.
58 * dbus/dbus-connection.h:
61 * dbus/dbus-errors.c: (dbus_result_to_string):
65 * dbus/dbus-message-internal.h:
66 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
67 (_dbus_message_set_sender), (dbus_message_write_header),
68 (dbus_message_new_reply), (decode_header_data),
69 (_dbus_message_loader_return_buffer), (_dbus_message_test):
70 * dbus/dbus-message.h:
71 Add new functions that set the reply serial and sender.
72 Also marshal and demarshal them correctly and add test.
74 * dbus/dbus-protocol.h:
75 Add new DBUS_MESSAGE_TYPE_SENDER.
78 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
79 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
80 (dbus_connection_hookup_with_g_main):
81 * glib/test-dbus-glib.c: (main):
82 Rewrite to use GIOChannel and remove the GSource crack.
84 * test/echo-client.c: (main):
85 * test/watch.c: (check_messages):
86 Update for changed APIs
88 2003-01-19 Anders Carlsson <andersca@codefactory.se>
90 * dbus/Makefile.am: Add dbus-timeout.[cħ]
92 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
93 Create a DBusTimeoutList.
94 (dbus_connection_set_timeout_functions): Add new function to
97 * dbus/dbus-connection.h: Add public DBusTimeout API.
99 * dbus/dbus-message.c: (dbus_message_get_service):
100 * dbus/dbus-message.h: New function.
102 * dbus/dbus-server.c: Fix small doc typo.
104 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
106 2003-01-19 Anders Carlsson <andersca@codefactory.se>
108 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
109 of the string, just as long as specified.
111 2003-01-19 Havoc Pennington <hp@pobox.com>
113 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
116 * dbus/dbus-server.c (dbus_server_set_max_connections)
117 (dbus_server_get_max_connections, dbus_server_get_n_connections):
118 keep track of current number of connections, and add API for
119 setting a max (but haven't implemented enforcing the max yet)
121 2003-01-18 Havoc Pennington <hp@pobox.com>
123 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
124 reading/writing if read_watch != NULL or write_watch != NULL.
126 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
127 the message loader code to actually load message->header and
128 message->body into the newly-created message.
130 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
133 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
134 (dbus_connection_get_max_message_size)
135 (dbus_connection_set_max_live_messages_size)
136 (dbus_connection_get_max_live_messages_size): implement some
137 resource limitation functions
139 * dbus/dbus-resources.c: new file implementing some of the
140 resource limits stuff
142 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
143 missing docs, add @todo to handle OOM etc.
145 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
148 2003-01-18 Havoc Pennington <hp@pobox.com>
150 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
151 connection if it hasn't been already.
153 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
154 replace with DisconnectFunction.
156 2003-01-18 Havoc Pennington <hp@pobox.com>
158 Building --disable-verbose-mode --disable-asserts --disable-tests
159 cuts the library from 112K to 45K or so
161 * configure.in: check for varargs macro support,
162 add --enable-verbose-mode, --enable-asserts.
164 * dbus/dbus-internals.h (_dbus_assert): support
166 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
168 2003-01-18 Havoc Pennington <hp@pobox.com>
170 * dbus/dbus-test.c: include config.h so that tests actually run
172 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
173 so the failure mode when that assumption fails will be plenty
176 2003-01-18 Havoc Pennington <hp@pobox.com>
178 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
180 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
183 * test/Makefile.am: don't use special variable "TESTS" for echo-*
184 since we don't want to use those in make check
186 2003-01-15 Havoc Pennington <hp@redhat.com>
192 2003-01-15 Havoc Pennington <hp@redhat.com>
194 * test/Makefile.am: fix so that test source code ends up in the
195 distribution on make distcheck
197 2003-01-15 Havoc Pennington <hp@redhat.com>
203 2003-01-15 Havoc Pennington <hp@redhat.com>
205 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
206 fix build when --disable-tests
208 * Makefile.am (EXTRA_DIST): put HACKING in here
210 * HACKING: document procedure for making a tarball release.
212 2003-01-14 Anders Carlsson <andersca@codefactory.se>
214 * bus/connection.c: (connection_error_handler),
215 (bus_connection_setup):
216 * bus/main.c: (main):
217 Make sure that the DBusConnectionData struct is NULLed
218 out to prevent a segfault.
220 * dbus/dbus-errors.c: (dbus_result_to_string):
221 * dbus/dbus-errors.h:
222 * dbus/dbus-message.c: (dbus_message_get_fields),
223 (dbus_message_get_fields_valist), (_dbus_message_test):
224 * dbus/dbus-message.h:
225 Make dbus_message_get_fields return a result code so we can
226 track invalid fields as well as oom.
228 2003-01-11 Havoc Pennington <hp@pobox.com>
230 * configure.in: change --enable-test/--enable-ansi action-if-given
231 to enable_foo=$enableval instead of enable_foo=yes
233 2003-01-08 Havoc Pennington <hp@pobox.com>
235 * dbus/dbus-string.c (_dbus_string_align_length): new function
237 * dbus/dbus-test-main.c: move main() for test app here
239 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
240 symbol to run tests, because dbus-test isn't in the main
243 Code review nitpicks.
245 * dbus/dbus-message.c (dbus_message_write_header): add newlines
246 for people with narrow emacs ;-). Assert client_serial was filled
247 in. Assert message->name != NULL.
248 (dbus_message_append_fields): have "first_field_type" arg separate
249 from va list, needed for C++ binding that also uses varargs IIRC
250 and helps with type safety
251 (dbus_message_new): add @todo about using DBusString to store
252 service/name internally
253 (dbus_message_new): don't leak ->service and ->name on OOM later
255 (dbus_message_unref): free the service name
256 (dbus_message_get_fields): same change to varargs
257 i.e. first_field_type
258 (_dbus_message_loader_return_buffer): assert that the message data
259 is aligned (if not it's a bug in our code). Put in verbose griping
260 about why we set corrupted = TRUE.
261 (decode_header_data): add FIXME that char* is evil. Was going to
262 add FIXME about evil locale-specific string.h strncmp, but just
263 switched to wacky string-as-uint32 optimization. Move check for
264 "no room for field name" above get_const_data_len() to avoid
265 assertion failure in get_const_data_len if we have trailing 2
266 bytes or the like. Check for service and name fields being
267 provided twice. Don't leak service/name on error. Require field
268 names to be aligned to 4 bytes.
270 * dbus/dbus-marshal.c: move byte swap stuff to header
271 (_dbus_pack_int32): uscore-prefix
272 (_dbus_unpack_int32): uscore-prefix
273 (_dbus_unpack_uint32): export
274 (_dbus_demarshal_string): add @todo complaining about use of
276 (_dbus_marshal_get_field_end_pos): add @todo about bad error
277 handling allowing corrupt data to go unchecked
279 2003-01-08 Havoc Pennington <hp@redhat.com>
281 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
282 to the select() as needed for authentication. (should be using
283 _dbus_poll() not select, but for another day)
285 * dbus/dbus.h: include dbus/dbus-protocol.h
287 2003-01-08 Anders Carlsson <andersca@codefactory.se>
289 * dbus/Makefile.am (dbusinclude_HEADERS): Install
292 2003-01-08 Anders Carlsson <andersca@codefactory.se>
294 * dbus/dbus-internals.c: (_dbus_type_to_string):
295 New function that returns a string describing a type.
297 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
298 * dbus/dbus-marshal.h:
299 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
300 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
301 (dbus_message_iter_get_byte_array):
302 * dbus/dbus-message.h:
303 Add new convenience functions for appending and getting message fields.
304 Also add demarshalling routines for byte arrays.
306 2003-01-07 Anders Carlsson <andersca@codefactory.se>
308 * dbus/dbus-connection-internal.h:
309 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
310 (_dbus_connection_get_next_client_serial),
311 (dbus_connection_send_message):
312 * dbus/dbus-internals.h:
313 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
314 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
315 (_dbus_marshal_uint32), (_dbus_demarshal_double),
316 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
317 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
318 (_dbus_verbose_bytes), (_dbus_marshal_test):
319 * dbus/dbus-marshal.h:
320 * dbus/dbus-message-internal.h:
321 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
322 (dbus_message_write_header), (_dbus_message_lock),
323 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
324 (dbus_message_get_name), (dbus_message_append_int32),
325 (dbus_message_append_uint32), (dbus_message_append_double),
326 (dbus_message_append_string), (dbus_message_append_byte_array),
327 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
328 (dbus_message_iter_unref), (dbus_message_iter_has_next),
329 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
330 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
331 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
332 (decode_header_data), (_dbus_message_loader_return_buffer),
333 (message_iter_test), (_dbus_message_test):
334 * dbus/dbus-message.h:
335 * dbus/dbus-protocol.h:
336 * dbus/dbus-test.c: (main):
338 * glib/test-dbus-glib.c: (message_handler), (main):
339 * test/echo-client.c: (main):
340 * test/watch.c: (check_messages):
341 Make messages sendable and receivable for real.
343 2003-01-07 Anders Carlsson <andersca@codefactory.se>
345 * dbus/dbus-marshal.c: (_dbus_marshal_double),
346 (_dbus_marshal_string), (_dbus_marshal_byte_array):
347 * dbus/dbus-message.c: (dbus_message_append_int32),
348 (dbus_message_append_uint32), (dbus_message_append_double),
349 (dbus_message_append_string), (dbus_message_append_byte_array):
350 Handle OOM restoration.
352 2003-01-07 Anders Carlsson <andersca@codefactory.se>
354 * dbus/dbus-marshal.c: (_dbus_marshal_string),
355 (_dbus_demarshal_string), (_dbus_marshal_test):
356 * dbus/dbus-marshal.h:
357 * dbus/dbus-message.c: (dbus_message_get_name),
358 Document these functions.
360 (dbus_message_append_int32), (dbus_message_append_uint32),
361 (dbus_message_append_double), (dbus_message_append_string),
362 (dbus_message_append_byte_array):
363 * dbus/dbus-message.h:
364 Add functions for adding message fields of different types.
366 * dbus/dbus-protocol.h:
367 Add the different types.
369 2003-01-05 Havoc Pennington <hp@pobox.com>
371 * bus/connection.c: implement routines for handling connections,
372 first thing is keeping a list of owned services on each connection
373 and setting up watches etc.
375 * bus/services.c: implement a mapping from service names to lists
378 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
380 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
381 to use static mutexes for global data
383 * dbus/dbus-connection.c (dbus_connection_set_data): add new
384 collection of functions to set/get application-specific data
385 on the DBusConnection.
387 2003-01-04 Havoc Pennington <hp@pobox.com>
389 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
390 (_dbus_poll): new function
392 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
395 * bus/loop.c: initial code for the daemon main loop
397 2003-01-04 Havoc Pennington <hp@pobox.com>
399 * test/watch.c (error_handler): make it safe if the error handler
400 is called multiple times (if we s/error handler/disconnect
401 handler/ we should just guarantee it's called only once)
403 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
404 error handler on disconnect (it's quite possible we should
405 just change the error handler to a "disconnect handler," I'm
406 not sure we have any other meaningful errors)
408 * configure.in: check for getpwnam_r
410 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
411 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
412 mechanism as in SASL spec, using socket credentials
414 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
415 (_dbus_send_credentials_unix_socket): new function
417 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
419 (_dbus_write): only check errno if <0 returned
420 (_dbus_write_two): ditto
422 2003-01-02 Anders Carlsson <andersca@codefactory.se>
424 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
425 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
426 (_dbus_marshal_test):
427 * dbus/dbus-marshal.h:
428 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
429 to _dbus_marshal_utf8_string. Also fix some tests.
431 2002-12-28 Harri Porten <porten@kde.org>
433 * configure.in: added check for C++ compiler and a very cheesy
434 check for the Qt integration
436 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
438 * qt/Makefile.am: added
440 * qt/.cvsignore: added
442 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
443 latter, added #ifdef QT_THREAD_SUPPORT guard.
445 * dbus/Makefile.am: added missing headers for make dist
447 2002-12-28 Kristian Rietveld <kris@gtk.org>
449 * dbus/Makefile.am: fixup export-symbols-regex.
451 2002-12-27 Anders Carlsson <andersca@codefactory.se>
453 * acinclude.m4: Add this file and put the
454 PKG_CHECK_MODULE macro in it.
456 2002-12-27 Anders Carlsson <andersca@codefactory.se>
458 * dbus/dbus-marshal.c: (_dbus_marshal_string),
459 (_dbus_demarshal_double), (_dbus_demarshal_int32),
460 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
461 (_dbus_marshal_test):
462 Make the demarshalling routines align the pos argument.
463 Add string marshalling tests and fix the obvious bugs
466 2002-12-26 Havoc Pennington <hp@pobox.com>
468 * dbus/dbus-auth.c: fixes fixes fixes
470 * dbus/dbus-transport-unix.c: wire up support for
471 encoding/decoding data on the wire
473 * dbus/dbus-auth.c (_dbus_auth_encode_data)
474 (_dbus_auth_decode_data): append to target string
475 instead of nuking it.
477 2002-12-26 Havoc Pennington <hp@pobox.com>
479 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
480 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
483 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
484 avoid swap_bytes() overhead (ignoring possible assembly stuff for
485 now). Main point is because I wanted unpack_uint32 to implement
487 (_dbus_verbose_bytes): new function
489 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
491 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
492 mechanism to handle a corrupt message stream
493 (_dbus_message_loader_new): fix preallocation to only prealloc,
496 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
497 (_dbus_string_test): enhance tests for copy/move and fix the
500 * dbus/dbus-transport-unix.c: Hold references in more places to
501 avoid reentrancy problems
503 * dbus/dbus-transport.c: ditto
505 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
506 leak reference count in no-message case
508 * test/watch.c (do_mainloop): handle adding/removing watches
509 during iteration over the watches. Also, ref the connection/server
510 stored on a watch, so we don't try to mangle a destroyed one.
512 * dbus/dbus-transport-unix.c (do_authentication): perform
515 * dbus/dbus-auth.c (get_state): add a state
516 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
517 (_dbus_auth_get_unused_bytes): append the unused bytes
518 to the passed in string, rather than prepend
520 * dbus/dbus-transport.c (_dbus_transport_init_base): create
521 the auth conversation DBusAuth
523 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
524 (_dbus_transport_new_for_domain_socket): when creating a
525 transport, pass in whether it's a client-side or server-side
526 transport so we know which DBusAuth to create
528 2002-12-03 Havoc Pennington <hp@pobox.com>
530 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
531 _after_ finalizing the derived members
532 (unix_connection_set): unref watch if we fail to add it
534 * dbus/dbus-connection.c (dbus_connection_unref): delete the
535 transport first, so that the connection owned by the
536 transport will be valid as the transport finalizes.
538 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
539 if necessary, and remove watches from the connection.
541 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
543 2002-12-26 Anders Carlsson <andersca@codefactory.se>
545 * dbus/dbus-marshal.c: (_dbus_marshal_string),
546 (_dbus_demarshal_double), (_dbus_demarshal_int32),
547 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
548 (_dbus_marshal_test):
549 * dbus/dbus-marshal.h:
550 Add string marshal functions and have the demarshal functions
551 return the new position.
553 2002-12-25 Havoc Pennington <hp@pobox.com>
555 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
556 it is a simple protocol that just maps directly to SASL.
558 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
559 initial implementation, not actually used yet.
561 * dbus/dbus-string.c (_dbus_string_find): new function
562 (_dbus_string_equal): new function
563 (_dbus_string_base64_encode): new function
564 (_dbus_string_base64_decode): new function
566 2002-12-25 Anders Carlsson <andersca@codefactory.se>
569 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
570 (_dbus_marshal_int32), (_dbus_marshal_uint32),
571 (_dbus_demarshal_double), (_dbus_demarshal_int32),
572 (_dbus_demarshal_uint32), (_dbus_marshal_test):
573 * dbus/dbus-marshal.h:
574 * dbus/dbus-protocol.h:
575 * dbus/dbus-test.c: (main):
577 Add un-optimized marshalling/demarshalling routines.
579 2002-12-25 Harri Porten <porten@kde.org>
581 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
583 2002-12-24 Zack Rusin <zack@kde.org>
585 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
586 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
589 2002-12-24 Havoc Pennington <hp@pobox.com>
591 * glib/dbus-gthread.c: fix include
593 * glib/dbus-glib.h: rename DBusMessageHandler for now.
594 I think glib API needs to change, though, as you don't
595 want to use DBusMessageFunction, you want to use the
596 DBusMessageHandler object. Probably
597 dbus_connection_open_with_g_main_loop()
598 and dbus_connection_setup_g_main_loop() or something like that
599 (but think of better names...) that just create a connection
600 that has watch/timeout functions etc. already set up.
602 * dbus/dbus-connection.c
603 (dbus_connection_send_message_with_reply): new function just to
604 show how the message handler helps us deal with replies.
606 * dbus/dbus-list.c (_dbus_list_remove_last): new function
608 * dbus/dbus-string.c (_dbus_string_test): free a string that
611 * dbus/dbus-hash.c: use memory pools for the hash entries
612 (rebuild_table): be more paranoid about overflow, and
613 shrink table when we can
614 (_dbus_hash_test): reduce number of sprintfs and write
615 valid C89. Add tests for case where we grow and then
616 shrink the hash table.
618 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
620 * dbus/dbus-connection.c (dbus_connection_register_handler)
621 (dbus_connection_unregister_handler): new functions
623 * dbus/dbus-message.c (dbus_message_get_name): new
625 * dbus/dbus-list.c: fix docs typo
627 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
628 an object representing a handler for messages.
630 2002-12-16 Anders Carlsson <andersca@codefactory.se>
633 * glib/dbus-gthread.c: (dbus_gthread_init):
634 Don't use the gdbus prefix for public functions.
636 2002-12-16 Anders Carlsson <andersca@codefactory.se>
640 Add GLib checks and fixup .pc files
644 * glib/dbus-gmain.c: (gdbus_connection_prepare),
645 (gdbus_connection_check), (gdbus_connection_dispatch),
646 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
647 (dbus_connection_gsource_new):
648 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
649 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
650 * glib/test-dbus-glib.c: (message_handler), (main):
653 2002-12-15 Harri Porten <porten@kde.org>
655 * autogen.sh: check for libtoolize before attempting to use it
657 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
660 * .cvsignore: ignore more stamp files
662 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
664 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
665 without make install.
667 2002-12-15 Havoc Pennington <hp@pobox.com>
669 * dbus/dbus-threads.c: add thread stubs that a higher library
670 layer can fill in. e.g. the GLib wrapper might fill them in with
671 GThread stuff. We still need to use this thread API to
672 thread-safe-ize the library.
674 2002-12-12 Havoc Pennington <hp@pobox.com>
676 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
677 below new interfaces and include fewer system headers.
679 * dbus/dbus-sysdeps.c (_dbus_read): new function
680 (_dbus_write): new function
681 (_dbus_write_two): new function
682 (_dbus_connect_unix_socket): new function
683 (_dbus_listen_unix_socket): new function
685 * dbus/dbus-message-internal.h: change interfaces to use
688 2002-12-11 Havoc Pennington <hp@pobox.com>
690 * dbus/dbus-types.h: add dbus_unichar
692 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
694 * dbus/dbus-connection.c (dbus_connection_send_message): return
697 * dbus/dbus-transport.c: include dbus-watch.h
699 * dbus/dbus-connection.c: include dbus-message-internal.h
701 * HACKING: add file with coding guidelines stuff.
703 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
704 handling here, for security purposes (as in vsftpd). Not actually
705 using this class yet.
707 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
708 system/libc usage here, as in vsftpd, for ease of auditing (and
709 should also simplify portability). Haven't actually moved all the
710 system/libc usage into here yet.
712 2002-11-25 Havoc Pennington <hp@pobox.com>
714 * dbus/dbus-internals.c (_dbus_verbose): fix to not
715 always print the first verbose message.
717 2002-11-24 Havoc Pennington <hp@pobox.com>
719 * test/echo-client.c, test/echo-server.c: cheesy test
722 * configure.in (AC_CHECK_FUNCS): check for writev
724 * dbus/dbus-message.c (_dbus_message_get_network_data): new
727 * dbus/dbus-list.c (_dbus_list_foreach): new function
729 * dbus/dbus-internals.c (_dbus_verbose): new function
731 * dbus/dbus-server.c, dbus/dbus-server.h: public object
732 representing a server that listens for connections.
734 * dbus/.cvsignore: create
736 * dbus/dbus-errors.h, dbus/dbus-errors.c:
737 public API for reporting errors
739 * dbus/dbus-connection.h, dbus/dbus-connection.c:
740 public object representing a connection that
741 sends/receives messages. (Same object used for
742 both client and server.)
744 * dbus/dbus-transport.h, dbus/dbus-transport.c:
745 Basic abstraction for different kinds of stream
746 that we might read/write messages from.
748 2002-11-23 Havoc Pennington <hp@pobox.com>
750 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
753 * dbus/dbus-test.c (main): add list test, and include
754 dbus-test.h as intended
756 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
757 (_dbus_hash_table_remove_int): return value indicates
758 whether the entry existed to remove
760 * dbus/dbus-list.c: add linked list utility class,
763 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
766 2002-11-23 Havoc Pennington <hp@pobox.com>
768 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
769 DBUS_END_DECLS to nothing, that should fix this once and for all
771 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
773 * dbus/dbus-message.c, dbus/dbus-hash.c:
774 add some missing @brief
776 2002-11-23 Havoc Pennington <hp@pobox.com>
778 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
779 to avoid confusing Doxygen
781 * dbus/dbus-hash.c: @} not }@
783 * dbus/dbus-message.c (struct DBusMessage): split out
786 2002-11-23 Havoc Pennington <hp@pobox.com>
788 * configure.in: pile on more warning flags if using gcc
790 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
791 to document static functions
793 * configure.in: add summary to end of configure so it
794 looks nice and attractive
796 * dbus/dbus-hash.c: finish implementation and write unit
799 * configure.in: add --enable-tests to enable unit tests
801 * dbus/dbus-test.c: test program to run unit tests
802 for all files in dbus/*, initially runs a test for
805 * dbus/dbus-internals.h: file to hold some internal utility stuff
807 2002-11-22 Havoc Pennington <hp@redhat.com>
809 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
810 "ported" away from Tcl
812 * dbus/dbus-types.h: header for types such as dbus_bool_t
814 2002-11-22 Havoc Pennington <hp@redhat.com>
816 * dbus/dbus.h: fixups for doc warnings
818 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
820 (QUIET): make it quiet so we can see warnings
822 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
824 2002-11-22 Havoc Pennington <hp@redhat.com>
826 * Makefile.am: include "Doxyfile" target in all-local
828 * configure.in: generate the Doxyfile
830 * Doxyfile.in: move Doxyfile here, so we can use
831 configure to generate a Doxyfile with the right
834 2002-11-22 Havoc Pennington <hp@redhat.com>
836 * dbus/dbus-message.c: move inline docs into .c file
838 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
839 so all docs are under doc/
840 (MAN_EXTENSION): generate man pages. Use extension
841 ".3dbus" which matches ".3qt" on my system,
842 I guess this is OK, I don't know really.
843 (FILE_PATTERNS): look for .c files not .h, makes sense
846 2002-11-22 Havoc Pennington <hp@pobox.com>
848 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
849 because any app can be a server, and any app can be a client,
850 the bus is a special kind of server.
852 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
854 * Doxyfile : adding. Still needs Makefile rules to be generated
855 automatically (just run "doxygen" in the toplevel dir for now to
858 * dbus/dbus-message.h : Adding sample docs (javadoc since
859 resembles gtk-doc a little more)
861 * dbus/dbus.h : Adding sample docs
863 2002-11-21 Havoc Pennington <hp@redhat.com>
865 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
866 so we can allow ourselves to include files directly,
867 instead of having to use dbus.h
869 * dbus/dbus.h: fill in
871 * dbus/dbus-message.h: sketch out a sample header file.
872 Include griping if you include it directly instead of
875 * dbus/dbus-macros.h: new file with macros for extern "C",
876 TRUE/FALSE, NULL, etc.
878 * doc/file-boilerplate.c: put include guards in here
880 2002-11-21 Havoc Pennington <hp@redhat.com>
882 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
884 * COPYING: include the GPL as well, and license code
885 under both AFL and GPL.
887 2002-11-21 Havoc Pennington <hp@redhat.com>
889 * acconfig.h: get rid of this
891 * autogen.sh (run_configure): add --no-configure option
893 * configure.in: remove AC_ARG_PROGRAM to make
894 autoconf complain less. add AC_PREREQ.
895 add AC_DEFINE third arg.
897 2002-11-21 Anders Carlsson <andersca@codefactory.se>
900 Fix references so we can distcheck.
902 2002-11-21 Havoc Pennington <hp@redhat.com>
904 * Initial module creation