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