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