2003-01-18 Havoc Pennington <hp@pobox.com>
[platform/upstream/dbus.git] / ChangeLog
1 2003-01-18  Havoc Pennington  <hp@pobox.com>
2
3         Building --disable-verbose-mode --disable-asserts --disable-tests
4         cuts the library from 112K to 45K or so
5         
6         * configure.in: check for varargs macro support, 
7         add --enable-verbose-mode, --enable-asserts. 
8
9         * dbus/dbus-internals.h (_dbus_assert): support
10         DBUS_DISABLE_ASSERT
11         (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
12
13 2003-01-18  Havoc Pennington  <hp@pobox.com>
14
15         * dbus/dbus-test.c: include config.h so that tests actually run
16
17         * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
18         so the failure mode when that assumption fails will be plenty
19         obvious.
20
21 2003-01-18  Havoc Pennington  <hp@pobox.com>
22
23         * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
24
25         * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
26         the distribution
27
28         * test/Makefile.am: don't use special variable "TESTS" for echo-*
29         since we don't want to use those in make check
30
31 2003-01-15  Havoc Pennington  <hp@redhat.com>
32
33         Release 0.2
34         
35         * NEWS: update
36
37 2003-01-15  Havoc Pennington  <hp@redhat.com>
38
39         * test/Makefile.am: fix so that test source code ends up in the
40         distribution on make distcheck
41
42 2003-01-15  Havoc Pennington  <hp@redhat.com>
43
44         Release 0.1.
45         
46         * NEWS: update  
47
48 2003-01-15  Havoc Pennington  <hp@redhat.com>
49
50         * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
51         fix build when --disable-tests
52
53         * Makefile.am (EXTRA_DIST): put HACKING in here
54
55         * HACKING: document procedure for making a tarball release.
56
57 2003-01-14  Anders Carlsson  <andersca@codefactory.se>
58
59         * bus/connection.c: (connection_error_handler),
60         (bus_connection_setup):
61         * bus/main.c: (main):
62         Make sure that the DBusConnectionData struct is NULLed
63         out to prevent a segfault.
64         
65         * dbus/dbus-errors.c: (dbus_result_to_string):
66         * dbus/dbus-errors.h:
67         * dbus/dbus-message.c: (dbus_message_get_fields),
68         (dbus_message_get_fields_valist), (_dbus_message_test):
69         * dbus/dbus-message.h:
70         Make dbus_message_get_fields return a result code so we can
71         track invalid fields as well as oom.
72         
73 2003-01-11  Havoc Pennington  <hp@pobox.com>
74
75         * configure.in: change --enable-test/--enable-ansi action-if-given
76         to enable_foo=$enableval instead of enable_foo=yes
77
78 2003-01-08  Havoc Pennington  <hp@pobox.com>
79
80         * dbus/dbus-string.c (_dbus_string_align_length): new function
81
82         * dbus/dbus-test-main.c: move main() for test app here
83         * dbus/dbus-test.c
84         (dbus_internal_symbol_do_not_use_run_tests): we have to export a
85         symbol to run tests, because dbus-test isn't in the main 
86         library
87
88         Code review nitpicks.
89         
90         * dbus/dbus-message.c (dbus_message_write_header): add newlines
91         for people with narrow emacs ;-). Assert client_serial was filled
92         in. Assert message->name != NULL.
93         (dbus_message_append_fields): have "first_field_type" arg separate
94         from va list, needed for C++ binding that also uses varargs IIRC
95         and helps with type safety
96         (dbus_message_new): add @todo about using DBusString to store
97         service/name internally
98         (dbus_message_new): don't leak ->service and ->name on OOM later
99         in the function
100         (dbus_message_unref): free the service name
101         (dbus_message_get_fields): same change to varargs
102         i.e. first_field_type
103         (_dbus_message_loader_return_buffer): assert that the message data
104         is aligned (if not it's a bug in our code). Put in verbose griping
105         about why we set corrupted = TRUE.
106         (decode_header_data): add FIXME that char* is evil.  Was going to
107         add FIXME about evil locale-specific string.h strncmp, but just
108         switched to wacky string-as-uint32 optimization. Move check for
109         "no room for field name" above get_const_data_len() to avoid
110         assertion failure in get_const_data_len if we have trailing 2
111         bytes or the like. Check for service and name fields being
112         provided twice. Don't leak service/name on error. Require field
113         names to be aligned to 4 bytes.
114
115         * dbus/dbus-marshal.c: move byte swap stuff to header
116         (_dbus_pack_int32): uscore-prefix
117         (_dbus_unpack_int32): uscore-prefix
118         (_dbus_unpack_uint32): export
119         (_dbus_demarshal_string): add @todo complaining about use of
120         memcpy()
121         (_dbus_marshal_get_field_end_pos): add @todo about bad error
122         handling allowing corrupt data to go unchecked
123
124 2003-01-08  Havoc Pennington  <hp@redhat.com>
125
126         * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write 
127         to the select() as needed for authentication. (should be using
128         _dbus_poll() not select, but for another day)
129
130         * dbus/dbus.h: include dbus/dbus-protocol.h
131
132 2003-01-08  Anders Carlsson  <andersca@codefactory.se>
133
134         * dbus/Makefile.am (dbusinclude_HEADERS): Install
135         dbus-connection.h
136
137 2003-01-08  Anders Carlsson  <andersca@codefactory.se>
138
139         * dbus/dbus-internals.c: (_dbus_type_to_string):
140         New function that returns a string describing a type.
141         
142         * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
143         * dbus/dbus-marshal.h:
144         * dbus/dbus-message.c: (dbus_message_get_fields_valist),
145         (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
146         (dbus_message_iter_get_byte_array):
147         * dbus/dbus-message.h:
148         Add new convenience functions for appending and getting message fields.
149         Also add demarshalling routines for byte arrays.
150
151 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
152
153         * dbus/dbus-connection-internal.h:
154         * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
155         (_dbus_connection_get_next_client_serial),
156         (dbus_connection_send_message):
157         * dbus/dbus-internals.h:
158         * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
159         (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
160         (_dbus_marshal_uint32), (_dbus_demarshal_double),
161         (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
162         (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
163         (_dbus_verbose_bytes), (_dbus_marshal_test):
164         * dbus/dbus-marshal.h:
165         * dbus/dbus-message-internal.h:
166         * dbus/dbus-message.c: (_dbus_message_set_client_serial),
167         (dbus_message_write_header), (_dbus_message_lock),
168         (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
169         (dbus_message_get_name), (dbus_message_append_int32),
170         (dbus_message_append_uint32), (dbus_message_append_double),
171         (dbus_message_append_string), (dbus_message_append_byte_array),
172         (dbus_message_get_fields_iter), (dbus_message_iter_ref),
173         (dbus_message_iter_unref), (dbus_message_iter_has_next),
174         (dbus_message_iter_next), (dbus_message_iter_get_field_type),
175         (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
176         (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
177         (decode_header_data), (_dbus_message_loader_return_buffer),
178         (message_iter_test), (_dbus_message_test):
179         * dbus/dbus-message.h:
180         * dbus/dbus-protocol.h:
181         * dbus/dbus-test.c: (main):
182         * dbus/dbus-test.h:
183         * glib/test-dbus-glib.c: (message_handler), (main):
184         * test/echo-client.c: (main):
185         * test/watch.c: (check_messages):
186         Make messages sendable and receivable for real.
187         
188 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
189
190         * dbus/dbus-marshal.c: (_dbus_marshal_double),
191         (_dbus_marshal_string), (_dbus_marshal_byte_array):
192         * dbus/dbus-message.c: (dbus_message_append_int32),
193         (dbus_message_append_uint32), (dbus_message_append_double),
194         (dbus_message_append_string), (dbus_message_append_byte_array):
195         Handle OOM restoration.
196         
197 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
198
199         * dbus/dbus-marshal.c: (_dbus_marshal_string),
200         (_dbus_demarshal_string), (_dbus_marshal_test):
201         * dbus/dbus-marshal.h:
202         * dbus/dbus-message.c: (dbus_message_get_name),
203         Document these functions.
204         
205         (dbus_message_append_int32), (dbus_message_append_uint32),
206         (dbus_message_append_double), (dbus_message_append_string),
207         (dbus_message_append_byte_array):
208         * dbus/dbus-message.h:
209         Add functions for adding message fields of different types.
210         
211         * dbus/dbus-protocol.h:
212         Add the different types.
213
214 2003-01-05  Havoc Pennington  <hp@pobox.com>
215
216         * bus/connection.c: implement routines for handling connections,
217         first thing is keeping a list of owned services on each connection
218         and setting up watches etc.
219
220         * bus/services.c: implement a mapping from service names to lists
221         of connections
222
223         * dbus/dbus-hash.c: add DBUS_HASH_POINTER
224
225         * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
226         to use static mutexes for global data
227
228         * dbus/dbus-connection.c (dbus_connection_set_data): add new
229         collection of functions to set/get application-specific data
230         on the DBusConnection.
231
232 2003-01-04  Havoc Pennington  <hp@pobox.com>
233
234         * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
235         (_dbus_poll): new function
236
237         * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
238         copied from GLib
239
240         * bus/loop.c: initial code for the daemon main loop
241
242 2003-01-04  Havoc Pennington  <hp@pobox.com>
243
244         * test/watch.c (error_handler): make it safe if the error handler 
245         is called multiple times (if we s/error handler/disconnect
246         handler/ we should just guarantee it's called only once)
247
248         * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
249         error handler on disconnect (it's quite possible we should
250         just change the error handler to a "disconnect handler," I'm 
251         not sure we have any other meaningful errors)
252
253         * configure.in: check for getpwnam_r
254
255         * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
256         dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
257         mechanism as in SASL spec, using socket credentials
258
259         * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
260         (_dbus_send_credentials_unix_socket): new function
261
262         * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
263         dbus_accept()
264         (_dbus_write): only check errno if <0 returned
265         (_dbus_write_two): ditto
266
267 2003-01-02  Anders Carlsson  <andersca@codefactory.se>
268
269         * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
270         (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
271         (_dbus_marshal_test):
272         * dbus/dbus-marshal.h:
273         Add _dbus_marshal_byte_array and rename _dbus_marshal_string
274         to _dbus_marshal_utf8_string. Also fix some tests.
275         
276 2002-12-28  Harri Porten  <porten@kde.org>
277
278         * configure.in: added check for C++ compiler and a very cheesy
279         check for the Qt integration
280
281         * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
282
283         * qt/Makefile.am: added 
284
285         * qt/.cvsignore: added  
286
287         * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
288         latter, added #ifdef QT_THREAD_SUPPORT guard.
289
290         * dbus/Makefile.am: added missing headers for make dist
291
292 2002-12-28  Kristian Rietveld  <kris@gtk.org>
293
294         * dbus/Makefile.am: fixup export-symbols-regex.
295
296 2002-12-27  Anders Carlsson  <andersca@codefactory.se>
297
298         * acinclude.m4: Add this file and put the 
299         PKG_CHECK_MODULE macro in it.
300
301 2002-12-27  Anders Carlsson  <andersca@codefactory.se>
302
303         * dbus/dbus-marshal.c: (_dbus_marshal_string),
304         (_dbus_demarshal_double), (_dbus_demarshal_int32),
305         (_dbus_demarshal_uint32), (_dbus_demarshal_string),
306         (_dbus_marshal_test):
307         Make the demarshalling routines align the pos argument.
308         Add string marshalling tests and fix the obvious bugs 
309         discovered.
310         
311 2002-12-26  Havoc Pennington  <hp@pobox.com>
312
313         * dbus/dbus-auth.c: fixes fixes fixes
314
315         * dbus/dbus-transport-unix.c: wire up support for
316         encoding/decoding data on the wire
317
318         * dbus/dbus-auth.c (_dbus_auth_encode_data) 
319         (_dbus_auth_decode_data): append to target string 
320         instead of nuking it.
321
322 2002-12-26  Havoc Pennington  <hp@pobox.com>
323
324         * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
325         WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
326         doh
327
328         * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
329         avoid swap_bytes() overhead (ignoring possible assembly stuff for 
330         now). Main point is because I wanted unpack_uint32 to implement
331         _dbus_verbose_bytes
332         (_dbus_verbose_bytes): new function
333
334         * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
335
336         * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
337         mechanism to handle a corrupt message stream
338         (_dbus_message_loader_new): fix preallocation to only prealloc, 
339         not prelengthen
340         
341         * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
342         (_dbus_string_test): enhance tests for copy/move and fix the
343         functions
344
345         * dbus/dbus-transport-unix.c: Hold references in more places to 
346         avoid reentrancy problems
347
348         * dbus/dbus-transport.c: ditto
349
350         * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
351         leak reference count in no-message case
352
353         * test/watch.c (do_mainloop): handle adding/removing watches
354         during iteration over the watches. Also, ref the connection/server
355         stored on a watch, so we don't try to mangle a destroyed one.
356
357         * dbus/dbus-transport-unix.c (do_authentication): perform
358         authentication
359
360         * dbus/dbus-auth.c (get_state): add a state
361         AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
362         (_dbus_auth_get_unused_bytes): append the unused bytes
363         to the passed in string, rather than prepend
364
365         * dbus/dbus-transport.c (_dbus_transport_init_base): create 
366         the auth conversation DBusAuth
367
368         * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
369         (_dbus_transport_new_for_domain_socket): when creating a
370         transport, pass in whether it's a client-side or server-side
371         transport so we know which DBusAuth to create
372
373 2002-12-03  Havoc Pennington  <hp@pobox.com>
374
375         * dbus/dbus-transport-unix.c (unix_finalize): finalize base
376         _after_ finalizing the derived members
377         (unix_connection_set): unref watch if we fail to add it
378
379         * dbus/dbus-connection.c (dbus_connection_unref): delete the
380         transport first, so that the connection owned by the 
381         transport will be valid as the transport finalizes.
382
383         * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
384         if necessary, and remove watches from the connection.
385         
386         * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
387         
388 2002-12-26  Anders Carlsson  <andersca@codefactory.se>
389
390         * dbus/dbus-marshal.c: (_dbus_marshal_string),
391         (_dbus_demarshal_double), (_dbus_demarshal_int32),
392         (_dbus_demarshal_uint32), (_dbus_demarshal_string),
393         (_dbus_marshal_test):
394         * dbus/dbus-marshal.h:
395         Add string marshal functions and have the demarshal functions
396         return the new position.
397         
398 2002-12-25  Havoc Pennington  <hp@pobox.com>
399
400         * doc/dbus-sasl-profile.txt: docs on the authentication protocol, 
401         it is a simple protocol that just maps directly to SASL.
402
403         * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
404         initial implementation, not actually used yet.
405         
406         * dbus/dbus-string.c (_dbus_string_find): new function
407         (_dbus_string_equal): new function
408         (_dbus_string_base64_encode): new function
409         (_dbus_string_base64_decode): new function
410
411 2002-12-25  Anders Carlsson  <andersca@codefactory.se>
412
413         * dbus/Makefile.am:
414         * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
415         (_dbus_marshal_int32), (_dbus_marshal_uint32),
416         (_dbus_demarshal_double), (_dbus_demarshal_int32),
417         (_dbus_demarshal_uint32), (_dbus_marshal_test):
418         * dbus/dbus-marshal.h:
419         * dbus/dbus-protocol.h:
420         * dbus/dbus-test.c: (main):
421         * dbus/dbus-test.h:
422         Add un-optimized marshalling/demarshalling routines.
423         
424 2002-12-25  Harri Porten  <porten@kde.org>
425
426         * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
427
428 2002-12-24  Zack Rusin  <zack@kde.org>
429
430         * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
431         * qt/dbus-qt.h: skeleton with two sample implemenatation of the
432         main loop stuff
433
434 2002-12-24  Havoc Pennington  <hp@pobox.com>
435
436         * glib/dbus-gthread.c: fix include
437
438         * glib/dbus-glib.h: rename DBusMessageHandler for now. 
439         I think glib API needs to change, though, as you don't 
440         want to use DBusMessageFunction, you want to use the 
441         DBusMessageHandler object. Probably 
442         dbus_connection_open_with_g_main_loop()
443         and dbus_connection_setup_g_main_loop() or something like that
444         (but think of better names...) that just create a connection 
445         that has watch/timeout functions etc. already set up.
446
447         * dbus/dbus-connection.c
448         (dbus_connection_send_message_with_reply): new function just to 
449         show how the message handler helps us deal with replies.
450
451         * dbus/dbus-list.c (_dbus_list_remove_last): new function
452
453         * dbus/dbus-string.c (_dbus_string_test): free a string that
454         wasn't
455
456         * dbus/dbus-hash.c: use memory pools for the hash entries
457         (rebuild_table): be more paranoid about overflow, and 
458         shrink table when we can
459         (_dbus_hash_test): reduce number of sprintfs and write
460         valid C89. Add tests for case where we grow and then 
461         shrink the hash table.
462
463         * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
464
465         * dbus/dbus-connection.c (dbus_connection_register_handler) 
466         (dbus_connection_unregister_handler): new functions
467
468         * dbus/dbus-message.c (dbus_message_get_name): new
469
470         * dbus/dbus-list.c: fix docs typo
471
472         * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
473         an object representing a handler for messages.
474
475 2002-12-16  Anders Carlsson  <andersca@codefactory.se>
476
477         * glib/dbus-glib.h:
478         * glib/dbus-gthread.c: (dbus_gthread_init):
479         Don't use the gdbus prefix for public functions.
480         
481 2002-12-16  Anders Carlsson  <andersca@codefactory.se>
482
483         * Makefile.am:
484         * configure.in:
485         Add GLib checks and fixup .pc files
486         
487         * glib/Makefile.am:
488         * glib/dbus-glib.h:
489         * glib/dbus-gmain.c: (gdbus_connection_prepare),
490         (gdbus_connection_check), (gdbus_connection_dispatch),
491         (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
492         (dbus_connection_gsource_new):
493         * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
494         (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
495         * glib/test-dbus-glib.c: (message_handler), (main):
496         Add GLib support.
497         
498 2002-12-15  Harri Porten  <porten@kde.org>
499
500         * autogen.sh: check for libtoolize before attempting to use it 
501         
502         * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
503         struct.
504         
505         * .cvsignore: ignore more stamp files
506
507         * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
508
509         * test/Makefile.am: added -I$(top_srcdir) to be able to compile
510         without make install.
511
512 2002-12-15  Havoc Pennington  <hp@pobox.com>
513
514         * dbus/dbus-threads.c: add thread stubs that a higher library
515         layer can fill in. e.g. the GLib wrapper might fill them in with
516         GThread stuff. We still need to use this thread API to
517         thread-safe-ize the library.
518
519 2002-12-12  Havoc Pennington  <hp@pobox.com>
520
521         * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
522         below new interfaces and include fewer system headers.
523
524         * dbus/dbus-sysdeps.c (_dbus_read): new function
525         (_dbus_write): new function
526         (_dbus_write_two): new function
527         (_dbus_connect_unix_socket): new function
528         (_dbus_listen_unix_socket): new function
529
530         * dbus/dbus-message-internal.h: change interfaces to use
531         DBusString
532
533 2002-12-11  Havoc Pennington  <hp@pobox.com>
534
535         * dbus/dbus-types.h: add dbus_unichar
536
537         * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
538
539         * dbus/dbus-connection.c (dbus_connection_send_message): return
540         TRUE on success
541
542         * dbus/dbus-transport.c: include dbus-watch.h   
543
544         * dbus/dbus-connection.c: include dbus-message-internal.h
545
546         * HACKING: add file with coding guidelines stuff.
547
548         * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
549         handling here, for security purposes (as in vsftpd). Not actually
550         using this class yet.
551
552         * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
553         system/libc usage here, as in vsftpd, for ease of auditing (and
554         should also simplify portability). Haven't actually moved all the
555         system/libc usage into here yet.
556         
557 2002-11-25  Havoc Pennington  <hp@pobox.com>
558
559         * dbus/dbus-internals.c (_dbus_verbose): fix to not 
560         always print the first verbose message.
561
562 2002-11-24  Havoc Pennington  <hp@pobox.com>
563
564         * test/echo-client.c, test/echo-server.c: cheesy test 
565         clients.
566         
567         * configure.in (AC_CHECK_FUNCS): check for writev
568
569         * dbus/dbus-message.c (_dbus_message_get_network_data): new
570         function
571
572         * dbus/dbus-list.c (_dbus_list_foreach): new function
573
574         * dbus/dbus-internals.c (_dbus_verbose): new function
575
576         * dbus/dbus-server.c, dbus/dbus-server.h: public object
577         representing a server that listens for connections.
578
579         * dbus/.cvsignore: create
580
581         * dbus/dbus-errors.h, dbus/dbus-errors.c:
582         public API for reporting errors
583
584         * dbus/dbus-connection.h, dbus/dbus-connection.c:
585         public object representing a connection that 
586         sends/receives messages. (Same object used for 
587         both client and server.)
588
589         * dbus/dbus-transport.h, dbus/dbus-transport.c:
590         Basic abstraction for different kinds of stream
591         that we might read/write messages from.
592
593 2002-11-23  Havoc Pennington  <hp@pobox.com>
594
595         * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN 
596         _DBUS_INT_MAX
597
598         * dbus/dbus-test.c (main): add list test, and include 
599         dbus-test.h as intended
600
601         * dbus/dbus-hash.c (_dbus_hash_table_remove_string) 
602         (_dbus_hash_table_remove_int): return value indicates 
603         whether the entry existed to remove
604
605         * dbus/dbus-list.c: add linked list utility class, 
606         with docs and tests
607
608         * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket 
609         array sometimes.
610
611 2002-11-23  Havoc Pennington  <hp@pobox.com>
612
613         * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
614         DBUS_END_DECLS to nothing, that should fix this once and for all
615
616         * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
617
618         * dbus/dbus-message.c, dbus/dbus-hash.c: 
619         add some missing @brief
620
621 2002-11-23  Havoc Pennington  <hp@pobox.com>
622
623         * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS 
624         to avoid confusing Doxygen
625
626         * dbus/dbus-hash.c: @} not }@
627
628         * dbus/dbus-message.c (struct DBusMessage): split out 
629         internals docs
630
631 2002-11-23  Havoc Pennington  <hp@pobox.com>
632
633         * configure.in: pile on more warning flags if using gcc
634
635         * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have 
636         to document static functions
637
638         * configure.in: add summary to end of configure so it 
639         looks nice and attractive
640
641         * dbus/dbus-hash.c: finish implementation and write unit 
642         tests and docs
643
644         * configure.in: add --enable-tests to enable unit tests
645
646         * dbus/dbus-test.c: test program to run unit tests 
647         for all files in dbus/*, initially runs a test for 
648         dbus-hash.c
649         
650         * dbus/dbus-internals.h: file to hold some internal utility stuff
651
652 2002-11-22  Havoc Pennington  <hp@redhat.com>
653
654         * dbus/dbus-hash.c: copy in Tcl hash table, not yet 
655         "ported" away from Tcl
656
657         * dbus/dbus-types.h: header for types such as dbus_bool_t
658
659 2002-11-22  Havoc Pennington  <hp@redhat.com>
660
661         * dbus/dbus.h: fixups for doc warnings
662
663         * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up 
664         macros
665         (QUIET): make it quiet so we can see warnings
666
667         * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
668
669 2002-11-22  Havoc Pennington  <hp@redhat.com>
670
671         * Makefile.am: include "Doxyfile" target in all-local
672
673         * configure.in: generate the Doxyfile
674
675         * Doxyfile.in: move Doxyfile here, so we can use 
676         configure to generate a Doxyfile with the right 
677         version number etc.
678
679 2002-11-22  Havoc Pennington  <hp@redhat.com>
680
681         * dbus/dbus-message.c: move inline docs into .c file
682
683         * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
684         so all docs are under doc/
685         (MAN_EXTENSION): generate man pages. Use extension 
686         ".3dbus" which matches ".3qt" on my system, 
687         I guess this is OK, I don't know really.
688         (FILE_PATTERNS): look for .c files not .h, makes sense
689         for plain C I think
690
691 2002-11-22  Havoc Pennington  <hp@pobox.com>
692
693         * Makefile.am (SUBDIRS): rename subdir "server" to "bus" 
694         because any app can be a server, and any app can be a client, 
695         the bus is a special kind of server.
696
697 Thu Nov 21 23:35:31 2002  Zack Rusin  <zack@kde.org>
698
699         * Doxyfile : adding. Still needs Makefile rules to be generated
700         automatically (just run "doxygen" in the toplevel dir for now to
701         generate docs)
702         
703         * dbus/dbus-message.h : Adding sample docs (javadoc since
704         resembles gtk-doc a little more)
705
706         * dbus/dbus.h : Adding sample docs
707
708 2002-11-21  Havoc Pennington  <hp@redhat.com>
709
710         * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION 
711         so we can allow ourselves to include files directly, 
712         instead of having to use dbus.h
713
714         * dbus/dbus.h: fill in
715
716         * dbus/dbus-message.h: sketch out a sample header file.
717         Include griping if you include it directly instead of 
718         via dbus.h
719
720         * dbus/dbus-macros.h: new file with macros for extern "C", 
721         TRUE/FALSE, NULL, etc.
722
723         * doc/file-boilerplate.c: put include guards in here
724
725 2002-11-21  Havoc Pennington  <hp@redhat.com>
726
727         * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
728
729         * COPYING: include the GPL as well, and license code 
730         under both AFL and GPL.
731
732 2002-11-21  Havoc Pennington  <hp@redhat.com>
733
734         * acconfig.h: get rid of this
735
736         * autogen.sh (run_configure): add --no-configure option
737
738         * configure.in: remove AC_ARG_PROGRAM to make
739         autoconf complain less. add AC_PREREQ. 
740         add AC_DEFINE third arg.
741         
742 2002-11-21  Anders Carlsson  <andersca@codefactory.se>
743
744         * doc/Makefile.am:
745         Fix references so we can distcheck.
746
747 2002-11-21  Havoc Pennington  <hp@redhat.com>
748
749         * Initial module creation
750