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