2003-02-17 Alexander Larsson <alexl@redhat.com>
[platform/upstream/dbus.git] / ChangeLog
1 2003-02-17  Alexander Larsson  <alexl@redhat.com>
2
3         * dbus/dbus-connection.c (_dbus_connection_handler_destroyed_locked):
4         Added todo.
5
6 2003-02-17  Anders Carlsson  <andersca@codefactory.se>
7
8         * doc/.cvsignore:
9         * doc/Makefile.am:
10         * doc/dbus-test-plan.sgml:
11         Add test plan document.
12         
13         * test/Makefile.am:
14         Fix distcheck.
15         
16 2003-02-17  Anders Carlsson  <andersca@codefactory.se>
17
18         * dbus/dbus-message.c: (decode_header_data),
19         (_dbus_message_loader_return_buffer):
20         Set the header padding amount when loading a message.
21
22 2003-02-16  Anders Carlsson  <andersca@codefactory.se>
23
24         * bus/dispatch.c: (send_one_message):
25         Only send broadcast messages to registered connections.
26         
27         * dbus/dbus-message.c: (dbus_message_name_is):
28         * dbus/dbus-message.h:
29         New convenience function.
30         
31         * dbus/dbus-transport-debug.c: (do_reading):
32         Only dispatch one message per run.
33
34         * test/Makefile.am:
35         * test/bus-test.c: (new_connection_callback), (die),
36         (test_hello_client1_handler), (test_hello_client2_handler),
37         (test_hello_replies), (main):
38
39         * test/bus-test-loop.[ch]:
40         Add these.
41         
42 2003-02-16  Havoc Pennington  <hp@pobox.com>
43
44         * dbus/dbus-connection.c (dbus_connection_dispatch_message): fix
45         backward conditional
46
47 2003-02-16  Alexander Larsson  <alexl@redhat.com>
48
49         * dbus/dbus-connection.c:
50         Implement sent_message_with_reply. (with_reply_and block is still
51         busted).
52         Made dispatch_message not lose message if OOM.
53         
54         * dbus/dbus-errors.h:
55         Add NoReply error (for reply timeouts).
56
57 2003-02-16  Alexander Larsson  <alexl@redhat.com>
58
59         * dbus/dbus-hash.c (_dbus_hash_table_unref):
60         Actually free keys and values when destroying hashtable.
61
62 2003-02-16  Anders Carlsson  <andersca@codefactory.se>
63
64         * dbus/dbus-auth.c: (client_try_next_mechanism):
65         Plug a leak.
66         
67         * dbus/dbus-threads.c: (dbus_condvar_wait_timeout):
68         Return TRUE if there's no thread implementation around.
69         
70         * glib/dbus-gmain.c: (free_source),
71         (dbus_connection_hookup_with_g_main):
72         Make sure to remove the GSource when the connection is finalized.
73         
74 2003-02-16  Anders Carlsson  <andersca@codefactory.se>
75
76         * bus/dispatch.c: (bus_dispatch_message_handler):
77         * dbus/dbus-errors.h:
78         Return an error if someone tries to send a message to a service
79         that doesn't exist.
80         
81 2003-02-16  Anders Carlsson  <andersca@codefactory.se>
82
83         * bus/activation.c: (load_directory), (bus_activation_init),
84         (bus_activation_activate_service):
85         * bus/activation.h:
86         * bus/driver.c: 
87         (bus_driver_handle_activate_service), (bus_driver_handle_message):
88         More work on the activation handling.
89         
90         * dbus/dbus-errors.h:
91         Add some error messages
92         
93         * dbus/dbus-message.c: (dbus_message_new_error_reply):
94         * dbus/dbus-message.h:
95         New function that creates an error message.
96         
97         * dbus/dbus-protocol.h:
98         Add ACTIVATE_SERVER message.
99         
100         * dbus/dbus-server-unix.c: (unix_handle_watch),
101         (_dbus_server_new_for_domain_socket):
102         Call _dbus_fd_set_close_on_exec.
103         
104         * dbus/dbus-sysdeps.c: (make_pipe), (do_exec),
105         (_dbus_spawn_async), (_dbus_disable_sigpipe),
106         (_dbus_fd_set_close_on_exec):
107         * dbus/dbus-sysdeps.h:
108         Add _dbus_fd_set_close_on exec function. Also add function that checks
109         that all open fds are set to close-on-exec and warns otherwise.
110         
111         * dbus/dbus-transport-unix.c:
112         (_dbus_transport_new_for_domain_socket):
113         Call _dbus_fd_set_close_on_exec.
114
115 2003-02-16  Havoc Pennington  <hp@pobox.com>
116
117         * dbus/dbus-connection.c (dbus_connection_set_change_sigpipe):
118         allow people to avoid setting SIGPIPE to SIG_IGN
119         (_dbus_connection_new_for_transport): disable SIGPIPE unless 
120         we've been asked not to
121
122 2003-02-15  Anders Carlsson  <andersca@codefactory.se>
123
124         * dbus/dbus-list.c: (_dbus_list_append_link),
125         (_dbus_list_prepend_link):
126         * dbus/dbus-memory.c: (dbus_malloc), (dbus_malloc0),
127         (dbus_realloc):
128         Warning fixes.
129
130 2003-02-15  Anders Carlsson  <andersca@codefactory.se>
131
132         * bus/Makefile.am:
133         * bus/activation.c: (bus_activation_entry_free),
134         (add_desktop_file_entry), (load_directory), (bus_activation_init):
135         * bus/activation.h:
136         * bus/main.c: (main):
137         Add simple activation support, doesn't work yet though.
138
139 2003-02-15   Zack Rusin  <zack@kde.org>
140
141         * qt/dbus-qthread.cpp:  small casting fix
142
143 2003-02-15  Anders Carlsson  <andersca@codefactory.se>
144
145         * dbus/dbus-errors.c: (dbus_set_error):
146         * dbus/dbus-errors.h:
147         Add a few errors and make dbus_set_error void.
148         
149         * dbus/dbus-sysdeps.c: 
150         (_dbus_errno_to_string), (close_and_invalidate), (make_pipe),
151         (write_err_and_exit), (read_ints), (do_exec), (_dbus_spawn_async):
152         * dbus/dbus-sysdeps.h:
153         Add _dbus_spawn_async.
154         
155         * test/spawn-test.c: (main):
156         Test for _dbus_spawn_async.
157         
158 2003-02-15  Anders Carlsson  <andersca@codefactory.se>
159
160         * dbus/dbus-internals.h:
161         Fix build without tests.
162         
163         * dbus/dbus-list.c: (alloc_link):
164         Fix a segfault when a malloc fails.
165         
166         * dbus/dbus-memory.c: (initialize_malloc_debug), (dbus_malloc),
167         (dbus_malloc0), (dbus_realloc):
168         Add support for malloc debugging.
169
170 2003-02-15  Alexander Larsson  <alexl@redhat.com>
171
172         * dbus/dbus-threads.c:
173         * dbus/dbus-threads.h:
174         Add condvars. Remove static mutext from API.
175         Implement static mutexes by initializing them from threads_init.
176         
177         * glib/dbus-gthread.c:
178         * qt/dbus-qthread.cpp:
179         Update with the thread api changes.
180
181                 
182         * dbus/dbus-list.c:
183         * dbus/dbus-list.h:
184         Turn StaticMutex into normal mutex + init function.
185         Export new functions _dbus_list_alloc_link, _dbus_list_free_link,
186         _dbus_list_append_link, _dbus_list_prepend_link
187
188
189         * dbus/dbus-sysdeps.c: 
190         * dbus/dbus-sysdeps.h:
191         New type dbus_atomic_t, and new functions _dbus_atomic_inc,
192         _dbus_atomic_dec. Only slow fallback implementation at the moment.
193         
194         * dbus/dbus-protocol.h:
195         Add DBUS_MESSAGE_LOCAL_DISCONNECT define
196         
197         * dbus/dbus-message.c:
198         Make ref/unref atomic.
199         Fix some docs.
200         
201         * dbus/dbus-connection-internal.h:
202         * dbus/dbus-connection.c:
203         * dbus/dbus-connection.h:
204         Make threadsafe.
205         Change _peek to _borrow,_return & _steal_borrowed.
206         Change disconnect callback to event.
207         Make dbus_connection_dispatch_messages reentrant.
208         
209         * dbus/dbus-transport.c:
210         Don't ref the connection on calls to the transport
211         implementation.
212         
213         * dbus/dbus-message-handler.c:
214         Make threadsafe.
215         
216         * glib/dbus-gmain.c:
217         Don't use peek_message anymore
218         
219         * test/Makefile.am:
220         * test/debug-thread.c:
221         * test/debug-thread.h:
222         Simple thread implementation that asserts() on deadlocks in
223         single-threaded code.
224         
225         * test/bus-test.c:
226         (main) Call debug_threads_init.
227
228         * test/watch.c:
229         Use disconnect message instead of disconnect callback.
230
231         * bus/connection.c:
232         * bus/connection.h:
233         Don't call dbus_connection_set_disconnect_function. Instead export
234         bus_connection_disconnect.
235         
236         * bus/dispatch.c:
237         Call bus_connection_disconnect when we get a disconnected message.
238         
239 2003-02-15  Havoc Pennington  <hp@pobox.com>
240
241         * dbus/dbus-message.c (dbus_message_new): fool around with the
242         docs
243
244 2003-02-14  Havoc Pennington  <hp@pobox.com>
245
246         * dbus/dbus-mempool.c: fail if the debug functions so indicate
247
248         * dbus/dbus-memory.c: fail if the debug functions indicate we
249         should
250
251         * dbus/dbus-internals.c (_dbus_set_fail_alloc_counter)
252         (_dbus_decrement_fail_alloc_counter): debug functions to 
253         simulate memory allocation failures
254
255 2003-02-14  Havoc Pennington  <hp@pobox.com>
256
257         * dbus/dbus-errors.h (struct DBusError): add a word of padding 
258         to DBusError
259
260 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
261
262         * bus/driver.c: (bus_driver_handle_hello):
263         * bus/driver.h:
264         * bus/services.c: (bus_service_lookup):
265         Reorder message sending so we get a more sane order.
266         
267         * test/bus-test.c: (message_handler):
268         Fix tyop.
269         
270 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
271
272         * bus/driver.c: (bus_driver_send_service_deleted),
273         (bus_driver_send_service_created), (bus_driver_send_service_lost),
274         (bus_driver_send_service_acquired), (bus_driver_handle_hello),
275         (bus_driver_send_welcome_message),
276         (bus_driver_handle_list_services),
277         (bus_driver_handle_acquire_service),
278         (bus_driver_handle_service_exists):
279         * dbus/dbus-bus.c: (dbus_bus_register_client),
280         (dbus_bus_acquire_service), (dbus_bus_service_exists):
281         * dbus/dbus-errors.c: (dbus_result_to_string):
282         * dbus/dbus-errors.h:
283         * dbus/dbus-message.c: (dbus_message_append_args),
284         (dbus_message_append_args_valist), (dbus_message_get_args),
285         (dbus_message_get_args_valist), (dbus_message_get_args_iter),
286         (dbus_message_iter_get_arg_type), (dbus_message_iter_get_string),
287         (dbus_message_iter_get_byte_array),
288         (dbus_message_iter_get_string_array), (message_iter_test),
289         (check_message_handling), (_dbus_message_test):
290         * dbus/dbus-message.h:
291         * test/bus-test.c: (main):
292         Change fields to arguments in messages, so that they won't be
293         confused with header fields.
294         
295         * glib/test-dbus-glib.c: (main):
296         Remove append_fields from hello message.
297         
298 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
299
300         * dbus/dbus-errors.c:
301         * dbus/dbus-message.c:
302         * dbus/dbus-string.c:
303         Documentation fixes.
304
305 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
306
307         * glib/dbus-gmain.c: (timeout_handler), (add_timeout),
308         (remove_timeout):
309         Implement support for timeouts in dbus-glib.
310         
311 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
312
313         * dbus/dbus-message-builder.c: (_dbus_message_data_load):
314         * dbus/dbus-message.c: (process_test_subdir):
315         * test/break-loader.c: (find_breaks_based_on):
316         Plug some memory leaks.
317         
318 2003-02-13  Richard Hult  <rhult@codefactory.se>
319
320         * bus/main.c: Fix build.
321
322         * dbus/dbus-errors.h: 
323         * dbus/dbus-errors.c: Fix copyright for Anders.
324
325 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
326
327         * bus/Makefile.am:
328         Add utils.[ch]
329         
330         * bus/connection.c: (bus_connection_foreach):
331         Fix a warning.
332         
333         * bus/desktop-file.c: (grow_lines_in_section), (grow_sections),
334         (unescape_string), (new_section), (parse_section_start),
335         (parse_key_value), (report_error), (bus_desktop_file_load),
336         (bus_desktop_file_get_string):
337         * bus/desktop-file.h:
338         Use DBusError for error reporting.
339         
340         * bus/dispatch.c: (send_one_message),
341         (bus_dispatch_message_handler):
342         * bus/driver.c: (bus_driver_send_service_deleted),
343         (bus_driver_send_service_created), (bus_driver_send_service_lost),
344         (bus_driver_send_service_acquired), (bus_driver_handle_hello),
345         (bus_driver_send_welcome_message),
346         (bus_driver_handle_list_services),
347         (bus_driver_handle_acquire_service),
348         (bus_driver_handle_service_exists):
349         * bus/loop.c: (bus_loop_run):
350         * bus/main.c:
351         Use BUS_HANDLE_OOM instead of _DBUS_HANDLE_OOM.
352         
353         * bus/utils.c: (bus_wait_for_memory):
354         * bus/utils.h:
355         New files with general utility functions.
356         
357         * dbus/dbus-internals.h:
358         Remove _DBUS_HANDLE_OOM.
359         
360 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
361
362         * dbus/dbus-errors.c: (dbus_result_to_string), (dbus_error_init),
363         (dbus_error_free), (dbus_set_error_const), (dbus_set_error):
364         * dbus/dbus-errors.h:
365         Add DBusError structure.
366         
367 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
368
369         * test/data/valid-messages/standard-acquire-service.message:
370         * test/data/valid-messages/standard-hello.message:
371         * test/data/valid-messages/standard-list-services.message:
372         * test/data/valid-messages/standard-service-exists.message:
373         Add some standard messages.
374         
375 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
376
377         * bus/driver.c: (bus_driver_send_welcome_message),
378         (bus_driver_handle_list_services),
379         (bus_driver_handle_acquire_service),
380         (bus_driver_handle_service_exists), (bus_driver_handle_message):
381         Update for API changes in libdbus.
382         
383         * dbus/dbus-message.c: (dbus_message_new_reply):
384         * dbus/dbus-message.h:
385         Remove the name argument. The spec states that replies shouldn't
386         have a name.
387
388 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
389
390         * bus/desktop-file.c: (parse_section_start), (parse_key_value),
391         (report_error), (bus_desktop_file_load), (lookup_section),
392         (lookup_line), (bus_desktop_file_get_raw),
393         (bus_desktop_file_get_string):
394         * bus/desktop-file.h:
395         Some fixes, and new functions for getting a key value from a section.
396         
397 2003-02-13  Havoc Pennington  <hp@pobox.com>
398
399         * test/data/auth/fail-after-n-attempts.auth-script: new test
400
401         * dbus/dbus-auth.c (send_rejected): shutdown_mech() when we
402         reject the client.
403
404 2003-02-13  Havoc Pennington  <hp@pobox.com>
405
406         * dbus/dbus-auth.c (handle_server_data_external_mech): args to
407         dbus_credentials_match were backward
408
409         * dbus/dbus-auth-script.c (_dbus_auth_script_run): support
410         NO_CREDENTIALS and ROOT_CREDENTIALS
411
412         * dbus/dbus-auth.c (_dbus_auth_do_work): move get_state() routine 
413         into here. Never process more commands after we've reached an 
414         end state; store further data as unused bytes.
415
416         * test/data/auth/*: add more auth tests
417         
418         * dbus/dbus-auth-script.c (_dbus_auth_script_run): support EXPECT
419         command to match exact string and EXPECT_UNUSED to match unused
420         bytes
421
422         * test/Makefile.am (dist-hook): fix to dist all the test stuff
423
424 2003-02-12  Havoc Pennington  <hp@pobox.com>
425
426         * dbus/dbus-string.c (_dbus_string_pop_line): fix to also strip
427         \r off of popped lines
428
429         * dbus/dbus-auth.c (_dbus_auth_test): write code to run auth
430         scripts
431
432         * dbus/dbus-auth-script.c (_dbus_auth_script_run): when doing a
433         SEND, append \r\n
434
435 2003-02-12  Havoc Pennington  <hp@pobox.com>
436
437         * dbus/Makefile.am: remove break-loader from the build, since it
438         moved.
439
440         * configure.in: add --enable-gcov to turn on coverage profiling
441         flags and disable optimization
442
443 2003-02-10  Havoc Pennington  <hp@pobox.com>
444
445         * dbus/dbus-auth-script.c, dbus/dbus-auth-script.h: sync 
446         initial cut at test framework for DBusAuth from laptop.
447         Doesn't quite work yet but it compiles and I need to get 
448         it off the 266mhz laptop. ;-)
449         
450         * dbus/dbus-server-debug.c (_dbus_server_debug_accept_transport):
451         fix a memleak in error case
452
453 2003-02-12  Anders Carlsson  <andersca@codefactory.se>
454
455         * bus/Makefile.am:
456         * bus/desktop-file.c:
457         * bus/desktop-file.h:
458         Add a desktop file parser.
459
460 2003-02-11  Zack Rusin  <zack@kde.org>
461
462         * qt/message.[h|cpp]: sample implementation
463         of the KDE wrapper for DBusMessage
464
465 2003-02-09  Zack Rusin  <zack@kde.org>
466
467         * test/bus-test.c: make_it_compile
468         * doc/dbus-specification.sgml: minimal semantic fix
469
470 2003-02-06  Anders Carlsson  <andersca@codefactory.se>
471
472         Release 0.3
473         
474         * NEWS: Update
475
476 2003-02-06  Anders Carlsson  <andersca@codefactory.se>
477
478         * dbus/Makefile.am:
479         * dbus/dbus-break-loader.c:
480         * test/Makefile.am:
481         * test/break-loader.c:
482         Move dbus-break-loader to test/ and rename it to break-loader.
483
484 2003-02-02  Havoc Pennington  <hp@pobox.com>
485
486         * dbus/dbus-keyring.c, dbus/dbus-keyring.h: template files 
487         for code to manage cookies in your home directory
488
489         * dbus/dbus-sysdeps.c (_dbus_generate_random_bytes): new function
490
491         * dbus/dbus-auth.c (get_state): impose a maximum number of tries
492         to authenticate, then disconnect the client.
493
494 2003-02-03  Alexander Larsson  <alexl@redhat.com>
495
496         * dbus/dbus-message.c (dbus_message_append_fields):
497         Correct docs.
498
499 2003-02-02  Anders Carlsson  <andersca@codefactory.se>
500
501         * doc/dbus-specification.sgml:
502         Update address format section.
503         
504 2003-02-02  Anders Carlsson  <andersca@codefactory.se>
505
506         * test/Makefile.am:
507         * test/bus-test.c: (get_time), (add_timeout), (remove_timeout),
508         (message_handler), (new_connection_callback), (loop_quit),
509         (loop_run), (main):
510         Add bus test.
511         
512 2003-02-02  Anders Carlsson  <andersca@codefactory.se>
513
514         * bus/driver.c: (bus_driver_handle_service_exists):
515         Simplify the code a bit.
516         
517         * dbus/dbus-bus.c: (dbus_bus_service_exists):
518         Fix a silly. 
519         
520 2003-02-02  Anders Carlsson  <andersca@codefactory.se>
521
522         * bus/Makefile.am:
523         Add libdbus-daemon.la and link to it.
524
525 2003-02-01  James Willcox  <jwillcox@gnome.org>
526
527         * bus/driver.c: (bus_driver_handle_own_service):
528         Actually include the service reply code in the message.
529
530 2003-02-02  Anders Carlsson  <andersca@codefactory.se>
531
532         * bus/driver.c: (bus_driver_handle_service_exists):
533         Don't unref the incoming message.
534         
535 2003-02-02  Anders Carlsson  <andersca@codefactory.se>
536
537         * dbus/dbus.h: Add dbus-address.h and dbus-bus.h
538
539 2003-02-02  Anders Carlsson  <andersca@codefactory.se>
540
541         * dbus/dbus-server.c: (dbus_server_listen):
542         * dbus/dbus-transport.c: (_dbus_transport_open):
543         ifdef out the calls to the debug transport and server.
544         
545 2003-02-02  Alexander Larsson  <alexl@redhat.com>
546
547         * dbus/dbus-watch.c (dbus_watch_get_flags):
548         Add note in the docs that ERROR or HANGUP won't be returned
549         and are assumed always on.
550
551         * glib/dbus-gmain.c (add_watch):
552         Always add IO_ERR | IO_HUP
553
554         * dbus/dbus-message.h:
555         Add semicolon after dbus_message_iter_get_string_array().
556         Makes qt code build again
557
558 2003-02-01  Anders Carlsson  <andersca@codefactory.se>
559
560         * bus/driver.c: (create_unique_client_name),
561         (bus_driver_handle_hello):
562         Don't take a name, just use a numeric id to identify
563         each client.
564         
565         * dbus/Makefile.am:
566         * dbus/dbus-bus.c: (dbus_bus_register_client),
567         (dbus_bus_acquire_service), (dbus_bus_service_exists):
568         * dbus/dbus-bus.h:
569         Add new convenience functions for communicating with the bus.
570         
571         * dbus/dbus-message.h:
572         
573         * dbus/dbus-protocol.h:
574         Fix a typo.
575         
576 2003-02-01  Alexander Larsson  <alexl@redhat.com>
577
578         * dbus/dbus-message.c (dbus_message_append_fields):
579         Add some more doc comments.
580
581 2003-02-01  Havoc Pennington  <hp@pobox.com>
582
583         * dbus/dbus-break-loader.c (randomly_modify_length): change 
584         a 4-byte value in the message as if it were a length
585
586         * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): don't set
587         execute bit on saved files
588
589 2003-02-01  Havoc Pennington  <hp@pobox.com>
590
591         * dbus/dbus-break-loader.c (main): new program to find messages
592         that break the loader.
593
594         * dbus/dbus-sysdeps.c (_dbus_string_append_uint): new function
595         * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): new function
596
597         * dbus/dbus-string.c (_dbus_string_set_byte): new
598         
599 2003-01-31  Havoc Pennington  <hp@pobox.com>
600
601         * dbus/dbus-message.c: refactor the test code to be more general, 
602         in preparation for writing a "randomly permute test cases to 
603         try to break the loader" program.
604
605 2003-01-31  Havoc Pennington  <hp@pobox.com>
606         
607         * doc/dbus-specification.sgml: work on the specification
608
609         * dbus/dbus-message.c (_dbus_message_loader_return_buffer): check 
610         the protocol version of the message.
611
612         * dbus/dbus-protocol.h: drop special _REPLY names, the spec 
613         no longer specifies that.
614         (DBUS_SERVICE_REPLY_SERVICE_EXISTS): fix flags (1/2/4/8 not 
615         1/2/3/4)
616
617         * dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos): add missing
618         "break" for DBUS_TYPE_NIL, remove @todo
619
620 2003-01-31  Havoc Pennington  <hp@pobox.com>
621
622         * dbus/dbus-message.c (dbus_message_set_is_error_reply): rename 
623         just set_is_error/get_is_error as this is a commonly-used
624         function, and write docs.
625
626 2003-01-31  Anders Carlsson  <andersca@codefactory.se>
627
628         * dbus/dbus-address.c: (dbus_address_entry_free):
629         Free key and value lists.
630         
631         * dbus/dbus-internals.c: (_dbus_type_to_string):
632         Add the types we didn't have.
633         
634         * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
635         (_dbus_marshal_validate_arg):
636         Add NIL types.
637         
638         * dbus/dbus-message.c: (dbus_message_set_sender):
639         Remove todo about being able to set sender to NULL.
640         
641         (dbus_message_set_is_error_reply),
642         (dbus_message_get_is_error_reply):
643         * dbus/dbus-message.h:
644         New functions.
645         
646         * dbus/dbus-protocol.h:
647         Add error reply flag.
648         
649         * test/data/valid-messages/opposite-endian.message:
650         Add NIL type to test.
651         
652 2003-01-31  Havoc Pennington  <hp@pobox.com>
653
654         * doc/dbus-specification.sgml: fully specify the header.  Add
655         flags and major protocol version, and change header/body len to
656         unsigned.
657
658         * dbus/dbus-message-builder.c (append_saved_length): append length
659         as uint32
660
661         * dbus/dbus-message.c (dbus_message_create_header): change header
662         length and body length to unsigned. Add the new fields from the
663         spec
664         (_dbus_message_loader_return_buffer): unsigned header/body len
665
666 2003-01-30  Havoc Pennington  <hp@pobox.com>
667
668         * dbus/dbus-auth.c: rework to use only REJECTED, no 
669         MECHANISMS
670
671         * doc/dbus-sasl-profile.txt: drop MECHANISMS and just 
672         use REJECTED, suggested by Mark McLoughlin
673
674 2003-01-30  Havoc Pennington  <hp@pobox.com>
675
676         * dbus/dbus-server.c (dbus_server_listen): @todo about how we need
677         a better way to report errors here. e.g.  "unix address lacks
678         path" or something. also "no such file" when the path doesn't
679         exist, etc.
680
681         * dbus/dbus-address.c (dbus_address_entries_free): add @todo about
682         leaking list nodes
683         (dbus_parse_address): add @todo about documenting address format, 
684         and allowing , and ; to be escaped
685
686 2003-01-30  Anders Carlsson  <andersca@codefactory.se>
687
688         * dbus/Makefile.am:
689         Add dbus-address.[ch]
690         
691         * dbus/dbus-address.c: (dbus_address_entry_free),
692         (dbus_address_entries_free), (create_entry),
693         (dbus_address_entry_get_method), (dbus_address_entry_get_value),
694         (dbus_parse_address), (_dbus_address_test):
695         * dbus/dbus-address.h:
696         New files for dealing with address parsing.
697         
698         * dbus/dbus-connection.c:
699         Document timeout functions.
700         
701         * dbus/dbus-message.c:
702         Document dbus_message_new_from_message.
703         
704         * dbus/dbus-server-debug.c:
705         Document.
706         
707         * dbus/dbus-server.c: (dbus_server_listen):
708         Parse address and use correct server implementation.
709         
710         * dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
711         * dbus/dbus-string.h:
712         New function with test.
713         
714         * dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
715         * dbus/dbus-test.h:
716         Add address tests.
717         
718         * dbus/dbus-transport-debug.c:
719         Document.
720         
721         * dbus/dbus-transport.c: (_dbus_transport_open):
722         Parse address and use correct transport implementation. 
723
724 2003-01-30  Havoc Pennington  <hp@pobox.com>
725
726         * dbus/dbus-message.c: use message->byte_order instead of 
727         DBUS_COMPILER_BYTE_ORDER throughout.
728         (dbus_message_create_header): pad header to align the 
729         start of the body of the message to 8-byte boundary
730
731         * dbus/dbus-marshal.h: make all the demarshalers take const 
732         DBusString arguments.
733
734         * dbus/dbus-message.c (_dbus_message_loader_return_buffer):
735         validate message args here, so we don't have to do slow validation
736         later, and so we catch bad messages as they are incoming. Also add
737         better checks on header_len and body_len. Also fill in
738         message->byte_order
739
740         * dbus/dbus-string.c (_dbus_string_validate_utf8): new (not
741         implemented properly)
742         (_dbus_string_validate_nul): new function to check all-nul
743
744         * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): rename 
745         get_arg_end_pos and remove all validation
746         (_dbus_marshal_validate_arg): actually do validation here.
747
748 2003-01-29  Havoc Pennington  <hp@pobox.com>
749
750         * dbus/dbus-message.c (check_message_handling): fix assertion
751         failure on set_client_serial
752
753 2003-01-28  Havoc Pennington  <hp@pobox.com>
754
755         * dbus/dbus-server-debug.c: Add doc section comments
756         
757         * dbus/dbus-transport-debug.c: add doc section comments
758         
759 2003-01-28  Havoc Pennington  <hp@redhat.com>
760
761         * dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
762         the reverse order from how I had it
763         (_dbus_string_base64_encode): reverse encoding order. I was
764         basically byteswapping everything during encoding.
765
766 2003-01-28  Anders Carlsson  <andersca@codefactory.se>
767
768         * dbus/dbus-connection-internal.h:
769         * dbus/dbus-connection.c: (_dbus_connection_add_timeout),
770         (_dbus_connection_remove_timeout):
771         Add functions for adding and removing timeouts.
772         
773         * dbus/dbus-message.c: (dbus_message_new_from_message):
774         Add new function that takes a message and creates an exact
775         copy of it, but with the refcount set to 1.
776         (check_message_handling):
777         Fix build error.
778         
779         * dbus/dbus-server-protected.h:
780         * dbus/dbus-server.c: (_dbus_server_init_base),
781         (_dbus_server_finalize_base), (_dbus_server_add_timeout),
782         (dbus_server_set_timeout_functions):
783         (_dbus_server_remove_timeout):
784         New functions so that a server can add and remove timeouts.
785
786         (dbus_server_listen):
787         Add commented out call to dbus_server_debug_new.
788
789         * dbus/dbus-timeout.c: (_dbus_timeout_new):
790         Actually set the handler, doh.
791         
792         * dbus/dbus-transport.c: (_dbus_transport_open):
793         Add commented out call to dbus_transport_debug_client_new.
794         
795         * dbus/Makefile.am:
796         Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
797         
798 2003-01-28  Havoc Pennington  <hp@pobox.com>
799
800         * dbus/dbus-message.c (check_message_handling): function to check 
801         on the loaded message, iterates over it etc.
802
803 2003-01-28  Havoc Pennington  <hp@pobox.com>
804
805         * test/Makefile.am (dist-hook): fix make distdir
806
807         * dbus/Makefile.am (TESTS_ENVIRONMENT): fix make check
808
809 2003-01-27  Havoc Pennington  <hp@pobox.com>
810
811         * dbus/dbus-mempool.c (time_for_size): replace printf with 
812         _dbus_verbose
813
814         * dbus/dbus-message-builder.c (_dbus_message_data_load): allow
815         empty lines; fix the SAVE_LENGTH stuff to be
816         START_LENGTH/END_LENGTH so it actually works; couple other 
817         bugfixes
818         
819         * test/Makefile.am (dist-hook): add dist-hook for .message files
820
821         * dbus/dbus-string.c (DBUS_STRING_COPY_PREAMBLE): source of a copy
822         can be constant or locked.
823         (_dbus_string_free): allow freeing a const string as
824         documented/intended
825
826         * dbus/dbus-sysdeps.c (_dbus_concat_dir_and_file): utility
827
828         * dbus/dbus-test-main.c (main): take an argument which is the 
829         directory containing test data
830
831         * dbus/dbus-message.c (_dbus_message_test): pass a test_data_dir
832         argument to this and load all the messages in test/data/
833         checking that they can be loaded or not loaded as appropriate.
834
835 2003-01-27  Anders Carlsson  <andersca@codefactory.se>
836
837         * bus/dispatch.c: (bus_dispatch_message_handler):
838         Dispatch messages sent to services.
839         
840         * bus/driver.c: (bus_driver_send_service_deleted),
841         (bus_driver_send_service_created), (bus_driver_send_service_lost),
842         (bus_driver_send_service_acquired):
843         Add helper functions for sending service related messages.
844
845         (bus_driver_send_welcome_message):
846         Send HELLO_REPLY instead of WELCOME.
847         
848         (bus_driver_handle_list_services):
849         Send LIST_SERVICES_REPLY instead of SERVICES.
850         
851         (bus_driver_handle_own_service),
852         (bus_driver_handle_service_exists):
853         New message handlers.
854         
855         (bus_driver_handle_message):
856         Invoke new message handlers.
857         
858         (bus_driver_remove_connection):
859         Don't remove any services here since that's done automatically
860         by bus_service_remove_owner now.
861         
862         * bus/driver.h:
863         New function signatures.
864         
865         * bus/services.c: (bus_service_add_owner):
866         Send ServiceAcquired message if we're the only primary owner.
867         
868         (bus_service_remove_owner):
869         Send ServiceAcquired/ServiceLost messages.
870         
871         (bus_service_set_prohibit_replacement),
872         (bus_service_get_prohibit_replacement):
873         Functions for setting prohibit replacement.
874         
875         (bus_service_has_owner):
876         New function that checks if a connection is in the owner queue of 
877         a certain service.
878         
879         * bus/services.h:
880         Add new function signatures.
881         
882         * dbus/dbus-list.c: (_dbus_list_test):
883         Add tests for _dbus_list_remove_last and traversing the list backwards.
884         
885         * dbus/dbus-list.h:
886         Fix a typo in _dbus_list_get_prev_link, if we're at the first element we can't
887         go any further, so return NULL then.
888         
889         * dbus/dbus-protocol.h:
890         Add new messages, service flags and service replies.
891         
892 2003-01-26  Havoc Pennington  <hp@pobox.com>
893
894         * dbus/dbus-message-builder.c: implement, completely untested.
895
896         * test/data/*: add data to be used in testing. 
897         ".message" files are our simple loadable text format.
898         ".message-raw" will be binary dumps of messages.
899
900         * dbus/dbus-string.c (_dbus_string_starts_with_c_str): new
901
902 2003-01-26  Havoc Pennington  <hp@pobox.com>
903
904         * dbus/dbus-sysdeps.c (_dbus_file_get_contents): new function
905
906         * dbus/dbus-errors.c (dbus_result_to_string): add
907         file errors
908
909         * dbus/dbus-message-builder.c: new file, will contain code to load
910         up messages from files. Not implemented yet.
911
912 2003-01-26  Havoc Pennington  <hp@pobox.com>
913
914         * dbus/dbus-message.c (dbus_message_set_sender): support deleting
915         the sender by setting to NULL
916
917 2003-01-26  Havoc Pennington  <hp@pobox.com>
918
919         The unit tests pass, but otherwise untested.  If it breaks, the
920         tests should have been better. ;-)
921         
922         * bus/driver.c (bus_driver_handle_hello): return if we disconnect
923         the connection.
924
925         * dbus/dbus-message.c: redo everything so we maintain 
926         message->header as the only copy of the various fields.
927         This avoids the possibility of out-of-memory in some cases,
928         for example dbus_message_lock() can't run out of memory anymore,
929         and avoids extra copying. Figured I may as well go ahead and do 
930         this since it was busted for dbus_message_lock to not return 
931         failure on OOM, and dbus_message_write_header was totally
932         unchecked for OOM. Also fixed some random other bugs.
933
934         * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): verify
935         that strings are nul-terminated. Also, end_pos can be equal 
936         to string length just not greater than, I think.
937         (_dbus_marshal_set_int32): new function
938         (_dbus_marshal_set_uint32): new function
939         (_dbus_marshal_set_string): new function
940
941         * dbus/dbus-connection.c (_dbus_connection_new_for_transport): fix
942         a warning, init timeout_list to NULL
943         (dbus_connection_send_message): don't use uninitialized variable
944         "serial"
945
946         * dbus/dbus-string.c (_dbus_string_replace_len): new function
947
948 2003-01-26  Anders Carlsson  <andersca@codefactory.se>
949
950         * bus/driver.c: (bus_driver_handle_hello),
951         (bus_driver_send_welcome_message):
952         Plug leaks
953         
954 2003-01-26  Anders Carlsson  <andersca@codefactory.se>
955
956         * dbus/dbus-auth.c: (process_auth), (_dbus_auth_unref):
957         * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
958         (dbus_connection_unref):
959         * dbus/dbus-marshal.c: (_dbus_marshal_test):
960         * dbus/dbus-message.c: (dbus_message_unref),
961         Plug memory leaks.
962         
963         (dbus_message_get_fields): 
964         Remove debugging printout.
965
966         (_dbus_message_loader_return_buffer):
967         Don't store the header string.
968         
969         (_dbus_message_test):
970         Plug leaks.
971
972 2003-01-26  Richard Hult  <rhult@codefactory.se>
973
974         * glib/dbus-gmain.c (dbus_connection_dispatch): Traverse a copy of
975         the file descriptor list, since it can change under us.
976
977 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
978
979         * glib/dbus-gmain.c: (dbus_connection_prepare),
980         (dbus_connection_check), (dbus_connection_dispatch), (add_watch),
981         (remove_watch), (dbus_connection_hookup_with_g_main):
982         Rewrite the glib handling to use its own GSource instead of a 
983         GIOChannel so we can catch messages put in the queue while waiting
984         for a reply.
985         
986 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
987
988         * bus/Makefile.am:
989         * bus/connection.c: (connection_disconnect_handler),
990         (connection_watch_callback), (bus_connection_setup):
991         * bus/dispatch.c: (send_one_message),
992         (bus_dispatch_broadcast_message), (bus_dispatch_message_handler),
993         (bus_dispatch_add_connection), (bus_dispatch_remove_connection):
994         * bus/dispatch.h:
995         * bus/driver.c: (bus_driver_send_service_deleted),
996         (bus_driver_send_service_created), (bus_driver_handle_hello),
997         (bus_driver_send_welcome_message),
998         (bus_driver_handle_list_services), (bus_driver_remove_connection),
999         (bus_driver_handle_message):
1000         * bus/driver.h:
1001         Refactor code, put the message dispatching in its own file. Use 
1002         _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client
1003         is disconnected.
1004         
1005 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
1006
1007         * dbus/dbus-internals.h:
1008         Add _DBUS_HANDLE_OOM macro, it doesn't do anything currently.
1009         
1010         * dbus/dbus-message.c: (dbus_message_get_sender):
1011         * dbus/dbus-message.h:
1012         Implement dbus_message_get_sender.
1013         
1014         * dbus/dbus-protocol.h:
1015         Add message and service defines.
1016         
1017 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
1018
1019         * dbus/dbus-connection.c: (dbus_connection_send_message):
1020         * dbus/dbus-message-internal.h:
1021         * dbus/dbus-message.c: (_dbus_message_get_client_serial),
1022         (dbus_message_write_header):
1023         Remove _dbus_messag_unlock and don't set the client serial on a 
1024         message if one already exists.
1025         
1026 2003-01-24  Havoc Pennington  <hp@pobox.com>
1027
1028         * dbus/dbus-list.c (alloc_link): put a thread lock on the global
1029         list_pool
1030
1031         * bus/driver.c (bus_driver_handle_list_services): fix a leak 
1032         on OOM
1033
1034 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
1035
1036         * dbus/dbus-list.c: (alloc_link), (free_link):
1037         Use a memory pool for the links.
1038         
1039 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
1040
1041         * bus/connection.c: (bus_connection_foreach):
1042         * bus/connection.h:
1043         Add new bus_connection_foreach function.
1044         
1045         * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
1046         Add function that broadcasts a message to all clients.
1047         
1048         (bus_driver_send_service_created), (bus_driver_handle_hello),
1049         (bus_driver_send_welcome_message),
1050         (bus_driver_handle_list_services), (bus_driver_message_handler):
1051         Implement functions that take care of listing services, and notifying
1052         clients when new services are created.
1053         
1054         * bus/services.c: (bus_services_list):
1055         * bus/services.h:
1056         Add new function that returns an array of strings with the currently
1057         registered services.
1058         
1059         * glib/dbus-glib.h:
1060         * glib/dbus-gmain.c:
1061         Update copyright year.
1062         
1063 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
1064
1065         * dbus/dbus-connection.c: (dbus_connection_send_message):
1066         Unlock the message in case it was sent earlier.
1067         
1068         (dbus_connection_send_message_with_reply_and_block):
1069         Remove the reply message from the list.
1070         
1071         * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
1072         Set array_len and new_pos correctly.
1073         
1074         (_dbus_marshal_test):
1075         Remove debug output.
1076         
1077         * dbus/dbus-message-internal.h:
1078         * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
1079         New function that returns the reply serial.
1080         
1081         (_dbus_message_unlock):
1082         New function that unlocks a message and resets its header.
1083
1084         (dbus_message_append_string_array), 
1085         (dbus_message_get_fields_valist),
1086         (dbus_message_iter_get_field_type),
1087         (dbus_message_iter_get_string_array),   
1088         (dbus_message_get_fields),      
1089         (dbus_message_append_fields_valist):
1090         Handle string arrays.
1091         
1092         (dbus_message_set_sender):
1093         Make this function public since the bus daemon needs it.
1094         
1095         (decode_header_data):
1096         Set the reply serial to -1 initially.
1097
1098         * dbus/dbus-message.h:
1099         Add dbus_message_set_sender.    
1100
1101 2003-01-24  Havoc Pennington  <hp@pobox.com>
1102
1103         * doc/dbus-specification.sgml: add some stuff
1104
1105 2003-01-22  Havoc Pennington  <hp@pobox.com>
1106
1107         * doc/dbus-specification.sgml: Start to document the protocol.
1108
1109 2003-01-22  Havoc Pennington  <hp@pobox.com>
1110
1111         * dbus/dbus-connection.c
1112         (dbus_connection_send_message_with_reply_and_block): add some @todo
1113
1114         * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
1115
1116 2003-01-21  Havoc Pennington  <hp@pobox.com>
1117
1118         (patch untested because can't compile)
1119         
1120         * bus/driver.c (create_unique_client_name): make this function
1121         never recycle client names. Also, caller should initialize 
1122         the DBusString.
1123
1124         * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
1125
1126 2003-01-21  Anders Carlsson  <andersca@codefactory.se>
1127
1128         * dbus/dbus-marshal.c: (_dbus_marshal_double),
1129         (_dbus_marshal_int32), (_dbus_marshal_uint32),
1130         (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
1131         (_dbus_marshal_double_array), (_dbus_marshal_string_array),
1132         (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
1133         (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
1134         (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
1135         * dbus/dbus-marshal.h:
1136         * dbus/dbus-protocol.h:
1137         Add support for marshalling and demarshalling integer, double
1138         and string arrays.
1139         
1140 2003-01-21  Anders Carlsson  <andersca@codefactory.se>
1141
1142         * bus/Makefile.am:
1143         Add driver.[ch]
1144         
1145         * bus/connection.c: (connection_disconnect_handler):
1146         Remove the connection from the bus driver's list.
1147         
1148         (connection_watch_callback): Dispatch messages.
1149
1150         (free_connection_data): Free connection name.
1151         
1152         (bus_connection_setup): Add connection to the bus driver's list.
1153         (bus_connection_remove_owned_service): 
1154         (bus_connection_set_name), (bus_connection_get_name):
1155         Add functions for setting and getting the connection's name.
1156         
1157         * bus/connection.h:
1158         Add function headers.
1159         
1160         * bus/driver.c: (create_unique_client_name),
1161         (bus_driver_handle_hello_message),
1162         (bus_driver_send_welcome_message), (bus_driver_message_handler),
1163         (bus_driver_add_connection), (bus_driver_remove_connection):
1164         * bus/driver.h:
1165         * bus/main.c:
1166         * bus/services.c: (bus_service_free):
1167         * bus/services.h:
1168         New file that handles communication and registreation with the bus
1169         itself. 
1170         
1171 2003-01-21  Anders Carlsson  <andersca@codefactory.se>
1172
1173         * dbus/dbus-connection.c: (dbus_connection_send_message):
1174         Add a new client_serial parameter.
1175         
1176         (dbus_connection_send_message_with_reply):
1177         Remove a @todo since we've implemented the blocking function.
1178         
1179         (dbus_connection_send_message_with_reply_and_block):
1180         New function that sends a message and waits for a reply and
1181         then returns the reply.
1182         
1183         * dbus/dbus-connection.h:
1184         Add new functions.
1185         
1186         * dbus/dbus-errors.c: (dbus_result_to_string):
1187         * dbus/dbus-errors.h:
1188         Add new DBUS_RESULT.
1189         
1190         * dbus/dbus-message-internal.h:
1191         * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
1192         (_dbus_message_set_sender), (dbus_message_write_header),
1193         (dbus_message_new_reply), (decode_header_data),
1194         (_dbus_message_loader_return_buffer), (_dbus_message_test):
1195         * dbus/dbus-message.h:
1196         Add new functions that set the reply serial and sender.
1197         Also marshal and demarshal them correctly and add test.
1198         
1199         * dbus/dbus-protocol.h:
1200         Add new DBUS_MESSAGE_TYPE_SENDER.
1201         
1202         * glib/dbus-glib.h:
1203         * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
1204         (add_watch), (remove_watch), (add_timeout), (remove_timeout),
1205         (dbus_connection_hookup_with_g_main):
1206         * glib/test-dbus-glib.c: (main):
1207         Rewrite to use GIOChannel and remove the GSource crack.
1208         
1209         * test/echo-client.c: (main):
1210         * test/watch.c: (check_messages):
1211         Update for changed APIs
1212         
1213 2003-01-19  Anders Carlsson  <andersca@codefactory.se>
1214
1215         * dbus/Makefile.am: Add dbus-timeout.[cħ]
1216         
1217         * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
1218         Create a DBusTimeoutList.       
1219         (dbus_connection_set_timeout_functions): Add new function to
1220         set timeout callbacks
1221         
1222         * dbus/dbus-connection.h: Add public DBusTimeout API.
1223         
1224         * dbus/dbus-message.c: (dbus_message_get_service):
1225         * dbus/dbus-message.h:  New function.
1226
1227         * dbus/dbus-server.c: Fix small doc typo.
1228         
1229         * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
1230
1231 2003-01-19  Anders Carlsson  <andersca@codefactory.se>
1232
1233         * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
1234         of the string, just as long as specified.
1235
1236 2003-01-19  Havoc Pennington  <hp@pobox.com>
1237
1238         * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
1239         new function
1240
1241         * dbus/dbus-server.c (dbus_server_set_max_connections)
1242         (dbus_server_get_max_connections, dbus_server_get_n_connections):
1243         keep track of current number of connections, and add API for
1244         setting a max (but haven't implemented enforcing the max yet)
1245
1246 2003-01-18  Havoc Pennington  <hp@pobox.com>
1247
1248         * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
1249         reading/writing if read_watch != NULL or write_watch != NULL.
1250
1251         * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
1252         the message loader code to actually load message->header and
1253         message->body into the newly-created message.
1254
1255         * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
1256         in OOM case
1257
1258         * dbus/dbus-connection.c (dbus_connection_set_max_message_size) 
1259         (dbus_connection_get_max_message_size) 
1260         (dbus_connection_set_max_live_messages_size) 
1261         (dbus_connection_get_max_live_messages_size): implement some
1262         resource limitation functions
1263
1264         * dbus/dbus-resources.c: new file implementing some of the
1265         resource limits stuff
1266
1267         * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
1268         missing docs, add @todo to handle OOM etc.
1269
1270         * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
1271         docs
1272         
1273 2003-01-18  Havoc Pennington  <hp@pobox.com>
1274
1275         * dbus/dbus-connection.c (dbus_connection_unref): disconnect the 
1276         connection if it hasn't been already.
1277
1278         * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
1279         replace with DisconnectFunction.
1280
1281 2003-01-18  Havoc Pennington  <hp@pobox.com>
1282
1283         Building --disable-verbose-mode --disable-asserts --disable-tests
1284         cuts the library from 112K to 45K or so
1285         
1286         * configure.in: check for varargs macro support, 
1287         add --enable-verbose-mode, --enable-asserts. 
1288
1289         * dbus/dbus-internals.h (_dbus_assert): support
1290         DBUS_DISABLE_ASSERT
1291         (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
1292
1293 2003-01-18  Havoc Pennington  <hp@pobox.com>
1294
1295         * dbus/dbus-test.c: include config.h so that tests actually run
1296
1297         * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
1298         so the failure mode when that assumption fails will be plenty
1299         obvious.
1300
1301 2003-01-18  Havoc Pennington  <hp@pobox.com>
1302
1303         * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
1304
1305         * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
1306         the distribution
1307
1308         * test/Makefile.am: don't use special variable "TESTS" for echo-*
1309         since we don't want to use those in make check
1310
1311 2003-01-15  Havoc Pennington  <hp@redhat.com>
1312
1313         Release 0.2
1314         
1315         * NEWS: update
1316
1317 2003-01-15  Havoc Pennington  <hp@redhat.com>
1318
1319         * test/Makefile.am: fix so that test source code ends up in the
1320         distribution on make distcheck
1321
1322 2003-01-15  Havoc Pennington  <hp@redhat.com>
1323
1324         Release 0.1.
1325         
1326         * NEWS: update  
1327
1328 2003-01-15  Havoc Pennington  <hp@redhat.com>
1329
1330         * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
1331         fix build when --disable-tests
1332
1333         * Makefile.am (EXTRA_DIST): put HACKING in here
1334
1335         * HACKING: document procedure for making a tarball release.
1336
1337 2003-01-14  Anders Carlsson  <andersca@codefactory.se>
1338
1339         * bus/connection.c: (connection_error_handler),
1340         (bus_connection_setup):
1341         * bus/main.c: (main):
1342         Make sure that the DBusConnectionData struct is NULLed
1343         out to prevent a segfault.
1344         
1345         * dbus/dbus-errors.c: (dbus_result_to_string):
1346         * dbus/dbus-errors.h:
1347         * dbus/dbus-message.c: (dbus_message_get_fields),
1348         (dbus_message_get_fields_valist), (_dbus_message_test):
1349         * dbus/dbus-message.h:
1350         Make dbus_message_get_fields return a result code so we can
1351         track invalid fields as well as oom.
1352         
1353 2003-01-11  Havoc Pennington  <hp@pobox.com>
1354
1355         * configure.in: change --enable-test/--enable-ansi action-if-given
1356         to enable_foo=$enableval instead of enable_foo=yes
1357
1358 2003-01-08  Havoc Pennington  <hp@pobox.com>
1359
1360         * dbus/dbus-string.c (_dbus_string_align_length): new function
1361
1362         * dbus/dbus-test-main.c: move main() for test app here
1363         * dbus/dbus-test.c
1364         (dbus_internal_symbol_do_not_use_run_tests): we have to export a
1365         symbol to run tests, because dbus-test isn't in the main 
1366         library
1367
1368         Code review nitpicks.
1369         
1370         * dbus/dbus-message.c (dbus_message_write_header): add newlines
1371         for people with narrow emacs ;-). Assert client_serial was filled
1372         in. Assert message->name != NULL.
1373         (dbus_message_append_fields): have "first_field_type" arg separate
1374         from va list, needed for C++ binding that also uses varargs IIRC
1375         and helps with type safety
1376         (dbus_message_new): add @todo about using DBusString to store
1377         service/name internally
1378         (dbus_message_new): don't leak ->service and ->name on OOM later
1379         in the function
1380         (dbus_message_unref): free the service name
1381         (dbus_message_get_fields): same change to varargs
1382         i.e. first_field_type
1383         (_dbus_message_loader_return_buffer): assert that the message data
1384         is aligned (if not it's a bug in our code). Put in verbose griping
1385         about why we set corrupted = TRUE.
1386         (decode_header_data): add FIXME that char* is evil.  Was going to
1387         add FIXME about evil locale-specific string.h strncmp, but just
1388         switched to wacky string-as-uint32 optimization. Move check for
1389         "no room for field name" above get_const_data_len() to avoid
1390         assertion failure in get_const_data_len if we have trailing 2
1391         bytes or the like. Check for service and name fields being
1392         provided twice. Don't leak service/name on error. Require field
1393         names to be aligned to 4 bytes.
1394
1395         * dbus/dbus-marshal.c: move byte swap stuff to header
1396         (_dbus_pack_int32): uscore-prefix
1397         (_dbus_unpack_int32): uscore-prefix
1398         (_dbus_unpack_uint32): export
1399         (_dbus_demarshal_string): add @todo complaining about use of
1400         memcpy()
1401         (_dbus_marshal_get_field_end_pos): add @todo about bad error
1402         handling allowing corrupt data to go unchecked
1403
1404 2003-01-08  Havoc Pennington  <hp@redhat.com>
1405
1406         * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write 
1407         to the select() as needed for authentication. (should be using
1408         _dbus_poll() not select, but for another day)
1409
1410         * dbus/dbus.h: include dbus/dbus-protocol.h
1411
1412 2003-01-08  Anders Carlsson  <andersca@codefactory.se>
1413
1414         * dbus/Makefile.am (dbusinclude_HEADERS): Install
1415         dbus-connection.h
1416
1417 2003-01-08  Anders Carlsson  <andersca@codefactory.se>
1418
1419         * dbus/dbus-internals.c: (_dbus_type_to_string):
1420         New function that returns a string describing a type.
1421         
1422         * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
1423         * dbus/dbus-marshal.h:
1424         * dbus/dbus-message.c: (dbus_message_get_fields_valist),
1425         (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
1426         (dbus_message_iter_get_byte_array):
1427         * dbus/dbus-message.h:
1428         Add new convenience functions for appending and getting message fields.
1429         Also add demarshalling routines for byte arrays.
1430
1431 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
1432
1433         * dbus/dbus-connection-internal.h:
1434         * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
1435         (_dbus_connection_get_next_client_serial),
1436         (dbus_connection_send_message):
1437         * dbus/dbus-internals.h:
1438         * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
1439         (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
1440         (_dbus_marshal_uint32), (_dbus_demarshal_double),
1441         (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
1442         (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
1443         (_dbus_verbose_bytes), (_dbus_marshal_test):
1444         * dbus/dbus-marshal.h:
1445         * dbus/dbus-message-internal.h:
1446         * dbus/dbus-message.c: (_dbus_message_set_client_serial),
1447         (dbus_message_write_header), (_dbus_message_lock),
1448         (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
1449         (dbus_message_get_name), (dbus_message_append_int32),
1450         (dbus_message_append_uint32), (dbus_message_append_double),
1451         (dbus_message_append_string), (dbus_message_append_byte_array),
1452         (dbus_message_get_fields_iter), (dbus_message_iter_ref),
1453         (dbus_message_iter_unref), (dbus_message_iter_has_next),
1454         (dbus_message_iter_next), (dbus_message_iter_get_field_type),
1455         (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
1456         (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
1457         (decode_header_data), (_dbus_message_loader_return_buffer),
1458         (message_iter_test), (_dbus_message_test):
1459         * dbus/dbus-message.h:
1460         * dbus/dbus-protocol.h:
1461         * dbus/dbus-test.c: (main):
1462         * dbus/dbus-test.h:
1463         * glib/test-dbus-glib.c: (message_handler), (main):
1464         * test/echo-client.c: (main):
1465         * test/watch.c: (check_messages):
1466         Make messages sendable and receivable for real.
1467         
1468 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
1469
1470         * dbus/dbus-marshal.c: (_dbus_marshal_double),
1471         (_dbus_marshal_string), (_dbus_marshal_byte_array):
1472         * dbus/dbus-message.c: (dbus_message_append_int32),
1473         (dbus_message_append_uint32), (dbus_message_append_double),
1474         (dbus_message_append_string), (dbus_message_append_byte_array):
1475         Handle OOM restoration.
1476         
1477 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
1478
1479         * dbus/dbus-marshal.c: (_dbus_marshal_string),
1480         (_dbus_demarshal_string), (_dbus_marshal_test):
1481         * dbus/dbus-marshal.h:
1482         * dbus/dbus-message.c: (dbus_message_get_name),
1483         Document these functions.
1484         
1485         (dbus_message_append_int32), (dbus_message_append_uint32),
1486         (dbus_message_append_double), (dbus_message_append_string),
1487         (dbus_message_append_byte_array):
1488         * dbus/dbus-message.h:
1489         Add functions for adding message fields of different types.
1490         
1491         * dbus/dbus-protocol.h:
1492         Add the different types.
1493
1494 2003-01-05  Havoc Pennington  <hp@pobox.com>
1495
1496         * bus/connection.c: implement routines for handling connections,
1497         first thing is keeping a list of owned services on each connection
1498         and setting up watches etc.
1499
1500         * bus/services.c: implement a mapping from service names to lists
1501         of connections
1502
1503         * dbus/dbus-hash.c: add DBUS_HASH_POINTER
1504
1505         * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
1506         to use static mutexes for global data
1507
1508         * dbus/dbus-connection.c (dbus_connection_set_data): add new
1509         collection of functions to set/get application-specific data
1510         on the DBusConnection.
1511
1512 2003-01-04  Havoc Pennington  <hp@pobox.com>
1513
1514         * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
1515         (_dbus_poll): new function
1516
1517         * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
1518         copied from GLib
1519
1520         * bus/loop.c: initial code for the daemon main loop
1521
1522 2003-01-04  Havoc Pennington  <hp@pobox.com>
1523
1524         * test/watch.c (error_handler): make it safe if the error handler 
1525         is called multiple times (if we s/error handler/disconnect
1526         handler/ we should just guarantee it's called only once)
1527
1528         * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
1529         error handler on disconnect (it's quite possible we should
1530         just change the error handler to a "disconnect handler," I'm 
1531         not sure we have any other meaningful errors)
1532
1533         * configure.in: check for getpwnam_r
1534
1535         * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
1536         dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
1537         mechanism as in SASL spec, using socket credentials
1538
1539         * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
1540         (_dbus_send_credentials_unix_socket): new function
1541
1542         * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
1543         dbus_accept()
1544         (_dbus_write): only check errno if <0 returned
1545         (_dbus_write_two): ditto
1546
1547 2003-01-02  Anders Carlsson  <andersca@codefactory.se>
1548
1549         * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
1550         (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
1551         (_dbus_marshal_test):
1552         * dbus/dbus-marshal.h:
1553         Add _dbus_marshal_byte_array and rename _dbus_marshal_string
1554         to _dbus_marshal_utf8_string. Also fix some tests.
1555         
1556 2002-12-28  Harri Porten  <porten@kde.org>
1557
1558         * configure.in: added check for C++ compiler and a very cheesy
1559         check for the Qt integration
1560
1561         * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
1562
1563         * qt/Makefile.am: added 
1564
1565         * qt/.cvsignore: added  
1566
1567         * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
1568         latter, added #ifdef QT_THREAD_SUPPORT guard.
1569
1570         * dbus/Makefile.am: added missing headers for make dist
1571
1572 2002-12-28  Kristian Rietveld  <kris@gtk.org>
1573
1574         * dbus/Makefile.am: fixup export-symbols-regex.
1575
1576 2002-12-27  Anders Carlsson  <andersca@codefactory.se>
1577
1578         * acinclude.m4: Add this file and put the 
1579         PKG_CHECK_MODULE macro in it.
1580
1581 2002-12-27  Anders Carlsson  <andersca@codefactory.se>
1582
1583         * dbus/dbus-marshal.c: (_dbus_marshal_string),
1584         (_dbus_demarshal_double), (_dbus_demarshal_int32),
1585         (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1586         (_dbus_marshal_test):
1587         Make the demarshalling routines align the pos argument.
1588         Add string marshalling tests and fix the obvious bugs 
1589         discovered.
1590         
1591 2002-12-26  Havoc Pennington  <hp@pobox.com>
1592
1593         * dbus/dbus-auth.c: fixes fixes fixes
1594
1595         * dbus/dbus-transport-unix.c: wire up support for
1596         encoding/decoding data on the wire
1597
1598         * dbus/dbus-auth.c (_dbus_auth_encode_data) 
1599         (_dbus_auth_decode_data): append to target string 
1600         instead of nuking it.
1601
1602 2002-12-26  Havoc Pennington  <hp@pobox.com>
1603
1604         * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
1605         WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
1606         doh
1607
1608         * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
1609         avoid swap_bytes() overhead (ignoring possible assembly stuff for 
1610         now). Main point is because I wanted unpack_uint32 to implement
1611         _dbus_verbose_bytes
1612         (_dbus_verbose_bytes): new function
1613
1614         * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
1615
1616         * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
1617         mechanism to handle a corrupt message stream
1618         (_dbus_message_loader_new): fix preallocation to only prealloc, 
1619         not prelengthen
1620         
1621         * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
1622         (_dbus_string_test): enhance tests for copy/move and fix the
1623         functions
1624
1625         * dbus/dbus-transport-unix.c: Hold references in more places to 
1626         avoid reentrancy problems
1627
1628         * dbus/dbus-transport.c: ditto
1629
1630         * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
1631         leak reference count in no-message case
1632
1633         * test/watch.c (do_mainloop): handle adding/removing watches
1634         during iteration over the watches. Also, ref the connection/server
1635         stored on a watch, so we don't try to mangle a destroyed one.
1636
1637         * dbus/dbus-transport-unix.c (do_authentication): perform
1638         authentication
1639
1640         * dbus/dbus-auth.c (get_state): add a state
1641         AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
1642         (_dbus_auth_get_unused_bytes): append the unused bytes
1643         to the passed in string, rather than prepend
1644
1645         * dbus/dbus-transport.c (_dbus_transport_init_base): create 
1646         the auth conversation DBusAuth
1647
1648         * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
1649         (_dbus_transport_new_for_domain_socket): when creating a
1650         transport, pass in whether it's a client-side or server-side
1651         transport so we know which DBusAuth to create
1652
1653 2002-12-03  Havoc Pennington  <hp@pobox.com>
1654
1655         * dbus/dbus-transport-unix.c (unix_finalize): finalize base
1656         _after_ finalizing the derived members
1657         (unix_connection_set): unref watch if we fail to add it
1658
1659         * dbus/dbus-connection.c (dbus_connection_unref): delete the
1660         transport first, so that the connection owned by the 
1661         transport will be valid as the transport finalizes.
1662
1663         * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
1664         if necessary, and remove watches from the connection.
1665         
1666         * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
1667         
1668 2002-12-26  Anders Carlsson  <andersca@codefactory.se>
1669
1670         * dbus/dbus-marshal.c: (_dbus_marshal_string),
1671         (_dbus_demarshal_double), (_dbus_demarshal_int32),
1672         (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1673         (_dbus_marshal_test):
1674         * dbus/dbus-marshal.h:
1675         Add string marshal functions and have the demarshal functions
1676         return the new position.
1677         
1678 2002-12-25  Havoc Pennington  <hp@pobox.com>
1679
1680         * doc/dbus-sasl-profile.txt: docs on the authentication protocol, 
1681         it is a simple protocol that just maps directly to SASL.
1682
1683         * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
1684         initial implementation, not actually used yet.
1685         
1686         * dbus/dbus-string.c (_dbus_string_find): new function
1687         (_dbus_string_equal): new function
1688         (_dbus_string_base64_encode): new function
1689         (_dbus_string_base64_decode): new function
1690
1691 2002-12-25  Anders Carlsson  <andersca@codefactory.se>
1692
1693         * dbus/Makefile.am:
1694         * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
1695         (_dbus_marshal_int32), (_dbus_marshal_uint32),
1696         (_dbus_demarshal_double), (_dbus_demarshal_int32),
1697         (_dbus_demarshal_uint32), (_dbus_marshal_test):
1698         * dbus/dbus-marshal.h:
1699         * dbus/dbus-protocol.h:
1700         * dbus/dbus-test.c: (main):
1701         * dbus/dbus-test.h:
1702         Add un-optimized marshalling/demarshalling routines.
1703         
1704 2002-12-25  Harri Porten  <porten@kde.org>
1705
1706         * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
1707
1708 2002-12-24  Zack Rusin  <zack@kde.org>
1709
1710         * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
1711         * qt/dbus-qt.h: skeleton with two sample implemenatation of the
1712         main loop stuff
1713
1714 2002-12-24  Havoc Pennington  <hp@pobox.com>
1715
1716         * glib/dbus-gthread.c: fix include
1717
1718         * glib/dbus-glib.h: rename DBusMessageHandler for now. 
1719         I think glib API needs to change, though, as you don't 
1720         want to use DBusMessageFunction, you want to use the 
1721         DBusMessageHandler object. Probably 
1722         dbus_connection_open_with_g_main_loop()
1723         and dbus_connection_setup_g_main_loop() or something like that
1724         (but think of better names...) that just create a connection 
1725         that has watch/timeout functions etc. already set up.
1726
1727         * dbus/dbus-connection.c
1728         (dbus_connection_send_message_with_reply): new function just to 
1729         show how the message handler helps us deal with replies.
1730
1731         * dbus/dbus-list.c (_dbus_list_remove_last): new function
1732
1733         * dbus/dbus-string.c (_dbus_string_test): free a string that
1734         wasn't
1735
1736         * dbus/dbus-hash.c: use memory pools for the hash entries
1737         (rebuild_table): be more paranoid about overflow, and 
1738         shrink table when we can
1739         (_dbus_hash_test): reduce number of sprintfs and write
1740         valid C89. Add tests for case where we grow and then 
1741         shrink the hash table.
1742
1743         * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
1744
1745         * dbus/dbus-connection.c (dbus_connection_register_handler) 
1746         (dbus_connection_unregister_handler): new functions
1747
1748         * dbus/dbus-message.c (dbus_message_get_name): new
1749
1750         * dbus/dbus-list.c: fix docs typo
1751
1752         * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
1753         an object representing a handler for messages.
1754
1755 2002-12-16  Anders Carlsson  <andersca@codefactory.se>
1756
1757         * glib/dbus-glib.h:
1758         * glib/dbus-gthread.c: (dbus_gthread_init):
1759         Don't use the gdbus prefix for public functions.
1760         
1761 2002-12-16  Anders Carlsson  <andersca@codefactory.se>
1762
1763         * Makefile.am:
1764         * configure.in:
1765         Add GLib checks and fixup .pc files
1766         
1767         * glib/Makefile.am:
1768         * glib/dbus-glib.h:
1769         * glib/dbus-gmain.c: (gdbus_connection_prepare),
1770         (gdbus_connection_check), (gdbus_connection_dispatch),
1771         (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
1772         (dbus_connection_gsource_new):
1773         * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
1774         (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
1775         * glib/test-dbus-glib.c: (message_handler), (main):
1776         Add GLib support.
1777         
1778 2002-12-15  Harri Porten  <porten@kde.org>
1779
1780         * autogen.sh: check for libtoolize before attempting to use it 
1781         
1782         * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
1783         struct.
1784         
1785         * .cvsignore: ignore more stamp files
1786
1787         * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
1788
1789         * test/Makefile.am: added -I$(top_srcdir) to be able to compile
1790         without make install.
1791
1792 2002-12-15  Havoc Pennington  <hp@pobox.com>
1793
1794         * dbus/dbus-threads.c: add thread stubs that a higher library
1795         layer can fill in. e.g. the GLib wrapper might fill them in with
1796         GThread stuff. We still need to use this thread API to
1797         thread-safe-ize the library.
1798
1799 2002-12-12  Havoc Pennington  <hp@pobox.com>
1800
1801         * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
1802         below new interfaces and include fewer system headers.
1803
1804         * dbus/dbus-sysdeps.c (_dbus_read): new function
1805         (_dbus_write): new function
1806         (_dbus_write_two): new function
1807         (_dbus_connect_unix_socket): new function
1808         (_dbus_listen_unix_socket): new function
1809
1810         * dbus/dbus-message-internal.h: change interfaces to use
1811         DBusString
1812
1813 2002-12-11  Havoc Pennington  <hp@pobox.com>
1814
1815         * dbus/dbus-types.h: add dbus_unichar
1816
1817         * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
1818
1819         * dbus/dbus-connection.c (dbus_connection_send_message): return
1820         TRUE on success
1821
1822         * dbus/dbus-transport.c: include dbus-watch.h   
1823
1824         * dbus/dbus-connection.c: include dbus-message-internal.h
1825
1826         * HACKING: add file with coding guidelines stuff.
1827
1828         * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
1829         handling here, for security purposes (as in vsftpd). Not actually
1830         using this class yet.
1831
1832         * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
1833         system/libc usage here, as in vsftpd, for ease of auditing (and
1834         should also simplify portability). Haven't actually moved all the
1835         system/libc usage into here yet.
1836         
1837 2002-11-25  Havoc Pennington  <hp@pobox.com>
1838
1839         * dbus/dbus-internals.c (_dbus_verbose): fix to not 
1840         always print the first verbose message.
1841
1842 2002-11-24  Havoc Pennington  <hp@pobox.com>
1843
1844         * test/echo-client.c, test/echo-server.c: cheesy test 
1845         clients.
1846         
1847         * configure.in (AC_CHECK_FUNCS): check for writev
1848
1849         * dbus/dbus-message.c (_dbus_message_get_network_data): new
1850         function
1851
1852         * dbus/dbus-list.c (_dbus_list_foreach): new function
1853
1854         * dbus/dbus-internals.c (_dbus_verbose): new function
1855
1856         * dbus/dbus-server.c, dbus/dbus-server.h: public object
1857         representing a server that listens for connections.
1858
1859         * dbus/.cvsignore: create
1860
1861         * dbus/dbus-errors.h, dbus/dbus-errors.c:
1862         public API for reporting errors
1863
1864         * dbus/dbus-connection.h, dbus/dbus-connection.c:
1865         public object representing a connection that 
1866         sends/receives messages. (Same object used for 
1867         both client and server.)
1868
1869         * dbus/dbus-transport.h, dbus/dbus-transport.c:
1870         Basic abstraction for different kinds of stream
1871         that we might read/write messages from.
1872
1873 2002-11-23  Havoc Pennington  <hp@pobox.com>
1874
1875         * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN 
1876         _DBUS_INT_MAX
1877
1878         * dbus/dbus-test.c (main): add list test, and include 
1879         dbus-test.h as intended
1880
1881         * dbus/dbus-hash.c (_dbus_hash_table_remove_string) 
1882         (_dbus_hash_table_remove_int): return value indicates 
1883         whether the entry existed to remove
1884
1885         * dbus/dbus-list.c: add linked list utility class, 
1886         with docs and tests
1887
1888         * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket 
1889         array sometimes.
1890
1891 2002-11-23  Havoc Pennington  <hp@pobox.com>
1892
1893         * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
1894         DBUS_END_DECLS to nothing, that should fix this once and for all
1895
1896         * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
1897
1898         * dbus/dbus-message.c, dbus/dbus-hash.c: 
1899         add some missing @brief
1900
1901 2002-11-23  Havoc Pennington  <hp@pobox.com>
1902
1903         * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS 
1904         to avoid confusing Doxygen
1905
1906         * dbus/dbus-hash.c: @} not }@
1907
1908         * dbus/dbus-message.c (struct DBusMessage): split out 
1909         internals docs
1910
1911 2002-11-23  Havoc Pennington  <hp@pobox.com>
1912
1913         * configure.in: pile on more warning flags if using gcc
1914
1915         * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have 
1916         to document static functions
1917
1918         * configure.in: add summary to end of configure so it 
1919         looks nice and attractive
1920
1921         * dbus/dbus-hash.c: finish implementation and write unit 
1922         tests and docs
1923
1924         * configure.in: add --enable-tests to enable unit tests
1925
1926         * dbus/dbus-test.c: test program to run unit tests 
1927         for all files in dbus/*, initially runs a test for 
1928         dbus-hash.c
1929         
1930         * dbus/dbus-internals.h: file to hold some internal utility stuff
1931
1932 2002-11-22  Havoc Pennington  <hp@redhat.com>
1933
1934         * dbus/dbus-hash.c: copy in Tcl hash table, not yet 
1935         "ported" away from Tcl
1936
1937         * dbus/dbus-types.h: header for types such as dbus_bool_t
1938
1939 2002-11-22  Havoc Pennington  <hp@redhat.com>
1940
1941         * dbus/dbus.h: fixups for doc warnings
1942
1943         * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up 
1944         macros
1945         (QUIET): make it quiet so we can see warnings
1946
1947         * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
1948
1949 2002-11-22  Havoc Pennington  <hp@redhat.com>
1950
1951         * Makefile.am: include "Doxyfile" target in all-local
1952
1953         * configure.in: generate the Doxyfile
1954
1955         * Doxyfile.in: move Doxyfile here, so we can use 
1956         configure to generate a Doxyfile with the right 
1957         version number etc.
1958
1959 2002-11-22  Havoc Pennington  <hp@redhat.com>
1960
1961         * dbus/dbus-message.c: move inline docs into .c file
1962
1963         * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
1964         so all docs are under doc/
1965         (MAN_EXTENSION): generate man pages. Use extension 
1966         ".3dbus" which matches ".3qt" on my system, 
1967         I guess this is OK, I don't know really.
1968         (FILE_PATTERNS): look for .c files not .h, makes sense
1969         for plain C I think
1970
1971 2002-11-22  Havoc Pennington  <hp@pobox.com>
1972
1973         * Makefile.am (SUBDIRS): rename subdir "server" to "bus" 
1974         because any app can be a server, and any app can be a client, 
1975         the bus is a special kind of server.
1976
1977 Thu Nov 21 23:35:31 2002  Zack Rusin  <zack@kde.org>
1978
1979         * Doxyfile : adding. Still needs Makefile rules to be generated
1980         automatically (just run "doxygen" in the toplevel dir for now to
1981         generate docs)
1982         
1983         * dbus/dbus-message.h : Adding sample docs (javadoc since
1984         resembles gtk-doc a little more)
1985
1986         * dbus/dbus.h : Adding sample docs
1987
1988 2002-11-21  Havoc Pennington  <hp@redhat.com>
1989
1990         * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION 
1991         so we can allow ourselves to include files directly, 
1992         instead of having to use dbus.h
1993
1994         * dbus/dbus.h: fill in
1995
1996         * dbus/dbus-message.h: sketch out a sample header file.
1997         Include griping if you include it directly instead of 
1998         via dbus.h
1999
2000         * dbus/dbus-macros.h: new file with macros for extern "C", 
2001         TRUE/FALSE, NULL, etc.
2002
2003         * doc/file-boilerplate.c: put include guards in here
2004
2005 2002-11-21  Havoc Pennington  <hp@redhat.com>
2006
2007         * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
2008
2009         * COPYING: include the GPL as well, and license code 
2010         under both AFL and GPL.
2011
2012 2002-11-21  Havoc Pennington  <hp@redhat.com>
2013
2014         * acconfig.h: get rid of this
2015
2016         * autogen.sh (run_configure): add --no-configure option
2017
2018         * configure.in: remove AC_ARG_PROGRAM to make
2019         autoconf complain less. add AC_PREREQ. 
2020         add AC_DEFINE third arg.
2021         
2022 2002-11-21  Anders Carlsson  <andersca@codefactory.se>
2023
2024         * doc/Makefile.am:
2025         Fix references so we can distcheck.
2026
2027 2002-11-21  Havoc Pennington  <hp@redhat.com>
2028
2029         * Initial module creation
2030