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