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