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