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