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