2003-01-30 Havoc Pennington <hp@pobox.com>
[platform/upstream/dbus.git] / ChangeLog
1 2003-01-30  Havoc Pennington  <hp@pobox.com>
2
3         * dbus/dbus-auth.c: rework to use only REJECTED, no 
4         MECHANISMS
5
6         * doc/dbus-sasl-profile.txt: drop MECHANISMS and just 
7         use REJECTED, suggested by Mark McLoughlin
8
9 2003-01-30  Havoc Pennington  <hp@pobox.com>
10
11         * dbus/dbus-server.c (dbus_server_listen): @todo about how we need
12         a better way to report errors here. e.g.  "unix address lacks
13         path" or something. also "no such file" when the path doesn't
14         exist, etc.
15
16         * dbus/dbus-address.c (dbus_address_entries_free): add @todo about
17         leaking list nodes
18         (dbus_parse_address): add @todo about documenting address format, 
19         and allowing , and ; to be escaped
20
21 2003-01-30  Anders Carlsson  <andersca@codefactory.se>
22
23         * dbus/Makefile.am:
24         Add dbus-address.[ch]
25         
26         * dbus/dbus-address.c: (dbus_address_entry_free),
27         (dbus_address_entries_free), (create_entry),
28         (dbus_address_entry_get_method), (dbus_address_entry_get_value),
29         (dbus_parse_address), (_dbus_address_test):
30         * dbus/dbus-address.h:
31         New files for dealing with address parsing.
32         
33         * dbus/dbus-connection.c:
34         Document timeout functions.
35         
36         * dbus/dbus-message.c:
37         Document dbus_message_new_from_message.
38         
39         * dbus/dbus-server-debug.c:
40         Document.
41         
42         * dbus/dbus-server.c: (dbus_server_listen):
43         Parse address and use correct server implementation.
44         
45         * dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
46         * dbus/dbus-string.h:
47         New function with test.
48         
49         * dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
50         * dbus/dbus-test.h:
51         Add address tests.
52         
53         * dbus/dbus-transport-debug.c:
54         Document.
55         
56         * dbus/dbus-transport.c: (_dbus_transport_open):
57         Parse address and use correct transport implementation. 
58
59 2003-01-30  Havoc Pennington  <hp@pobox.com>
60
61         * dbus/dbus-message.c: use message->byte_order instead of 
62         DBUS_COMPILER_BYTE_ORDER throughout.
63         (dbus_message_create_header): pad header to align the 
64         start of the body of the message to 8-byte boundary
65
66         * dbus/dbus-marshal.h: make all the demarshalers take const 
67         DBusString arguments.
68
69         * dbus/dbus-message.c (_dbus_message_loader_return_buffer):
70         validate message args here, so we don't have to do slow validation
71         later, and so we catch bad messages as they are incoming. Also add
72         better checks on header_len and body_len. Also fill in
73         message->byte_order
74
75         * dbus/dbus-string.c (_dbus_string_validate_utf8): new (not
76         implemented properly)
77         (_dbus_string_validate_nul): new function to check all-nul
78
79         * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): rename 
80         get_arg_end_pos and remove all validation
81         (_dbus_marshal_validate_arg): actually do validation here.
82
83 2003-01-29  Havoc Pennington  <hp@pobox.com>
84
85         * dbus/dbus-message.c (check_message_handling): fix assertion
86         failure on set_client_serial
87
88 2003-01-28  Havoc Pennington  <hp@pobox.com>
89
90         * dbus/dbus-server-debug.c: Add doc section comments
91         
92         * dbus/dbus-transport-debug.c: add doc section comments
93         
94 2003-01-28  Havoc Pennington  <hp@redhat.com>
95
96         * dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
97         the reverse order from how I had it
98         (_dbus_string_base64_encode): reverse encoding order. I was
99         basically byteswapping everything during encoding.
100
101 2003-01-28  Anders Carlsson  <andersca@codefactory.se>
102
103         * dbus/dbus-connection-internal.h:
104         * dbus/dbus-connection.c: (_dbus_connection_add_timeout),
105         (_dbus_connection_remove_timeout):
106         Add functions for adding and removing timeouts.
107         
108         * dbus/dbus-message.c: (dbus_message_new_from_message):
109         Add new function that takes a message and creates an exact
110         copy of it, but with the refcount set to 1.
111         (check_message_handling):
112         Fix build error.
113         
114         * dbus/dbus-server-protected.h:
115         * dbus/dbus-server.c: (_dbus_server_init_base),
116         (_dbus_server_finalize_base), (_dbus_server_add_timeout),
117         (dbus_server_set_timeout_functions):
118         (_dbus_server_remove_timeout):
119         New functions so that a server can add and remove timeouts.
120
121         (dbus_server_listen):
122         Add commented out call to dbus_server_debug_new.
123
124         * dbus/dbus-timeout.c: (_dbus_timeout_new):
125         Actually set the handler, doh.
126         
127         * dbus/dbus-transport.c: (_dbus_transport_open):
128         Add commented out call to dbus_transport_debug_client_new.
129         
130         * dbus/Makefile.am:
131         Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
132         
133 2003-01-28  Havoc Pennington  <hp@pobox.com>
134
135         * dbus/dbus-message.c (check_message_handling): function to check 
136         on the loaded message, iterates over it etc.
137
138 2003-01-28  Havoc Pennington  <hp@pobox.com>
139
140         * test/Makefile.am (dist-hook): fix make distdir
141
142         * dbus/Makefile.am (TESTS_ENVIRONMENT): fix make check
143
144 2003-01-27  Havoc Pennington  <hp@pobox.com>
145
146         * dbus/dbus-mempool.c (time_for_size): replace printf with 
147         _dbus_verbose
148
149         * dbus/dbus-message-builder.c (_dbus_message_data_load): allow
150         empty lines; fix the SAVE_LENGTH stuff to be
151         START_LENGTH/END_LENGTH so it actually works; couple other 
152         bugfixes
153         
154         * test/Makefile.am (dist-hook): add dist-hook for .message files
155
156         * dbus/dbus-string.c (DBUS_STRING_COPY_PREAMBLE): source of a copy
157         can be constant or locked.
158         (_dbus_string_free): allow freeing a const string as
159         documented/intended
160
161         * dbus/dbus-sysdeps.c (_dbus_concat_dir_and_file): utility
162
163         * dbus/dbus-test-main.c (main): take an argument which is the 
164         directory containing test data
165
166         * dbus/dbus-message.c (_dbus_message_test): pass a test_data_dir
167         argument to this and load all the messages in test/data/
168         checking that they can be loaded or not loaded as appropriate.
169
170 2003-01-27  Anders Carlsson  <andersca@codefactory.se>
171
172         * bus/dispatch.c: (bus_dispatch_message_handler):
173         Dispatch messages sent to services.
174         
175         * bus/driver.c: (bus_driver_send_service_deleted),
176         (bus_driver_send_service_created), (bus_driver_send_service_lost),
177         (bus_driver_send_service_acquired):
178         Add helper functions for sending service related messages.
179
180         (bus_driver_send_welcome_message):
181         Send HELLO_REPLY instead of WELCOME.
182         
183         (bus_driver_handle_list_services):
184         Send LIST_SERVICES_REPLY instead of SERVICES.
185         
186         (bus_driver_handle_own_service),
187         (bus_driver_handle_service_exists):
188         New message handlers.
189         
190         (bus_driver_handle_message):
191         Invoke new message handlers.
192         
193         (bus_driver_remove_connection):
194         Don't remove any services here since that's done automatically
195         by bus_service_remove_owner now.
196         
197         * bus/driver.h:
198         New function signatures.
199         
200         * bus/services.c: (bus_service_add_owner):
201         Send ServiceAcquired message if we're the only primary owner.
202         
203         (bus_service_remove_owner):
204         Send ServiceAcquired/ServiceLost messages.
205         
206         (bus_service_set_prohibit_replacement),
207         (bus_service_get_prohibit_replacement):
208         Functions for setting prohibit replacement.
209         
210         (bus_service_has_owner):
211         New function that checks if a connection is in the owner queue of 
212         a certain service.
213         
214         * bus/services.h:
215         Add new function signatures.
216         
217         * dbus/dbus-list.c: (_dbus_list_test):
218         Add tests for _dbus_list_remove_last and traversing the list backwards.
219         
220         * dbus/dbus-list.h:
221         Fix a typo in _dbus_list_get_prev_link, if we're at the first element we can't
222         go any further, so return NULL then.
223         
224         * dbus/dbus-protocol.h:
225         Add new messages, service flags and service replies.
226         
227 2003-01-26  Havoc Pennington  <hp@pobox.com>
228
229         * dbus/dbus-message-builder.c: implement, completely untested.
230
231         * test/data/*: add data to be used in testing. 
232         ".message" files are our simple loadable text format.
233         ".message-raw" will be binary dumps of messages.
234
235         * dbus/dbus-string.c (_dbus_string_starts_with_c_str): new
236
237 2003-01-26  Havoc Pennington  <hp@pobox.com>
238
239         * dbus/dbus-sysdeps.c (_dbus_file_get_contents): new function
240
241         * dbus/dbus-errors.c (dbus_result_to_string): add
242         file errors
243
244         * dbus/dbus-message-builder.c: new file, will contain code to load
245         up messages from files. Not implemented yet.
246
247 2003-01-26  Havoc Pennington  <hp@pobox.com>
248
249         * dbus/dbus-message.c (dbus_message_set_sender): support deleting
250         the sender by setting to NULL
251
252 2003-01-26  Havoc Pennington  <hp@pobox.com>
253
254         The unit tests pass, but otherwise untested.  If it breaks, the
255         tests should have been better. ;-)
256         
257         * bus/driver.c (bus_driver_handle_hello): return if we disconnect
258         the connection.
259
260         * dbus/dbus-message.c: redo everything so we maintain 
261         message->header as the only copy of the various fields.
262         This avoids the possibility of out-of-memory in some cases,
263         for example dbus_message_lock() can't run out of memory anymore,
264         and avoids extra copying. Figured I may as well go ahead and do 
265         this since it was busted for dbus_message_lock to not return 
266         failure on OOM, and dbus_message_write_header was totally
267         unchecked for OOM. Also fixed some random other bugs.
268
269         * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): verify
270         that strings are nul-terminated. Also, end_pos can be equal 
271         to string length just not greater than, I think.
272         (_dbus_marshal_set_int32): new function
273         (_dbus_marshal_set_uint32): new function
274         (_dbus_marshal_set_string): new function
275
276         * dbus/dbus-connection.c (_dbus_connection_new_for_transport): fix
277         a warning, init timeout_list to NULL
278         (dbus_connection_send_message): don't use uninitialized variable
279         "serial"
280
281         * dbus/dbus-string.c (_dbus_string_replace_len): new function
282
283 2003-01-26  Anders Carlsson  <andersca@codefactory.se>
284
285         * bus/driver.c: (bus_driver_handle_hello),
286         (bus_driver_send_welcome_message):
287         Plug leaks
288         
289 2003-01-26  Anders Carlsson  <andersca@codefactory.se>
290
291         * dbus/dbus-auth.c: (process_auth), (_dbus_auth_unref):
292         * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
293         (dbus_connection_unref):
294         * dbus/dbus-marshal.c: (_dbus_marshal_test):
295         * dbus/dbus-message.c: (dbus_message_unref),
296         Plug memory leaks.
297         
298         (dbus_message_get_fields): 
299         Remove debugging printout.
300
301         (_dbus_message_loader_return_buffer):
302         Don't store the header string.
303         
304         (_dbus_message_test):
305         Plug leaks.
306
307 2003-01-26  Richard Hult  <rhult@codefactory.se>
308
309         * glib/dbus-gmain.c (dbus_connection_dispatch): Traverse a copy of
310         the file descriptor list, since it can change under us.
311
312 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
313
314         * glib/dbus-gmain.c: (dbus_connection_prepare),
315         (dbus_connection_check), (dbus_connection_dispatch), (add_watch),
316         (remove_watch), (dbus_connection_hookup_with_g_main):
317         Rewrite the glib handling to use its own GSource instead of a 
318         GIOChannel so we can catch messages put in the queue while waiting
319         for a reply.
320         
321 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
322
323         * bus/Makefile.am:
324         * bus/connection.c: (connection_disconnect_handler),
325         (connection_watch_callback), (bus_connection_setup):
326         * bus/dispatch.c: (send_one_message),
327         (bus_dispatch_broadcast_message), (bus_dispatch_message_handler),
328         (bus_dispatch_add_connection), (bus_dispatch_remove_connection):
329         * bus/dispatch.h:
330         * bus/driver.c: (bus_driver_send_service_deleted),
331         (bus_driver_send_service_created), (bus_driver_handle_hello),
332         (bus_driver_send_welcome_message),
333         (bus_driver_handle_list_services), (bus_driver_remove_connection),
334         (bus_driver_handle_message):
335         * bus/driver.h:
336         Refactor code, put the message dispatching in its own file. Use 
337         _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client
338         is disconnected.
339         
340 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
341
342         * dbus/dbus-internals.h:
343         Add _DBUS_HANDLE_OOM macro, it doesn't do anything currently.
344         
345         * dbus/dbus-message.c: (dbus_message_get_sender):
346         * dbus/dbus-message.h:
347         Implement dbus_message_get_sender.
348         
349         * dbus/dbus-protocol.h:
350         Add message and service defines.
351         
352 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
353
354         * dbus/dbus-connection.c: (dbus_connection_send_message):
355         * dbus/dbus-message-internal.h:
356         * dbus/dbus-message.c: (_dbus_message_get_client_serial),
357         (dbus_message_write_header):
358         Remove _dbus_messag_unlock and don't set the client serial on a 
359         message if one already exists.
360         
361 2003-01-24  Havoc Pennington  <hp@pobox.com>
362
363         * dbus/dbus-list.c (alloc_link): put a thread lock on the global
364         list_pool
365
366         * bus/driver.c (bus_driver_handle_list_services): fix a leak 
367         on OOM
368
369 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
370
371         * dbus/dbus-list.c: (alloc_link), (free_link):
372         Use a memory pool for the links.
373         
374 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
375
376         * bus/connection.c: (bus_connection_foreach):
377         * bus/connection.h:
378         Add new bus_connection_foreach function.
379         
380         * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
381         Add function that broadcasts a message to all clients.
382         
383         (bus_driver_send_service_created), (bus_driver_handle_hello),
384         (bus_driver_send_welcome_message),
385         (bus_driver_handle_list_services), (bus_driver_message_handler):
386         Implement functions that take care of listing services, and notifying
387         clients when new services are created.
388         
389         * bus/services.c: (bus_services_list):
390         * bus/services.h:
391         Add new function that returns an array of strings with the currently
392         registered services.
393         
394         * glib/dbus-glib.h:
395         * glib/dbus-gmain.c:
396         Update copyright year.
397         
398 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
399
400         * dbus/dbus-connection.c: (dbus_connection_send_message):
401         Unlock the message in case it was sent earlier.
402         
403         (dbus_connection_send_message_with_reply_and_block):
404         Remove the reply message from the list.
405         
406         * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
407         Set array_len and new_pos correctly.
408         
409         (_dbus_marshal_test):
410         Remove debug output.
411         
412         * dbus/dbus-message-internal.h:
413         * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
414         New function that returns the reply serial.
415         
416         (_dbus_message_unlock):
417         New function that unlocks a message and resets its header.
418
419         (dbus_message_append_string_array), 
420         (dbus_message_get_fields_valist),
421         (dbus_message_iter_get_field_type),
422         (dbus_message_iter_get_string_array),   
423         (dbus_message_get_fields),      
424         (dbus_message_append_fields_valist):
425         Handle string arrays.
426         
427         (dbus_message_set_sender):
428         Make this function public since the bus daemon needs it.
429         
430         (decode_header_data):
431         Set the reply serial to -1 initially.
432
433         * dbus/dbus-message.h:
434         Add dbus_message_set_sender.    
435
436 2003-01-24  Havoc Pennington  <hp@pobox.com>
437
438         * doc/dbus-specification.sgml: add some stuff
439
440 2003-01-22  Havoc Pennington  <hp@pobox.com>
441
442         * doc/dbus-specification.sgml: Start to document the protocol.
443
444 2003-01-22  Havoc Pennington  <hp@pobox.com>
445
446         * dbus/dbus-connection.c
447         (dbus_connection_send_message_with_reply_and_block): add some @todo
448
449         * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
450
451 2003-01-21  Havoc Pennington  <hp@pobox.com>
452
453         (patch untested because can't compile)
454         
455         * bus/driver.c (create_unique_client_name): make this function
456         never recycle client names. Also, caller should initialize 
457         the DBusString.
458
459         * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
460
461 2003-01-21  Anders Carlsson  <andersca@codefactory.se>
462
463         * dbus/dbus-marshal.c: (_dbus_marshal_double),
464         (_dbus_marshal_int32), (_dbus_marshal_uint32),
465         (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
466         (_dbus_marshal_double_array), (_dbus_marshal_string_array),
467         (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
468         (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
469         (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
470         * dbus/dbus-marshal.h:
471         * dbus/dbus-protocol.h:
472         Add support for marshalling and demarshalling integer, double
473         and string arrays.
474         
475 2003-01-21  Anders Carlsson  <andersca@codefactory.se>
476
477         * bus/Makefile.am:
478         Add driver.[ch]
479         
480         * bus/connection.c: (connection_disconnect_handler):
481         Remove the connection from the bus driver's list.
482         
483         (connection_watch_callback): Dispatch messages.
484
485         (free_connection_data): Free connection name.
486         
487         (bus_connection_setup): Add connection to the bus driver's list.
488         (bus_connection_remove_owned_service): 
489         (bus_connection_set_name), (bus_connection_get_name):
490         Add functions for setting and getting the connection's name.
491         
492         * bus/connection.h:
493         Add function headers.
494         
495         * bus/driver.c: (create_unique_client_name),
496         (bus_driver_handle_hello_message),
497         (bus_driver_send_welcome_message), (bus_driver_message_handler),
498         (bus_driver_add_connection), (bus_driver_remove_connection):
499         * bus/driver.h:
500         * bus/main.c:
501         * bus/services.c: (bus_service_free):
502         * bus/services.h:
503         New file that handles communication and registreation with the bus
504         itself. 
505         
506 2003-01-21  Anders Carlsson  <andersca@codefactory.se>
507
508         * dbus/dbus-connection.c: (dbus_connection_send_message):
509         Add a new client_serial parameter.
510         
511         (dbus_connection_send_message_with_reply):
512         Remove a @todo since we've implemented the blocking function.
513         
514         (dbus_connection_send_message_with_reply_and_block):
515         New function that sends a message and waits for a reply and
516         then returns the reply.
517         
518         * dbus/dbus-connection.h:
519         Add new functions.
520         
521         * dbus/dbus-errors.c: (dbus_result_to_string):
522         * dbus/dbus-errors.h:
523         Add new DBUS_RESULT.
524         
525         * dbus/dbus-message-internal.h:
526         * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
527         (_dbus_message_set_sender), (dbus_message_write_header),
528         (dbus_message_new_reply), (decode_header_data),
529         (_dbus_message_loader_return_buffer), (_dbus_message_test):
530         * dbus/dbus-message.h:
531         Add new functions that set the reply serial and sender.
532         Also marshal and demarshal them correctly and add test.
533         
534         * dbus/dbus-protocol.h:
535         Add new DBUS_MESSAGE_TYPE_SENDER.
536         
537         * glib/dbus-glib.h:
538         * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
539         (add_watch), (remove_watch), (add_timeout), (remove_timeout),
540         (dbus_connection_hookup_with_g_main):
541         * glib/test-dbus-glib.c: (main):
542         Rewrite to use GIOChannel and remove the GSource crack.
543         
544         * test/echo-client.c: (main):
545         * test/watch.c: (check_messages):
546         Update for changed APIs
547         
548 2003-01-19  Anders Carlsson  <andersca@codefactory.se>
549
550         * dbus/Makefile.am: Add dbus-timeout.[cħ]
551         
552         * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
553         Create a DBusTimeoutList.       
554         (dbus_connection_set_timeout_functions): Add new function to
555         set timeout callbacks
556         
557         * dbus/dbus-connection.h: Add public DBusTimeout API.
558         
559         * dbus/dbus-message.c: (dbus_message_get_service):
560         * dbus/dbus-message.h:  New function.
561
562         * dbus/dbus-server.c: Fix small doc typo.
563         
564         * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
565
566 2003-01-19  Anders Carlsson  <andersca@codefactory.se>
567
568         * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
569         of the string, just as long as specified.
570
571 2003-01-19  Havoc Pennington  <hp@pobox.com>
572
573         * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
574         new function
575
576         * dbus/dbus-server.c (dbus_server_set_max_connections)
577         (dbus_server_get_max_connections, dbus_server_get_n_connections):
578         keep track of current number of connections, and add API for
579         setting a max (but haven't implemented enforcing the max yet)
580
581 2003-01-18  Havoc Pennington  <hp@pobox.com>
582
583         * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
584         reading/writing if read_watch != NULL or write_watch != NULL.
585
586         * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
587         the message loader code to actually load message->header and
588         message->body into the newly-created message.
589
590         * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
591         in OOM case
592
593         * dbus/dbus-connection.c (dbus_connection_set_max_message_size) 
594         (dbus_connection_get_max_message_size) 
595         (dbus_connection_set_max_live_messages_size) 
596         (dbus_connection_get_max_live_messages_size): implement some
597         resource limitation functions
598
599         * dbus/dbus-resources.c: new file implementing some of the
600         resource limits stuff
601
602         * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
603         missing docs, add @todo to handle OOM etc.
604
605         * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
606         docs
607         
608 2003-01-18  Havoc Pennington  <hp@pobox.com>
609
610         * dbus/dbus-connection.c (dbus_connection_unref): disconnect the 
611         connection if it hasn't been already.
612
613         * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
614         replace with DisconnectFunction.
615
616 2003-01-18  Havoc Pennington  <hp@pobox.com>
617
618         Building --disable-verbose-mode --disable-asserts --disable-tests
619         cuts the library from 112K to 45K or so
620         
621         * configure.in: check for varargs macro support, 
622         add --enable-verbose-mode, --enable-asserts. 
623
624         * dbus/dbus-internals.h (_dbus_assert): support
625         DBUS_DISABLE_ASSERT
626         (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
627
628 2003-01-18  Havoc Pennington  <hp@pobox.com>
629
630         * dbus/dbus-test.c: include config.h so that tests actually run
631
632         * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
633         so the failure mode when that assumption fails will be plenty
634         obvious.
635
636 2003-01-18  Havoc Pennington  <hp@pobox.com>
637
638         * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
639
640         * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
641         the distribution
642
643         * test/Makefile.am: don't use special variable "TESTS" for echo-*
644         since we don't want to use those in make check
645
646 2003-01-15  Havoc Pennington  <hp@redhat.com>
647
648         Release 0.2
649         
650         * NEWS: update
651
652 2003-01-15  Havoc Pennington  <hp@redhat.com>
653
654         * test/Makefile.am: fix so that test source code ends up in the
655         distribution on make distcheck
656
657 2003-01-15  Havoc Pennington  <hp@redhat.com>
658
659         Release 0.1.
660         
661         * NEWS: update  
662
663 2003-01-15  Havoc Pennington  <hp@redhat.com>
664
665         * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
666         fix build when --disable-tests
667
668         * Makefile.am (EXTRA_DIST): put HACKING in here
669
670         * HACKING: document procedure for making a tarball release.
671
672 2003-01-14  Anders Carlsson  <andersca@codefactory.se>
673
674         * bus/connection.c: (connection_error_handler),
675         (bus_connection_setup):
676         * bus/main.c: (main):
677         Make sure that the DBusConnectionData struct is NULLed
678         out to prevent a segfault.
679         
680         * dbus/dbus-errors.c: (dbus_result_to_string):
681         * dbus/dbus-errors.h:
682         * dbus/dbus-message.c: (dbus_message_get_fields),
683         (dbus_message_get_fields_valist), (_dbus_message_test):
684         * dbus/dbus-message.h:
685         Make dbus_message_get_fields return a result code so we can
686         track invalid fields as well as oom.
687         
688 2003-01-11  Havoc Pennington  <hp@pobox.com>
689
690         * configure.in: change --enable-test/--enable-ansi action-if-given
691         to enable_foo=$enableval instead of enable_foo=yes
692
693 2003-01-08  Havoc Pennington  <hp@pobox.com>
694
695         * dbus/dbus-string.c (_dbus_string_align_length): new function
696
697         * dbus/dbus-test-main.c: move main() for test app here
698         * dbus/dbus-test.c
699         (dbus_internal_symbol_do_not_use_run_tests): we have to export a
700         symbol to run tests, because dbus-test isn't in the main 
701         library
702
703         Code review nitpicks.
704         
705         * dbus/dbus-message.c (dbus_message_write_header): add newlines
706         for people with narrow emacs ;-). Assert client_serial was filled
707         in. Assert message->name != NULL.
708         (dbus_message_append_fields): have "first_field_type" arg separate
709         from va list, needed for C++ binding that also uses varargs IIRC
710         and helps with type safety
711         (dbus_message_new): add @todo about using DBusString to store
712         service/name internally
713         (dbus_message_new): don't leak ->service and ->name on OOM later
714         in the function
715         (dbus_message_unref): free the service name
716         (dbus_message_get_fields): same change to varargs
717         i.e. first_field_type
718         (_dbus_message_loader_return_buffer): assert that the message data
719         is aligned (if not it's a bug in our code). Put in verbose griping
720         about why we set corrupted = TRUE.
721         (decode_header_data): add FIXME that char* is evil.  Was going to
722         add FIXME about evil locale-specific string.h strncmp, but just
723         switched to wacky string-as-uint32 optimization. Move check for
724         "no room for field name" above get_const_data_len() to avoid
725         assertion failure in get_const_data_len if we have trailing 2
726         bytes or the like. Check for service and name fields being
727         provided twice. Don't leak service/name on error. Require field
728         names to be aligned to 4 bytes.
729
730         * dbus/dbus-marshal.c: move byte swap stuff to header
731         (_dbus_pack_int32): uscore-prefix
732         (_dbus_unpack_int32): uscore-prefix
733         (_dbus_unpack_uint32): export
734         (_dbus_demarshal_string): add @todo complaining about use of
735         memcpy()
736         (_dbus_marshal_get_field_end_pos): add @todo about bad error
737         handling allowing corrupt data to go unchecked
738
739 2003-01-08  Havoc Pennington  <hp@redhat.com>
740
741         * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write 
742         to the select() as needed for authentication. (should be using
743         _dbus_poll() not select, but for another day)
744
745         * dbus/dbus.h: include dbus/dbus-protocol.h
746
747 2003-01-08  Anders Carlsson  <andersca@codefactory.se>
748
749         * dbus/Makefile.am (dbusinclude_HEADERS): Install
750         dbus-connection.h
751
752 2003-01-08  Anders Carlsson  <andersca@codefactory.se>
753
754         * dbus/dbus-internals.c: (_dbus_type_to_string):
755         New function that returns a string describing a type.
756         
757         * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
758         * dbus/dbus-marshal.h:
759         * dbus/dbus-message.c: (dbus_message_get_fields_valist),
760         (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
761         (dbus_message_iter_get_byte_array):
762         * dbus/dbus-message.h:
763         Add new convenience functions for appending and getting message fields.
764         Also add demarshalling routines for byte arrays.
765
766 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
767
768         * dbus/dbus-connection-internal.h:
769         * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
770         (_dbus_connection_get_next_client_serial),
771         (dbus_connection_send_message):
772         * dbus/dbus-internals.h:
773         * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
774         (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
775         (_dbus_marshal_uint32), (_dbus_demarshal_double),
776         (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
777         (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
778         (_dbus_verbose_bytes), (_dbus_marshal_test):
779         * dbus/dbus-marshal.h:
780         * dbus/dbus-message-internal.h:
781         * dbus/dbus-message.c: (_dbus_message_set_client_serial),
782         (dbus_message_write_header), (_dbus_message_lock),
783         (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
784         (dbus_message_get_name), (dbus_message_append_int32),
785         (dbus_message_append_uint32), (dbus_message_append_double),
786         (dbus_message_append_string), (dbus_message_append_byte_array),
787         (dbus_message_get_fields_iter), (dbus_message_iter_ref),
788         (dbus_message_iter_unref), (dbus_message_iter_has_next),
789         (dbus_message_iter_next), (dbus_message_iter_get_field_type),
790         (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
791         (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
792         (decode_header_data), (_dbus_message_loader_return_buffer),
793         (message_iter_test), (_dbus_message_test):
794         * dbus/dbus-message.h:
795         * dbus/dbus-protocol.h:
796         * dbus/dbus-test.c: (main):
797         * dbus/dbus-test.h:
798         * glib/test-dbus-glib.c: (message_handler), (main):
799         * test/echo-client.c: (main):
800         * test/watch.c: (check_messages):
801         Make messages sendable and receivable for real.
802         
803 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
804
805         * dbus/dbus-marshal.c: (_dbus_marshal_double),
806         (_dbus_marshal_string), (_dbus_marshal_byte_array):
807         * dbus/dbus-message.c: (dbus_message_append_int32),
808         (dbus_message_append_uint32), (dbus_message_append_double),
809         (dbus_message_append_string), (dbus_message_append_byte_array):
810         Handle OOM restoration.
811         
812 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
813
814         * dbus/dbus-marshal.c: (_dbus_marshal_string),
815         (_dbus_demarshal_string), (_dbus_marshal_test):
816         * dbus/dbus-marshal.h:
817         * dbus/dbus-message.c: (dbus_message_get_name),
818         Document these functions.
819         
820         (dbus_message_append_int32), (dbus_message_append_uint32),
821         (dbus_message_append_double), (dbus_message_append_string),
822         (dbus_message_append_byte_array):
823         * dbus/dbus-message.h:
824         Add functions for adding message fields of different types.
825         
826         * dbus/dbus-protocol.h:
827         Add the different types.
828
829 2003-01-05  Havoc Pennington  <hp@pobox.com>
830
831         * bus/connection.c: implement routines for handling connections,
832         first thing is keeping a list of owned services on each connection
833         and setting up watches etc.
834
835         * bus/services.c: implement a mapping from service names to lists
836         of connections
837
838         * dbus/dbus-hash.c: add DBUS_HASH_POINTER
839
840         * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
841         to use static mutexes for global data
842
843         * dbus/dbus-connection.c (dbus_connection_set_data): add new
844         collection of functions to set/get application-specific data
845         on the DBusConnection.
846
847 2003-01-04  Havoc Pennington  <hp@pobox.com>
848
849         * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
850         (_dbus_poll): new function
851
852         * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
853         copied from GLib
854
855         * bus/loop.c: initial code for the daemon main loop
856
857 2003-01-04  Havoc Pennington  <hp@pobox.com>
858
859         * test/watch.c (error_handler): make it safe if the error handler 
860         is called multiple times (if we s/error handler/disconnect
861         handler/ we should just guarantee it's called only once)
862
863         * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
864         error handler on disconnect (it's quite possible we should
865         just change the error handler to a "disconnect handler," I'm 
866         not sure we have any other meaningful errors)
867
868         * configure.in: check for getpwnam_r
869
870         * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
871         dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
872         mechanism as in SASL spec, using socket credentials
873
874         * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
875         (_dbus_send_credentials_unix_socket): new function
876
877         * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
878         dbus_accept()
879         (_dbus_write): only check errno if <0 returned
880         (_dbus_write_two): ditto
881
882 2003-01-02  Anders Carlsson  <andersca@codefactory.se>
883
884         * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
885         (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
886         (_dbus_marshal_test):
887         * dbus/dbus-marshal.h:
888         Add _dbus_marshal_byte_array and rename _dbus_marshal_string
889         to _dbus_marshal_utf8_string. Also fix some tests.
890         
891 2002-12-28  Harri Porten  <porten@kde.org>
892
893         * configure.in: added check for C++ compiler and a very cheesy
894         check for the Qt integration
895
896         * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
897
898         * qt/Makefile.am: added 
899
900         * qt/.cvsignore: added  
901
902         * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
903         latter, added #ifdef QT_THREAD_SUPPORT guard.
904
905         * dbus/Makefile.am: added missing headers for make dist
906
907 2002-12-28  Kristian Rietveld  <kris@gtk.org>
908
909         * dbus/Makefile.am: fixup export-symbols-regex.
910
911 2002-12-27  Anders Carlsson  <andersca@codefactory.se>
912
913         * acinclude.m4: Add this file and put the 
914         PKG_CHECK_MODULE macro in it.
915
916 2002-12-27  Anders Carlsson  <andersca@codefactory.se>
917
918         * dbus/dbus-marshal.c: (_dbus_marshal_string),
919         (_dbus_demarshal_double), (_dbus_demarshal_int32),
920         (_dbus_demarshal_uint32), (_dbus_demarshal_string),
921         (_dbus_marshal_test):
922         Make the demarshalling routines align the pos argument.
923         Add string marshalling tests and fix the obvious bugs 
924         discovered.
925         
926 2002-12-26  Havoc Pennington  <hp@pobox.com>
927
928         * dbus/dbus-auth.c: fixes fixes fixes
929
930         * dbus/dbus-transport-unix.c: wire up support for
931         encoding/decoding data on the wire
932
933         * dbus/dbus-auth.c (_dbus_auth_encode_data) 
934         (_dbus_auth_decode_data): append to target string 
935         instead of nuking it.
936
937 2002-12-26  Havoc Pennington  <hp@pobox.com>
938
939         * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
940         WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
941         doh
942
943         * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
944         avoid swap_bytes() overhead (ignoring possible assembly stuff for 
945         now). Main point is because I wanted unpack_uint32 to implement
946         _dbus_verbose_bytes
947         (_dbus_verbose_bytes): new function
948
949         * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
950
951         * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
952         mechanism to handle a corrupt message stream
953         (_dbus_message_loader_new): fix preallocation to only prealloc, 
954         not prelengthen
955         
956         * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
957         (_dbus_string_test): enhance tests for copy/move and fix the
958         functions
959
960         * dbus/dbus-transport-unix.c: Hold references in more places to 
961         avoid reentrancy problems
962
963         * dbus/dbus-transport.c: ditto
964
965         * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
966         leak reference count in no-message case
967
968         * test/watch.c (do_mainloop): handle adding/removing watches
969         during iteration over the watches. Also, ref the connection/server
970         stored on a watch, so we don't try to mangle a destroyed one.
971
972         * dbus/dbus-transport-unix.c (do_authentication): perform
973         authentication
974
975         * dbus/dbus-auth.c (get_state): add a state
976         AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
977         (_dbus_auth_get_unused_bytes): append the unused bytes
978         to the passed in string, rather than prepend
979
980         * dbus/dbus-transport.c (_dbus_transport_init_base): create 
981         the auth conversation DBusAuth
982
983         * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
984         (_dbus_transport_new_for_domain_socket): when creating a
985         transport, pass in whether it's a client-side or server-side
986         transport so we know which DBusAuth to create
987
988 2002-12-03  Havoc Pennington  <hp@pobox.com>
989
990         * dbus/dbus-transport-unix.c (unix_finalize): finalize base
991         _after_ finalizing the derived members
992         (unix_connection_set): unref watch if we fail to add it
993
994         * dbus/dbus-connection.c (dbus_connection_unref): delete the
995         transport first, so that the connection owned by the 
996         transport will be valid as the transport finalizes.
997
998         * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
999         if necessary, and remove watches from the connection.
1000         
1001         * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
1002         
1003 2002-12-26  Anders Carlsson  <andersca@codefactory.se>
1004
1005         * dbus/dbus-marshal.c: (_dbus_marshal_string),
1006         (_dbus_demarshal_double), (_dbus_demarshal_int32),
1007         (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1008         (_dbus_marshal_test):
1009         * dbus/dbus-marshal.h:
1010         Add string marshal functions and have the demarshal functions
1011         return the new position.
1012         
1013 2002-12-25  Havoc Pennington  <hp@pobox.com>
1014
1015         * doc/dbus-sasl-profile.txt: docs on the authentication protocol, 
1016         it is a simple protocol that just maps directly to SASL.
1017
1018         * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
1019         initial implementation, not actually used yet.
1020         
1021         * dbus/dbus-string.c (_dbus_string_find): new function
1022         (_dbus_string_equal): new function
1023         (_dbus_string_base64_encode): new function
1024         (_dbus_string_base64_decode): new function
1025
1026 2002-12-25  Anders Carlsson  <andersca@codefactory.se>
1027
1028         * dbus/Makefile.am:
1029         * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
1030         (_dbus_marshal_int32), (_dbus_marshal_uint32),
1031         (_dbus_demarshal_double), (_dbus_demarshal_int32),
1032         (_dbus_demarshal_uint32), (_dbus_marshal_test):
1033         * dbus/dbus-marshal.h:
1034         * dbus/dbus-protocol.h:
1035         * dbus/dbus-test.c: (main):
1036         * dbus/dbus-test.h:
1037         Add un-optimized marshalling/demarshalling routines.
1038         
1039 2002-12-25  Harri Porten  <porten@kde.org>
1040
1041         * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
1042
1043 2002-12-24  Zack Rusin  <zack@kde.org>
1044
1045         * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
1046         * qt/dbus-qt.h: skeleton with two sample implemenatation of the
1047         main loop stuff
1048
1049 2002-12-24  Havoc Pennington  <hp@pobox.com>
1050
1051         * glib/dbus-gthread.c: fix include
1052
1053         * glib/dbus-glib.h: rename DBusMessageHandler for now. 
1054         I think glib API needs to change, though, as you don't 
1055         want to use DBusMessageFunction, you want to use the 
1056         DBusMessageHandler object. Probably 
1057         dbus_connection_open_with_g_main_loop()
1058         and dbus_connection_setup_g_main_loop() or something like that
1059         (but think of better names...) that just create a connection 
1060         that has watch/timeout functions etc. already set up.
1061
1062         * dbus/dbus-connection.c
1063         (dbus_connection_send_message_with_reply): new function just to 
1064         show how the message handler helps us deal with replies.
1065
1066         * dbus/dbus-list.c (_dbus_list_remove_last): new function
1067
1068         * dbus/dbus-string.c (_dbus_string_test): free a string that
1069         wasn't
1070
1071         * dbus/dbus-hash.c: use memory pools for the hash entries
1072         (rebuild_table): be more paranoid about overflow, and 
1073         shrink table when we can
1074         (_dbus_hash_test): reduce number of sprintfs and write
1075         valid C89. Add tests for case where we grow and then 
1076         shrink the hash table.
1077
1078         * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
1079
1080         * dbus/dbus-connection.c (dbus_connection_register_handler) 
1081         (dbus_connection_unregister_handler): new functions
1082
1083         * dbus/dbus-message.c (dbus_message_get_name): new
1084
1085         * dbus/dbus-list.c: fix docs typo
1086
1087         * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
1088         an object representing a handler for messages.
1089
1090 2002-12-16  Anders Carlsson  <andersca@codefactory.se>
1091
1092         * glib/dbus-glib.h:
1093         * glib/dbus-gthread.c: (dbus_gthread_init):
1094         Don't use the gdbus prefix for public functions.
1095         
1096 2002-12-16  Anders Carlsson  <andersca@codefactory.se>
1097
1098         * Makefile.am:
1099         * configure.in:
1100         Add GLib checks and fixup .pc files
1101         
1102         * glib/Makefile.am:
1103         * glib/dbus-glib.h:
1104         * glib/dbus-gmain.c: (gdbus_connection_prepare),
1105         (gdbus_connection_check), (gdbus_connection_dispatch),
1106         (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
1107         (dbus_connection_gsource_new):
1108         * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
1109         (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
1110         * glib/test-dbus-glib.c: (message_handler), (main):
1111         Add GLib support.
1112         
1113 2002-12-15  Harri Porten  <porten@kde.org>
1114
1115         * autogen.sh: check for libtoolize before attempting to use it 
1116         
1117         * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
1118         struct.
1119         
1120         * .cvsignore: ignore more stamp files
1121
1122         * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
1123
1124         * test/Makefile.am: added -I$(top_srcdir) to be able to compile
1125         without make install.
1126
1127 2002-12-15  Havoc Pennington  <hp@pobox.com>
1128
1129         * dbus/dbus-threads.c: add thread stubs that a higher library
1130         layer can fill in. e.g. the GLib wrapper might fill them in with
1131         GThread stuff. We still need to use this thread API to
1132         thread-safe-ize the library.
1133
1134 2002-12-12  Havoc Pennington  <hp@pobox.com>
1135
1136         * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
1137         below new interfaces and include fewer system headers.
1138
1139         * dbus/dbus-sysdeps.c (_dbus_read): new function
1140         (_dbus_write): new function
1141         (_dbus_write_two): new function
1142         (_dbus_connect_unix_socket): new function
1143         (_dbus_listen_unix_socket): new function
1144
1145         * dbus/dbus-message-internal.h: change interfaces to use
1146         DBusString
1147
1148 2002-12-11  Havoc Pennington  <hp@pobox.com>
1149
1150         * dbus/dbus-types.h: add dbus_unichar
1151
1152         * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
1153
1154         * dbus/dbus-connection.c (dbus_connection_send_message): return
1155         TRUE on success
1156
1157         * dbus/dbus-transport.c: include dbus-watch.h   
1158
1159         * dbus/dbus-connection.c: include dbus-message-internal.h
1160
1161         * HACKING: add file with coding guidelines stuff.
1162
1163         * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
1164         handling here, for security purposes (as in vsftpd). Not actually
1165         using this class yet.
1166
1167         * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
1168         system/libc usage here, as in vsftpd, for ease of auditing (and
1169         should also simplify portability). Haven't actually moved all the
1170         system/libc usage into here yet.
1171         
1172 2002-11-25  Havoc Pennington  <hp@pobox.com>
1173
1174         * dbus/dbus-internals.c (_dbus_verbose): fix to not 
1175         always print the first verbose message.
1176
1177 2002-11-24  Havoc Pennington  <hp@pobox.com>
1178
1179         * test/echo-client.c, test/echo-server.c: cheesy test 
1180         clients.
1181         
1182         * configure.in (AC_CHECK_FUNCS): check for writev
1183
1184         * dbus/dbus-message.c (_dbus_message_get_network_data): new
1185         function
1186
1187         * dbus/dbus-list.c (_dbus_list_foreach): new function
1188
1189         * dbus/dbus-internals.c (_dbus_verbose): new function
1190
1191         * dbus/dbus-server.c, dbus/dbus-server.h: public object
1192         representing a server that listens for connections.
1193
1194         * dbus/.cvsignore: create
1195
1196         * dbus/dbus-errors.h, dbus/dbus-errors.c:
1197         public API for reporting errors
1198
1199         * dbus/dbus-connection.h, dbus/dbus-connection.c:
1200         public object representing a connection that 
1201         sends/receives messages. (Same object used for 
1202         both client and server.)
1203
1204         * dbus/dbus-transport.h, dbus/dbus-transport.c:
1205         Basic abstraction for different kinds of stream
1206         that we might read/write messages from.
1207
1208 2002-11-23  Havoc Pennington  <hp@pobox.com>
1209
1210         * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN 
1211         _DBUS_INT_MAX
1212
1213         * dbus/dbus-test.c (main): add list test, and include 
1214         dbus-test.h as intended
1215
1216         * dbus/dbus-hash.c (_dbus_hash_table_remove_string) 
1217         (_dbus_hash_table_remove_int): return value indicates 
1218         whether the entry existed to remove
1219
1220         * dbus/dbus-list.c: add linked list utility class, 
1221         with docs and tests
1222
1223         * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket 
1224         array sometimes.
1225
1226 2002-11-23  Havoc Pennington  <hp@pobox.com>
1227
1228         * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
1229         DBUS_END_DECLS to nothing, that should fix this once and for all
1230
1231         * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
1232
1233         * dbus/dbus-message.c, dbus/dbus-hash.c: 
1234         add some missing @brief
1235
1236 2002-11-23  Havoc Pennington  <hp@pobox.com>
1237
1238         * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS 
1239         to avoid confusing Doxygen
1240
1241         * dbus/dbus-hash.c: @} not }@
1242
1243         * dbus/dbus-message.c (struct DBusMessage): split out 
1244         internals docs
1245
1246 2002-11-23  Havoc Pennington  <hp@pobox.com>
1247
1248         * configure.in: pile on more warning flags if using gcc
1249
1250         * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have 
1251         to document static functions
1252
1253         * configure.in: add summary to end of configure so it 
1254         looks nice and attractive
1255
1256         * dbus/dbus-hash.c: finish implementation and write unit 
1257         tests and docs
1258
1259         * configure.in: add --enable-tests to enable unit tests
1260
1261         * dbus/dbus-test.c: test program to run unit tests 
1262         for all files in dbus/*, initially runs a test for 
1263         dbus-hash.c
1264         
1265         * dbus/dbus-internals.h: file to hold some internal utility stuff
1266
1267 2002-11-22  Havoc Pennington  <hp@redhat.com>
1268
1269         * dbus/dbus-hash.c: copy in Tcl hash table, not yet 
1270         "ported" away from Tcl
1271
1272         * dbus/dbus-types.h: header for types such as dbus_bool_t
1273
1274 2002-11-22  Havoc Pennington  <hp@redhat.com>
1275
1276         * dbus/dbus.h: fixups for doc warnings
1277
1278         * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up 
1279         macros
1280         (QUIET): make it quiet so we can see warnings
1281
1282         * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
1283
1284 2002-11-22  Havoc Pennington  <hp@redhat.com>
1285
1286         * Makefile.am: include "Doxyfile" target in all-local
1287
1288         * configure.in: generate the Doxyfile
1289
1290         * Doxyfile.in: move Doxyfile here, so we can use 
1291         configure to generate a Doxyfile with the right 
1292         version number etc.
1293
1294 2002-11-22  Havoc Pennington  <hp@redhat.com>
1295
1296         * dbus/dbus-message.c: move inline docs into .c file
1297
1298         * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
1299         so all docs are under doc/
1300         (MAN_EXTENSION): generate man pages. Use extension 
1301         ".3dbus" which matches ".3qt" on my system, 
1302         I guess this is OK, I don't know really.
1303         (FILE_PATTERNS): look for .c files not .h, makes sense
1304         for plain C I think
1305
1306 2002-11-22  Havoc Pennington  <hp@pobox.com>
1307
1308         * Makefile.am (SUBDIRS): rename subdir "server" to "bus" 
1309         because any app can be a server, and any app can be a client, 
1310         the bus is a special kind of server.
1311
1312 Thu Nov 21 23:35:31 2002  Zack Rusin  <zack@kde.org>
1313
1314         * Doxyfile : adding. Still needs Makefile rules to be generated
1315         automatically (just run "doxygen" in the toplevel dir for now to
1316         generate docs)
1317         
1318         * dbus/dbus-message.h : Adding sample docs (javadoc since
1319         resembles gtk-doc a little more)
1320
1321         * dbus/dbus.h : Adding sample docs
1322
1323 2002-11-21  Havoc Pennington  <hp@redhat.com>
1324
1325         * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION 
1326         so we can allow ourselves to include files directly, 
1327         instead of having to use dbus.h
1328
1329         * dbus/dbus.h: fill in
1330
1331         * dbus/dbus-message.h: sketch out a sample header file.
1332         Include griping if you include it directly instead of 
1333         via dbus.h
1334
1335         * dbus/dbus-macros.h: new file with macros for extern "C", 
1336         TRUE/FALSE, NULL, etc.
1337
1338         * doc/file-boilerplate.c: put include guards in here
1339
1340 2002-11-21  Havoc Pennington  <hp@redhat.com>
1341
1342         * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
1343
1344         * COPYING: include the GPL as well, and license code 
1345         under both AFL and GPL.
1346
1347 2002-11-21  Havoc Pennington  <hp@redhat.com>
1348
1349         * acconfig.h: get rid of this
1350
1351         * autogen.sh (run_configure): add --no-configure option
1352
1353         * configure.in: remove AC_ARG_PROGRAM to make
1354         autoconf complain less. add AC_PREREQ. 
1355         add AC_DEFINE third arg.
1356         
1357 2002-11-21  Anders Carlsson  <andersca@codefactory.se>
1358
1359         * doc/Makefile.am:
1360         Fix references so we can distcheck.
1361
1362 2002-11-21  Havoc Pennington  <hp@redhat.com>
1363
1364         * Initial module creation
1365