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