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