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