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