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