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