2005-06-16 Colin Walters <walters@verbum.org>
[platform/upstream/dbus.git] / ChangeLog
1 2005-06-16  Colin Walters  <walters@verbum.org>
2
3         * dbus/Makefile.am:
4         * mono/doc/Makefile.am:
5         * test/glib/Makefile.am:
6
7         Fix srcdir != builddir issues (Patch from Chris Wilson, #3477)
8
9 2005-06-16  Colin Walters  <walters@verbum.org>
10
11         * dbus/dbus-marshal-header.c (_dbus_header_load): Set
12         header byte order from expected byte order (Patch from Chris Wilson, #3475).
13
14         * dbus/dbus-marshal-byteswap.c (byteswap_body_helper): 
15         Increment pointer after swapping fixed array.  Add assertion
16         for array length.
17                 
18 2005-06-15  Colin Walters  <walters@verbum.org>
19
20         * dbus/dbus-sysdeps.c <HAVE_CMSGCRED> (_dbus_read_credentials_unix_socket):
21         Fix call to dbus_set_error.  (Patch from Michael Banck, #3461)
22         
23 2005-06-15  John (J5) Palmieri  <johnp@redhat.com>
24
25         * NEWS: Update to 0.34
26
27 2005-06-15  David Zeuthen  <davidz@redhat.com>
28
29         * configure.in (LT_CURRENT): Revert back to 1 as the library
30         hasn't changed and we've certainly not committed to protocol
31         stability yet.  All this does is to break ABI. See commit note
32         from hp@redhat.com 2005-05-05 for details.
33         
34 2005-06-15  John (J5) Palmieri  <johnp@redhat.com>
35
36         * dbus/dbus-connection.c (_dbus_connection_peer_filter): New method 
37         (_dbus_connection_run_builtin_filters): New method
38         (dbus_connection_dispatch): Run the builtin filters which in turn
39         runs the peer filter which handles Ping messages.
40
41         * doc/TODO: 
42          - Ping isn't handled: This patch fixes it
43          
44          - Add a test case for the Ping message: added TODO item
45
46 2005-06-15  John (J5) Palmieri  <johnp@redhat.com>
47
48         * dbus/dbus-message.c:
49         (dbus_message_has_path): New method
50         (dbus_message_has_interface): New method
51         (dbus_message_has_member): New method
52
53         * dbus/dbus/dbus-sysdeps.c (_dbus_check_dir_is_private_to_user):
54         New method
55
56         * dbus/dbus-keyring.c (_dbus_keyring_reload): Check to see that 
57         the keyring directory is private to the user
58
59         * doc/TODO:
60          - The convenience functions in dbus-bus.h should perhaps have
61          the signatures that they would have if they were autogenerated
62          stubs. e.g. the acquire service function. We should also evaluate
63          which of these functions to include, in light of the fact that
64          GLib/Qt native stubs will probably also exist.: Punted
65
66          - add dbus_message_has_path(), maybe has_member/interface:
67          fixed in this patch
68
69          - in dbus-keyring.c, enforce that the keyring dir is not
70          world readable/writable: Fixed in this patch
71
72 2005-06-15  John (J5) Palmieri  <johnp@redhat.com>
73
74         * dbus/dbus-marshal-validate.h: Added a new validation
75         error code DBUS_VALIDITY_UNKNOWN_OOM_ERROR = -4 for 
76         out of memory errors when validating signitures
77
78         * dbus/dbus-marshal-header.c: use DBUS_VALIDITY_UNKNOWN_OOM_ERROR
79         in places where we previously used DBUS_VALID and a FALSE return 
80         value to indicate OOM
81         
82         * dbus/dbus-marshal-validate.c (_dbus_validate_signature_with_reason):
83         Use a stack to track the number of elements inside containers.  The 
84         stack values are then used to validate that dict entries have only two
85         elements within them.
86         (validate_body_helper): check the reason for failure when validating
87         varients
88         
89         * dbus/dbus-message.c (load_message): use 
90         DBUS_VALIDITY_UNKNOWN_OOM_ERROR in places where we previously used 
91         DBUS_VALID and a FALSE return value to indicate OOM
92
93         * doc/TODO: remove "- validate dict entry number of fields" as this
94         patch fixes it
95
96 2005-06-14  David Zeuthen  <davidz@redhat.com>
97
98         * bus/bus.c (process_config_every_time): Drop existing conf-dir
99         watches (if applicable) and add new watches
100
101         * bus/main.c (signal_handler): Handle SIGIO if using D_NOTIFY
102         (main): Setup SIGIO signal handler if using D_NOTIFY
103
104         * bus/config-parser.h: Add prototype bus_config_parser_get_conf_dirs
105
106         * bus/config-parser.c (struct BusConfigParser): Add conf_dirs list
107         (merge_included): Also merge conf_dirs list
108         (bus_config_parser_unref): Clear conf_dirs list
109         (include_dir): Add directory to conf_dirs list
110         (bus_config_parser_get_conf_dirs): New function
111
112         * bus/dir-watch.[ch]: New files
113
114         * bus/Makefile.am (BUS_SOURCES): Add dir-watch.[ch]
115
116         * configure.in: Add checks for D_NOTIFY on Linux
117
118 2005-06-14  Colin Walters  <walters@verbum.org>
119
120         * glib/dbus-binding-tool-glib.c:
121         * glib/dbus-gobject.c:
122         * glib/dbus-gvalue.c: Fix indentation and brace style.
123         
124 2005-06-14  Ross Burton <ross@burtonini.com>.
125
126         * glib/dbus-glib.h: Make DBusGMethodInvocation
127         a private structure.  Rearrange prototypes a bit.
128         
129         * glib/dbus-gproxy.c (dbus_g_proxy_invoke): Add
130         documentation for first_arg_type.
131         
132         * glib/dbus-gobject.c: Move DBusGMethodInvocation
133         here, add documentation.  Move dbus_g_method_return
134         and dbus_g_method_return_error into public API
135         section.
136
137 2005-06-14  Colin Walters  <walters@verbum.org>
138
139         * glib/dbus-gobject.c (_dbus_gobject_lookup_marshaller):
140         Add missing return statements, noticed by Ross Burton.
141         
142 2005-06-13  Ross Burton <ross@burtonini.com>.
143
144         * glib/dbus-gobject.c: Handle errors on message
145         demarshalling by sending error message back.
146         * glib/dbus-gvalue.c: Initialize return variables.
147
148 2005-06-13  Colin Walters  <walters@verbum.org>
149
150         * glib/Makefile.am: Fix thinko in last patch.
151
152 2005-06-13  Colin Walters  <walters@verbum.org>
153
154         * glib/Makefile.am: Move dbus-gtype-specialized.c
155         and dbus-gtype-specialized.h into a _HEADERS variable,
156         install them.
157
158 2005-06-12  Colin Walters  <walters@verbum.org>
159
160         Async signals and various bugfixes and testing by
161         Ross Burton <ross@burtonini.com>.
162
163         * glib/dbus-gvalue.h: (struct DBusBasicGValue): Delete.
164         (dbus_gvalue_genmarshal_name_from_type)
165         (dbus_gvalue_ctype_from_type): Moved to dbus-binding-tool-glib.c.
166         (dbus_gtype_to_dbus_type): Renamed to dbus_gtype_from_signature.
167         (dbus_g_value_types_init, dbus_gtype_from_signature)
168         (dbus_gtype_from_signature_iter, dbus_gtype_to_signature)
169         (dbus_gtypes_from_arg_signature): New function prototypes.
170         (dbus_gvalue_demarshal): Take context and error arguments.
171         (dbus_gvalue_demarshal_variant): New function.
172         (dbus_gvalue_demarshal_message): New function.
173         (dbus_gvalue_store): Delete.
174
175         * glib/dbus-gvalue.c:
176
177         File has been almost entirely rewritten; now we special-case
178         more types such as DBUS_TYPE_SIGNATURE, handle arrays and
179         hash tables correctly, etc.  Full support for recursive values
180         is not yet complete.
181
182         * glib/dbus-gproxy.c (dbus_g_proxy_class_init): Change last
183         argument of signal to G_TYPE_POINTER since we now pass a
184         structure.
185         (lookup_g_marshaller): Delete in favor of
186         _dbus_gobject_lookup_marshaller.
187         (marshal_dbus_message_to_g_marshaller): Use
188         _dbus_gobject_lookup_marshaller and dbus_gvalue_demarshal_message
189         to handle remote signal callbacks.
190         (dbus_g_proxy_new_from_proxy): New function; creates a new
191         DBusGProxy by copying an existing one.
192         (dbus_g_proxy_get_interface, dbus_g_proxy_set_interface)
193         (dbus_g_proxy_get_path): New functions.
194         (dbus_g_proxy_marshal_args_to_message): New function;
195         factored out of existing code.
196         (DBUS_G_VALUE_ARRAY_COLLECT_ALL): Collect all arguments
197         from a varargs array.
198         (dbus_g_proxy_begin_call_internal): New function.
199         (dbus_g_proxy_end_call_internal): New function.
200         (dbus_g_proxy_begin_call): Take GTypes instead of DBus types
201         as arguments; simply invoke dbus_g_proxy_begin_call_internal
202         after collecting args into value array.
203         (dbus_g_proxy_end_call): Take GTypes instead of DBus types;
204         invoke dbus_g_proxy_end_call_internal.
205         (dbus_g_proxy_invoke): Simply invoke begin_call_interanl and
206         end_call_internal.
207         (dbus_g_proxy_call_no_reply): Take GTypes instead of DBus
208         types.
209         (array_free_all): New function.
210         (dbus_g_proxy_add_signal): Take GTypes.
211
212         * glib/dbus-gobject.h:
213         (_dbus_glib_marshal_dbus_message_to_gvalue_array): Delete.
214         (_dbus_gobject_get_path, _dbus_gobject_lookup_marshaller):
215         Prototype.
216
217         * glib/dbus-gobject.c: Add a global marshal_table hash which
218         stores mappings from type signatures to marshallers.  Change lots
219         of invocations of dbus_gtype_to_dbus_type to
220         dbus_gtype_to_signature.
221         (_dbus_glib_marshal_dbus_message_to_gvalue_array): Delete.
222         (introspect_signals): Fix test for query.return_type.
223         (set_object_property): Update invocation of dbus_gvalue_demarshal.
224         (invoke_object_method): Many changes.  Handle asynchronous
225         invocations.  Convert arguments with
226         dbus_gvalue_demarshal_message.  Handle errors.  Use
227         DBusSignatureIter instead of strlen on args. Handle all arguments
228         generically.  Special-case variants.
229         (dbus_g_method_return, dbus_g_method_return_error): New function.
230         (DBusGSignalClosure): New structure, closes over signal
231         information.
232         (dbus_g_signal_closure_new): New function.
233         (dbus_g_signal_closure_finalize): New function.
234         (signal_emitter_marshaller): New function; is special marshaller
235         which emits signals on bus.
236         (export_signals): New function; introspects object signals and
237         connects to them.
238         (dbus_g_object_type_install_info): Take GType instead of
239         GObjectClass.
240         (dbus_g_connection_register_g_object): Invoke export_signals.
241         (dbus_g_connection_lookup_g_object): New function.
242         (DBusGFuncSignature) New structure; used for mapping type
243         signatures to marshallers.
244         (funcsig_hash): New function; hashes DBusGFuncSignature.
245         (funcsig_equal): New function; compares DBusGFuncSignature.
246         (_dbus_gobject_lookup_marshaller): New function.
247         (dbus_g_object_register_marshaller): New function; used to
248         register a marshaller at runtime for a particular signature.
249
250         * glib/dbus-gmain.c (_dbus_gmain_test): Add various tests.
251
252         * glib/dbus-binding-tool-glib.h: Add DBUS_GLIB_ANNOTATION_ASYNC
253         which notes a server method implementation should be
254         asynchronous.
255
256         * glib/dbus-binding-tool-glib.c
257         (dbus_binding_tool_output_glib_server): Call
258         dbus_g_value_types_init.
259         (write_formal_parameters): Use dbus_gtype_from_signature.  Handle
260         variants specially.
261         (dbus_g_type_get_lookup_function): Turn GType into an invocation
262         of a lookup function.
263         (write_args_for_direction): Use dbus_g_type_get_lookup_function.
264         (write_untyped_out_args): New method; write output arguments.
265         (write_formal_declarations_for_direction): Function for
266         writing prototypes.
267         (write_formal_parameters_for_direction): Function for
268         writing implementations.
269         (write_typed_args_for_direction): Function for writing
270         arguments prefixed with GTypes.
271         (write_async_method_client): Write out async version
272         of method.
273
274         * glib/dbus-binding-tool-glib.c: Include dbus-gvalue-utils.h.
275         (dbus_g_type_get_marshal_name): Move mapping from GType
276         to marshal name into here.
277         (dbus_g_type_get_c_name): Move into here.
278         (compute_marshaller): Convert signature to type with
279         dbus_gtype_from_signature, use dbus_g_type_get_marshal_name.
280         (compute_marshaller_name): Ditto.
281         (compute_marshaller): Handle async signal annotations.
282         (gather_marshallers): Return if we don't have a known
283         prefix.
284         (generate_glue): Collect introspection blob here, and
285         write all of the blob at the end.  This allows an object
286         with multiple interfaces to work.
287         Mark async methods in introspection blob.
288
289         * glib/Makefile.am (libdbus_glib_1_la_SOURCES): Add
290         dbus-gtype-specialized.c, dbus-gtype-specialized.h,
291         dbus-gvalue-utils.h, dbus-gvalue-utils.c.
292
293         * dbus/dbus-glib.h: Don't include dbus-protocol.h; this
294         avoids people accidentally using DBUS_TYPE_* which should
295         not be necessary anymore.
296         Do include dbus-gtype-specialized.h, which are utilities
297         for GLib container types.
298         Add various #defines for types such as
299         DBUS_TYPE_G_BOOLEAN_ARRAY.
300         (DBusGValueIterator, DBusGValue): Define, not fully used
301         yet.
302         (dbus_g_value_get_g_type): Type for recursive value.
303         (dbus_g_value_open, dbus_g_value_iterator_get_value)
304         (dbus_g_value_iterator_get_values, dbus_g_value_iterator_recurse)
305         (dbus_g_value_free): Prototypes.
306         (dbus_g_object_register_marshaller, dbus_g_proxy_new_from_proxy): Prototype.
307         (dbus_g_proxy_set_interface): Prototype.
308         (dbus_g_proxy_begin_call, dbus_g_proxy_end_call)
309         (dbus_g_proxy_call_no_reply): Take GLib types instead of DBus
310         types.
311         (dbus_g_proxy_get_path, dbus_g_proxy_get_interface):
312         Accessors.
313         (DBusGAsyncData, DBusGMethodInvocation): Structures for
314         doing async invocations.
315         (dbus_g_method_return, dbus_g_method_return_error):
316         Prototypes.
317         * doc/dbus-tutorial.xml: Update GLib section.
318         
319         * tools/dbus-viewer.c (load_child_nodes): Update
320         for new invocation type of dbus_g_proxy_end_call.
321         (load_from_service_thread_func): Ditto.
322
323         * tools/print-introspect.c (main): Ditto.
324
325         * tools/dbus-names-model.c (have_names_notify)
326         (names_model_reload, names_model_set_connection)
327         Use GTypes.
328
329         * python/Makefile.am (INCLUDES): Define DBUS_COMPILATION,
330         needed since Python bindings use GLib bindings.
331
332         * test/glib/Makefile.am (INCLUDES): Define DBUS_COMPILATION.
333         Add --prefix argument.
334
335         * tools/Makefile.am: Define DBUS_COMPILATION.  Remove
336         unneeded --ignore-unsupported arg.
337         
338         * test/glib/test-service-glib.c: 
339         * test/glib/test-service-glib.xml:
340         * test/glib/test-dbus-glib.c: Add many more tests.
341
342 2005-06-06  David Zeuthen  <davidz@redhat.com>
343
344         * doc/TODO: Add item about need to remove deprecated functions.
345
346         * dbus/dbus-connection.h: Add prototype for dbus_connection_disconnect
347
348         * dbus/dbus-connection.c (dbus_connection_disconnect): New function
349         to repair the ABI which was broken with the last commit.
350
351 2005-06-02  John (J5) Palmieri <johnp@redhat.com>
352
353         *  dbus/dbus-connection.c, dbus/dbus-connection.h 
354         (dbus_connection_disconnect): renamed to dbus_connection_close 
355         for API symmetry with dbus_connection_open
356         (_dbus_connection_open_internal): 
357         s/dbus_connection_disconnect/dbus_connection_close
358
359         * dbus/dbus-bus.c (dbus_bus_get):
360         s/dbus_connection_disconnect/dbus_connection_close
361
362         * bus/connection.c (bus_connections_unref, 
363         bus_connections_setup_connection, bus_connections_expire_incomplete):
364         s/dbus_connection_disconnect/dbus_connection_close
365
366         * bus/dispatch.c (bus_dispatch, kill_client_connection, 
367         kill_client_connection_unchecked, check_hello_connection):
368         s/dbus_connection_disconnect/dbus_connection_close
369
370         * bus/bus.c (new_connection_callback):
371         s/dbus_connection_disconnect/dbus_connection_close
372
373         * tools/dbus-send.c (main):
374         s/dbus_connection_disconnect/dbus_connection_close
375
376         * test/glib/test-profile.c (no_bus_thread_func, with_bus_thread_func):
377         s/dbus_connection_disconnect/dbus_connection_close
378         
379         * test/test-service.c (path_message_func, filter_func):
380         s/dbus_connection_disconnect/dbus_connection_close
381         
382         * doc/TODO: remove connection_open/connection_disconnect lacks symmetry         item that was just fixed
383         
384 2005-05-25  Colin Walters  <walters@verbum.org>
385
386         * dbus/dbus-protocol.h: Move various bus service #defines such
387           as DBUS_SERVICE_DBUS and DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT to
388           dbus/dbus-shared.h.
389         * dbus/dbus-shared.h: Various defines moved here.
390         * dbus/dbus-marshal-header.c: Include dbus-shared.h.
391
392 2005-05-25  John (J5) Palmieri  <johnp@redhat.com>
393
394         * python/__init__.py: Python bindings deserve a minor version
395         update.  Upped to (0, 40, 2)
396
397 2005-05-24  John (J5) Palmieri  <johnp@redhat.com>
398
399         * python/decorators.py: add explicitly_pass_message decorator
400         for passing in the dbus message as keyword for edge case signal
401         handling
402
403         * python/matchrules.py (SignalMatchRule.__repr__): fix output
404         to conform with what dbus expects for match rules
405         (SignalMatchRule.execute): add the dbus message as a keyword
406         if the signal handler has requested it
407
408         * python/examples/example/signal-recipient.py: added some more
409         examples on how to hook up to signals
410
411 2005-05-23  John (J5) Palmieri  <johnp@redhat.com>
412
413         * python/decorators.py: import dbus_bindings
414
415         * python/matchrules.py (SignalMatchRule, SignalMatchTree, 
416         SignalMatchNode): new classes that implement wildcard signal
417         callback matching using a tree lookup. Heavily modified from a
418         patch sent by Celso Pinto (fd.o bug #3241)
419
420         * _dbus.py (add_signal_receiver, remove_signal_receiver, _signal_func):
421         use new match classes to handle signals.
422
423 2005-05-19  John (J5) Palmieri  <johnp@redhat.com>
424         
425         * python/dbus_bindings.pyx.in: s/TYPE_PATH/TYPE_OBJECT_PATH
426
427 2005-05-18  Havoc Pennington  <hp@redhat.com>
428
429         * configure.in: use GLIB_GNU_GETTEXT to get INTLLIBS and require
430         gettext. Not really worth requiring yet perhaps, but any
431         production quality 1.0 would require it so we should go ahead and
432         get things set up. We do have a couple token calls to
433         bindtextdomain in the code already.
434
435 2005-05-16  John (J5) Palmieri  <johnp@redhat.com>
436
437         * glib/dbus-gmain.c (io_handler_dispatch): fix deadlock
438         when using recursive g_main_loops
439
440         * python/_dbus.py (class Bus): add the ProxyObjectClass
441         alias for ProxyObject to make it easier for the Twisted 
442         networking framework to integrate dbus.
443
444         * python/proxies.py (class ProxyObject): add the ProxyMethodClass
445         alias for ProxyMethod to make it easier for the Twisted 
446         networking framework to integrate dbus. 
447
448 2005-05-11  Ross Burton  <ross@burtonini.com>
449
450         * glib/dbus-glib-tool.c: Add --prefix argument.
451         * glib/dbus-binding-tool-glib.h: Add prefix argument.
452         * glib/dbus-binding-tool-glib.c (compute_marshaller_name):
453         Add prefix argument.
454         (generate_glue): Pass prefix argument down.
455         (dbus_binding_tool_output_glib_server): Pass prefix to
456         glib-genmarshal.
457         
458 2005-05-11  Colin Walters  <walters@verbum.org>
459
460         * tools/dbus-send.c (append_array): New function.
461         (append_arg): Broken out from main.
462         (main): Add cheesy hack to send arrays and variants.
463         (usage): Update.
464         * tools/dbus-print-message.c (print_iter): Broken out
465         from main.
466
467 2005-05-11  Colin Walters  <walters@verbum.org>
468
469         * dbus/dbus-signature.c (dbus_signature_iter_get_signature):
470         New function, returns signature string for signature iter.
471         * dbus/dbus-signature.h: Prototype it.
472         * dbus/dbus-message.c (dbus_message_iter_get_signature):
473         New function, returns signature string for message iter.
474         (dbus_message_iter_get_array_len): New function, returns
475         length of array.
476         (dbus_message_iter_get_fixed_array): Fix assertion; this
477         function should be used when the iter is pointing to the
478         contents of an array
479         * dbus/dbus-message.h: Prototypes.
480         * dbus/dbus-marshal-recursive.c (_dbus_type_reader_get_array_length):
481         New function; returns length of an array.
482         * dbus/dbus-marshal-recursive.h: Prototype it.
483         
484 2005-05-11  Colin Walters  <walters@verbum.org>
485
486         * dbus/dbus-sysdeps-util.c <!HAVE_POSIX_GETPWNAM_R>: Fix
487         compilation error.
488         
489 2005-05-08  Havoc Pennington  <hp@redhat.com>
490
491         * dbus/dbus-sysdeps-util.c (_dbus_become_daemon): write the
492         daemon's pid, not the parent's pid, to the file descriptor.
493         Reported by Taj Morton.
494
495 2005-05-05  Havoc Pennington  <hp@redhat.com>
496
497         * configure.in (LT_*): add notes on how the libtool versioning
498         works to save thinking. Increment soname to indicate protocol
499         breakage (though really the library interface hasn't changed I
500         guess)
501
502         * dbus/dbus-transport.c (_dbus_transport_get_is_authenticated):
503         verify the GUID received from server matches what we were
504         expecting, if we had an expectation
505
506         * dbus/dbus-auth.c (send_ok): send GUID along with the OK command
507         (_dbus_auth_get_guid_from_server): new function
508         (send_begin): parse the OK args
509
510         * doc/dbus-specification.xml: add GUID to the auth protocol
511
512 2005-05-05  John (J5) Palmieri  <johnp@redhat.com>
513
514         * Fix my name in previous changelog ;)
515
516         * python/proxies.py (ProxyObject.__getattr__): add further patch
517         from Anthony Baxter to throw an AttributeError when python 
518         __special__ functions are called instead of marshling them over 
519         the bus (Bug#1685 comment 3).
520
521 2005-05-04  John (J5) Palmieri  <johnp@redhat.com>
522
523         * python/Makefile.am: changed to use pyexecdir for the binding
524         shared libraries (Bug#2494)
525
526         * python/exceptions.py: bring exceptions over from the bindings
527         so they can be used in applications (Bug#2036)
528         Make all exceptions derive from DBusException
529
530         * python/_dbus.py, python/proxies.py: implement __repr__ in a couple
531         of classes so that print obj doesn't throw an exception (Bug #1685)
532
533 2005-05-03  Ross Burton  <ross@burtonini.com>
534
535         * glib/dbus-gobject.c (dbus_g_connection_register_g_object):
536         Return if we get an error during registration.  Set up a
537         weak reference on object to unregister if object is destroyed.
538         (unregister_gobject): New function.
539         
540 2005-05-01  John (J5) Palmieri  <johnp@redhat.com>
541
542         * python/dbus_bindings.pyx.in: 
543         - added new type classes for hinting to the marashaler what type 
544         to send over the wire
545         - added int16 and uint16 marshalers
546         - Fixed a bug in the type constants that caused int32 to go out
547         as uint16 over the wire
548         * python/dbus.py: split up into different files and renamed _dbus.py
549         * python/__init__.py, python/_util.py, python/decorators.py, 
550         python/exceptions.py, python/proxies.py, python/services.py,
551         python/types.py: new files split off from dbus.py
552         * python/Makefile.am: Add new files, remove dbus.py and 
553         install all python files to <python module dir>/dbus
554         * python/examples/*: Added #!/usr/bin/env python to the top of
555         every example.  Patch provided by Tatavarty Kalyan
556
557 2005-04-25  John (J5) Palmieri  <johnp@redhat.com>
558
559         * NEWS: Update to 0.33
560
561 2005-04-25  John (J5) Palmieri  <johnp@redhat.com>
562
563         * python/dbus_bindings.pyx.in (send_with_reply_handlers): New send
564         method for doing async calls
565         (_pending_call_notification): New C function for handling pendning call
566         callbacks
567         (set_notify): New method for setting pending call notification
568         
569         * python/dbus.py: new version tuple "version" is set at (0, 40, 0)
570         Async capabilities added to remote method calls
571         (Sender): class removed
572         (RemoteService): class removed
573         (ObjectTree): class removed for now
574         (RemoteObject): Renamed to ProxyObject
575         (RemoteMethod): Renamed to ProxyMethod
576         (method): Decorator added for decorating python methods as dbus methods
577         (signal): Decorator added for decorating python methods as signal emitters
578         (ObjectType): Metaclass added for generating introspection data and the
579         method callback vtable
580         (Interface): Wrapper class added to wrap objects in a dbus interface
581         (Object): Uses ObjectType as its metaclass and exports Introspect
582         of the org.freedesktop.DBus.Introspectable interface
583         (ValidationException, UnknownMethodException): new exceptions
584
585         * python/examples/*: Modified to fit with the new bindings
586
587 2005-04-23  Havoc Pennington  <hp@redhat.com>
588
589         * dbus/dbus-message.c (dbus_message_append_args): fix doc comment,
590         reported by Tony Houghton
591
592         * test/test-service.c (main): test
593         dbus_connection_get_object_path_data()
594
595         * dbus/dbus-object-tree.c (find_handler): be sure we always init
596         the exact_match
597         (_dbus_object_tree_get_user_data_unlocked): new function used by
598         dbus_connection_get_object_path_data()
599         (do_register): add assertion test for get_user_data_unlocked
600         (object_tree_test_iteration): more tests
601
602         * dbus/dbus-connection.c (dbus_connection_get_object_path_data):
603         new function from Dan Reed to let you get the user data from 
604         dbus_connection_register_object_path()
605
606 2005-04-23  John (J5) Palmieri  <johnp@redhat.com>
607
608         * dbus/dbus-marshal-recursive-util.c: Fixed buffer overflow
609         in numerous places that did not account for the NULL terminator
610         (signature_from_seed): changed the manual string copy loop to 
611         just use strcpy instead
612         make check should now pass
613
614 2005-04-19  John (J5) Palmieri  <johnp@redhat.com>
615
616         * dbus/dbus-marshal-header.c (_dbus_header_create): Fix assert
617         so that it allows messages that are not signals to pass in 
618         NULL as the interface.
619
620 2005-04-18  David Zeuthen  <davidz@redhat.com>
621
622         * glib/dbus-gmain.c (io_handler_destroy_source): 
623         (timeout_handler_destroy_source, connection_setup_free): 
624         Also unref the source to avoid memory leaks.
625
626 2005-04-13  David Zeuthen  <davidz@redhat.com>
627
628         * bus/config-parser.c (bus_config_parser_new): Bump this to a
629         more reasonable, yet still totally arbitrary, value :-). 
630
631 2005-04-13  David Zeuthen  <davidz@redhat.com>
632
633         * doc/TODO: Added an "important for 1.0" item about selinux
634         allow/deny messages
635
636 2005-04-13  David Zeuthen  <davidz@redhat.com>
637
638         * bus/selinux.c: Add c-file-style to top of file
639         (log_audit_callback): Don't free the data here anymore
640         (bus_selinux_check): Don't take spid and tpid since appending
641         that to auxdata may OOM.
642         (bus_selinux_allows_acquire_service): Handle OOM and signal back
643         to the caller if we are OOM by taking an error object.
644         (bus_selinux_allows_send): -do-
645
646         * bus/selinux.h: Fix prototypes for bus_selinux_allows_acquire_service
647         and bus_selinux_allows_send
648
649         * bus/bus.c (bus_context_check_security_policy): Pass error and
650         pass on OOM thrown by bus_selinux_allows_send()
651
652         * bus/services.c (bus_registry_acquire_service): Pass error and
653         pass on OOM thrown by bus_selinux_allows_acquire_service()
654
655 2005-04-13  Havoc Pennington  <hp@redhat.com>
656
657         * glib/dbus-gmain.c (message_queue_dispatch): only dispatch one
658         message at a time to avoid monopolizing the main loop, bug 
659         #2953 from Benjamin Otte
660
661 2005-04-09  Havoc Pennington  <hp@redhat.com>
662
663         * dbus/dbus-string.c (copy): change a memcpy to memmove due to
664         possible overlap, fix from Daniel Reed
665         (fixup_alignment): fix signedness warnings
666         (_dbus_string_append_unichar): ditto
667
668 2005-04-09  Havoc Pennington  <hp@redhat.com>
669
670         * dbus/dbus-message-util.c (_dbus_message_test): fix signedness warning
671
672         * glib/dbus-glib-tool.c (main): fix warning
673
674         * glib/dbus-binding-tool-glib.c (generate_glue): fix warning
675
676         * dbus/dbus-connection.c (dbus_connection_read_write_dispatch):
677         add a new function that can be used in simple applications that
678         don't have a main loop and are willing to block
679
680 2005-04-05  David Zeuthen  <davidz@redhat.com>
681
682         Fix https://bugs.freedesktop.org/show_bug.cgi?id=2889
683
684         * glib/dbus-gmain.c:
685         (io_handler_destroy_source): Remove from list of IO handlers
686         of the ConnectionSetup object
687         (timeout_handler_destroy_source): -do- for timeout handlers
688         (io_handler_source_finalized): Don't remove from list since
689         we now do that in io_handler_destroy_source(). Renamed from
690         io_handler_source_destroyed
691         (timeout_handler_source_destroyed): -do- for timeout handlers
692         (connection_setup_free): It is now safe to iterate over all
693         IO and timeout handlers as the _destroy_source removes them
694         from the list synchronously
695
696 2005-03-30  Havoc Pennington  <hp@redhat.com>
697
698         * configure.in: change check to gtk 2.4
699
700         * tools/dbus-viewer.c (name_combo_changed_callback): remove
701         gtk_combo_box_get_active_text() usage to decrement GTK requirement
702         to 2.4
703
704 2005-03-29  John (J5) Palmieri  <johnp@redhat.com>
705
706         * News: Update 0.32
707
708         * HACKING: Fixed realease instructions.  configure.in should be updated to
709           the next release by the person who made the last release.
710
711 2005-03-29  John (J5) Palmieri  <johnp@redhat.com>
712
713         * python/lvalue_cast_post_process.py - removed.  Patch has been
714           submitted to Pyrex maintainers that fixes gcc4.0 errors
715
716         * python/Makefile.am: removed refrences to lvalue_cast_post_process.py
717
718 2005-03-24  Daniel Reed  <n@ml.org>
719
720         * tools/Makefile.am: Make print-introspect and
721         dbus-bus-introspect.xml building conditional on HAVE_GLIB.
722
723 2005-03-22  John (J5) Palmieri  <johnp@redhat.com>
724
725         * tools/Makefile.am: Patch by Colin Walters that fixes distcheck
726
727         * dbus/dbus-userdb.c, dbus/dbus-userdb-util.c: Add patch we have 
728           had in Red Hat packages for a while but for some reason never 
729           got merged upstream
730           (_dbus_is_a_number): New checks if a string
731           can be converted to a number and does the conversion if it can
732           (_dbus_user_database_lookup): Add check to see if the given username
733           is a udi.  This allows udi's to be used instead of usernames in the
734           config file.
735           (_dbus_user_database_lookup_group): Add check to see if the given groupname
736           is a gdi.  This allows gdi's to be used instead of groupnames in the
737           config file.
738
739 2005-03-21  John (J5) Palmieri  <johnp@redhat.com>
740
741         * python/lvalue_cast_post_process.py - added post processor to fix Pyrex
742           code so that it compiles with gcc4.0
743
744         * python/Makefile.am: Added lvalue_cast_post_process.py to EXTRA_DIST
745           run dbus_bindings.c through lvalue_cast_post_process.py and copy the
746           results back to dbus_binding.c
747
748 2005-03-20  Colin Walters  <walters@verbum.org>
749
750         Patch suggested by Inguva Rajasekhar <ringuva@novell.com>.
751
752         * configure.in: Require GTK+ 2.6.
753         
754 2005-03-20  Colin Walters  <walters@verbum.org>
755
756         * Makefile.am (SUBDIRS, DIST_SUBDIRS): Build tools before test.
757
758 2005-03-17  Tom Parker  <palfrey@tevp.net>
759
760         * dbus/dbus-userdb.c (_dbus_user_database_lookup): Don't
761         print DBUS_UID_UNSET; instead print passed username.  Also
762         be sure to actually use gid looked up in cache.
763         
764         * dbus/dbus-userdb-util.c (_dbus_user_database_lookup_group): Ditto
765         for DBUS_GID_UNSET and groupname.
766
767 2005-03-17  Colin Walters  <walters@verbum.org>
768
769         * bus/print-introspect.c: Move to tools/.
770         * bus/run-with-tmp-session-bus.sh: Ditto.
771         
772         * glib/Makefile.am (dbus-glib-bindings.h): Move
773         generation to tools/Makefile.am.
774
775         * test/glib/run-test.sh: Update to handle move
776         of run-with-tmp-session-bus.sh.
777
778         * test/glib/test-service-glib.c: Update to handle
779         move of dbus-glib-bindings.h.
780
781         * tools/print-introspect.c: Moved here
782         from bus/, and ported to GLib bindings.
783
784         * tools/run-with-tmp-session-bus.sh: Moved here
785         from bus/.
786
787         * tools/Makefile.am: Generate dbus-glib-bindings.h
788         and dbus-bus-introspect.xml here.
789
790         * tools/.cvsignore, glib/.cvsignore, bus/.cvsignore:
791         Update.
792
793 2005-03-17  Colin Walters  <walters@verbum.org>
794
795         * bus/driver.c (write_args_for_direction): Use
796         _dbus_string_get_const_data to retrieve string;
797         _dbus_string_get_const_data_len doesn't actually return
798         a NULL-terminated substring.
799
800         * test/glib/test-service-glib.c: Include dbus-glib-bindings.h.
801         (main): Change to use org_freedesktop_DBus_request_name
802         instead of using g_proxy_begin_call/end_call.
803
804 2005-03-15  Joe Shaw  <joeshaw@novell.com>
805
806         * mono/ProxyBuilder.cs (BuildFinalizer): Fix some invalid IL when
807         generating the finalizer.  Fixes from Ben Maurer.
808
809 2005-03-12  Joe Shaw  <joeshaw@novell.com>
810
811         * mono/BusDriver.cs: Update method names: ListServices
812         becomes ListNames; GetOwner becomes GetNameOwner.
813
814         * mono/ProxyBuilder.cs (BuildFinalizer): Need to load arg 0
815         onto the eval stack when removing the delegate.
816
817 2005-03-12  Joe Shaw  <joeshaw@novell.com>
818
819         * mono/dbus-sharp.dll.config.in: Don't hardcode 0 for
820         LT_CURRENT.  Set it to the autoconf variable.
821                                                                                 
822         * mono/ProxyBuilder.cs: Add a finalizer to the generated proxy
823         classes that disconnects the signal handler delegate from the
824         service object.  Fixes a big leak of proxy objects on the
825         client side of things.  Patch from Ben Maurer
826         <bmaurer@ximian.com>
827
828 2005-03-12  Colin Walters  <walters@verbum.org>
829
830         * bus/driver.c (write_args_for_direction): New function,
831         parses a type signature into arguments and outputs to
832         XML.
833         (bus_driver_handle_introspect): Use it instead of
834         hardcoding XML for certain signatures.
835         
836         * bus/Makefile.am (dbus-bus-introspect.xml): Add
837         dependency on dbus-daemon.
838
839         * glib/dbus-glib-tool.c (main): Parse ignore_unsupported
840         argument, pass it to dbus_binding_tool_output_glib_client.
841
842         * glib/dbus-binding-tool-glib.c
843         (generate_client_glue): Protect against multiple inclusion.
844         (dbus_binding_tool_output_glib_client): Add
845         G_BEGIN_DECLS/G_END_DECLS.
846
847         * glib/dbus-binding-tool-glib.c (compute_client_method_name):
848         Change to just take iface prefix directly.
849         (write_formal_parameters): Clarify error message.
850         (check_supported_parameters): New function; checks to see type
851         signatures of method parameters are supported.
852         (generate_client_glue): Handle ignore_unsupported flag.
853         (dbus_binding_tool_output_glib_client): Handle ignore_unsupported
854         parameter.
855
856         * glib/Makefile.am (dbus-glib-bindings.h): Pass
857         --ignore-unsupported by default until glib bindings
858         support arrays.
859
860 2005-03-11  Colin Walters  <walters@verbum.org>
861
862         * glib/Makefile.am: Generate dbus-glib-bindings.h and
863         install it.
864
865         * bus/print-introspect.c: New file; prints introspection
866         data for a given name and object path.
867
868         * bus/run-with-tmp-session-bus.sh: New file, refactored
869         from test/glib/run-test.sh.  Creates a temporary session
870         bus and runs another program.
871
872         * test/glib/run-test.sh: Refactor to invoke
873         run-with-tmp-session-bus.sh.
874
875         * bus/driver.c (bus_driver_handle_introspect): Fix to print new
876         introspection format.  Also change to use DBUS_TYPE_x_AS_STRING
877         macros instead of hardcoding.
878
879         * glib/.cvsignore, bus/.cvsignore, test/glib/.cvsignore: Update.
880
881 2005-03-11  Joe Shaw  <joeshaw@novell.com>
882
883         * dbus/dbus-connection.c (dbus_connection_send_with_reply): Remove
884         this unref; it doesn't match up evenly in some codepaths.
885         (_dbus_connection_block_pending_call): Unref at every exitpoint;
886         this evenly matches with the ref near the top of this function.
887
888 2005-03-09  Joe Shaw  <joeshaw@novell.com>
889
890         * dbus/dbus-object-tree.c
891         (_dbus_object_tree_unregister_and_unlock): If checks are enabled
892         and we try to unregister a path that's not registered, still go
893         through the process of unlocking and don't just return.
894
895 2005-03-09  Colin Walters  <walters@verbum.org>
896
897         * glib/dbus-gproxy.c (dbus_g_proxy_invoke): New method; calls
898         to this are generated for client-side wrappers.  Invokes a
899         D-BUS method and returns reply values.  
900
901         * glib/dbus-binding-tool-glib.c (write_args_sig_for_direction): New
902         function; writes signature string for argument direction.
903         (write_args_for_direction): Change to pass input values directly
904         instead of via address, and fix indentation.
905         (generate_client_glue): Change to invoke dbus_g_proxy_invoke.  Also
906         make generated wrappers inlineable.
907
908         * dbus/dbus-message.c (dbus_message_iter_get_fixed_array): Add
909         note about using dbus_type_is_fixed.
910
911         * dbus/dbus-marshal-basic.c (_dbus_type_is_fixed): Moved to
912         dbus/dbus-signature.c as dbus_type_is_fixed.
913
914         All callers updated.
915
916         * dbus/dbus-signature.c (dbus_type_is_fixed): Moved here
917         from dbus/dbus-marshal-basic.c:_dbus_type_is_fixed.
918
919         * dbus/dbus-signature.h: Prototype.
920
921         * glib/dbus-binding-tool-glib.c (compute_marshaller_name): Fix
922         error printf code.
923
924         * test/glib/test-dbus-glib.c (main): Be sure to clear error as
925         appropriate instead of just freeing it.
926         (main): Free returned strings using g_free.
927
928         * test/glib/Makefile.am (test-service-glib-glue.h)
929         (test-service-glib-bindings.h): Add dependency on dbus-binding-tool.
930
931         * glib/dbus-gvalue.c (MAP_BASIC): Refactored from MAP_BASIC_INIT;
932         simply maps a simple D-BUS type to GType.
933         (dbus_dbus_type_to_gtype): Function which maps D-BUS type to
934         GType.
935         (dbus_gvalue_init): Just invoke dbus_dbus_type_to_gtype and
936         initialize the value with it.
937         (dbus_gvalue_binding_type_from_type): Unused, delete.
938         (dbus_gvalue_demarshal): Switch to hardcoding demarshalling for
939         various types instead of unmarshalling to value data directly.
940         Remove can_convert boolean.
941         (dbus_gvalue_marshal): Remove duplicate initialization; switch to
942         returning directly instead of using can_convert boolean.
943         (dbus_gvalue_store): New function; not related to D-BUS per-se.
944         Stores a GValue in a pointer to a value of its corresponding C
945         type.
946
947         * glib/dbus-gvalue.h: Remove dbus_gvalue_binding_type_from_type,
948         add dbus_gvalue_store.
949
950 2005-03-08  Joe Shaw  <joeshaw@novell.com>
951
952         Fix a bunch of lifecycle and memory management problems
953         in the mono bindings.
954
955         * mono/Arguments.cs (Arguments): Implement IDisposable
956
957         * mono/Bus.cs (Bus): Don't allow public instantiation.  This is
958         strictly a static class.
959
960         * mono/Connection.cs: Move the DBusObjectPathVTable and associated
961         delegates into this file.
962         (Connection): Implement IDisposable.
963         (Dispose): Disconnect the connection and set the raw connection
964         pointer to IntPtr.Zero.
965         (~Connection): Call Dispose().
966         (RegisterObjectPath): Added.  Manages the registration of object
967         paths so we can cleanly disconnect them at dispose/finalize time.
968         (UnregisterObjectPath): Ditto.
969         (set_RawConnection): Unregister all of the object paths when
970         changing the underlying DBusConnection.  Add them back onto the
971         new connection, if any.
972
973         * mono/Handler.cs: Don't implement IDisposable; it doesn't use any
974         more unmanaged resources anymore, so it's not necessary.  Move all
975         the DBusObjectPathVTable stuff out of here.
976         (Handler): Save references to our delegates so that they don't get
977         finalized.  Call Connection.RegisterObjectPath() instead of
978         dbus_connection_register_object_path() directly.
979         (Message_Called): Dispose the message after we're finished with
980         it.
981
982         * mono/Message.cs (Message): Implement IDisposable.
983         (Dispose): Dispose the Arguments, and set the RawMessage to
984         IntPtr.Zero.
985         (SendWithReplyAndBlock): We own the ref to the reply that comes
986         back from dbus_connection_send_with_reply_and_block() so add a
987         comment about that and unref it after we've constructed a managed
988         MethodReturn class around it.  Fixes a big, big leak.
989
990         * mono/ProxyBuilder.cs: Reflect into Message to get the Dispose
991         method.
992         (BuildSignalHandler): After we've sent the Signal message, dispose
993         of it.
994         (BuildMethod): Dispose of the method call and reply messages after
995         we've sent the message and extracted the data we want from the
996         reply.
997
998         * mono/Service.cs (UnregisterObject): Don't call handler.Dispose()
999         anymore.
1000         (Service_FilterCalled): Dispose of the message after we're
1001         finished with it.
1002
1003 2005-03-08  Joe Shaw  <joeshaw@novell.com>
1004
1005         * dbus/dbus-connection.c (dbus_connection_send_with_reply):
1006         After we attach our pending call to the connection, unref
1007         it.  Fixes a leak.
1008  
1009         * mono/Connection.cs (set_RawConnection): Disconnect our
1010         filter and match callbacks from the old connection and
1011         reconnect them to the new connection, if any.
1012
1013         * mono/DBusType/Array.cs: "Code" is a static member, so
1014         don't use "this" to refer to it.  Fix for stricter checking
1015         in Mono 1.1.4.
1016  
1017         * mono/DBusType/ObjectPath.cs (Append): Don't leak the
1018         object path that we pass into unmanaged code.
1019  
1020         * mono/DBusType/String.cs (Append): Don't leak the string
1021         that we pass into unmanged code.
1022
1023 2005-03-07  John (J5) Palmieri  <johnp@redhat.com>
1024         * NEWS: Update for 0.31
1025
1026         * configure.in: Release 0.31
1027         add LT_CURRENT, LT_REVISION, LT_AGE for easy soname bumping
1028
1029         * qt/Makefile.am: fixed build
1030
1031         * dbus/Makefile.am: soname bump for libdbus
1032
1033         * glib/Makefile.am: soname bump for libdbus-glib
1034
1035 2005-03-05  Havoc Pennington  <hp@redhat.com>
1036
1037         * dbus/dbus-sysdeps.c:
1038         (pseudorandom_generate_random_bytes_buffer): fix to have no return
1039         value
1040         (_dbus_generate_random_bytes_buffer): fix return value
1041
1042         * dbus/dbus-sysdeps-util.c: s/GETPWNAME/GETPWNAM/ so configure
1043         checks actually work, from Tom Parker <fdo@tevp.net>
1044
1045 2005-03-01  Colin Walters  <walters@verbum.org>
1046
1047         * test/glib/test-dbus-glib.c (lose, lose_gerror): Utility
1048         functions copied from dbus-glib-tool.c.
1049         (main): Convert lots of error code to use them.
1050         Also add some testing for introspection bits.
1051
1052 2005-03-01  Colin Walters  <walters@verbum.org>
1053         
1054         * doc/TODO: Remove introspection signature TODO.
1055
1056 2005-02-27  Colin Walters  <walters@verbum.org>
1057
1058         * glib/dbus-gidl.c (property_info_get_type, arg_info_get_type):
1059         Change return value to const char * instead of int so we can do
1060         full signatures.
1061         (struct PropertyInfo, struct ArgInfo): Store char *.
1062         (property_info_new, arg_info_new): Update parameters, strdup.
1063         (property_info_unref, arg_info_unref): Free.
1064
1065         * glib/dbus-gidl.h: Update prototypes.
1066
1067         * glib/dbus-gparser.c (basic_type_from_string): Delete.
1068         (validate_signature): New function, just validates signature and
1069         sets GError.
1070         (parse_property, parse_arg): Invoke validate_signature.  Store
1071         signature instead of just type code.
1072
1073         * glib/dbus-gvalue.c (base_type_from_signature): New utility
1074         function to return a primary type for a signature, dropping
1075         information about types in container types.
1076         (dbus_gvalue_genmarshal_name_from_type)
1077         (dbus_gvalue_binding_type_from_type)
1078         (dbus_gvalue_ctype_from_type): Update to take full signature
1079          instead of type code.
1080         (dbus_gtype_to_dbus_type): Moved here from glib/dbus-gobject.c.
1081
1082         * glib/dbus-gvalue.h: Update prototypes for above.
1083
1084         * glib/dbus-gobject.c (gtype_to_dbus_type): Moved to
1085         glib/dbus-gvalue.c as dbus_gtype_to_dbus_type.
1086         (introspect_properties, introspect_signals, write_interface):
1087         Update to handle signatures, and remove usage of
1088         _dbus_gutils_type_to_string.
1089         (handle_introspect): Print out type codes instead of e.g. "string"
1090         in hardcoded introspection XML; also use x_AS_STRING constants
1091         instead of hardcoding in string.
1092
1093         * glib/dbus-glib-tool.c (pretty_print): Handle signature change
1094         to string.  Remove usage of _dbus_gutils_type_to_string.
1095
1096         * glib/dbus-gutils.c (_dbus_gutils_type_to_string): Delete.
1097
1098         * glib/dbus-gutils.h (_dbus_gutils_type_to_string): Update for
1099         deletion.
1100         
1101         * glib/dbus-binding-tool-glib.c (compute_marshaller)
1102         (compute_marshaller_name, generate_glue): Handle signature change
1103         to string.
1104         (write_formal_parameters, write_args_for_direction): Ditto, and
1105         remove FIXME.
1106
1107         * tools/dbus-tree-view.c (type_to_string): Delete.
1108         (info_set_func_text): Update to print full signatures.
1109
1110         * test/glib/test-service-glib.xml: Change types to new
1111         introspection format.
1112
1113 2005-02-26  Havoc Pennington  <hp@redhat.com>
1114
1115         * doc/TODO: remove the "guid" item
1116
1117         * test/glib/test-profile.c (no_bus_thread_func): use open_private
1118         (with_bus_thread_func): use open_private
1119
1120         * dbus/dbus-connection.c (dbus_connection_open_private): new
1121         function that works like the old dbus_connection_open()
1122         (dbus_connection_open): now returns an existing connection if
1123         possible
1124
1125         * dbus/dbus-server-unix.c (handle_new_client_fd_and_unlock): pass
1126         through the GUID to the transport
1127
1128         * dbus/dbus-server.c (_dbus_server_init_base): keep around the
1129         GUID in hex-encoded form.
1130
1131         * dbus/dbus-server-debug-pipe.c (_dbus_transport_debug_pipe_new):
1132         pass GUID argument in to the transport
1133
1134         * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd): add
1135         guid argument
1136
1137         * dbus/dbus-transport.c (_dbus_transport_init_base): add guid argument
1138
1139         * dbus/dbus-auth.c (_dbus_auth_server_new): add guid argument
1140
1141 2005-02-25  Havoc Pennington  <hp@redhat.com>
1142
1143         * doc/dbus-specification.xml: document the GUID thing
1144
1145         * dbus/dbus-server.c (_dbus_server_init_base): initialize a
1146         globally unique ID for the server, and put a "guid=hexencoded"
1147         field in the address
1148
1149         * dbus/dbus-bus.c: fix missing #include of dbus-threads-internal.h
1150
1151         * dbus/dbus-message.c: ditto
1152
1153         * dbus/dbus-dataslot.c: ditto
1154
1155         * dbus/dbus-list.c: ditto
1156
1157         * dbus/dbus-internals.h: wait, just include
1158         dbus-threads-internal.h here
1159         
1160         * dbus/dbus-string.c (_dbus_string_copy_to_buffer): move back for
1161         use in main library
1162
1163         * dbus/dbus-sysdeps.c (_dbus_generate_random_bytes_buffer): new function
1164
1165 2005-02-24  Colin Walters  <walters@verbum.org>
1166
1167         * test/glib/Makefile.am (EXTRA_DIST): Add test-service-glib.xml
1168
1169 2005-02-24  John (J5) Palmieir  <johnp@redhat.com>
1170
1171         * glib/Makefile.am: added dbus-gobject.h to sources list
1172         so distcheck doesn't fail
1173         
1174 2005-02-24  Havoc Pennington  <hp@redhat.com>
1175
1176         * dbus/dbus-server.c, dbus/dbus-server-unix.c: change semantics so
1177         you must disconnect before unref, since locking and other things
1178         are screwed up otherwise. Fix assorted other locking stuff.
1179
1180         * dbus/dbus-signature.c (dbus_signature_iter_get_element_type):
1181         fix compilation
1182
1183         * dbus/dbus-threads-internal.h: move the mutex/condvar wrappers
1184         into a private header and don't export from the library
1185
1186         * throughout - call _dbus_thread_stuff vs. dbus_thread_stuff
1187
1188 2005-02-24  Colin Walters  <walters@verbum.org>
1189         
1190         * dbus/dbus-signature.c: New file; implements various functions
1191         related to type signatures.  Includes an interator for parsing,
1192         validation functions.
1193         (dbus_type_is_basic): Moved here from
1194         dbus-marshal-basic.c:_dbus_type_is_basic.
1195         (dbus_type_is_container): Moved here from
1196         dbus-marshal-basic.c:_dbus_type_is_container.
1197
1198         All callers of _dbus_type_is_container and _dbus_type_is_basic
1199         updated, and include dbus-signature.h.
1200
1201         * dbus/dbus-signature.h: New file; prototypes for the above.
1202
1203         * dbus/Makefile.am (DBUS_LIB_SOURCES): Add dbus-signature.c,
1204         dbus-signature.h.
1205
1206         * dbus/dbus-marshal-basic.c (map_type_char_to_type): New utility
1207         function factored out of _dbus_first_type_in_signature.
1208         (_dbus_first_type_in_signature_c_str): New function; returns first
1209         type code for a type signature character.
1210
1211         * dbus/dbus-marshal-basic.h: Prototype _dbus_first_type_in_signature_c_str,
1212         handle function moves.
1213
1214         * dbus/dbus-marshal-recursive.h: Export _dbus_type_signature_next.
1215
1216         * dbus/dbus-marshal-recursive.c (_dbus_type_signature_next): New
1217         function; skips to next complete type in type signature.
1218         Implemented using previous skip_one_complete_type.  Now
1219         skip_one_complete_type just delegates to
1220         _dbus_type_signature_next.
1221
1222         * dbus/dbus-marshal-basic.c (_dbus_type_is_basic): Moved
1223         to dbus-signature.c
1224         (_dbus_type_is_container): Ditto.
1225
1226         * doc/dbus-specification.xml: Update introspection sample to
1227         use real type signatures.
1228
1229         * dbus/dbus-test.h: Prototype signature test.
1230
1231         * dbus/dbus-test.c (dbus_internal_do_not_use_run_tests): Run
1232         signature tests.
1233
1234         * dbus/dbus-protocol.h (DBUS_ERROR_INVALID_SIGNATURE): New error.
1235
1236 2005-02-23  John (J5) Palmieri  <johnp@redhat.com>
1237
1238         * python/dbus_bindings.pyx.in (PendingCall::get_reply):
1239         s/dbus_pending_call_get_reply/dbus_pending_call_steal_reply
1240
1241 2005-02-21  Colin Walters  <walters@verbum.org>
1242
1243         * dbus/dbus-test-main.c (main): Take optional specific test
1244         argument.
1245
1246         * dbus/dbus-test.c (run_test): New function, runs a test function
1247         with no data directory.
1248         (run_data_test): Like above, but takes data directory.
1249         (dbus_internal_do_not_use_run_tests): Take
1250         specific test argument.  Replace lots of cut n' paste code
1251         with run_test and run_data_test.
1252
1253         * dbus/dbus-test.h: Update prototype for
1254         dbus_internal_do_not_use_run_tests.
1255
1256 2005-02-20  Havoc Pennington  <hp@redhat.com>
1257
1258         Fix bugs reported by Daniel P. Berrange
1259         
1260         * dbus/dbus-server.c (_dbus_server_unref_unlocked): new function
1261         (protected_change_watch): new function
1262         (_dbus_server_toggle_watch, _dbus_server_remove_watch)
1263         (_dbus_server_add_watch): change to work like the
1264         dbus-connection.c equivalents; like those, probably kind of
1265         busted, but should at least mostly work for now
1266         (dbus_server_disconnect): drop the lock if we were already
1267         disconnected, patch from Daniel P. Berrange
1268
1269         * dbus/dbus-server.c (_dbus_server_toggle_timeout) 
1270         (_dbus_server_remove_timeout, _dbus_server_add_timeout): all the
1271         same stuff
1272
1273         * doc/TODO: todo about unscrewing this mess
1274
1275 2005-02-19  Colin Walters  <walters@verbum.org>
1276
1277         * glib/dbus-binding-tool-glib.c
1278         (dbus_binding_tool_output_glib_server): Fix iochannel refcounting.
1279
1280         * glib/dbus-glib-tool.c: Include dbus-glib-tool.h, as well
1281         as errno.h and sys/stat.h.
1282         (lose): New function, prints error with
1283         newline and exits.
1284         (lose_gerror): Similar, but takes GError for message.
1285         (main): Add --output argument to specify output file to write to,
1286         instead of always printing to stdout.  In this mode, determine
1287         timestamps on source files to see whether any are newer than the
1288         target file.  If not, exit.  Also convert a number of error
1289         messages to use lose (since it's shorter), and switch to using
1290         g_io_channel_shutdown.
1291
1292 2005-02-19  Havoc Pennington  <hp@redhat.com>
1293
1294         * glib/dbus-gobject.c
1295         (_dbus_glib_marshal_dbus_message_to_gvalue_array): add docs
1296
1297         * glib/dbus-glib.c: fix doxygen warnings
1298
1299         * glib/dbus-gparser.c (parse_annotation): error if an annotation
1300         is found on an <arg>
1301
1302 2005-02-17  Colin Walters  <walters@verbum.org>
1303
1304         * glib/dbus-gobject.h: Don't export
1305         _dbus_glib_marshal_dbus_message_to_gvalue_array.
1306         
1307         * glib/dbus-gobject.c (_dbus_glib_marshal_dbus_message_to_gvalue_array): Do rename.
1308         (invoke_object_method): Handle it.
1309
1310         * glib/dbus-gproxy.c (marshal_dbus_message_to_g_marshaller):
1311         Handle rename.
1312         
1313 2005-02-17  Colin Walters  <walters@verbum.org>
1314
1315         * bus/.cvsignore, doc/.cvsignore
1316         * test/data/valid-service-files/.cvsignore, test/glib/.cvsignore:
1317         Update.
1318
1319 2005-02-17  Colin Walters  <walters@verbum.org>
1320         
1321         * dbus/dbus-protocol.h (DBUS_SERVICE_ORG_FREEDESKTOP_DBUS):
1322         Rename to DBUS_SERVICE_DBUS.
1323         (DBUS_PATH_ORG_FREEDESKTOP_DBUS): Rename to DBUS_PATH_DBUS.
1324         (DBUS_PATH_ORG_FREEDESKTOP_LOCAL): Rename to DBUS_PATH_LOCAL.
1325         Change the value from "org.freedesktop.Local"
1326         to "org.freedesktop.DBus.Local".
1327         (DBUS_INTERFACE_ORG_FREEDESKTOP_DBUS): Rename to DBUS_INTERFACE_DBUS.
1328         (DBUS_INTERFACE_ORG_FREEDESKTOP_INTROSPECTABLE): Rename to
1329         DBUS_INTERFACE_INTROSPECTABLE.
1330         Change the value from "org.freedesktop.Introspectable"
1331         to "org.freedesktop.DBus.Introspectable".
1332         (DBUS_INTERFACE_ORG_FREEDESKTOP_PROPERTIES): Rename to
1333         DBUS_INTERFACE_PROPERTIES.
1334         Change the value from "org.freedesktop.Properties"
1335         to "org.freedesktop.DBus.Properties".
1336         (DBUS_INTERFACE_ORG_FREEDESKTOP_PEER): Rename to
1337         DBUS_INTERFACE_PEER.
1338         Change the value from "org.freedesktop.Peer"
1339         to "org.freedesktop.DBus.Peer".
1340         (DBUS_INTERFACE_ORG_FREEDESKTOP_LOCAL): 
1341         DBUS_INTERFACE_LOCAL.
1342         Change the value from "org.freedesktop.Local"
1343         to "org.freedesktop.DBus.Local".
1344
1345         All other users of those constants have been changed.
1346
1347         * bus/driver.c (bus_driver_handle_introspect): Use constants.
1348
1349         * glib/dbus-gobject.c (handle_introspect): Use constants.
1350
1351         * doc/dbus-faq.xml, doc/dbus-specification.xml: Update for rename.
1352
1353 2005-02-17  Colin Walters  <walters@verbum.org>
1354
1355         * glib/dbus-gparser.c (struct Parser): Add in_annotation boolean.
1356         (parse_node, parse_interface, parse_method, parse_signal)
1357         (parse_property, parse_annotation): Lose if we're currently in an
1358         annotation.
1359         (parse_annotation): New function.
1360         (parser_start_element, parser_end_element): Handle annotation.
1361         (parse_method, parse_interface): Remove support for c_name attribute,
1362         switch to annotations.
1363
1364         * glib/dbus-gidl.h (interface_info_get_binding_names)
1365         (method_info_get_binding_names)
1366         (interface_info_get_binding_name, method_info_get_binding_name)
1367         (interface_info_set_binding_name, method_info_set_binding_name):
1368         Remove.
1369         (interface_info_get_annotations, method_info_get_annotations)
1370         (interface_info_get_annotation, method_info_get_annotation)
1371         (interface_info_add_annotation, method_info_add_annotation):
1372         Prototype.
1373
1374         * glib/dbus-gidl.c (struct InterfaceInfo): Substitute "annotations"
1375         for "bindings".
1376         (struct MethodInfo): Ditto.
1377         Straightfoward conversion of binding methods into annotation methods
1378         as prototyped.
1379
1380         * glib/dbus-glib-tool.c (pretty_print): Print annotations.
1381
1382         * glib/dbus-binding-tool-glib.h (DBUS_GLIB_ANNOTATION_C_SYMBOL): Define.
1383
1384         * glib/dbus-binding-tool-glib.c (gather_marshallers, generate_glue):
1385         Use new annotation API.
1386
1387         * doc/introspect.dtd: Fix a number of DTD syntax errors.  Add
1388         annotation element.
1389         
1390         * doc/dbus-specification.xml: Discuss introspection annotations,
1391         include list of well-known annotations.
1392
1393         * test/glib/test-service-glib.xml: Make validate against new DTD.
1394
1395 2005-02-17  Colin Walters  <walters@verbum.org>
1396
1397         This patch is based on initial work from
1398         Paul Kuliniewicz <kuliniew@purdue.edu>.
1399
1400         * glib/dbus-gvalue.c (dbus_gvalue_init): New function; move
1401         initialization of GValue from dbus type to here.
1402         (dbus_gvalue_genmarshal_name_from_type): New function; generates a string
1403         for the "glib-genmarshal" program from a DBus type.
1404         (dbus_gvalue_binding_type_from_type): New function; turns a DBus type
1405         into the C name for it we use in the glib bindings.
1406         (dbus_gvalue_ctype_from_type): New function; maps a DBus type into a
1407         glib C type (not GValue).
1408         (dbus_gvalue_demarshal): invoke dbus_gvalue_init.
1409
1410         * glib/dbus-gutils.c (_dbus_gutils_wincaps_to_uscore): Moved here
1411         from dbus-gobject.c.
1412
1413         * glib/dbus-gutils.h: Prototype it.
1414
1415         * glib/dbus-gproxy.c: Include new dbus-gobject.h.
1416         (marshal_dbus_message_to_g_marshaller): Use new shared function
1417         dbus_glib_marshal_dbus_message_to_gvalue_array.
1418
1419         * glib/dbus-gparser.c (parse_interface, parse_method): Handle c_name attribute.
1420         Will be changed once we have annotations.
1421
1422         * glib/dbus-gobject.c: Change info_hash_mutex from GStaticMutex to
1423         GStaticRWLock.  Callers updated.
1424         (wincaps_to_uscore): Move to dbus-gutils.c.  Callers updated.
1425         (string_table_next): New function for iterating over zero-terminated
1426         string value array.
1427         (string_table_lookup): New function; retrieves specific entry in
1428         array.
1429         (get_method_data): New function; look up method data in object data chunk.
1430         (object_error_domain_prefix_from_object_info)
1431         (object_error_code_from_object_info): New functions, but not implemented yet.
1432         (method_interface_from_object_info): New function; retrieve interface name.
1433         (method_name_from_object_info): New function; retrieve method name.
1434         (method_arg_info_from_object_info): New function; retrieve argument data.
1435         (arg_iterate): New function; iterates over serialized argument data.
1436         (method_dir_signature_from_object_info): New function; returns a
1437         GString holding type signature for arguments for just one
1438         direction (input or output).
1439         (method_input_signature_from_object_info)
1440         (method_output_signature_from_object_info): New functions.
1441         (dbus_glib_marshal_dbus_message_to_gvalue_array): New shared function;
1442         converts dbus message arguments into a GValue array.  Used for both
1443         signal handling and method invocation.
1444         (struct DBusGlibWriteIterfaceData): New utility structure.
1445         (write_interface): New function; generate introspection XML for
1446         an interface.
1447         (introspect_interfaces): New function; gathers all interface->methods,
1448         generates introspection XML for them.
1449         (handle_introspect): Invoke introspect_interfaces.
1450         (get_object_property): Be sure to zero-initalize stack-allocated GValue.
1451         (lookup_object_and_method): New function; examines an incoming message
1452         and attempts to match it up (via interface, method name, and argument
1453         signature) with a known object and method.
1454         (gerror_domaincode_to_dbus_error_name): New function; converts a
1455         GError domain and code into a DBus error name.  Needs GError data
1456         added to object introspection to work well.
1457         (gerror_to_dbus_error_message): Creates a DBusMessage error return from
1458         GError.
1459         (invoke_object_method): New function to invoke an object method
1460         looked up via lookup_object_and_method.  Parses the incoming
1461         message, turns it into a GValue array, then invokes the marshaller
1462         specified in the DBusGMethodInfo.  Creates a new message with
1463         either return values or error message as appropriate.
1464         (gobject_message_function): Invoke lookup_object_and_method and
1465         invoke_object_method.
1466
1467         * glib/dbus-glib-tool.c: Include dbus-binding-tool-glib.h.
1468         (enum DBusBindingOutputMode): New enum for binding output modes.
1469         (pretty_print): Print binding names.
1470         (dbus_binding_tool_error_quark): GError bits.
1471         (version): Fix typo.
1472         (main): Create GIOChannel for output.  Parse new --mode argument,
1473         possible values are "pretty-print", "glib-server", "glib-client".
1474         Use mode to invoke appropriate function.
1475         
1476         * glib/dbus-gobject.h: Prototype dbus_glib_marshal_dbus_message_to_gvalue_array.
1477
1478         * glib/dbus-glib-tool.h: New header, just includes GError bits
1479         for now.
1480
1481         * glib/dbus-gidl.c (struct InterfaceInfo): Add bindings hashtable;
1482         maps binding style to name.
1483         (struct MethodInfo): Ditto.
1484         (get_hash_keys, get_hash_key): Utility function, returns keys for
1485         a GHashTable.
1486         (interface_info_new, method_info_new): Initialize bindings.
1487         (interface_info_unref, method_info_unref): Destroy bindings.
1488         (method_info_get_binding_names, method_info_get_binding_name)
1489         (interface_info_get_binding_names, interface_info_get_binding_name):
1490         Functions for retrieving binding names.
1491         (method_info_set_binding_name, interface_info_set_binding_name):
1492         Functions for setting binding names.
1493
1494         * glib/dbus-binding-tool-glib.h: New file, has prototypes
1495         for glib binding generation.
1496
1497         * glib/dbus-binding-tool-glib.c: New file, implements server-side
1498         and client-side glib glue generation.
1499
1500         * glib/Makefile.am (dbus_binding_tool_SOURCES): Add
1501         dbus-binding-tool-glib.c, dbus-binding-tool-glib.h,
1502         dbus-glib-tool.h.
1503
1504         * dbus/dbus-glib.h (struct DBusGMethodMarshaller): Remove in favor
1505         of using GClosureMarshal directly.
1506         (struct DBusGObjectInfo): Add n_infos member.
1507
1508         * test/glib/test-service-glib.xml: New file; contains introspection data
1509         for MyTestObject used in test-service-glib.c.
1510
1511         * test/glib/test-service-glib.c (enum MyObjectError): New GError enum.
1512         (my_object_do_nothing, my_object_increment, my_object_throw_error)
1513         (my_object_uppercase, my_object_many_args): New test methods.
1514         (main): Use dbus_g_object_class_install_info to include generated object
1515         info.
1516
1517         * test/glib/Makefile.am: Generate server-side glue for test-service-glib.c,
1518         as well as client-side bindings.
1519
1520         * test/glib/test-dbus-glib.c: Include test-service-glib-bindings.h.
1521         (main): Activate TestSuiteGLibService; test invoke a bunch of its methods
1522         using both the dbus_gproxy stuff directly as well as the generated bindings.
1523
1524 2005-02-15  Havoc Pennington  <hp@redhat.com>
1525
1526         * dbus/dbus-connection.c (dbus_connection_dispatch): always
1527         complete a pending call, don't run filters first.
1528
1529         * glib/dbus-gproxy.c (dbus_g_proxy_end_call): change to use
1530         dbus_pending_call_steal_reply
1531
1532         * dbus/dbus-pending-call.c (dbus_pending_call_block): just call
1533         _dbus_connection_block_pending_call
1534         (dbus_pending_call_get_reply): change to steal_reply and return a
1535         ref
1536
1537         * dbus/dbus-connection.c
1538         (dbus_connection_send_with_reply_and_block): port to work in terms
1539         of DBusPendingCall
1540         (_dbus_connection_block_pending_call): replace block_for_reply
1541         with this
1542
1543 2005-02-14  Havoc Pennington  <hp@redhat.com>
1544
1545         * dbus/dbus-userdb-util.c (_dbus_user_database_lookup_group):
1546         properly handle looking up group information by name; fix 
1547         from j@bootlab.org
1548
1549 2005-02-13  Havoc Pennington  <hp@redhat.com>
1550
1551         * dbus/dbus-connection.c (dbus_connection_return_message) 
1552         (dbus_connection_borrow_message): hold dispatch lock while message
1553         is outstanding
1554         (_dbus_connection_block_for_reply): hold dispatch lock while we
1555         block for the reply, so nobody steals our reply
1556         (dbus_connection_pop_message): hold the dispatch lock while we
1557         pluck the message
1558
1559 2005-02-13  Havoc Pennington  <hp@redhat.com>
1560
1561         * dbus/dbus-connection.c (_dbus_connection_acquire_dispatch)
1562         (_dbus_connection_release_dispatch)
1563         (_dbus_connection_acquire_io_path)
1564         (_dbus_connection_release_io_path): make the mutex and condvar
1565         control access to the "acquired" flag. Drop the connection lock
1566         while waiting on the condvar. Hopefully these are baby steps in
1567         roughly the right direction.
1568
1569 2005-02-13  Havoc Pennington  <hp@redhat.com>
1570
1571         * dbus/dbus-connection.c: use separate mutexes for the condition
1572         variables; this is some kind of baseline for sanity, but the
1573         condition variables still aren't used correctly afaict
1574
1575 2005-02-13  Havoc Pennington  <hp@redhat.com>
1576
1577         * dbus/dbus-object-tree.c (handle_default_introspect_and_unlock):
1578         fix a double-unlock
1579
1580         * dbus/dbus-connection.c
1581         (_dbus_connection_detach_pending_call_unlocked): add this
1582
1583         Initial semi-correct pass through to fix thread locking; there are
1584         still some issues with the condition variable paths I'm pretty
1585         sure
1586         
1587         * dbus/dbus-server.c: add a mutex on DBusServer and appropriate
1588         lock/unlock calls
1589
1590         * dbus/dbus-connection.c (_dbus_connection_do_iteration_unlocked):
1591         rename to add _unlocked
1592         (struct DBusConnection): move "dispatch_acquired" and
1593         "io_path_acquired" to use only one bit each.
1594         (CONNECTION_LOCK, CONNECTION_UNLOCK): add checks with !DBUS_DISABLE_CHECKS
1595         (dbus_connection_set_watch_functions): hacky fix to reentrancy
1596         (_dbus_connection_add_watch, _dbus_connection_remove_watch) 
1597         (_dbus_connection_toggle_watch, _dbus_connection_add_timeout) 
1598         (_dbus_connection_remove_timeout) 
1599         (_dbus_connection_toggle_timeout): drop lock when calling out to
1600         user functions; done in a hacky/bad way.
1601         (_dbus_connection_send_and_unlock): add a missing unlock
1602         (_dbus_connection_block_for_reply): add a missing unlock
1603
1604         * dbus/dbus-transport.c (_dbus_transport_get_is_authenticated):
1605         drop lock in a hacky probably unsafe way to call out to user
1606         function
1607
1608 2005-02-12  Havoc Pennington  <hp@redhat.com>
1609
1610         * tools/dbus-tree-view.c (info_set_func_text): display more
1611         details on args
1612
1613         * bus/driver.c (bus_driver_handle_list_services): list the bus
1614         driver
1615
1616         * glib/dbus-gparser.c (parse_arg): generate an arg name if none is supplied
1617
1618         * glib/dbus-gidl.c (signal_info_get_n_args): new function
1619         (method_info_get_n_args): new function
1620
1621 2005-02-12  Havoc Pennington  <hp@redhat.com>
1622
1623         * bus/driver.c (bus_driver_handle_introspect): add introspection
1624         for bus driver
1625
1626 2005-02-12  Havoc Pennington  <hp@redhat.com>
1627
1628         * bus/driver.c: put the signature of each bus driver method in the
1629         table of handlers and check it on incoming calls; this isn't
1630         really useful, but going to add introspect support in a minute.
1631
1632 2005-02-11  Joe Shaw  <joeshaw@novell.com>
1633
1634         * mono/Connection.cs: The unpredictability of finalizers in mono
1635         prevents us from deterministically disconnecting the filters from
1636         the Service class's finalizer, so move tracking of filters and
1637         matches here.  Add API for that.
1638
1639         * mono/Service.cs: Remove the code, add code which calls the
1640         methods now on the Connection class.
1641
1642 2005-02-11  John (J5) Palmieri  <johnp@redhat.com>
1643
1644         * python/dbus.py (class Sender): added to support dbus signals better
1645         (Bus::add_signal_receiver): added expand_args parameter which defaults
1646         to True.  When expand args is True the signal handler will pass the 
1647         message arguments as parameters to the signal handler.  If False
1648         revert to previous behavior where the signal handler must get the
1649         argument list from the message.  This is to help port applications
1650         like HAL that have a tendancy to send variable length argument lists.
1651         self._match_rule_to_receivers is now a dict of dicts.
1652         (Bus::remove_signal_receiver): pop handler off the dict intead of 
1653         removing it from a list
1654         (Bus::_signal_func): change signal handlers so that interface,
1655         signal_name, service, path and message are packed into a Sender
1656         object and that is passed to the handler.  If expand_args is True
1657         extract the args list from the message and append it to the parameter
1658         list
1659         
1660         * python/dbus_bindings.pyx.in (class Signature): added to support 
1661         signiature types
1662         (MessageIter::__init__): changed iteration limit to match D-BUS
1663         (MessageIter::get*): added INT16, UINT16, SIGNATURE, DICT_ENTRY, 
1664         STRUCT and VARIENT type support
1665         (MessageIter::python_value_to_dbus_sig): made recursive to support
1666         recursive types
1667         (MessageIter::append*): added Signature, dict, tuple 
1668         support
1669
1670         * python/examples/example-client.py: added examples of getting tuples
1671         and dicts
1672
1673         * python/examples/example-service.py: added examples of sending tuples
1674         and dicts
1675
1676         * python/examples/example-signal-recipient.py: Fixed to handle new
1677         signal callback format
1678
1679 2005-02-10  Havoc Pennington  <hp@redhat.com>
1680
1681         * test/glib/test-dbus-glib.c (main): fix so this test doesn't fail
1682         (call dbus_g_proxy_add_signal)
1683
1684         * dbus/dbus-server-unix.c (_dbus_server_new_for_tcp_socket):
1685         escape the hostname
1686         (_dbus_server_new_for_domain_socket): escape the path
1687
1688         * dbus/dbus-address.c (dbus_address_escape_value): new
1689         (dbus_address_unescape_value): new
1690         (dbus_parse_address): unescape values
1691
1692         * dbus/dbus-string.c (_dbus_string_append_byte_as_hex): new function
1693
1694         * doc/dbus-specification.xml: explain how to escape values in
1695         addresses
1696
1697 2005-02-10  Havoc Pennington  <hp@redhat.com>
1698
1699         * dbus/dbus-message-factory.c (generate_special): modify test to
1700         avoid using a non-basic dict key
1701
1702         * dbus/dbus-marshal-validate-util.c: add test for the below
1703
1704         * doc/dbus-specification.xml: require that dict keys are a basic
1705         type
1706
1707         * dbus/dbus-marshal-validate.c
1708         (_dbus_validate_signature_with_reason): require that dict key is a
1709         basic type
1710
1711 2005-02-10  Havoc Pennington  <hp@redhat.com>
1712
1713         * dbus/dbus-object-tree.c (handle_default_introspect_and_unlock):
1714         change to be _and_unlock instead of _unlocked
1715
1716         * dbus/dbus-connection.c
1717         (_dbus_connection_send_preallocated_unlocked_no_update): rename to
1718         have no_update so we can find this bug quickly in future
1719
1720 2005-02-10  Havoc Pennington  <hp@redhat.com>
1721
1722         * dbus/dbus-message-util.c (verify_test_message): tests for string
1723         array
1724
1725         * dbus/dbus-message.c (dbus_message_append_args_valist): add
1726         support for arrays of string/signature/path
1727
1728 2005-02-10  Joe Shaw  <joeshaw@novell.com>
1729
1730         * dbus/dbus-connection.c
1731         (_dbus_connection_queue_received_message_link,
1732         _dbus_connection_message_sent): Add the path to
1733         the verbose output.
1734         (_dbus_connection_send_preallocated_and_unlock): Added.  Calls
1735         _dbus_connection_send_preallocated_unlocked(), updated the
1736         dispatch status, and unlocks.  Fixes a bug where certain
1737         situations (like a broken pipe) could cause a Disconnect message
1738         to not be sent, tricking the bus into thinking a service was still
1739         there when the process had quit.
1740         (_dbus_connection_send_preallocated): Call
1741         _dbus_connection_send_preallocated_and_unlock().
1742         (_dbus_connection_send_and_unlock): Added.  Calls
1743         _dbus_connection_send_preallocated_and_unlock().
1744         (dbus_connection_send): Call _dbus_connection_send_and_unlock().
1745         (dbus_connection_send_with_reply): Update the dispatch status and
1746         unlock.
1747
1748         * mono/Service.cs (~Service): Added.  Removes the filter so that
1749         we don't get unmanaged code calling back into a GCed delegate.
1750         (RemoveFilter); Added.
1751
1752 2005-02-09  John (J5) Palmieri  <johnp@redhat.com>
1753
1754         * dbus/dbus-message.c (dbus_message_iter_open_container):
1755         - Removed check for iterator type being an array because
1756         get_arg_type does not work with writer iterators
1757         - Pass NULL to _dbus_type_writer_recurse if signiture is NULL
1758
1759 2005-02-07  Havoc Pennington  <hp@redhat.com>
1760
1761         * doc/dbus-specification.xml: some more language cleanups; add
1762         stuff about how to deal with invalid protocol and extension
1763         points; add _ to allowed chars in auth commands; add EXTENSION_
1764         auth command prefix
1765
1766 2005-02-06  Havoc Pennington  <hp@redhat.com>
1767
1768         * s/expected/required/ in a couple places for clarity
1769
1770 2005-02-07  Colin Walters  <walters@verbum.org>
1771
1772         * bus/selinux.c (bus_selinux_allows_send): Handle NULL for
1773         sender or proposed_recipient.
1774
1775 2005-02-06  Havoc Pennington  <hp@redhat.com>
1776
1777         * dbus/dbus-message-factory.c (generate_special): more tests
1778
1779         * dbus/dbus-marshal-validate.c (validate_body_helper): detect
1780         array length that exceeds the maximum
1781
1782 2005-02-05  Havoc Pennington  <hp@redhat.com>
1783
1784         * dbus/dbus-message-factory.c (generate_special): more test cases,
1785         increasing coverage
1786
1787         * dbus/dbus-marshal-validate.c (validate_body_helper): return the
1788         reason why a signature was invalid
1789
1790         * dbus/dbus-marshal-header.c (load_and_validate_field): fix to
1791         skip the length of the string before we look at it in validation
1792
1793         * dbus/dbus-string-util.c (_dbus_string_test): add tests for
1794         equal_substring
1795
1796         * dbus/dbus-message.c (_dbus_message_loader_new): default
1797         max_message_length to DBUS_MAXIMUM_MESSAGE_LENGTH
1798
1799 2005-02-05  Havoc Pennington  <hp@redhat.com>
1800
1801         * dbus/dbus-marshal-validate.c (validate_body_helper): fix crash
1802         if the signature of a variant was empty
1803         (_dbus_validate_signature_with_reason): catch "(a)" (array inside
1804         struct with no element type)
1805
1806         * dbus/dbus-message-factory.c (generate_uint32_changed): add more
1807         mangled messages to break things
1808
1809 2005-02-04  Havoc Pennington  <hp@redhat.com>
1810
1811         * glib/dbus-gproxy.c (dbus_g_proxy_disconnect_signal): use
1812         g_quark_try_string() so it actually can return 0
1813         (dbus_g_proxy_connect_signal): ditto
1814
1815 2005-02-04  Havoc Pennington  <hp@redhat.com>
1816
1817         * glib/dbus-gproxy.c (dbus_g_proxy_emit_remote_signal): fix a
1818         bogus warning
1819         (tristring_from_message): assert cleanly on null path/interface
1820         (should not be possible though I decided later)
1821         (dbus_g_proxy_dispose): move proxy manager unregistration here
1822         (DBUS_G_PROXY_DESTROYED): add this macro, and use it in a bunch of
1823         g_return_if_fail() checks
1824
1825 2005-02-04  Havoc Pennington  <hp@redhat.com>
1826
1827         * doc/Makefile.am (EXTRA_DIST): add DTDs to makefile
1828
1829         * doc/introspect.dtd: add introspect.dtd from David A. Wheeler
1830         (with some minor changes)
1831
1832         * doc/dbus-specification.xml: add deprecated attribute to
1833         introspection format
1834
1835 2005-01-31  Havoc Pennington  <hp@redhat.com>
1836
1837         * glib/dbus-gproxy.c: rewrite how signals work again, this time I
1838         think it's sort of right
1839
1840 2005-01-30  Havoc Pennington  <hp@redhat.com>
1841
1842         * tools/dbus-viewer.c: kind of half-ass hook up the option menu.
1843
1844 2005-01-30  Havoc Pennington  <hp@redhat.com>
1845
1846         * tools/dbus-names-model.c: dynamically watch NameOwnerChanged
1847
1848         * autogen.sh: change to autotools 1.9
1849
1850         * glib/dbus-gproxy.c: completely change how signals work
1851         (dbus_g_proxy_add_signal): new function to specify signature of a
1852         signal
1853         (dbus_g_proxy_emit_received): marshal the dbus message to GValues,
1854         and g_warning if the incoming message has the wrong signature.
1855
1856 2005-01-30  Havoc Pennington  <hp@redhat.com>
1857
1858         * tools/dbus-names-model.c (have_names_notify): fix this
1859
1860         * dbus/dbus-message.c (_dbus_message_iter_get_args_valist): clean
1861         up the string array handling a bit 
1862
1863 2005-01-30  Havoc Pennington  <hp@redhat.com>
1864
1865         * glib/dbus-glib.c (dbus_g_pending_call_set_notify): new function
1866         (dbus_g_pending_call_cancel): new function
1867
1868         * dbus/dbus-glib.h: move GType decls for connection/message here;
1869         * dbus/dbus-glib.c: move all the g_type and ref/unref stuff in
1870         here, just kind of rationalizing how we handle all that
1871
1872         * tools/dbus-names-model.c: new file for a tree model listing the
1873         services on a bus
1874
1875         * tools/dbus-tree-view.c (model_new): use proper typing on the
1876         model rows
1877
1878 2005-01-30  Havoc Pennington  <hp@redhat.com>
1879
1880         * glib/dbus-gmain.c: add a custom GSource back that just checks
1881         whether the message queue has anything in it; otherwise, there are 
1882         cases where we won't see messages in the queue since there was no 
1883         IO visible to the glib main loop
1884
1885         * dbus/dbus-connection-internal.h (_DBUS_DEFAULT_TIMEOUT_VALUE):
1886         increase default message timeout to 25 seconds
1887
1888 2005-01-30  Havoc Pennington  <hp@redhat.com>
1889
1890         * test/glib/test-profile.c (no_bus_stop_server): remove the
1891         warning about the g_warning that I just fixed
1892
1893         * glib/dbus-gmain.c: rewrite the main loop stuff to avoid the
1894         custom source, seems to be a lot easier to understand and work
1895         better.
1896
1897 2005-01-30  Havoc Pennington  <hp@redhat.com>
1898
1899         I think this main loop thing is conceptually broken, but here are 
1900         some band aids. I'll maybe rewrite it in a minute.
1901         
1902         * glib/dbus-gmain.c (add_timeout): timeout stuff doesn't use the
1903         custom GSource, so don't pass it in; confusing
1904         (gsource_server_finalize, gsource_connection_finalize): add
1905         finalize handlers that remove all the watches.  
1906
1907 2005-01-30  Havoc Pennington  <hp@redhat.com>
1908
1909         * glib/dbus-gobject.c (introspect_properties): fix the XML
1910         generated
1911
1912         * dbus/dbus-message.c (dbus_message_unref): add an in_cache flag
1913         which effectively detects the use of freed messages
1914
1915         * glib/dbus-gobject.c (handle_introspect): modify and return the
1916         reply message instead of the incoming message
1917
1918         * dbus/dbus-object-tree.c (handle_default_introspect_unlocked):
1919         gee, maybe it should SEND THE XML instead of just making a string
1920         and freeing it again ;-)
1921
1922         * tools/dbus-print-message.c (print_message): improve printing of
1923         messages
1924
1925         * configure.in: add debug-glib.service to the output
1926
1927 2005-01-30  Havoc Pennington  <hp@redhat.com>
1928
1929         dbus-viewer introspected and displayed the bus driver
1930         
1931         * dbus/dbus-object-tree.c 
1932         (object_tree_test_iteration): add tests for a handler registered on "/"
1933
1934         * dbus/dbus-object-tree.c
1935         (_dbus_decompose_path): fix to handle path "/" properly
1936         (run_decompose_tests): add tests for path decomposition
1937         
1938         * glib/dbus-gutils.c (_dbus_gutils_split_path): fix to handle "/"
1939         properly
1940
1941         * glib/dbus-gobject.c (handle_introspect): fix quotes
1942
1943         * test/glib/run-test.sh: support launching the bus, then running
1944         dbus-viewer
1945
1946         * test/glib/test-service-glib.c (main): put in a trivial gobject
1947         subclass and register it on the connection
1948
1949         * bus/driver.c (bus_driver_handle_introspect): implement
1950         introspection of the bus driver service
1951
1952         * dbus/dbus-protocol.h: add #defines for the XML namespace,
1953         identifiers, doctype decl
1954
1955         * bus/driver.c (bus_driver_handle_get_service_owner): handle
1956         attempts to get owner of DBUS_SERVICE_ORG_FREEDESKTOP_DBUS by 
1957         returning the service unchanged.
1958         (bus_driver_handle_message): remove old check for reply_serial in
1959         method calls, now the message type deals with that
1960         (bus_driver_handle_message): handle NULL interface
1961
1962         * glib/dbus-gproxy.c (dbus_g_proxy_get_bus_name): new function
1963
1964         * glib/dbus-gloader-expat.c (description_load_from_string): allow
1965         -1 for len
1966
1967         * tools/dbus-viewer.c: add support for introspecting a service on
1968         a bus
1969
1970         * glib/dbus-gproxy.c (dbus_g_pending_call_ref): add
1971         (dbus_g_pending_call_unref): add
1972
1973 2005-01-29  Havoc Pennington  <hp@redhat.com>
1974
1975         * tools/dbus-tree-view.c: add support for displaying properties.
1976         (run dbus-viewer with an introspect xml file as arg, then resize
1977         the window so the tree elements show up, not sure what that is)
1978
1979         * glib/dbus-gobject.c (handle_introspect): return
1980         org.freedesktop.Properties and org.freedesktop.Introspectable
1981         interfaces when we are introspected.
1982
1983         * doc/dbus-specification.xml: allow empty interface name when 
1984         Get/Set a property
1985
1986 2005-01-29  Havoc Pennington  <hp@redhat.com>
1987
1988         * glib/Makefile.am: rename dbus-glib-tool to dbus-binding-tool;
1989         though it uses glib, it could be extended for any binding in
1990         principle
1991
1992         * glib/dbus-gobject.c (gobject_message_function): change to the
1993         new way properties work
1994
1995         * dbus/dbus-protocol.h: add the new interfaces
1996
1997         * doc/dbus-specification.xml: document the introspection format,
1998         Introspectable interface, and add an org.freedesktop.Properties
1999         interface.
2000
2001         * glib/dbus-gparser.c: add support for a <property> element
2002
2003         * glib/dbus-gidl.c: add PropertyInfo
2004
2005         * glib/dbus-gobject.c (handle_introspect): put the outermost
2006         <node> outside the signal and property descriptions.
2007         (introspect_properties): export properties as <property> rather
2008         than as method calls
2009
2010 2005-01-28  Havoc Pennington  <hp@redhat.com>
2011
2012         * doc/TODO, doc/dbus-specification.xml: spec and TODO tweaks
2013         related to authentication protocol
2014
2015 2005-01-28  John (J5) Palmieri  <johnp@redhat.com>
2016
2017         * python/dbus_bindings.pyx.in: Updated to handle new D-BUS type system
2018                 - BUS_ACTIVATION -> BUS_STARTER
2019                 - DBUS_BUS_ACTIVATION -> DBUS_BUS_STARTER
2020                 - class MessageIter (__init__): Added recursion checking 
2021                 so we throw a nice error instead of just disconnecting from the
2022                 bus.
2023                 (get): Added arg_type parameter for recursion.
2024                 Removed the nil type
2025                 Added signiture type placeholder (not implemented)
2026                 Added struct type placeholder (not implemented)
2027                 Added varient type placeholder (not implemented)
2028                 Commented out dict type for now     
2029                 (get_element_type): renamed from get_array_type
2030                 (get_*): changed to use the dbus_message_iter_get_basic API
2031                 (get_*_array): removed in favor of recursive get_array method
2032                 (get_array): new recursive method which calls get to marshal
2033                 the elements of the array
2034                 (value_to_dbus_sig): New method returns the corrasponding
2035                 dbus signiture to a python value
2036                 (append): Comment out dict handling for now
2037                 Handle lists with the new recursive API
2038                 Comment out None handling for now
2039                 (append_nil): removed
2040                 (append_*): changed to use dbus_message_iter_append_basic API
2041                 (append_*_array): removed in favor of recursive append_array 
2042                 method
2043                 (__str__): Make it easier to print out recursive iterators
2044                 for debugging
2045                 - class Message (__str__): moved type inspection to the
2046                 MessageIter class' __str__ method
2047                 (get_iter): Added an append parameter wich defaults to False
2048                 If True use the new API's to create an append iterator
2049
2050         * python/dbus.py: Update to use new bindings API
2051                 - TYPE_ACTIVATION -> TYPE_STARTER
2052                 - class Bus (_get_match_rule): GetServiceOwner -> GetNameOwner
2053                 - class ActivationBus -> class StarterBus
2054                 - class RemoteObject (__call__): get an append iterator
2055                 - (_dispatch_dbus_method_call): get an append iterator
2056                 - class Object (emit_signal): get an append iterator
2057
2058         * python/examples/: Fixed up the examples to work with the new API
2059                 
2060 2005-01-28  Joe Shaw  <joeshaw@novell.com>
2061
2062         * configure.in: Bump version up to 0.30.
2063
2064         * HACKING: Add a release item to bump the version number up after 
2065         a release.
2066
2067 2005-01-28  Havoc Pennington  <hp@redhat.com>
2068
2069         * doc/dbus-specification.xml: update to describe 16-bit types and
2070         dict entries
2071
2072         * dbus/dbus-marshal-basic.c (_dbus_unpack_uint16): fix broken
2073         assertion
2074
2075         * dbus/dbus-protocol.h (DBUS_TYPE_DICT_ENTRY): add DICT_ENTRY as a
2076         type
2077
2078         * dbus/dbus-marshal-recursive.c: implement
2079
2080 2005-01-27  Havoc Pennington  <hp@redhat.com>
2081
2082         * dbus/dbus-arch-deps.h.in: add 16/32-bit types
2083
2084         * configure.in: find the right type for 16 and 32 bit ints as well
2085         as 64
2086
2087         * dbus/dbus-protocol.h (DBUS_TYPE_INT16, DBUS_TYPE_UINT16): add
2088         the 16-bit types so people don't have to stuff them in 32-bit or
2089         byte arrays.
2090
2091 2005-01-27  Havoc Pennington  <hp@redhat.com>
2092
2093         * dbus/dbus-message.c: byteswap the message if you init an
2094         iterator to read/write from it
2095         
2096         * dbus/dbus-marshal-byteswap.c: new file implementing 
2097         _dbus_marshal_byteswap()
2098
2099         * dbus/dbus-marshal-basic.c: add _dbus_swap_array()
2100
2101 2005-01-26  Havoc Pennington  <hp@redhat.com>
2102         
2103         * dbus/dbus-marshal-validate-util.c: break this out (and fix
2104         build, apparently - nobody noticed?)
2105         
2106 2005-01-26  Havoc Pennington  <hp@redhat.com>
2107
2108         * dbus/dbus-marshal-recursive.h: remove todo comment
2109
2110 2005-01-25  Joe Shaw  <joeshaw@novell.com>
2111
2112         * Land the mono binding changes to conform to the new APIs.
2113
2114         * mono/Makefile.am: Remove Custom.cs, DBusType/Custom.cs,
2115         DBusType/Dict.cs, and DBusType/Nil.cs from the build.
2116
2117         * mono/Arguments.cs (GetCodeAsString): Added.  Returns the dbus
2118         type code as a string.
2119         (InitAppending): Rename dbus_message_append_iter_init() to
2120         dbus_message_iter_init_append().
2121
2122         * mono/BusDriver.cs: Rename ServiceEventHandler to
2123         NameOwnerChangedHandler.  Rename GetServiceOwner to GetOwner.
2124         Rename ServiceOwnerChanged to NameOwnerChanged.
2125
2126         * mono/Connection.cs: Rename BaseService to UniqueName, and the
2127         underlying C call.
2128
2129         * mono/Custom.cs: Removed.  The CUSTOM type has been removed.
2130
2131         * mono/Service.cs: Rename Exists to HasOwner, internally rename
2132         dbus_bus_acquire_service() to dbus_bus_request_name().
2133
2134         * mono/DBusType/Array.cs (ctor): Use Type.GetElementType() instead
2135         of Type.UnderlyingSystemType to get the correct element type for
2136         the array.
2137         (ctor): Update code for new APIs: use dbus_message_iter_recurse(),
2138         dbus_message_get_{element|arg}_type() instead of
2139         dbus_message_iter_init_array_iterator().
2140         (Append): Replace dbus_message_iter_append_array() with
2141         dbus_message_iter_open_container() and
2142         dbus_message_iter_close_container().
2143
2144         * mono/DBusType/Custom.cs, mono/DBusType/Nil.cs: Removed.  These
2145         types have been removed.
2146         
2147         * mono/DBusType/*.cs: Replace calls of
2148         dbus_message_iter_get_[type]() to dbus_message_iter_get_basic(),
2149         but specify the type in the DllImport extern declaration.  Ditto
2150         for dbus_message_iter_append_[type]() ->
2151         dbus_message_iter_append_basic().
2152
2153         * mono/example/BusListener.cs: Update for ServiceEventHandler ->
2154         NameOwnerChangedHandler.
2155
2156 2005-01-25  John (J5) Palmieri  <johnp@redhat.com>
2157
2158         * python/dbus_bindings.pyx.in: Rename of methods and bindings
2159                 - get_base_service -> get_unique_name
2160                 - bus_get_base_service -> bus_get_unique_name
2161                 - dbus_bus_get_base_service -> dbus_bus_get_unique_name
2162                 - ACTIVATION_REPLY_ACTIVATED -> DBUS_START_REPLY_SUCCESS 
2163                 - ACTIVATION_REPLY_ALREADY_ACTIVE -> DBUS_START_REPLY_ALREADY_RUNNING
2164                 - bus_activate_service -> bus_start_service_by_name
2165                 - dbus_bus_activate_service -> dbus_bus_start_service_by_name
2166                 - bus_acquire_service -> bus_request_name
2167                 - dbus_bus_acquire_service -> dbus_bus_request_name
2168                 - bus_service_exists -> bus_name_has_owner
2169                 - dbus_bus_service_exists -> dbus_bus_name_has_owner
2170
2171         * python/dbus.py: Rename of methods
2172                 - activate_service -> start_service_by_name
2173                 - bus_acquire_service -> bus_request_name
2174                 - ACTIVATION_REPLY_ACTIVATED -> START_REPLY_SUCCESS 
2175                 - ACTIVATION_REPLY_ALREADY_ACTIVE -> START_REPLY_ALREADY_RUNNING
2176
2177         
2178 2005-01-24  Joe Shaw  <joeshaw@novell.com>
2179
2180         * dbus/dbus-connection.c (dbus_connection_dispatch): Print out the
2181         signature for the method that can't be found.
2182
2183         * dbus/dbus-message.c (dbus_message_iter_init): To check to see if
2184         the message has any arguments, we need to call
2185         _dbus_type_reader_get_current_type(), not
2186         _dbus_type_reader_has_next().
2187
2188 2005-01-24  Havoc Pennington  <hp@redhat.com>
2189
2190         * dbus/dbus-message-factory.c: more testing of message validation
2191
2192         * dbus/dbus-protocol.h (DBUS_MINIMUM_HEADER_SIZE): move to this
2193         header
2194
2195 2005-01-23  Havoc Pennington  <hp@redhat.com>
2196
2197         * dbus/dbus-message-factory.c, dbus/dbus-message-util.c: 
2198         get this all working, not many tests in the framework yet though
2199
2200 2005-01-22  Havoc Pennington  <hp@redhat.com>
2201
2202         * doc/dbus-faq.xml, doc/dbus-tutorial: add a FAQ and update
2203         tutorial, based on work from David Wheeler.
2204
2205 2005-01-21  Havoc Pennington  <hp@redhat.com>
2206
2207         * dbus/dbus-bus.c: add more return_if_fail checks
2208
2209         * dbus/dbus-message.c (load_message): have the "no validation"
2210         mode (have to edit the code to toggle the mode for now though)
2211
2212         * dbus/dbus-marshal-header.c (_dbus_header_load): have a mode that
2213         skips all validation; I want to use this at least for benchmark
2214         baseline, I'm not sure if it should be a publicly-available switch.
2215
2216 2005-01-21  Havoc Pennington  <hp@redhat.com>
2217
2218         * glib/dbus-gmain.c: don't put the GLib bindings in the same
2219         toplevel doxygen group as the low-level API stuff
2220
2221         * dbus/dbus.h: note that libdbus is the low-level API
2222
2223 2005-01-20  Havoc Pennington  <hp@redhat.com>
2224
2225         * update-dbus-docs.sh: script to update docs on the web site, only
2226         works for me though. neener.
2227
2228 2005-01-20  Havoc Pennington  <hp@redhat.com>
2229
2230         * dbus/dbus-sysdeps.c (_dbus_poll): amazingly, trying to compile
2231         code can reveal bugs in it
2232
2233 2005-01-20  Havoc Pennington  <hp@redhat.com>
2234
2235         * dbus/dbus-sysdeps.c (_dbus_poll): fix several bugs in the
2236         select() version, patches from Tor Lillqvist
2237
2238 2005-01-20  Havoc Pennington  <hp@redhat.com>
2239
2240         * doc/dbus-tutorial.xml: replace > with &gt;
2241
2242         * bus/services.c (bus_registry_acquire_service): validate the name
2243         and return a better error if it's no good.
2244
2245         * doc/dbus-specification.xml: note NO_AUTO_START change
2246
2247         * dbus/dbus-protocol.h (DBUS_HEADER_FLAG_NO_AUTO_START): change
2248         from AUTO_START, we're toggling the default
2249
2250         * bus/dispatch.c: adapt the tests to change of auto-start default
2251
2252 2005-01-18  Havoc Pennington  <hp@redhat.com>
2253
2254         * rename dbus-daemon-1 to dbus-daemon throughout
2255
2256 2005-01-18  Havoc Pennington  <hp@redhat.com>
2257
2258         * Throughout, grand renaming to strip out the use of "service",
2259         just say "name" instead (or "bus name" when ambiguous).  Did not
2260         change the internal code of the message bus itself, only the
2261         programmer-facing API and messages.
2262         
2263         * doc/dbus-specification.xml: further update the message bus section
2264         
2265         * bus/config-parser.c (all_are_equiv): fix bug using freed string
2266         in error case
2267
2268 2005-01-17  Havoc Pennington  <hp@redhat.com>
2269
2270         * dbus/dbus-types.h: remove 16-bit types since we don't use them
2271         ever
2272
2273         * dbus/dbus-marshal-validate.c (_dbus_validate_path): disallow any
2274         "invalid name character" not only non-ASCII
2275
2276         * doc/dbus-specification.xml: further update spec, message bus 
2277         parts are still out-of-date but the marshaling etc. stuff is now
2278         accurate-ish
2279
2280 2005-01-17  Havoc Pennington  <hp@redhat.com>
2281
2282         * doc/dbus-specification.xml: partially update spec
2283
2284 2005-01-17  Havoc Pennington  <hp@redhat.com>
2285
2286         * Throughout, align variant bodies according to the contained
2287         type, rather than always to 8. Should save a fair bit of space in
2288         message headers.
2289         
2290         * dbus/dbus-marshal-validate.c (_dbus_validate_body_with_reason):
2291         fix handling of case where p == end
2292
2293         * doc/TODO: remove the dbus_bool_t item and variant alignment items
2294
2295 2005-01-17  Havoc Pennington  <hp@redhat.com>
2296
2297         * dbus/dbus-types.h: hardcode dbus_bool_t to 32 bits
2298
2299         * Throughout: modify DBUS_TYPE_BOOLEAN to be a 32-bit type instead
2300         of an 8-bit type. Now dbus_bool_t is the type to use whenever you 
2301         are marshaling/unmarshaling a boolean.
2302
2303 2005-01-16  Havoc Pennington  <hp@redhat.com>
2304
2305         This is about it on what can be disabled/deleted from libdbus
2306         easily, back below 150K anyhow. Deeper cuts are more work than 
2307         just turning the code off as I've done here.
2308         
2309         * dbus/dbus-marshal-basic.c (_dbus_pack_int32): we don't need the
2310         signed int convenience funcs
2311
2312         * dbus/dbus-internals.c (_dbus_verbose_real): omit when not in
2313         verbose mode
2314
2315         * dbus/dbus-string-util.c, dbus/dbus-string.c: more breaking
2316         things out of libdbus
2317
2318         * dbus/dbus-sysdeps.c, dbus/dbus-sysdeps-util.c: same
2319         
2320         * dbus/dbus-hash.c: purge the TWO_STRINGS crap (well, make it
2321         tests-enabled-only, though it should probably be deleted)
2322
2323         * dbus/dbus-message-util.c: same stuff
2324
2325         * dbus/dbus-auth-util.c: same stuff
2326
2327 2005-01-16  Havoc Pennington  <hp@redhat.com>
2328
2329         * dbus/dbus-userdb-util.c: split out part of dbus-userdb.c
2330
2331         * dbus/dbus-sysdeps.c (_dbus_uid_from_string): move here to pave
2332         way for stripping down dbus-userdb.c stuff included in libdbus.
2333         Rename _dbus_parse_uid for consistency.
2334
2335 2005-01-16  Havoc Pennington  <hp@redhat.com>
2336
2337         * dbus/dbus-internals.c (_dbus_real_assert): print the function
2338         name the assertion failed in
2339
2340         * dbus/dbus-internals.h (_dbus_return_if_fail) 
2341         (_dbus_return_val_if_fail): assert that the name of the function
2342         containing the check doesn't start with '_', since we only want to 
2343         use checks on public functions
2344         
2345         * dbus/dbus-connection.c (_dbus_connection_ref_unlocked): change
2346         checks to assertions
2347
2348         * dbus/dbus-marshal-header.c (_dbus_header_set_field_basic):
2349         change checks to asserts for private function
2350
2351         * dbus/dbus-message.c (_dbus_message_set_serial): checks
2352         to asserts for private function
2353
2354         * dbus/dbus-marshal-recursive.c (skip_one_complete_type): remove
2355         broken assertion that was breaking make check
2356         (_dbus_type_reader_array_is_empty): remove this rather than fix
2357         it, was only used in assertions
2358
2359 2005-01-16  Havoc Pennington  <hp@redhat.com>
2360
2361         * test/unused-code-gc.py: hacky script to find code that's used
2362         only by the bus (not libdbus) or used only by tests or not used at
2363         all. It has some false alarms, but looks like we can clean up a
2364         lot of size from libdbus.
2365
2366         * dbus/dbus-sysdeps.c, dbus/dbus-sysdeps-utils.c,
2367         dbus/Makefile.am: initially move 10K of binary size out of libdbus
2368         
2369 2005-01-16  Havoc Pennington  <hp@redhat.com>
2370
2371         * Add and fix docs according to Doxygen warnings throughout
2372         source.
2373         
2374         * dbus/dbus-marshal-recursive.c
2375         (_dbus_type_reader_array_is_empty): change this to just call
2376         array_reader_get_array_len() and make it static
2377
2378         * dbus/dbus-message.c (dbus_message_iter_get_element_type): rename
2379         from get_array_type
2380         (dbus_message_iter_init_append): rename from append_iter_init
2381
2382         * dbus/dbus-marshal-recursive.c
2383         (_dbus_type_reader_get_element_type): rename from
2384         _dbus_type_reader_get_array_type
2385
2386 2005-01-15  Havoc Pennington  <hp@redhat.com>
2387
2388         * test/glib/test-profile.c (with_bus_server_filter): fix crash
2389
2390         * dbus/dbus-marshal-basic.c (_dbus_unpack_uint32): inline as macro
2391         when DBUS_DISABLE_ASSERT
2392         (_dbus_marshal_set_basic): be sure we align for the string length
2393
2394         * dbus/dbus-marshal-recursive.c (skip_one_complete_type): make
2395         this look faster
2396
2397         * dbus/dbus-string.c (_dbus_string_get_const_data_len): add an
2398         inline macro version
2399         (_dbus_string_set_byte): provide inline macro version
2400
2401 2005-01-15  Havoc Pennington  <hp@redhat.com>
2402
2403         * Land the new message args API and type system.
2404
2405         This patch is huge, but the public API change is not 
2406         really large. The set of D-BUS types has changed somewhat, 
2407         and the arg "getters" are more geared toward language bindings;
2408         they don't make a copy, etc.
2409
2410         There are also some known issues. See these emails for details
2411         on this huge patch:
2412         http://lists.freedesktop.org/archives/dbus/2004-December/001836.html
2413         http://lists.freedesktop.org/archives/dbus/2005-January/001922.html
2414         
2415         * dbus/dbus-marshal-*: all the new stuff
2416
2417         * dbus/dbus-message.c: basically rewritten
2418
2419         * dbus/dbus-memory.c (check_guards): with "guards" enabled, init
2420         freed blocks to be all non-nul bytes so using freed memory is less
2421         likely to work right
2422
2423         * dbus/dbus-internals.c (_dbus_test_oom_handling): add
2424         DBUS_FAIL_MALLOC=N environment variable, so you can do
2425         DBUS_FAIL_MALLOC=0 to skip the out-of-memory checking, or
2426         DBUS_FAIL_MALLOC=10 to make it really, really, really slow and
2427         thorough.
2428
2429         * qt/message.cpp: port to the new message args API
2430         (operator<<): use str.utf8() rather than str.unicode()
2431         (pretty sure this is right from the Qt docs?)
2432
2433         * glib/dbus-gvalue.c: port to the new message args API
2434
2435         * bus/dispatch.c, bus/driver.c: port to the new message args API
2436
2437         * dbus/dbus-string.c (_dbus_string_init_const_len): initialize the
2438         "locked" flag to TRUE and align_offset to 0; I guess we never
2439         looked at these anyhow, but seems cleaner.
2440
2441         * dbus/dbus-string.h (_DBUS_STRING_ALLOCATION_PADDING):
2442         move allocation padding macro to this header; use it to implement
2443         (_DBUS_STRING_STATIC): ability to declare a static string.
2444
2445         * dbus/dbus-message.c (_dbus_message_has_type_interface_member):
2446         change to return TRUE if the interface is not set.
2447
2448         * dbus/dbus-string.[hc]: move the D-BUS specific validation stuff
2449         to dbus-marshal-validate.[hc]
2450
2451         * dbus/dbus-marshal-basic.c (_dbus_type_to_string): move here from
2452         dbus-internals.c
2453
2454         * dbus/Makefile.am: cut over from dbus-marshal.[hc]
2455         to dbus-marshal-*.[hc]
2456
2457         * dbus/dbus-object-tree.c (_dbus_decompose_path): move this
2458         function here from dbus-marshal.c
2459
2460 2005-01-12  Joe Shaw  <joeshaw@novell.com>
2461
2462         * NEWS: Update for 0.23.
2463
2464         * configure.in: Release 0.23.
2465
2466 2005-01-12  Joe Shaw  <joeshaw@novell.com>
2467
2468         * mono/Makefile.am, mono/example/Makefile.am: Always build the 
2469         dbus DLL with --debug.  Clean up after the .mdb files this leaves
2470         behind.
2471
2472         * mono/doc/Makefile.am: Need to uninstall the docs on "make
2473         uninstall"
2474
2475         * mono/Arguments.cs (GetDBusTypeConstructor): If the type
2476         is an enum, get the enum's underlying type.  Another mono
2477         1.1.3 fix.
2478
2479 2005-01-11  Joe Shaw  <joeshaw@novell.com>
2480
2481         Patch from Sjoerd Simons <sjoerd@luon.net>
2482
2483         * mono/Makefile.am, mono/example/Makefile.am: Don't redefine
2484         DESTDIR.  It breaks stuff.
2485
2486 2005-01-11  Joe Shaw  <joeshaw@novell.com>
2487
2488         Patch from Tambet Ingo <tambet@ximian.com>
2489
2490         * mono/DBusType/Array.cs (Get): Get the underlying element type by
2491         calling type.GetElementType().  The code previously depended on
2492         broken Mono behavior, which was fixed in Mono 1.1.3.
2493
2494         * mono/DBusType/Dict.cs (constructor): Fix the parameters for
2495         Activator.CreateInstance() so that the class's constructor is
2496         called with the right parameters.
2497
2498 2005-01-11  Joe Shaw  <joeshaw@novell.com>
2499
2500         Patch from Timo Teräs <ext-timo.teras@nokia.com>
2501
2502         * dbus/dbus-connection.c
2503         (_dbus_connection_queue_received_message_link): Call
2504         _dbus_connection_remove_timeout() instead of the _locked()
2505         variant, since it's always called from
2506         _dbus_connection_handle_watch(), which handles the locking.
2507         Removed the _locked() variant since it's no longer used.
2508
2509 2005-01-03  Havoc Pennington  <hp@redhat.com>
2510
2511         * dbus/dbus-internals.h: I'm an idiot, _dbus_assert certainly can
2512         return
2513         
2514 2004-12-26  Havoc Pennington  <hp@redhat.com>
2515
2516         * dbus/dbus-internals.h: add _DBUS_GNUC_NORETURN to _dbus_assert
2517
2518 2005-01-03  Havoc Pennington  <hp@redhat.com>
2519
2520         * dbus/dbus-sysdeps.c (_dbus_sysdeps_test): fix using == on
2521         floating point
2522
2523         * dbus/dbus-string.c (_dbus_string_insert_alignment): new function
2524
2525 2005-01-02  Havoc Pennington  <hp@redhat.com>
2526
2527         * dbus/dbus-internals.h (_DBUS_ALIGN_OFFSET): new macro
2528
2529 2005-01-01  Havoc Pennington  <hp@redhat.com>
2530
2531         * configure.in: add -Wfloat-equal
2532
2533 2005-01-01  Havoc Pennington  <hp@redhat.com>
2534
2535         * dbus/dbus-sysdeps.h: add _DBUS_DOUBLES_BITWISE_EQUAL macro, 
2536         for a variety of reasons '==' doesn't do this.
2537
2538 2004-12-31  Havoc Pennington  <hp@redhat.com>
2539
2540         * dbus/dbus-string.c (_dbus_string_equal_substrings): new function
2541         I keep wishing I had
2542
2543 2004-12-30  John (J5) Palmieri  <johnp@redhat.com>
2544
2545         * python/dbus.py: s/ACTIVATION_REPLY_ACTIVE/ACTIVATION_REPLY_ACTIVATED
2546
2547 2004-12-30  John (J5) Palmieri  <johnp@redhat.com>
2548
2549         * python/dbus_bindings.pyx.in: Change DBUS_ACTIVATION_REPLY_ACTIVATED
2550         and DBUS_ACTIVATION_REPLY_ALREADY_ACTIVE to match the values in
2551         dbus-protocol.h.  Because they are defines and not enums they are not
2552         autogenerated.
2553
2554 2004-12-26  John (J5) Palmieri  <johnp@redhat.com>
2555
2556         * python/dbus_bindings.pyx.in (bus_activate_service): Bind
2557         dbus_bus_activate_service
2558
2559         * python/dbus.py (Bus.activate_service): activate a service on the
2560         bus.
2561
2562 2004-12-24  Havoc Pennington  <hp@redhat.com>
2563
2564         * test/decode-gcov.c: change to use .gcno and .gcda files, but the
2565         file format has also changed and I haven't adapted to that yet
2566         
2567         * Makefile.am: load .gcno files from latest gcc
2568
2569 2004-12-23  John (J5) Palmieri  <johnp@redhat.com>
2570         * Patch from Rob Taylor <robtaylor@fastmail.fm>
2571
2572         * python/dbus_bindings.pyx.in (bus_get_unix_user): New
2573         lowlevel binding
2574
2575         * python/dbus.py (get_unix_user): Added binding to 
2576         call dbus_bindings.bus_get_unix_user
2577
2578         * python/extract.py: Modified the proto_pat regex to
2579         handle unsigned long
2580
2581 2004-12-21  Olivier Andrieu  <oliv__a@users.sourceforge.net>
2582
2583         * dbus/make-dbus-glib-error-enum.sh: omit the function keyword for
2584         better POSIX compliance.
2585
2586 2004-12-19  Havoc Pennington  <hp@redhat.com>
2587
2588         * dbus/dbus-string.c (_dbus_string_insert_4_aligned) 
2589         (_dbus_string_insert_8_aligned): new functions
2590
2591         * dbus/dbus-string.c (_dbus_string_alloc_space): new function
2592
2593 2004-12-18  Havoc Pennington  <hp@redhat.com>
2594
2595         * dbus/dbus-string.c (_dbus_string_validate_ascii): use ISASCII
2596         macro
2597
2598         * dbus/dbus-message.c: fix a comment, and add a still-unused
2599         not-implemented function
2600
2601         * dbus/dbus-marshal.h: fix comment
2602
2603         * dbus/dbus-internals.h (_DBUS_ISASCII): new macro
2604
2605 2004-12-17  Joe Shaw  <joeshaw@novell.com>
2606
2607         * mono/DBusType/Byte.cs, mono/DBusType/Int32.cs,
2608         mono/DBusType/Int64.cs, mono/DBusType/UInt32.cs,
2609         mono/DBusType/UInt64.cs: Use Enum.GetUnderlyingType() instead of
2610         Type.UnderlyingSystemType to get the actual system type
2611         underneath.  This code previously depended on the broken Mono
2612         behavior, which was fixed in 1.1.3.
2613
2614 2004-11-27  Havoc Pennington  <hp@redhat.com>
2615
2616         * dbus/dbus-string.h (_dbus_string_get_byte): inline when asserts
2617         are disabled
2618         (_dbus_string_get_const_data): inline when asserts are disabled
2619
2620         * dbus/dbus-message.c: record the _dbus_current_generation of
2621         creation so we can complain if dbus_shutdown() is used improperly.
2622         Do this only if checks are enabled.
2623
2624         * dbus/dbus-connection.c: ditto
2625         
2626 2004-11-26  Havoc Pennington  <hp@redhat.com>
2627
2628         * test/glib/test-profile.c: add with_bus mode to profile echoes
2629         that go through the bus.
2630
2631         * test/glib/run-test.sh: add ability to run test-profile
2632
2633         * bus/dbus-daemon-1.1.in: fix to say that SIGHUP causes partial
2634         config file reload.
2635
2636 2004-11-26  Havoc Pennington  <hp@redhat.com>
2637
2638         * test/glib/test-profile.c: clean up how the fake_malloc_overhead
2639         thing was implemented
2640
2641 2004-11-26  Havoc Pennington  <hp@redhat.com>
2642
2643         * test/glib/test-profile.c: tweak a bit, add support for some
2644         made-up minimal malloc overhead with plain sockets, since in 
2645         real life some sort of buffers are unavoidable thus we could 
2646         count them in the theoretical best case
2647
2648 2004-11-26  Havoc Pennington  <hp@redhat.com>
2649
2650         * dbus/dbus-message.c (dbus_message_cache_or_finalize): fix bug
2651         where I was trying to cache one too many messages
2652
2653 2004-11-26  Havoc Pennington  <hp@redhat.com>
2654
2655         * dbus/dbus-message.c: reimplement message cache as an array which 
2656         makes the cache about twice as fast and saves maybe 1.5% overall
2657
2658 2004-11-26  Havoc Pennington  <hp@redhat.com>
2659
2660         * dbus/dbus-threads.c (init_global_locks): forgot to put the
2661         message cache lock here
2662
2663 2004-11-26  Havoc Pennington  <hp@redhat.com>
2664
2665         * dbus/dbus-message.c (struct DBusMessage): put the locked bit and
2666         the "char byte_order" next to each other to save 4 bytes
2667         (dbus_message_new_empty_header): reduce preallocation, since the
2668         message cache should achieve a similar effect
2669         (dbus_message_cache_or_finalize, dbus_message_get_cached): add a
2670         message cache that keeps a few DBusMessage around in a pool,
2671         another 8% speedup or so.
2672
2673         * dbus/dbus-dataslot.c (_dbus_data_slot_list_clear): new function
2674
2675 2004-11-25  Havoc Pennington  <hp@redhat.com>
2676
2677         * dbus/dbus-transport-unix.c (unix_do_iteration): if we're going
2678         to write, without reading or blocking, try it before the poll()
2679         and skip the poll() if nothing remains to write. This is about a
2680         3% speedup in the echo client/server
2681
2682 2004-11-25  Havoc Pennington  <hp@redhat.com>
2683
2684         The primary change here is to always write() once before adding
2685         the write watch, which gives us about a 10% performance increase.
2686         
2687         * dbus/dbus-transport-unix.c: a number of modifications to cope
2688         with removing messages_pending
2689         (check_write_watch): properly handle
2690         DBUS_AUTH_STATE_WAITING_FOR_MEMORY; adapt to removal of
2691         messages_pending stuff
2692         (check_read_watch): properly handle WAITING_FOR_MEMORY and
2693         AUTHENTICATED cases
2694         (unix_handle_watch): after writing, see if the write watch can be
2695         removed
2696         (unix_do_iteration): assert that write_watch/read_watch are
2697         non-NULL rather than testing that they aren't, since they 
2698         aren't allowed to be NULL. check_write_watch() at the end so 
2699         we add the watch if we did not finish writing (e.g. got EAGAIN)
2700
2701         * dbus/dbus-transport-protected.h: remove messages_pending call,
2702         since it resulted in too much inefficient watch adding/removing; 
2703         instead we now require that the transport user does an iteration 
2704         after queueing outgoing messages, and after trying the first
2705         write() we add a write watch if we got EAGAIN or exceeded our 
2706         max bytes to write per iteration setting
2707
2708         * dbus/dbus-string.c (_dbus_string_validate_signature): add this
2709         function
2710
2711         * dbus/dbus-server-unix.c (unix_finalize): the socket name was
2712         freed and then accessed, valgrind flagged this bug, fix it
2713
2714         * dbus/dbus-message.c: fix several bugs where HEADER_FIELD_LAST was taken
2715         as the last valid field plus 1, where really it is equal to the
2716         last valid field. Corrects some message corruption issues.
2717
2718         * dbus/dbus-mainloop.c: verbosity changes
2719
2720         * dbus/dbus-keyring.c (_dbus_keyring_new_homedir): handle OOM
2721         instead of aborting in one of the test codepaths
2722
2723         * dbus/dbus-internals.c (_dbus_verbose_real): fix a bug that
2724         caused not printing the pid ever again if a verbose was missing
2725         the newline at the end
2726         (_dbus_header_field_to_string): add HEADER_FIELD_SIGNATURE
2727
2728         * dbus/dbus-connection.c: verbosity changes; 
2729         (dbus_connection_has_messages_to_send): new function
2730         (_dbus_connection_message_sent): no longer call transport->messages_pending
2731         (_dbus_connection_send_preallocated_unlocked): do one iteration to
2732         try to write() immediately, so we can avoid the write watch. This
2733         is the core purpose of this patchset
2734         (_dbus_connection_get_dispatch_status_unlocked): if disconnected,
2735         dump the outgoing message queue, so nobody will get confused
2736         trying to send them or thinking stuff is pending to be sent
2737
2738         * bus/test.c: verbosity changes
2739
2740         * bus/driver.c: verbosity/assertion changes
2741
2742         * bus/dispatch.c: a bunch of little tweaks to get it working again
2743         because this patchset changes when/where you need to block.
2744
2745 2004-11-23  Havoc Pennington  <hp@redhat.com>
2746
2747         * test/glib/test-profile.c: modify to accept a plain_sockets
2748         argument in which case it will bench plain sockets instead of
2749         libdbus, for comparison purposes.
2750
2751 2004-11-22  Havoc Pennington  <hp@redhat.com>
2752
2753         * test/glib/test-profile.c (N_CLIENT_THREADS): run multiple
2754         threads for more time, so sysprof can get a grip on it.
2755
2756         * dbus/dbus-string.c (_dbus_string_validate_utf8): remove
2757         pointless variable
2758
2759 2004-11-13  Havoc Pennington  <hp@redhat.com>
2760
2761         * test/glib/test-profile.c: fix this thing up a bit
2762
2763         * dbus/dbus-message.c (dbus_message_new_empty_header): increase
2764         preallocation sizes by a fair bit; not sure if this will be an
2765         overall performance win or not, but it does reduce reallocs.
2766
2767         * dbus/dbus-string.c (set_length, reallocate_for_length): ignore
2768         the test hack that forced constant realloc if asserts are
2769         disabled, so we can profile sanely. Sprinkle in some
2770         _DBUS_UNLIKELY() which are probably pointless, but before I
2771         noticed the real performance problem I put them in.
2772         (_dbus_string_validate_utf8): micro-optimize this thing a little
2773         bit, though callgrind says it didn't help; then special-case
2774         ascii, which did help a lot; then be sure we detect nul bytes as
2775         invalid, which is a bugfix.
2776         (align_length_then_lengthen): add some more _DBUS_UNLIKELY
2777         superstition; use memset to nul the padding instead of a manual
2778         loop.
2779         (_dbus_string_get_length): inline this as a
2780         macro; it showed up in the profile because it's used for loop
2781         tests and so forth
2782
2783 2004-11-10  Colin Walters  <walters@verbum.org>
2784
2785         * dbus/dbus-spawn.c (check_babysit_events): Handle EINTR,
2786         for extra paranoia.
2787
2788 2004-11-09  Colin Walters  <walters@verbum.org>
2789
2790         * dbus/dbus-string.c (_dbus_string_get_length): New
2791         function, writes DBusString to C buffer.
2792
2793         * dbus/dbus-string.h: Prototype it.
2794
2795         * dbus/dbus-message.c (dbus_message_type_to_string): New
2796         function, converts message type into C string.
2797
2798         * dbus/dbus-message.h: Prototype it.
2799
2800         * bus/selinux.c (bus_selinux_check): Take source pid,
2801         target pid, and audit data.  Pass audit data to
2802         avc_has_perm.
2803         (log_audit_callback): New function, appends extra
2804         audit information.
2805         (bus_selinux_allows_acquire_service): Also take
2806         service name, add it to audit data.
2807         (bus_selinux_allows_send): Also take message
2808         type, interface, method member, error name,
2809         and destination, and add them to audit data.
2810         (log_cb): Initialize func_audit.
2811         
2812         * bus/selinux.h (bus_selinux_allows_acquire_service)
2813         (bus_selinux_allows_send): Update prototypes 
2814
2815         * bus/services.c (bus_registry_acquire_service): Pass
2816         service name to bus_selinux_allows_acquire_service.
2817
2818         * bus/bus.c (bus_context_check_security_policy): Pass
2819         additional audit data.  Move assignment of dest
2820         to its own line.
2821
2822 2004-11-07  Colin Walters  <walters@verbum.org>
2823
2824         * dbus/dbus-transport-unix.c (do_authentication): Always
2825         initialize auth_completed.
2826         
2827 2004-11-07  Colin Walters  <walters@verbum.org>
2828
2829         * bus/bus.c (load_config): Break into three
2830         separate functions: process_config_first_time_only,
2831         process_config_every_time, and process_config_postinit.
2832         (process_config_every_time): Move call of
2833         bus_registry_set_service_context_table into
2834         process_config_postinit.
2835         (process_config_postinit): New function, does
2836         any processing that needs to happen late
2837         in initialization (and also on reload).
2838         (bus_context_new): Instead of calling load_config,
2839         open config parser here and call process_config_first_time_only
2840         and process_config_every_time directly.  Later, after
2841         we have forked but before changing UID,
2842         invoke bus_selinux_full_init, and then call
2843         process_config_postinit.
2844         (bus_context_reload_config): As in bus_context_new,
2845         load parse file inside here, and call process_config_every_time
2846         and process_config_postinit.
2847
2848         * bus/services.h, bus/services.c
2849         (bus_registry_set_service_context_table): Rename
2850         from bus_registry_set_sid_table.  Take string hash from config
2851         parser, and convert them here into SIDs.
2852
2853         * bus/config-parser.c (struct BusConfigParser): Have
2854         config parser only store a mapping of service->context
2855         string.
2856         (merge_service_context_hash): New function.
2857         (merge_included): Merge context string hashes instead
2858         of using bus_selinux_id_table_union.
2859         (bus_config_parser_new): Don't use bus_selinux_id_table_new;
2860         simply create a new string hash.
2861         (bus_config_parser_unref): Unref it.
2862         (start_selinux_child): Simply insert strings into hash,
2863         don't call bus_selinux_id_table_copy_over.
2864
2865         * bus/selinux.h, bus/selinux.c (bus_selinux_id_table_union)
2866         (bus_selinux_id_table_copy_over): Delete.
2867
2868 2004-11-03  Colin Walters  <walters@verbum.org>
2869
2870         * bus/selinux.c (bus_selinux_pre_init): Kill some unused
2871         variables.
2872         
2873 2004-11-03  Colin Walters  <walters@verbum.org>
2874
2875         * bus/test-main.c (test_pre_hook): Fix test logic,
2876         thanks Joerg Barfurth <Joerg.Barfurth@Sun.COM>.
2877
2878 2004-11-02  Colin Walters  <walters@redhat.com>
2879
2880         * bus/selinux.c (bus_selinux_init): Split into two functions,
2881         bus_selinux_pre_init and bus_selinux_post_init.
2882         (bus_selinux_pre_init): Just determine whether SELinux is
2883         enabled.
2884         (bus_selinux_post_init): Do everything else.
2885
2886         * bus/main.c (main): Call bus_selinux_pre_init before parsing
2887         config file, and bus_selinux_post_init after.  This ensures that
2888         we don't lose the policyreload notification thread that
2889         bus_selinux_init created before forking previously.
2890         
2891         * bus/test-main.c (test_pre_hook): Update for split.
2892
2893 2004-10-31  Owen Fraser-Green  <owen@discobabe.net>
2894
2895         Patch from Johan Fischer <linux@fischaz.com>
2896         
2897         * mono/doc/Makefile.am (install-data-local): Added directory
2898         install for DESTDIR
2899
2900 2004-10-29  Colin Walters  <walters@redhat.com>
2901
2902         * dbus/dbus-sysdeps.h (_dbus_become_daemon): Also take
2903         parameter for fd to write pid to.       
2904
2905         * dbus/dbus-sysdeps.c (_dbus_become_daemon): Implement it.
2906         
2907         * bus/bus.c (bus_context_new): Pass print_pid_fd
2908         to _dbus_become_daemon (bug #1720)
2909
2910 2004-10-29  Colin Walters  <walters@redhat.com>
2911
2912         Patch from Ed Catmur <ed@catmur.co.uk>
2913
2914         * mono/doc/Makefile.am (install-data-local): Handle
2915         DESTDIR.
2916
2917 2004-10-29  Colin Walters  <walters@redhat.com>
2918
2919         * bus/.cvsignore, qt/.cvsignore: Update.
2920
2921 2004-10-29  Colin Walters  <walters@redhat.com>
2922
2923         Patch from Kristof Vansant <de_lupus@pandora.be>
2924
2925         * configure.in: Detect Slackware.
2926         * bus/Makefile.am (SCRIPT_IN_FILES): Add rc.messagebus.in.
2927         * bus/rc.messagebus.in: New file.
2928
2929 2004-10-29  Colin Walters  <walters@redhat.com>
2930
2931         * tools/dbus-monitor.c (filter_func): Return
2932         DBUS_HANDLER_RESULT_HANDLED in filter function
2933         for now.  See:
2934         http://freedesktop.org/pipermail/dbus/2004-August/001433.html
2935
2936 2004-10-29  Colin Walters  <walters@redhat.com>
2937
2938         Patch from Matthew Rickard <mjricka@epoch.ncsc.mil>
2939
2940         * bus/services.c (bus_registry_acquire_service): 
2941         Correctly retrieve service name from DBusString
2942         for printing.
2943
2944 2004-10-29  Colin Walters  <walters@redhat.com>
2945
2946         * dbus/dbus-glib.h: Update documentation to not
2947         refer to internal APIs.
2948
2949 2004-10-27  Joe Shaw  <joeshaw@novell.com>
2950
2951         * mono/Arguments.cs (GetDBusTypeConstructor):
2952         type.UnderlyingSystemType will return "System.Byte" if you do it
2953         on "byte[]", which is not what we want.  So check the type.IsArray
2954         property and use System.Array instead.
2955
2956 2004-10-25  John (J5) Palmieri  <johnp@redhat.com>
2957
2958         * dbus/dbus-sysdeps.c (fill_user_info): On errors do not free
2959         the DBusUserInfo structure since this is passed into the function.
2960         This would cause a double free when the function that allocated
2961         the structure would try to free it when an error occured.
2962
2963         * (bus/session.conf.in, bus/Makefile.am, dbus/configure.in):
2964         use /usr/share/dbus-1/services instead of /usr/lib/dbus-1.0/services
2965         for service activation to avoid 32bit/64bit parallel install issues
2966
2967 2004-10-21  Colin Walters  <walters@verbum.org>
2968
2969         * AUTHORS: Fix my email address, the @gnu.org one
2970         has been bouncing for some time.  Also add J5.
2971         
2972 2004-10-21  Colin Walters  <walters@verbum.org>
2973
2974         * dbus/dbus-transport-unix.c (do_authentication): Return
2975         authentication status to callers.
2976         (unix_handle_watch): If we completed authentication this round,
2977         don't do another read.  Instead wait until the next iteration,
2978         after we've read any pending data in the auth buffer.
2979         (unix_do_iteration): Ditto.
2980         (unix_handle_watch): Updated for new do_authentication prototype.
2981
2982 2004-10-18  Colin Walters  <walters@verbum.org>
2983
2984         * bus/selinux.c (bus_selinux_enabled): Handle
2985         --disable-selinux case.
2986         
2987 2004-10-18  Colin Walters  <walters@verbum.org>
2988
2989         * bus/selinux.h: Add bus_selinux_enabled.
2990         
2991         * bus/selinux.c (bus_selinux_enabled): Implement it.
2992         
2993         * bus/config-parser.c (struct include): Add
2994         if_selinux_enabled member.
2995         (start_busconfig_child): Parse if_selinux_enabled
2996         attribute for include.
2997         (bus_config_parser_content): Handle it.
2998
2999         * bus/session.conf.in, bus/system.conf.in: Add
3000         inclusion of context mapping to default config files;
3001         conditional on SELinux being enabled.
3002         
3003         * doc/busconfig.dtd: Add to if_selinux_enabled to default DTD.
3004         
3005         * test/data/invalid-config-files/badselinux-1.conf, 
3006         test/data/invalid-config-files/badselinux-2.conf:
3007         Test files for bad syntax.
3008         
3009 2004-10-17  Colin Walters  <walters@verbum.org>
3010
3011         * dbus/dbus-memory.c (_dbus_initialize_malloc_debug, check_guards)
3012         (dbus_malloc, dbus_malloc0, dbus_realloc): Fix up printf
3013         format specifier mismatches.
3014
3015 2004-10-07  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3016
3017         * dbus/dbus-sysdeps.c (_dbus_file_get_contents): fix an incorrect
3018         format string.
3019
3020         * glib/dbus-dbus-gmain.c (dbus_g_bus_get): do not mangle NULL
3021         pointer (bug #1540, Leonardo Boiko).
3022
3023 2004-09-28  Jon Trowbridge  <trow@ximian.com>
3024
3025         * mono/BusDriver.cs: Changed BusDriver struct to remove
3026         the ServiceCreated and ServiceDeleted events and replace them
3027         with the new ServiceOwnerChanged event.
3028
3029         * mono/example/BusListener.cs: Added a new example program,
3030         which listens for and reports any ServiceOwnerChanged events
3031         on the bus driver.
3032
3033         * mono/example/Makefile.am (DESTDIR): Build changes for the
3034         new BusListener.cs example.
3035
3036 2004-09-27  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3037
3038         * bus/signals.c (bus_match_rule_parse): validate the components of
3039         match rules (bug #1439).
3040
3041         * dbus/dbus-bus.c (dbus_bus_add_match): add a missing OOM test.
3042
3043 2004-09-24  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3044
3045         * doc/dbus-specification.xml: document ServiceOwnerChanged
3046         signal.
3047         
3048         * bus/driver.c, bus/driver.h, bus/services.c: Use
3049         ServiceOwnerChanged signal instead of ServiceCreated and
3050         ServiceDeleted.
3051         
3052         * bus/dispatch.c: update testcase for the new signal.
3053
3054 2004-09-20  Jon Trowbridge  <trow@ximian.com>
3055
3056         Patch from Nat Friedman <nat@novell.com>
3057
3058         * mono/Makefile.am: A number of small build fixes to allow "make
3059         distcheck" to succeed.
3060
3061         * mono/example/Makefile.am: "make distcheck" fixes.
3062
3063         * mono/AssemblyInfo.cs.in: When signing the assembly, look for the
3064         key in @srcdir@.
3065
3066         * test/Makefile.am: "make distcheck" fixes.
3067
3068 2004-09-17  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3069
3070         * dbus/dbus-sysdeps.c (_dbus_user_at_console): fix memleak in OOM.
3071
3072         * doc/busconfig.dtd: update the DTD for the at_console attribute.
3073
3074         * bus/driver.c (bus_driver_handle_hello): correctly handle Hello
3075         messages after the first one (bug #1389).
3076         
3077         * bus/dispatch.c (check_double_hello_message): add a test case for
3078         the double hello message bug.
3079         (check_existent_service_activation): fix check of spawning error.
3080         
3081 2004-09-16  David Zeuthen  <david@fubar.dk>
3082
3083         * python/dbus_bindings.pyx.in: Add support for int64 and uint64
3084
3085 2004-09-12  David Zeuthen  <david@fubar.dk>
3086
3087         Patch from Kay Sievers <kay.sievers@vrfy.org>
3088
3089         * bus/bus.c (bus_context_new):
3090         * bus/bus.h:
3091         * bus/main.c (usage)
3092         (main):
3093         Add commandline option --nofork to override configuration file
3094         setting.
3095
3096 2004-09-09  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3097
3098         * dbus/dbus-*.h: remove the ; after DBUS_(BEGIN|END)_DECLS. Some C
3099         compilers don't like it (bug #974).
3100
3101 2004-09-04  Harald Fernengel  <harry@kdevelop.org>
3102
3103         * qt/connection.*: Applied patch by Jérôme Lodewyck
3104         <lodewyck@clipper.ens.fr> to integrate an existing
3105         connection into the Qt eventloop
3106
3107 2004-08-30  Jon Trowbridge  <trow@ximian.com>
3108
3109         * mono/BusDriver.cs: Added.  This is a class for interacting with
3110         the org.freedesktop.DBus service.
3111
3112         * mono/Message.cs: Added a mechanism to expose the message that is
3113         currently being dispatched via the static Message.Current
3114         property.  Added Message.Sender and Message.Destination
3115         properties.
3116
3117         * mono/Handler.cs: Expose the dispatched message via
3118         Message.Current when handling method calls.
3119
3120         * mono/Service.cs: Expose the dispatched message via
3121         Message.Current when handling signal emissions.
3122         
3123         * mono/Connection.cs: Bind dbus_bus_get_base_service via the
3124         Connection.BaseService property.
3125
3126 2004-08-28  Havoc Pennington  <hp@redhat.com>
3127
3128         * dbus/dbus-userdb.c (_dbus_is_console_user): remove unused variable
3129
3130         More fixes from Steve Grubb
3131         
3132         * dbus/dbus-sysdeps.c (_dbus_connect_tcp_socket): fix fd leak
3133         (_dbus_listen_tcp_socket): fix fd leak
3134
3135         * dbus/dbus-spawn.c (read_pid, read_ints): move the "again:" for
3136         EINTR to a bit lower in the code
3137
3138 2004-08-26  Jon Trowbridge  <trow@ximian.com>
3139
3140         * bus/driver.c (bus_driver_handle_service_exists): Respond with
3141         TRUE if we are inquiring about the existence of the built-in
3142         org.freedesktop.DBus service.
3143
3144 2004-08-25  John Palmieri  <johnp@redhat.com>
3145         * bus/config-parser.c:
3146         (struct PolicyType): Add POLICY_CONSOLE
3147         (struct Element.d.policy): s/gid_or_uid/gid_uid_or_at_console
3148         (start_busconfig_child): Sets up console element when
3149         <policy at_console=""> is encountered in a policy file
3150         (append_rule_from_element): Convert console elements to console
3151         rules.
3152
3153         * bus/policy.c: 
3154         (bus_policy_create_client_policy): Add console rules to the client
3155         policy based on if the client is at the console
3156         (bus_policy_append_console_rule): New function for adding a
3157         console rule to a policy
3158         (bus_policy_merge): Handle console rule merging
3159
3160         * dbus/dbus-sysdeps.h: Added the DBUS_CONSOLE_DIR constant
3161         where we check for console user files
3162         
3163         * dbus/dbus-sysdeps.c:
3164         (_dbus_file_exists): New function which checks if the given
3165         file exists
3166         (_dbus_user_at_console): New function which does the system
3167         specific process of checking if the user is at the console
3168
3169         * dbus/dbus-userdb.c:
3170         (_dbus_is_console_user): New function converts a UID to user name
3171         and then calls the system specific _dbus_user_at_console to 
3172         see if the user is at the console and therefor a console user
3173
3174 2004-08-25  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3175
3176         * bus/config-parser.c (set_limit):
3177         * bus/dbus-daemon-1.1.in:
3178         * test/data/valid-config-files/many-rules.conf: set the
3179         max_match_rules_per_connection limt from the config file. 
3180
3181         * doc/busconfig.dtd: update the DTD.
3182
3183         * bus/driver.c: remove some unused variables.
3184
3185 2004-08-24  Mikael Hallendal  <micke@imendio.com>
3186
3187         * dbus/dbus-glib-lowlevel.h: Removed dbus_bus_get_with_g_main since 
3188         it's been replaced by dbus_g_bus_get
3189
3190 2004-08-23  Colin Walters  <walters@redhat.com>
3191
3192         Updated SELinux support from Matthew Rickard <mjricka@epoch.ncsc.mil>
3193
3194         * bus/selinux.h: Prototype bus_selinux_get_policy_root.
3195
3196         * bus/selinux.c: Create a thread for policy reload notification.
3197         (bus_selinux_get_policy_root): Implement.
3198
3199         * bus/config-parser.c (start_busconfig_child)
3200         (bus_config_parser_content): Support SELinux-root relative
3201         inclusion.
3202
3203         * configure.in <HAVE_SELINUX>: Add -lpthread.
3204         
3205         * bus/test-main.c (test_pre_hook, test_post_hook): New.
3206         (test_post_hook): Move memory checking into here.
3207         (test_pre_hook, test_post_hook): Move SELinux checks in
3208         here, but conditional on a DBUS_TEST_SELINUX environment
3209         variable.  Unfortunately we can't run the SELinux checks
3210         as a normal user, since they won't have any permissions
3211         for /selinux.  So this will have to be tested manually
3212         for now, until we have virtualization for most of
3213         libselinux.
3214         
3215 2004-08-23  Havoc Pennington  <hp@redhat.com>
3216
3217         * dbus/dbus-sysdeps.c (_dbus_change_identity): add setgroups() to
3218         drop supplementary groups, suggested by Steve Grubb
3219
3220 2004-08-20  Colin Walters  <walters@redhat.com>
3221
3222         * bus/config-parser.c (start_busconfig_child): Remove some unused
3223         variables.
3224         
3225         * bus/selinux.c (bus_selinux_id_table_insert): Avoid compiler
3226         warning.
3227
3228 2004-08-17  Joe Shaw  <joeshaw@novell.com>
3229
3230         * configure.in: If --enable-mono is passed in, if we can't find
3231         mono error out.
3232
3233         * mono/Makefile.am: Use /gacutil to install assemblies into the
3234         GAC and not /root.
3235
3236 2004-08-12  Havoc Pennington  <hp@redhat.com>
3237
3238         * NEWS: update for 0.22
3239
3240         * configure.in: release 0.22
3241
3242 2004-08-11  Colin Walters  <walters@redhat.com>
3243
3244         * tools/dbus-send.c (main, usage): Add --reply-timeout
3245         argument.
3246
3247 2004-08-10  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3248
3249         * bus/bus.c (process_config_first_time_only): get rid of an unused
3250         DBusError that was causing a memoy leak (bug #989).
3251
3252         * dbus/dbus-keyring.c, dbus/dbus-message.c:
3253         fix compilation on Solaris/Forte C (bug #974)
3254
3255         * bus/main.c (main): plug two minuscule memleaks.
3256
3257 2004-08-10  Havoc Pennington  <hp@redhat.com>
3258
3259         * doc/dbus-tutorial.xml: add some more info on GLib bindings
3260
3261 2004-08-09  Havoc Pennington  <hp@redhat.com>
3262
3263         * COPYING: switch to Academic Free License version 2.1 instead of
3264         2.0, to resolve complaints about patent termination clause.
3265
3266 2004-07-31  John (J5) Palmieri  <johnp@redhat.com>
3267
3268         * README: added documentation for the --enable-python 
3269         configure switch.
3270
3271 2004-07-31  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3272
3273         * bus/config-parser.c (bus_config_parser_new): fix an invalid
3274         _unref in the SELinux support.
3275
3276         * doc/busconfig.dtd: update DTD for SELinux support.
3277
3278         * bus/config-loader-libxml.c: fix error handler and parser
3279         initialisation/cleanup. OOM test now works with libxml2 HEAD.
3280
3281         * configure.in: remove the warning about libxml2.
3282
3283         * dbus/dbus-bus.c: silence doxygen warning.
3284
3285 2004-07-31  Colin Walters  <walters@redhat.com>
3286
3287         * configure.in: Move #error in SELinux check to its own line.
3288
3289 2004-07-31  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3290
3291         * dbus/dbus-internals.h (_DBUS_SET_OOM):
3292         * bus/utils.h (BUS_SET_OOM): use dbus_error_set_const instead of
3293         dbus_error_set.
3294
3295         * bus/dispatch.c (check_send_exit_to_service): fix the test case,
3296         broken by the change in the _SET_OOM macros.
3297
3298 2004-07-31  Colin Walters  <walters@redhat.com>
3299
3300         * bus/selinux.c <HAVE_SELINUX>: Include utils.h to get
3301         BUS_SET_OOM.
3302
3303 2004-07-31  Colin Walters  <walters@redhat.com>
3304
3305         * configure.in: Use AC_TRY_COMPILE instead of AC_EGREP_HEADER
3306         to correctly detect DBUS__ACQUIRE_SVC.  Also add an
3307         AC_MSG_CHECKING.
3308
3309 2004-07-24  Havoc Pennington  <hp@redhat.com>
3310
3311         SELinux support from Matthew Rickard <mjricka@epoch.ncsc.mil>
3312
3313         * bus/selinux.c, bus/selinux.h: new file encapsulating selinux
3314         functionality
3315
3316         * configure.in: add --enable-selinux
3317         
3318         * bus/policy.c (bus_policy_merge): add FIXME to a comment
3319
3320         * bus/main.c (main): initialize and shut down selinux
3321
3322         * bus/connection.c: store SELinux ID on each connection, to avoid 
3323         repeated getting of the string context and converting it into 
3324         an ID
3325
3326         * bus/bus.c (bus_context_get_policy): new accessor, though it
3327         isn't used
3328         (bus_context_check_security_policy): check whether the security
3329         context of sender connection can send to the security context of
3330         recipient connection
3331
3332         * bus/config-parser.c: add parsing for <selinux> and <associate>
3333         
3334         * dbus/dbus-transport.c (_dbus_transport_get_unix_fd): to
3335         implement dbus_connection_get_unix_fd()
3336
3337         * dbus/dbus-connection.c (dbus_connection_get_unix_fd): new
3338         function, used by the selinux stuff
3339         
3340 2004-07-29  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3341
3342         * bus/config-loader-libxml.c: complete the implementation of
3343         libxml backend for config file loader. Doesn't work with full OOM
3344         test yet. 
3345         
3346         * configure.in: change error when selecting libxml into a warning.
3347         
3348         * test/data/invalid-config-files: add two non-well-formed XML
3349         files. 
3350         
3351         * glib/Makefile.am: libdbus_gtool always uses expat, not libxml.
3352         
3353         * dbus/dbus-transport-unix.c (unix_handle_watch): do not
3354         disconnect in case of DBUS_WATCH_HANGUP, several do_reading() may
3355         be necessary to read all the buffer. (bug #894)
3356
3357         * bus/activation.c (bus_activation_activate_service): fix a
3358         potential assertion failure (bug #896). Small optimization in the
3359         case of auto-activation messages.
3360
3361         * dbus/dbus-message.c (verify_test_message, _dbus_message_test):
3362         add test case for byte-through-vararg bug (#901). patch by Kimmo
3363         Hämäläinen. 
3364
3365 2004-07-28  Anders Carlsson  <andersca@gnome.org>
3366
3367         * python/dbus.py:
3368         * python/dbus_bindings.pyx.in:
3369         Add dbus.init_gthreads (), allow emit_signal to pass
3370         arguments to the signal.
3371         
3372 2004-07-24  Havoc Pennington  <hp@redhat.com>
3373
3374         * AUTHORS: add some people, not really comprehensively, let me
3375         know if I missed you
3376
3377 2004-07-24  Havoc Pennington  <hp@redhat.com>
3378
3379         * Makefile.am (DIST_SUBDIRS): add DIST_SUBDIRS, problem solved by
3380         Owen
3381
3382         * test/Makefile.am (DIST_SUBDIRS): here also
3383
3384 2004-07-22  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3385
3386         * dbus/dbus-sysdeps.c (fill_user_info): fix inexistent label name,
3387         breaking build on Solaris, reported by Farhad Saberi on the ML.
3388
3389         * dbus/dbus-message.c (dbus_message_append_args_valist): fix the
3390         va_arg invocation to account for integer promotion in the case of
3391         DBUS_TYPE_BYTE (unsigned char is promoted to int). (bug #901)
3392
3393         * bus/services.c (bus_service_remove_owner): fix bug #902, use
3394         _dbus_list_get_first_link, not _dbus_list_get_first.
3395
3396         * dbus/dbus-bus.c (dbus_bus_service_exists): plug a memory leak.
3397
3398         * dbus/dbus-object-tree.c (free_subtree_recurse): always null
3399         handler functions so that the asserts in _dbus_object_subtree_unref
3400         do not fail.
3401
3402         * dbus/dbus-transport-unix.c (do_reading):
3403         _dbus_transport_queue_messages return value is of type
3404         dbus_bool_t, not DBusDispatchStatus.
3405         
3406 2004-07-19  David Zeuthen  <david@fubar.dk>
3407
3408         * dbus/dbus-protocol.h: Add DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN
3409
3410         * bus/dispatch.c:
3411         (check_get_connection_unix_user): Debug says GetProperty; but the
3412         method is called GetConnectionUnixUser
3413         (check_get_connection_unix_process_id): New function
3414         (bus_dispatch_test): Actually call check_get_connection_unix_user();
3415         also call check_get_connection_unix_process_id()
3416         
3417         * bus/driver.c:
3418         (bus_driver_handle_get_connection_unix_process_id): New function,
3419         handles GetConnectionUnixProcessID on the org.freedesktop.DBus
3420         interface
3421         
3422         * dbus/dbus-auth.c:
3423         (handle_server_data_external_mech): Set pid from the credentials
3424         obtained from the socket
3425         
3426         * dbus/dbus-connection.c:
3427         (dbus_connection_get_unix_process_id): New function
3428         
3429         * dbus/dbus-connection.h: 
3430         Add prototype for dbus_connection_get_unix_process_id
3431         
3432         * dbus/dbus-transport.c:
3433         (_dbus_transport_get_unix_process_id): New function
3434         
3435         * dbus/dbus-transport.h:
3436         Add prototype for _dbus_transport_get_unix_process_id
3437         
3438 2004-07-19  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3439
3440         * dbus/dbus-message.c: Message counter fix, patch by Christian
3441         Hammond <chipx86@gnupdate.org>
3442
3443 2004-07-18  Seth Nickell  <seth@gnome.org>
3444
3445         * python/dbus.py:
3446         * python/dbus_bindings.pyx.in:
3447         * python/tests/test-client.py:
3448
3449         Add dbus.ByteArray and dbus_bindings.ByteArray
3450         types so that byte streams can be passed back.
3451
3452         Give jdahlin the heaps of credit that are so
3453         rightfully his.
3454         
3455 2004-07-12  Seth Nickell  <seth@gnome.org>
3456
3457         * python/dbus.py:
3458
3459         Add message argument to the default object_method_handler
3460         function.
3461         
3462         * python/dbus_bindings.pyx.in:
3463
3464         Automatically return NIL when passed an empty list
3465         (we can't pass back a list since lists are typed
3466         and we don't have any idea what type the the client
3467         intended the list to be... :-( )
3468         
3469 2004-07-10  Seth Nickell  <seth@gnome.org>
3470
3471         * python/examples/Makefile.am:
3472
3473         Fix distcheck breakage caused by new examples.
3474
3475 2004-07-10  Seth Nickell  <seth@gnome.org>
3476
3477         * python/dbus.py:
3478
3479         Add "message" argument to service-side dbus.Object
3480         methods. This will break existing services written
3481         using the python bindings, but will allow extraction
3482         of all the message information (e.g. who its from).
3483
3484         Add improved "object oriented" signal handling/emission.
3485         
3486         * python/examples/example-service.py:
3487
3488         Nix this example.
3489         
3490         * python/examples/example-signal-emitter.py:
3491         * python/examples/example-signal-recipient.py:
3492
3493         Two new examples that show how to emit and receive
3494         signals using the new APIs.
3495         
3496         * python/examples/example-signals.py:
3497         * python/examples/gconf-proxy-service.py:
3498         * python/examples/gconf-proxy-service2.py:
3499
3500         Add "message" argument to service methods.
3501
3502 2004-06-28  Kay Sievers <kay.sievers@vrfy.org>
3503
3504         * bus/driver.c (bus_driver_handle_get_connection_unix_user)
3505         * dbus/bus.c (dbus_bus_get_unix_user)
3506         * doc/dbus-specification.xml: implement GetConnectionUnixUser
3507         method of org.freedesktop.DBus interface.
3508
3509         * bus/dispatch.c: test case
3510
3511 2004-06-23  John (J5) Palmieri  <johnp@redhat.com>
3512
3513         * python/Makefile.am: switched include directory from glib/ to dbus/
3514         since dbus-glib.h moved
3515  
3516 2004-06-22  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3517
3518         * configure.in: prevent building the gcj stuff and libxml loader
3519         since they are broken.
3520
3521 2004-06-20  Havoc Pennington  <hp@redhat.com>
3522
3523         * dbus/dbus-glib-error-enum.h: autogenerate the GError enum 
3524         codes from the dbus error names
3525         
3526         * glib/dbus-glib.h: move to subdir dbus/ since it's included 
3527         as dbus/dbus-glib.h and that breakage is now visible due to 
3528         including dbus/dbus-glib.h in dbus-glib-lowlevel.h
3529         
3530         * glib/dbus-glib.h: s/gproxy/g_proxy/
3531
3532         * dbus/dbus-shared.h: new header to hold stuff shared with
3533         binding APIs
3534         
3535         * dbus/dbus-protocol.h (DBUS_ERROR_*): move errors here rather
3536         than dbus-errors.h
3537
3538         * glib/dbus-glib.h (dbus_set_g_error): move to
3539         dbus-glib-lowlevel.h
3540
3541         * glib/dbus-glib.h: remove dbus/dbus.h from here; change a bunch
3542         of stuff to enable this
3543
3544         * dbus/dbus-glib-lowlevel.h: put dbus/dbus.h here
3545
3546         * a bunch of other changes with the same basic "separate glib 
3547         bindings from dbus.h" theme
3548         
3549 2004-06-10  Owen Fraser-Green  <owen@discobabe.net>
3550
3551         * dbus-sharp.pc.in: Removed glib-sharp inclusion in Libs.
3552
3553         * python/examples/Makefile.am: Fixed typo in EXTRA_DIST.
3554
3555 2004-06-09  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3556
3557         * bus/driver.c, dbus/dbus-bus.c: use BOOLEAN instead of UINT32 for
3558         the reply value of the ServiceExists message.
3559
3560 2004-06-07  John (J5) Palmieri  <johnp@redhat.com>
3561
3562         * python/dbus_bindings.pyx.in: No longer need to parse path
3563         elements and pass them as arrays of strings.  The C API now
3564         accepts plain path strings.
3565         (_build_parsed_path): removed 
3566
3567 2004-06-07  Havoc Pennington  <hp@redhat.com>
3568
3569         * doc/TODO: remove auto-activation item since it's done; sort
3570         items by importance/milestone
3571
3572 2004-06-07  Havoc Pennington  <hp@redhat.com>
3573
3574         * dbus/dbus-message-builder.c (_dbus_message_data_load): append
3575         random signature when using REQUIRED_FIELDS (this hack won't work
3576         in the long term)
3577
3578         * dbus/dbus-message.c: change the signature to be a header field,
3579         instead of message->signature special-case string. Incremental
3580         step forward. Then we can fix up code to send the signature in the
3581         message, then fix up code to validate said signature, then fix up
3582         code to not put the typecodes inline, etc.
3583         (load_one_message): don't make up the signature after the fact
3584         (decode_header_data): require signature field for the known
3585         message types
3586
3587         * dbus/dbus-marshal.c (_dbus_marshal_string_len): new
3588
3589         * dbus/dbus-protocol.h: add DBUS_HEADER_FIELD_SIGNATURE
3590
3591 2004-06-07  Owen Fraser-Green  <owen@discobabe.net>
3592
3593         * mono/DBusType/ObjectPath.cs: Renamed PathName argument to Path
3594
3595         * mono/Handler.cs: Updated to follow new path argument for
3596         (un-)registering objects.
3597
3598         * mono/example/Makefile.am:
3599         * mono/Makefile.am:
3600         * configure.in: Bumped required version for mono and use new -pkg
3601         syntax for deps
3602
3603 2004-06-05  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3604
3605         * dbus/dbus-connection.h, dbus/dbus-connection.c: have object path
3606         registration functions take the path argument as char* instead of
3607         char**.
3608
3609         * dbus/dbus-marshal.h, dbus/dbus-marshal.c (_dbus_decompose_path):
3610         split off the path decompostion part of
3611         _dbus_demarshal_object_path. Some misc. fixes to silence compiler
3612         warnings. 
3613
3614         * glib/dbus-gobject.c, test/test-service.c: update accordingly.
3615         
3616 2004-06-02  Kristian Høgsberg  <krh@redhat.com>
3617  
3618         * dbus/dbus-auth.c: Rewrite auth protocol handling to use a state
3619         machine approach.  A state is implemented as a function that
3620         handles incoming events as specified for that state.
3621         
3622         * doc/dbus-specification.xml: Update auth protocol state machine
3623         specification to match implementation.  Remove some leftover
3624         base64 examples.
3625
3626 2004-06-02  Kristian Høgsberg  <krh@redhat.com>
3627
3628         * glib/dbus-gproxy.c, glib/dbus-gmain.c, dbus/dbus-string.c,
3629         dbus/dbus-object-tree.c, dbus/dbus-message.c: add comments to
3630         quiet doxygen.
3631
3632         * Doxyfile.in: remove deprecated options.
3633
3634         * dbus/dbus-message-handler.c, dbus/dbus-message-handler.h,
3635         glib/test-thread.h, glib/test-thread-client.c,
3636         glib/test-thread-server.c, glib/test-profile.c,
3637         glib/test-dbus-glib.c: remove these unused files.
3638
3639 2004-06-01  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3640
3641         * dbus/dbus-object-tree.c
3642         (_dbus_object_tree_dispatch_and_unlock): fix dispatch for
3643         non-fallback handlers (bug #684).
3644         (_dbus_object_subtree_new): initialize invoke_as_fallback field.
3645         (find_subtree_recurse): report wether the returned subtree is an
3646         exact match or a "fallback" match higher up in the tree.
3647         (object_tree_test_iteration): update test case.
3648
3649 2004-06-01  Seth Nickell  <seth@gnome.org>
3650
3651         * python/dbus_bindings.pyx.in:
3652         * python/tests/test-client.py:
3653
3654         Round off basic type support. Add dicts (yay!), and 
3655         remaining array types.
3656
3657         Make MessageIter more general so it works for dicts too.
3658
3659         Mark all loop variables as C integers.
3660         
3661 2004-05-31  Havoc Pennington  <hp@redhat.com>
3662
3663         * glib/dbus-gidl.c (method_info_add_arg): keep args sorted with
3664         "in" before "out"
3665
3666         * glib/dbus-gobject.c (dbus_type_to_string): move to dbus-gutils.c
3667
3668         * glib/dbus-glib-tool.c (main): set up to have a --self-test
3669         option that runs the tests, and start filling in some code
3670         including for starters just dumping the interfaces to stdout
3671
3672         * glib/Makefile.am (INCLUDES): define DBUS_LOCALEDIR
3673
3674         * test/data/valid-introspection-files/lots-of-types.xml: test of
3675         an example introspection file
3676
3677         * glib/dbus-gparser.c (parser_check_doctype): doctype should be
3678         "node" (I think...)
3679
3680 2004-05-31  Seth Nickell  <seth@gnome.org>
3681
3682         * python/dbus_bindings.pyx.in:
3683         * python/tests/test-client.py:
3684
3685         Test Suite: 1
3686         Python Bindings: 0
3687
3688         Fix string array memory trashing bug... oops...
3689
3690 2004-05-30  Seth Nickell  <seth@gnome.org>
3691
3692         * python/dbus.py:
3693
3694         Add a nicer-but-less-flexible alternate API for handling 
3695         calls to virtual objects in dbus.ObjectTree.
3696
3697         Screw up the argument order to the dbus.Object constructor
3698         for consistency with dbus.ObjectTree (and to make dbus_methods
3699         optional for future extension)
3700         
3701         * python/examples/Makefile.am:
3702         * python/examples/gconf-proxy-service.py:
3703         * python/examples/gconf-proxy-service2.py:
3704
3705         Alternate implementation of gconf-proxy-service using the
3706         nicer dbus.ObjectTree API.
3707         
3708         * python/examples/example-service.py:
3709         * python/tests/test-server.py
3710
3711         Reverse the argument order to deal with dbus.Object constructor
3712         changes.
3713         
3714 2004-05-30  Seth Nickell  <seth@gnome.org>
3715
3716         * python/examples/example-client.py:
3717         * python/examples/example-service.py:
3718
3719         Take it back. Lists seem to work but they're broken
3720         in the test suite. Make the base examples use
3721         lists (works fine).
3722
3723 2004-05-30  Seth Nickell  <seth@gnome.org>
3724
3725         * python/dbus_bindings.pyx.in:
3726         * python/tests/test-client.py:
3727
3728         Add some more tests and fix errors that crop up.
3729         Unfortunately, currently it seems like marshalling
3730         and unmarshalling of lists is completely broken :-(
3731
3732 2004-05-30  Seth Nickell  <seth@gnome.org>
3733
3734         * python/dbus_bindings.pyx.in:
3735
3736         Add support for ObjectPath type.
3737
3738         * python/dbus.py:
3739
3740         Refactor message handling code to a common function.
3741         
3742         * python/tests/test-client.py:
3743         * python/tests/test-server.py:
3744
3745         Add tests that check to make sure values of all types
3746         can be echoed from a service w/o mangling.
3747         
3748 2004-05-29  Seth Nickell  <seth@gnome.org>
3749
3750         * python/dbus.py:
3751
3752         Add ObjectTree class which allows implementation
3753         of trees of "virtual" objects. Basically the python
3754         wrapper for "register_fallback".
3755         
3756         * python/examples/Makefile.am
3757         * python/examples/gconf-proxy-client.py:
3758         * python/examples/gconf-proxy-service.py:
3759
3760         Implement a simple GConf proxy service that supports
3761         get/set on string and int GConf keys using the ObjectTree.
3762         
3763 2004-05-29  Seth Nickell  <seth@gnome.org>
3764
3765         * python/dbus.py:
3766         * python/examples/example-client.py:
3767         * python/examples/example-service.py:
3768         * python/examples/list-system-services.py:
3769
3770         Add SessionBus, SystemBus and ActivationBus classes
3771         so you don't need to know the special little BUS_TYPE
3772         flag.
3773         
3774 2004-05-29  Havoc Pennington  <hp@redhat.com>
3775
3776         * bus/config-parser.c (process_test_valid_subdir): temporarily
3777         stop testing config parser OOM handling, since expat has issues
3778         http://freedesktop.org/pipermail/dbus/2004-May/001153.html
3779
3780         * bus/dbus-daemon-1.1.in: change requested_reply to
3781         send_requested_reply/receive_requested_reply so we can send the
3782         replies, not just receive them.
3783
3784         * bus/config-parser.c: parse the new
3785         send_requested_reply/receive_requested_reply
3786
3787         * bus/policy.c (bus_client_policy_check_can_send): add
3788         requested_reply argument and use it
3789
3790         * bus/bus.c (bus_context_check_security_policy): pass through
3791         requested_reply status to message send check
3792
3793         * bus/system.conf.in: adapt to requested_reply change
3794         
3795 2004-05-28  Havoc Pennington  <hp@redhat.com>
3796
3797         * test/glib/test-service-glib.c (main): remove unused variable
3798
3799         * glib/dbus-gidl.c (base_info_ref): fix a silly compiler warning
3800
3801         * dbus/dbus-auth.h (enum): remove AUTHENTICATED_WITH_UNUSED_BYTES
3802         from the enum, no longer in use.
3803
3804         * dbus/dbus-sysdeps.h: include config.h so DBUS_VA_COPY actually
3805         works right.
3806
3807         * dbus/dbus-message.c: add various _dbus_return_val_if_fail for
3808         whether error_name passed in is a valid error name.
3809
3810 2004-05-28  John (J5) Palmieri  <johnp@redhat.com>
3811
3812         * dbus/dbus-message.c (dbus_message_get_args): Added support for
3813         OBJECT_PATH and OBJECT_PATH_ARRAY
3814
3815 2004-05-28  Seth Nickell  <seth@gnome.org>
3816
3817         * python/examples/Makefile.am:
3818
3819         Forget to add Makefile.am. Do not pass go.
3820
3821 2004-05-28  Michael Meeks  <michael@ximian.com>
3822
3823         * glib/dbus-gvalue.c (dbus_gvalue_marshal, dbus_gvalue_demarshal): 
3824         fix no int64 case.
3825
3826         * dbus/dbus-string.c (_dbus_string_parse_basic_type): impl.
3827
3828         * dbus/dbus-message.c (_dbus_message_iter_get_basic_type),
3829         (_dbus_message_iter_get_basic_type_array): impl.
3830         drastically simplify ~all relevant _get methods to use these.
3831         (_dbus_message_iter_append_basic_array),
3832         (dbus_message_iter_append_basic): impl
3833         drastically simplify ~all relevant _append methods to use these.
3834
3835         * dbus/dbus-message-builder.c (parse_basic_type) 
3836         (parse_basic_array, lookup_basic_type): impl.
3837         (_dbus_message_data_load): prune scads of duplicate /
3838         cut & paste coding.
3839
3840         * dbus/dbus-marshal.c (_dbus_demarshal_basic_type_array) 
3841         (_dbus_demarshal_basic_type): implement,
3842         (demarshal_and_validate_len/arg): beef up debug.
3843         (_dbus_marshal_basic_type, _dbus_marshal_basic_type_array): impl.
3844
3845 2004-05-27  Seth Nickell  <seth@gnome.org>
3846
3847         * configure.in:
3848         * python/Makefile.am:
3849
3850         Include the example python apps in the tarball.
3851         
3852         * python/examples/list-system-services.py
3853
3854         Add a python new example that fetches the list of services
3855         from the system bus.
3856         
3857 2004-05-27  Seth Nickell  <seth@gnome.org>
3858
3859         * python/dbus.py:
3860         * python/dbus_bindings.pyx.in:
3861
3862         Fix failure to notify that a signal was not handled,
3863         resulted in hung functions.
3864         
3865 2004-05-25  Colin Walters  <walters@redhat.com>
3866
3867         * tools/dbus-monitor.c (main): Monitor all types of messages.
3868
3869 2004-05-23  Owen Fraser-Green  <owen@discobabe.net>
3870
3871         * mono/Handler.cs, mono/Service.cs: Added UnregisterObject method
3872         which unregisters the object path and disposes the handler.
3873
3874 2004-05-23  Kristian Høgsberg  <krh@redhat.com>
3875  
3876         Patch from Timo Teräs <ext-timo.teras@nokia.com> (#614):
3877          
3878         * dbus/dbus-message.c (dbus_message_iter_get_args_valist): Swap
3879         operands to && so we call dbus_message_iter_next () for the last
3880         argument also.
3881
3882 2004-05-21  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3883
3884         * dbus/dbus-object-tree.c
3885         (_dbus_object_tree_list_registered_unlock, lookup_subtree): return
3886         children even if the requested path isn't registered.
3887         (object_tree_test_iteration): test object_tree_list_registered.
3888
3889         * configure.in: undefine HAVE_ABSTRACT_SOCKETS instead of defining
3890         it to 0.
3891         
3892 2004-05-20  Kristian Høgsberg  <krh@redhat.com>
3893
3894         * doc/TODO: Remove resolved items.
3895
3896         * bus/expirelist.h (struct BusExpireList): remove unused n_items
3897         field.
3898         
3899         * bus/connection.c (bus_connections_expect_reply): Enforce the
3900         per-connection limit on pending replies.
3901         
3902         Patch from Jon Trowbridge <trow@ximian.com>:
3903  
3904         * bus/main.c (setup_reload_pipe): Added.  Creates a pipe and sets
3905         up a watch that triggers a config reload when one end of the pipe
3906         becomes readable.
3907         (signal_handler): Instead of doing the config reload in our SIGHUP
3908         handler, just write to the reload pipe and let the associated
3909         watch handle the reload when control returns to the main loop.
3910  
3911         * bus/driver.c (bus_driver_handle_reload_config): Added.
3912         Implements a ReloadConfig method for requesting a configuration
3913         file reload via the bus driver.
3914  
3915 2004-05-19  Owen Fraser-Green  <owen@discobabe.net>
3916
3917         * HACKING: Updated release instructions concerning the wiki page.
3918
3919 2004-05-18  Kristian Høgsberg  <krh@redhat.com>
3920
3921         * dbus/dbus-auth.c (client_try_next_mechanism): Remove logic to
3922         filter against auth->allowed_mechs; we only add allowed mechs in
3923         record_mechanisms().
3924  
3925         * dbus/dbus-auth-script.c (_dbus_auth_script_run): Add an
3926         ALLOWED_MECHS to auth-script format so we can set the list of
3927         allowed mechanisms.
3928  
3929         * data/auth/client-out-of-mechanisms.auth-script: New test to
3930         check client disconnects when it is out of mechanisms to try.
3931  
3932         * dbus/dbus-auth.c (process_command): Remove check for lines
3933         longer that 1 MB; we only buffer up maximum 16 kB.
3934  
3935         * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
3936         dbus/dbus-auth-script.c, dbus/dbus-auth.c, dbus/dbus-auth.h:
3937         Remove auth state AUTHENTICATED_WITH_UNUSED_BYTES, instead always
3938         assume there might be unused bytes.
3939  
3940         * dbus/dbus-auth.c (_dbus_auth_do_work): Remove check for
3941         client-out-of-mechs, it is handled in process_reject(). Move check
3942         for max failures to send_rejected(), as it's a server-only thing.
3943
3944         * dbus/dbus-auth.c: Factor out protocol reply code into functions
3945         send_auth(), send_data(), send_rejected(), send_error(),
3946         send_ok(), send_begin() and send_cancel().
3947
3948 2004-05-17  Kristian Høgsberg  <krh@redhat.com>
3949
3950         Remove base64 encoding, replace with hex encoding. Original patch
3951         from trow@ximian.com, added error handling.
3952
3953         * dbus/dbus-string.c (_dbus_string_base64_encode)
3954         (_dbus_string_base64_decode): Remove.
3955         (_dbus_string_hex_decode): Add end_return argument so we can
3956         distinguish between OOM and invalid hex encoding.
3957         (_dbus_string_test): Remove base64 tests and add test case for
3958         invalid hex.
3959
3960         * dbus/dbus-keyring.c, dbus/dbus-auth-script.c, dbus/dbus-auth.c:
3961         Replace base64 with hex.
3962
3963         * test/data/auth/invalid-hex-encoding.auth-script: New test case
3964         for invalid hex encoded data in auth protocol.
3965
3966 2004-05-17  Olivier Andrieu  <oliv__a@users.sourceforge.net>
3967
3968         * dbus/dbus-connection.c (check_for_reply_unlocked): plug a memory
3969         leak.
3970
3971 2004-05-15  Owen Fraser-Green  <owen@discobabe.net>
3972
3973         * mono/dbus-sharp.dll.config.in: Added for GAC
3974         * mono/dbus-sharp.snk: Added for GAC
3975         * mono/Assembly.cs.in: Added for GAC
3976         * mono/Makefile.am: Changes for GAC installation        
3977         * configure.in: Added refs for dbus-sharp.dll.config.in and
3978         Assembly.cs.in. More fixes for mono testing
3979         * mono/example/Makefile.am: Changed var to CSC
3980         * Makefile.am: Changed flag name to DBUS_USE_CSC
3981
3982 2004-05-15  Owen Fraser-Green  <owen@discobabe.net>
3983
3984         * mono/Makefile.am: Added SUBDIRS for docs. Changed SUBDIRS order
3985         * mono/doc/*: Added documentation framework
3986         * configure.in: Added monodoc check
3987         * README: Added description of mono configure flags
3988
3989 2004-05-11  John (J5) Palmieri  <johnp@redhat.com>:
3990
3991         * doc/dbus-specification.xml: Added a "Required" column to the 
3992         header fields table and changed the "zero or more" verbage in
3993         the above paragraph to read "The header must contain the required 
3994         named header fields and zero or more of the optional named header 
3995         fields".
3996         * test/data/invalid-messages/*.message: Added the required PATH 
3997         named header field to the tests so that they don't fail on 
3998         'Missing path field'
3999
4000 2004-05-07  John (J5) Palmieri  <johnp@redhat.com>
4001
4002         * python/dbus-bindings.pyx.in: Stopped the bindings from trashing
4003         the stack by implicitly defining variable and parameter types and
4004         removing the hack of defining C pointers as python objects and later
4005         casting them.
4006
4007 2004-05-02  Owen Fraser-Green  <owen@discobabe.net>
4008
4009         * mono/Makefile.am: Removed test-dbus-sharp.exe from all target
4010
4011 2004-05-01  Owen Fraser-Green  <owen@discobabe.net>
4012
4013         * mono/DBusType/Dict.cs: Handle empty dicts
4014         * mono/DBusType/Array.cs: Handle empty arrays
4015         * mono/Arguments.cs: Handle empty arguments
4016
4017 2004-04-30  Owen Fraser-Green  <owen@discobabe.net>
4018
4019         * dbus-sharp.pc.in: Modified to include include Libs and Requires
4020         field
4021
4022 2004-04-25  Kristian Høgsberg  <krh@redhat.com>
4023
4024         * test/data/valid-messages/standard-*.message: Update message
4025         test scripts to new header field names.
4026
4027 2004-04-22  John (J5) Palmieri  <johnp@redhat.com>
4028
4029         * test/break-loader.c (randomly_do_n_things): tracked down buffer
4030         overflow to times_we_did_each_thing array which would chop off the
4031         first character of the failure_dir string. Increased the size of
4032         the array to 7 to reflect the number of random mutation functions
4033         we have.
4034
4035 2004-04-21  Kristian Høgsberg  <krh@redhat.com>
4036
4037         * dbus/dbus-server-unix.c (unix_finalize): Don't unref
4038         unix_server->watch here, it is unreffed in disconnect.
4039         (_dbus_server_new_for_tcp_socket): convert NULL host to
4040         "localhost" here so we don't append NULL to address.
4041         
4042         * dbus/dbus-server.c (_dbus_server_test): Add test case for
4043         various addresses, including tcp with no explicit host.
4044
4045 2004-04-21  Olivier Andrieu  <oliv__a@users.sourceforge.net>
4046
4047         * dbus/dbus-message.c (decode_header_data, decode_string_field):
4048         fix incorrect setting of .name_offset in the HeaderField (it was
4049         off by two bytes, positioned right after the name and typecode)
4050
4051         * bus/bus.c (bus_context_new, bus_context_unref): test before
4052         calling dbus_server_free_data_slot and _dbus_user_database_unref
4053         in case of an error.
4054
4055         * tools/Makefile.am: add $(DBUS_GLIB_TOOL_LIBS), xml libs needed
4056         by libdbus-gtool.
4057
4058 2004-04-19  Kristian Høgsberg  <krh@redhat.com>
4059
4060         * dbus/dbus-transport-unix.c (unix_do_iteration): Rewrite to use
4061         _dbus_poll() instead of select().
4062
4063 2004-04-15  Jon Trowbridge  <trow@ximian.com>
4064
4065         * bus/main.c (signal_handler): Reload the configuration files
4066         on SIGHUP.
4067         (main): Set up our SIGHUP handler.
4068
4069         * bus/bus.c (struct BusContext): Store the config file, user and
4070         fork flag in the BusContext.
4071         (process_config_first_time_only): Added.  Contains the code
4072         (previously in bus_context_new) for setting up the BusContext from
4073         the BusConfigParser that should only be run the first time the
4074         config files are read.
4075         (process_config_every_time): Added.  Contains the code (previously
4076         in bus_context_new) for setting up the BusContext from the
4077         BusConfigParser that should be run every time the config files are
4078         read.
4079         (load_config): Added.  Builds a BusConfigParser from the config
4080         files and passes the resulting structure off to
4081         process_config_first_time_only (assuming this is the first time)
4082         and process_config_every_time.
4083         (bus_context_new): All of the config-related code has been moved
4084         to process_config_first_time_only and process_config_every_time.
4085         Now this function just does the non-config-related initializations
4086         and calls load_config.
4087         (bus_context_reload_config): Added.
4088
4089 2004-04-15  Olivier Andrieu  <oliv__a@users.sourceforge.net>
4090
4091         * bus/driver.c (bus_driver_handle_get_service_owner):
4092         implement a GetServiceOwner method.
4093         * doc/dbus-specification.xml: document it.
4094         * dbus/dbus-errors.h: add a 'ServiceHasNoOwner' error.
4095         
4096         * glib/dbus-gproxy.c (dbus_gproxy_new_for_service_owner):
4097         implement, using the bus GetServiceOwner method.
4098
4099         * test/glib/test-dbus-glib.c:
4100         use dbus_gproxy_new_for_service_owner so that we can receive the
4101         signal. 
4102
4103 2004-04-15  John (J5) Palmieri  <johnp@redhat.com>
4104
4105         * dbus/dbus-internals.c, dbus/dbus-message-builder.c,
4106         dbus/dbus-message.c, dbus/dbus-protocol.h
4107         (DBUS_HEADER_FIELD_SERVICE): renamed DBUS_HEADER_FIELD_DESTINATION
4108
4109         * dbus/dbus-internals.c, dbus/dbus-message-builder.c,
4110         dbus/dbus-message.c, dbus/dbus-protocol.h
4111         (DBUS_HEADER_FIELD_SENDER_SERVICE): renamed DBUS_HEADER_FIELD_SENDER
4112
4113         * dbus/dbus-internals.c (_dbus_header_field_to_string):
4114         DBUS_HEADER_FIELD_DESTINATION resolves to "destination"
4115         DBUS_HEADER_FIELD_SENDER resolves to "sender"
4116
4117         * doc/dbus-specification.xml (Header Fields Table):
4118         s/SERVICE/DESTINATION
4119         s/SENDER_SERVICE/SENDER
4120
4121
4122 2004-04-14  Olivier Andrieu  <oliv__a@users.sourceforge.net>
4123
4124         * test/glib/test-dbus-glib.c (timed_exit): fail the test after
4125         a few seconds.
4126
4127 2004-04-13  Michael Meeks  <michael@ximian.com>
4128
4129         * glib/dbus-gobject.c (handle_introspect): split out
4130         (introspect_properties): this.
4131         (handle_introspect): implement this.
4132
4133         * test/glib/Makefile.am: use the absolute path so the bus
4134         daemon's chdir ("/") doesn't kill us dead.
4135
4136         * configure.in: subst ABSOLUTE_TOP_BUILDDIR
4137
4138 2004-04-12  Jon Trowbridge  <trow@ximian.com>
4139
4140         * bus/config-parser.c (struct BusConfigParser): Added
4141         included_files field.
4142         (seen_include): Added.  Checks whether or not a file has already
4143         been included by any parent BusConfigParser.
4144         (bus_config_parser_new): Copy the parent's included_files.
4145         (include_file): Track which files have been included, and fail on
4146         circular inclusions.
4147         (process_test_valid_subdir): Changed printf to report if we are
4148         testing valid or invalid conf files.
4149         (all_are_equiv): Changed printf to be a bit clearer about
4150         what we are actually doing.
4151         (bus_config_parser_test): Test invalid configuration files.
4152
4153 2004-04-09  Jon Trowbridge  <trow@ximian.com>
4154
4155         * bus/config-parser.c (bus_config_parser_new): Added a 'parent'
4156         argument.  If non-null, the newly-constructed BusConfigParser will
4157         be initialized with the parent's BusLimits instead of the default
4158         values.
4159         (include_file): When including a config file, pass in
4160         the current parser as the parent and then copy the BusLimits
4161         from the included BusConfigParser pack to the current parser.
4162         (process_test_valid_subdir): Renamed from process_test_subdir.
4163         (process_test_equiv_subdir): Added.  Walks through a directory,
4164         descending into each subdirectory and loading the config files
4165         it finds there.  If any subdirectory contains two config files
4166         that don't produce identical BusConfigParser structs, fail.
4167         For now, the BusConfigParser's BusPolicies are not compared.
4168         (bus_config_parser_test): Call both process_test_valid_subdir and
4169         process_test_equiv_subdir.
4170
4171         * bus/config-loader-libxml.c (bus_config_load): Take a parent
4172         argument and pass it along to the call to bus_config_parser_new.
4173         Also made a few small changes to allow this code to compile.
4174
4175         * bus/config-loader-expat.c (bus_config_load): Take a parent
4176         argument and pass it along to the call to bus_config_parser_new.
4177
4178         * bus/bus.c (bus_context_new): Load the config file
4179         with a NULL parent argument.
4180
4181 2004-03-29  Michael Meeks  <michael@ximian.com>
4182
4183         * glib/dbus-gobject.c (introspect_properties): split
4184         out, fix mangled 'while' flow control.
4185         (introspect_signals): implement.
4186         (handle_introspect): update.
4187
4188 2004-03-29  Michael Meeks  <michael@ximian.com>
4189
4190         * glib/dbus-gobject.c (set_object_property): split out / 
4191         re-work, use the property type, and not the message type(!)
4192         (get_object_property): ditto.
4193
4194         * glib/dbus-gvalue.c (dbus_gvalue_demarshal),
4195         (dbus_gvalue_marshal): make this code re-usable, needed
4196         for signals too, also on both proxy and server side.
4197         Re-write for more efficiency / readability.
4198
4199 2004-03-29  Michael Meeks  <michael@ximian.com>
4200
4201         * dbus/dbus-message.c
4202         (dbus_message_new_error_printf): impl.
4203
4204         * dbus/dbus-connection.c
4205         (dbus_connection_unregister_object_path): fix warning.
4206
4207         * configure.in: fix no-mono-installed situation.
4208
4209 2004-03-27  Havoc Pennington  <hp@redhat.com>
4210
4211         Patch from Timo Teräs:
4212         
4213         * tools/dbus-send.c (main): if --print-reply, assume type is
4214         method call; support boolean type args
4215         
4216         * dbus/dbus-connection.c (dbus_connection_send_with_reply): fix a
4217         bunch of memleak and logic bugs
4218         
4219 2004-03-23  Owen Fraser-Green  <owen@discobabe.net>
4220
4221         * mono/Arguments.cs:
4222         * mono/Introspector.cs:
4223         * mono/Handler.cs:
4224         * mono/InterfaceProxy.cs:
4225         * mono/Message.cs
4226         * mono/ProxyBuilder.cs:
4227         * mono/Service.cs:
4228         Added InterfaceProxy class to avoid building proxies for every
4229         object.
4230
4231         * dbus-message.h:
4232         * dbus-message.c (dbus_message_append_args_valist)
4233         (dbus_message_iter_get_object_path)
4234         (dbus_message_iter_get_object_path_array)
4235         (dbus_message_iter_append_object_path)
4236         (dbus_message_iter_append_object_path_array):
4237         Added object_path iter functions to handle OBJECT_PATH arguments
4238         
4239 2004-03-23  Owen Fraser-Green  <owen@discobabe.net>
4240
4241         First checkin of mono bindings.
4242         * configure.in:
4243         * Makefile.am:
4244         Build stuff for the bindings
4245         * dbus-sharp.pc.in: Added for pkgconfig
4246         
4247 2004-03-21  Havoc Pennington  <hp@redhat.com>
4248
4249         * test/test-service.c (main): remove debug spew
4250
4251 2004-03-21  Olivier Andrieu  <oliv__a@users.sourceforge.net>
4252
4253         * dbus/dbus-marshal.c (_dbus_marshal_validate_arg): accept empty
4254         arrays
4255
4256         * dbus/dbus-message.h, bus/dbus-message.c (dbus_message_iter_init)
4257         (dbus_message_iter_init_array_iterator)
4258         (dbus_message_iter_init_dict_iterator): return a dbus_bool_t to
4259         indicate whether the iterator is empty
4260
4261         * dbus/dbus-pending-call.c, dbus/dbus-server.c: silence compiler
4262         warnings
4263
4264 2004-03-19  Havoc Pennington  <hp@redhat.com>
4265
4266         * NEWS: 0.21 updates
4267
4268         * configure.in: 0.21
4269
4270         * doc/Makefile.am: add all XMLTO usage to DBUS_XML_DOCS_ENABLED
4271         
4272         * python/Makefile.am: change to avoid dist of dbus_bindings.c so
4273         you don't need pyrex to make dist
4274
4275         * qt/Makefile.am (libdbus_qt_1_la_SOURCES): add integrator.h to
4276         sources; run moc
4277         
4278 2004-03-18  Richard Hult  <richard@imendio.com>
4279
4280         * dbus/dbus-message.c (dbus_message_get_auto_activation) 
4281         (dbus_message_set_auto_activation): Add doxygen docs.
4282
4283 2004-03-16  Richard Hult  <richard@imendio.com>
4284
4285         * bus/activation.c: (bus_activation_service_created),
4286         (bus_activation_send_pending_auto_activation_messages),
4287         (bus_activation_activate_service):
4288         * bus/activation.h:
4289         * bus/dispatch.c: (bus_dispatch),
4290         (check_nonexistent_service_auto_activation),
4291         (check_service_auto_activated),
4292         (check_segfault_service_auto_activation),
4293         (check_existent_service_auto_activation), (bus_dispatch_test):
4294         * bus/driver.c: (bus_driver_handle_activate_service):
4295         * bus/services.c: (bus_registry_acquire_service):
4296         * dbus/dbus-message.c: (dbus_message_set_auto_activation),
4297         (dbus_message_get_auto_activation):
4298         * dbus/dbus-message.h:
4299         * dbus/dbus-protocol.h: Implement auto-activation.
4300         
4301         * doc/dbus-specification.xml: Add auto-activation to the spec.
4302
4303 2004-03-12  Olivier Andrieu  <oliv__a@users.sourceforge.net>
4304
4305         * dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos):
4306         fix a bug with CUSTOM types.
4307
4308         * dbus/dbus-message.c (message_iter_test, _dbus_message_test): add
4309         a unit test for this bug (used to fail).
4310
4311 2004-03-12  Mikael Hallendal  <micke@imendio.com>
4312
4313         * bus/activation.c:
4314         (babysitter_watch_callback): notify all pending activations waiting for
4315           the same exec that the activation failed.
4316         (bus_activation_activate_service): shortcut the activation if we 
4317           already waiting for the same executable to start up.
4318
4319 2004-03-12  Mikael Hallendal  <micke@imendio.com>
4320
4321         * bus/activation.c: 
4322         - Added service file reloading. 
4323           Each service files directory is kept in an hash table in 
4324           BusActivation and each BusActivationEntry knows what .service-file it
4325           was read from. So when you try to activate a service the bus will 
4326           check if it's been updated, removed or if new .service-files has 
4327           been installed.
4328         - Test code at the bottom for the service file reloading.
4329         * bus/test-main.c: (main):
4330         * bus/test.h:
4331         - added service reloading test.
4332         * dbus/dbus-sysdeps.c: 
4333         * dbus/dbus-sysdeps.h: (_dbus_delete_directory): Added.
4334
4335 2004-03-08  Michael Meeks  <michael@ximian.com>
4336
4337         * dbus/dbus-connection.c (_dbus_connection_block_for_reply): 
4338         bail immediately if disconnected, to avoid busy loop.
4339
4340         * dbus/dbus-message.c (dbus_message_iter_get_args_valist):
4341         cleanup cut/paste/inefficiency.
4342
4343 2004-03-01  David Zeuthen  <david@fubar.dk>
4344
4345         * dbus/dbus-string.c (_dbus_string_append_printf_valist): Fix a
4346         bug where args were used twice. This bug resulted in a segfault
4347         on a Debian/PPC system when starting the messagebus daemon. Include
4348         dbus-sysdeps.h for DBUS_VA_COPY
4349
4350         * dbus/dbus-sysdeps.h: Define DBUS_VA_COPY if neccessary. From GLib
4351
4352         * configure.in: Check for va_copy; define DBUS_VA_COPY to the
4353         appropriate va_copy implementation. From GLib
4354         
4355 2004-02-24  Joe Shaw  <joe@ximian.com>
4356
4357         * bus/services.c (bus_registry_acquire_service): We need to pass
4358         in the service name to dbus_set_error() to prevent a crash.
4359
4360 2003-12-26  Anders Carlsson  <andersca@gnome.org>
4361
4362         * AUTHORS: Reveal my True identity.
4363
4364 2003-12-17  Mikael Hallendal  <micke@imendio.com>
4365
4366         * dbus/dbus-message.c: (dbus_message_append_args_valist): 
4367         - Added case for DBUS_TYPE_BYTE, patch from Johan Hedberg.
4368
4369 2003-12-13  Mikael Hallendal  <micke@imendio.com>
4370
4371         * doc/TODO: Added not about better error check of configuration files.
4372
4373 2003-12-02  Richard Hult  <richard@imendio.com>
4374
4375         * Update AFL version to 2.0 throughout the source files to reflect
4376         the update that was done a while ago.
4377
4378 2003-12-02  Richard Hult  <richard@imendio.com>
4379
4380         * dbus/dbus-message.c (dbus_message_iter_append_dict): Set
4381         wrote_dict_key to FALSE on the iter that the dict is appended to,
4382         just like when appending other types. Fixes a bug where a dict
4383         couldn't be put inside a dict.
4384         (dbus_message_iter_append_dict_key): Fix typo in warning message.
4385         (message_iter_test, _dbus_message_test): Add test case for dict
4386         inside dict.
4387
4388 2003-12-01  David Zeuthen  <david@fubar.dk>
4389
4390         * python/dbus.py: Add the actual message when calling the reciever
4391         of a signal such that parameters can be inspected. Add the method
4392         remove_signal_receiver
4393         
4394 2003-11-26  Mikael Hallendal  <micke@imendio.com>
4395
4396         * bus/*.[ch]:
4397         * dbus/*.[ch]:
4398         * glib/*.[ch]: Made ref functions return the pointer
4399
4400 2003-11-25  Zack Rusin  <zack@kde.org>
4401
4402         * qt/integrator.h, qt/integrator.cpp: Adding handling of DBusServer,
4403
4404         * qt/server.h, qt/server.cpp, qt/Makefile.am: Adding DBusServer 
4405         wrappers,
4406
4407         * qt/connection.h, qt/connection.cpp: Adjusting to changes in 
4408         the Integrator and to better fit with the server,
4409
4410 2003-11-24  Zack Rusin  <zack@kde.org>
4411
4412         * qt/connection.h, qt/connection.cpp: removing initDbus method since
4413         the integrator handles it now
4414
4415         * qt/integrator.h, qt/integrator.cpp: reworking handling of timeouts,
4416         since QTimer wasn't really meant to be used the way DBusTimeout is
4417
4418 2003-11-24  Zack Rusin  <zack@kde.org>
4419
4420         * qt/integrator.h, qt/integrator.cpp, Makefile.am: Adding 
4421         Integrator class which integrates D-BUS with the Qt event loop,
4422
4423         * qt/connection.h, qt/connection.cpp: Move all the code which
4424         was dealing with D-BUS integration to the Integrator class,
4425         and start using Integrator,
4426
4427 2003-11-23  Zack Rusin  <zack@kde.org>
4428
4429         * qt/connection.h, qt/connection.cpp: Adding the DBusConnection 
4430         wrapper
4431
4432         * qt/message.h, qt/message.cpp: updating to the current D-BUS api,
4433         switching namespaces to DBusQt, reworking the class,
4434
4435         * Makefile.cvs: switching dependencies so that it matches KDE 
4436         schematics,
4437         
4438         * qt/Makefile.am: adding connection.{h,cpp} and message.{h,cpp} to 
4439         the library
4440
4441 2003-11-19  Havoc Pennington  <hp@redhat.com>
4442
4443         * NEWS: update
4444
4445         * configure.in: bump version to 0.20
4446
4447         * configure.in (have_qt): add yet another place to look for qt
4448         (someone hand trolltech a .pc file...)
4449
4450 2003-11-01  Havoc Pennington  <hp@redhat.com>
4451
4452         * doc/dbus-specification.xml: add state machine docs on the auth
4453         protocol; just a first draft, I'm sure it's wrong.      
4454
4455 2003-10-28  David Zeuthen  <david@fubar.dk>
4456
4457         * python/dbus_bindings.pyx.in: add get_dict to handle dictionaries
4458         return types. Fixup TYPE_* to reflect changes in dbus/dbus-protocol.h
4459         
4460 2003-10-28  Havoc Pennington  <hp@redhat.com>
4461
4462         * dbus/dbus-message.c (get_next_field): delete unused function
4463
4464 2003-10-28  Havoc Pennington  <hp@redhat.com>
4465
4466         * bus/expirelist.c (do_expiration_with_current_time): detect
4467         failure of the expire_func due to OOM
4468
4469         * bus/connection.c (bus_pending_reply_expired): return FALSE on OOM
4470
4471         * bus/dispatch.c (check_send_exit_to_service): fix to handle the
4472         NoReply error that's now created by the bus when the service exits
4473
4474 2003-10-28  Havoc Pennington  <hp@redhat.com>
4475
4476         * dbus/dbus-message.c (_dbus_message_test): enable and fix the
4477         tests for set_path, set_interface, set_member, etc.
4478
4479         * dbus/dbus-string.c (_dbus_string_insert_bytes): allow 0 bytes
4480
4481         * dbus/dbus-message.c (set_string_field): always just delete and
4482         re-append the field; accept NULL for deletion
4483         (re_align_fields_recurse): reimplement
4484         
4485 2003-10-26  Havoc Pennington  <hp@redhat.com>
4486
4487         * dbus/dbus-connection.c: fix docs to properly describe the
4488         disconnected message
4489         (_dbus_connection_notify_disconnected): remove this function; 
4490         we can't synchronously add the disconnected message, we have to 
4491         do it after we've queued any remaining real messages
4492         (_dbus_connection_get_dispatch_status_unlocked): queue the
4493         disconnect message only if the transport has finished queueing all
4494         its real messages and is disconnected.
4495         (dbus_connection_disconnect): update the dispatch status here
4496
4497 2003-10-22  Havoc Pennington  <hp@redhat.com>
4498
4499         * bus/bus.c (bus_context_check_security_policy): fix up assertion
4500
4501         * bus/connection.c (bus_transaction_send_from_driver): set the
4502         destination to the connection's base service
4503
4504 2003-10-20  Havoc Pennington  <hp@redhat.com>
4505
4506         hmm, make check is currently not passing.
4507         
4508         * doc/dbus-specification.xml: add requirement that custom type
4509         names follow the same rules as interface names.
4510
4511         * dbus/dbus-protocol.h: change some of the byte codes, to avoid
4512         duplication and allow 'c' to be 'custom'; dict is now 'm' for
4513         'map'
4514
4515         * doc/dbus-specification.xml: update type codes to match
4516         dbus-protocol.h, using the ASCII byte values. Rename type NAMED to
4517         CUSTOM. Add type OBJECT_PATH to the spec.
4518
4519 2003-10-17  Havoc Pennington  <hp@redhat.com>
4520
4521         * bus/driver.c (create_unique_client_name): use "." as separator
4522         in base service names instead of '-'
4523
4524         * dbus/dbus-string.c (_dbus_string_get_byte): allow getting nul
4525         byte at the end of the string
4526
4527         * dbus/dbus-internals.h (_DBUS_LIKELY, _DBUS_UNLIKELY): add
4528         optimization macros since string validation seems to be a slow
4529         point.
4530         
4531         * doc/dbus-specification.xml: restrict valid
4532         service/interface/member/error names. Add test suite code for the
4533         name validation.
4534
4535         * dbus/dbus-string.c: limit service/interface/member/error names 
4536         to [0-9][A-Z][a-z]_
4537
4538         * dbus/dbus-connection.c (dbus_connection_dispatch): add missing
4539         format arg to verbose spew
4540
4541         * glib/dbus-gproxy.c (dbus_gproxy_call_no_reply): if not out of
4542         memory, return instead of g_error
4543
4544         * test/test-service.c (path_message_func): support emitting a
4545         signal on request
4546
4547         * dbus/dbus-bus.c (init_connections_unlocked): only fill in
4548         activation bus type if DBUS_BUS_ACTIVATION was set; default to
4549         assuming the activation bus was the session bus so that services
4550         started manually will still register.
4551         (init_connections_unlocked): fix so that in OOM situation we get
4552         the same semantics when retrying the function
4553         
4554         * test/test-service.c (main): change to use path registration, to
4555         test those codepaths; register with DBUS_BUS_ACTIVATION rather
4556         than DBUS_BUS_SESSION
4557
4558 2003-10-16  Havoc Pennington  <hp@redhat.com>
4559
4560         * glib/dbus-gtest-main.c: bracket with #ifdef DBUS_BUILD_TESTS
4561
4562         * Makefile.am (GCOV_DIRS): remove "test", we don't care about test
4563         coverage of the tests
4564         (coverage-report.txt): don't move the .da and .bbg files around
4565
4566 2003-10-16  Havoc Pennington  <hp@redhat.com>
4567
4568         * bus/bus.c (struct BusContext): remove struct field I didn't mean
4569         to put there
4570
4571 2003-10-16  Havoc Pennington  <hp@redhat.com>
4572
4573         * bus/connection.c (bus_pending_reply_expired): either cancel or
4574         execute, not both
4575         (bus_connections_check_reply): use unlink, not remove_link, as we
4576         don't want to free the link; fixes double free mess
4577
4578         * dbus/dbus-pending-call.c (dbus_pending_call_block): fix in case
4579         where no reply was received
4580
4581         * dbus/dbus-connection.c (_dbus_pending_call_complete_and_unlock):
4582         fix a refcount leak
4583
4584         * bus/signals.c (match_rule_matches): add special cases for the
4585         bus driver, so you can match on sender/destination for it.
4586
4587         * dbus/dbus-sysdeps.c (_dbus_abort): print backtrace if
4588         DBUS_PRINT_BACKTRACE is set
4589
4590         * dbus/dbus-internals.c: add pid to assertion failure messages
4591
4592         * dbus/dbus-connection.c: add message type code to the debug spew
4593
4594         * glib/dbus-gproxy.c (gproxy_get_match_rule): match rules want
4595         sender=foo not service=foo
4596
4597         * dbus/dbus-bus.c (dbus_bus_get): if the activation bus is the
4598         session bus but DBUS_SESSION_BUS_ADDRESS isn't set, use 
4599         DBUS_ACTIVATION_ADDRESS instead
4600
4601         * bus/activation.c: set DBUS_SESSION_BUS_ADDRESS,
4602         DBUS_SYSTEM_BUS_ADDRESS if appropriate
4603
4604         * bus/bus.c (bus_context_new): handle OOM copying bus type into
4605         context struct
4606
4607         * dbus/dbus-message.c (dbus_message_iter_get_object_path): new function
4608         (dbus_message_iter_get_object_path_array): new function (half
4609         finished, disabled for the moment)
4610         
4611         * glib/dbus-gproxy.c (dbus_gproxy_end_call): properly handle
4612         DBUS_MESSAGE_TYPE_ERROR
4613
4614         * tools/dbus-launch.c (babysit): support DBUS_DEBUG_OUTPUT to
4615         avoid redirecting stderr to /dev/null
4616         (babysit): close stdin if not doing the "exit_with_session" thing
4617
4618         * dbus/dbus-sysdeps.c (_dbus_become_daemon): delete some leftover
4619         debug code; change DBUS_DEBUG_OUTPUT to only enable stderr, not
4620         stdout/stdin, so things don't get confused
4621         
4622         * bus/system.conf.in: fix to allow replies, I modified .conf
4623         instead of .conf.in again.
4624
4625 2003-10-14  David Zeuthen  <david@fubar.dk>
4626
4627         * python/dbus_bindings.pyx.in (MessageIter.get): fixed typo in
4628         argtype to arg_type when raising unknown arg type exception.
4629         Changed type list to reflect the changes in dbus-protocol.h so 
4630         the bindings actually work.
4631
4632 2003-10-14  Havoc Pennington  <hp@redhat.com>
4633
4634         * test/decode-gcov.c: support gcc 3.3 also, though gcc 3.3 seems
4635         to have a bug keeping it from outputting the .da files sometimes
4636         (string_get_string): don't append garbage nul bytes to the string.
4637
4638 2003-10-15  Seth Nickell  <seth@gnome.org>
4639
4640         * python/Makefile.am:
4641
4642         Include dbus_h_wrapper.h in the dist tarball.
4643
4644 2003-10-14  Havoc Pennington  <hp@redhat.com>
4645
4646         * bus/bus.c (bus_context_check_security_policy): revamp this to
4647         work more sanely with new policy-based requested reply setup
4648
4649         * bus/connection.c (bus_transaction_send_from_driver): set bus
4650         driver messages as no reply
4651
4652         * bus/policy.c (bus_client_policy_check_can_receive): handle a
4653         requested_reply attribute on allow/deny rules
4654
4655         * bus/system.conf: add <allow requested_reply="true"/>
4656
4657         * bus/driver.c (bus_driver_handle_message): fix check for replies
4658         sent to the bus driver, which was backward. How did this ever work
4659         at all though? I think I'm missing something.
4660
4661         * dbus/dbus-message.c (decode_header_data): require error and
4662         method return messages to have a reply serial field to be valid
4663         (_dbus_message_loader_queue_messages): break up this function;
4664         validate that reply serial and plain serial are nonzero; 
4665         clean up the OOM/error handling.
4666         (get_uint_field): don't return -1 from this
4667         (dbus_message_create_header): fix signed/unsigned bug
4668
4669         * bus/connection.c (bus_connections_expect_reply): save serial of
4670         the incoming message, not reply serial
4671
4672 2003-10-14  Havoc Pennington  <hp@redhat.com>
4673
4674         * bus/connection.c: implement pending reply tracking using
4675         BusExpireList
4676
4677         * bus/bus.c (bus_context_check_security_policy): verify that a
4678         reply is pending in order to allow a reply to be sent. Deny 
4679         messages of unknown type.
4680
4681         * bus/dbus-daemon-1.1.in: update to mention new resource limits
4682
4683         * bus/bus.c (bus_context_get_max_replies_per_connection): new
4684         (bus_context_get_reply_timeout): new
4685
4686 2003-10-13  Seth Nickell  <seth@gnome.org>
4687
4688         * python/Makefile.am:
4689
4690         Pass "make distcheck": remove a couple files from DIST_FILES
4691         that weren't included in the final version.
4692
4693 2003-10-12  Havoc Pennington  <hp@pobox.com>
4694
4695         Added test code that 1) starts an actual bus daemon and 2) uses
4696         DBusGProxy; fixed bugs that were revealed by the test. Lots 
4697         more testing possible, but this is the basic framework.
4698         
4699         * glib/dbus-gproxy.c (dbus_gproxy_manager_unregister): remove
4700         empty proxy lists from the proxy list hash
4701
4702         * dbus/dbus-message.c (dbus_message_iter_get_args_valist): add a
4703         couple of return_if_fail checks
4704
4705         * dbus/dbus-pending-call.c (_dbus_pending_call_new): use dbus_new0
4706         to allocate, so everything is cleared to NULL as it should be.
4707
4708         * glib/dbus-gmain.c (dbus_connection_setup_with_g_main): pass
4709         source as data to dbus_connection_set_timeout_functions() as the 
4710         timeout functions expected
4711
4712         * test/glib/run-test.sh: add a little script to start up a message
4713         bus and run tests using it
4714
4715         * tools/dbus-launch.1: updates
4716
4717         * tools/dbus-launch.c (main): add --config-file option
4718
4719         * tools/dbus-launch.c (main): remove confusing else if (runprog)
4720         that could never be reached.
4721
4722         * dbus/dbus-message.c (dbus_message_new_method_return) 
4723         (dbus_message_new_error, dbus_message_new_signal): set the
4724         no-reply-expected flag on all these. Redundant, but may
4725         as well be consistent.
4726
4727 2003-10-11  Havoc Pennington  <hp@pobox.com>
4728
4729         * test/decode-gcov.c (function_solve_graph): make broken block
4730         graph a nonfatal error since it seems to be broken. Need to debug
4731         this.
4732
4733         * dbus/dbus-marshal.c (_dbus_type_is_valid): new function since we
4734         can't just check type > INVALID < LAST anymore
4735
4736         * dbus/dbus-message.c (dbus_message_get_signature): new function
4737         (dbus_message_has_signature): new function
4738         (struct DBusMessage): add signature field (right now it isn't sent
4739         over the wire, just generated on the fly)
4740         (dbus_message_copy): copy the signature, and init strings to
4741         proper length to avoid some reallocs
4742         (dbus_message_iter_init_array_iterator): return void, since it
4743         can't fail
4744         (dbus_message_iter_init_dict_iterator): return void since it can't fail
4745         (_dbus_message_loader_queue_messages): add silly temporary hack to
4746         fill in message->signature on load
4747
4748         * dbus/dbus-protocol.h: change DBUS_TYPE_* values to be ASCII
4749         characters, so they are relatively human-readable.
4750
4751 2003-10-11  Havoc Pennington  <hp@pobox.com>
4752
4753         * dbus/dbus-message.c (_dbus_message_test): add more test
4754         coverage, but #if 0 for now since they uncover a bug 
4755         not fixed yet; I think in re_align_field_recurse()
4756         (re_align_field_recurse): add FIXME about broken assertion
4757
4758         * dbus/dbus-sysdeps.c (_dbus_sysdeps_test): add more test coverage
4759
4760         * bus/connection.c: share a couple code bits with expirelist.c
4761
4762         * bus/expirelist.h, bus/expirelist.c: implement a generic
4763         expire-items-after-N-seconds facility, was going to share between
4764         expiring connections and replies, decided not to use for expiring
4765         connections for now.
4766
4767         * COPYING: include AFL 2.0 (still need to change all the file headers)
4768
4769 2003-10-09  Havoc Pennington  <hp@redhat.com>
4770
4771         * configure.in: define DBUS_HAVE_GCC33_GCOV if we have
4772         gcc 3.3. Not that we do anything about it yet.
4773
4774         * bus/signals.c (bus_match_rule_parse): impose max length on the
4775         match rule text
4776
4777         * dbus/dbus-protocol.h: add DBUS_MAXIMUM_MATCH_RULE_LENGTH
4778
4779 2003-10-09  Havoc Pennington  <hp@redhat.com>
4780
4781         Make matching rules theoretically work (add parser).
4782         
4783         * bus/bus.c (bus_context_check_security_policy): fix up to handle
4784         the case where destination is explicitly specified as bus driver
4785         and someone else is eavesdropping.
4786         
4787         * bus/policy.c (bus_client_policy_check_can_receive): fix up
4788         definition of eavesdropping and assertion
4789
4790         * tools/dbus-send.c (main): use dbus_message_type_from_string
4791
4792         * bus/signals.c (bus_match_rule_parse): implement
4793
4794         * dbus/dbus-message.c (dbus_message_type_from_string): new
4795
4796         * dbus/dbus-errors.h (DBUS_ERROR_MATCH_RULE_INVALID): add
4797
4798 2003-10-02  Havoc Pennington  <hp@pobox.com>
4799
4800         * glib/dbus-gproxy.c (dbus_gproxy_call_no_reply): rename from
4801         dbus_gproxy_oneway_call
4802
4803         * glib/dbus-gmain.c (dbus_connection_setup_with_g_main) 
4804         (dbus_server_setup_with_g_main): fix to allow calling them more
4805         than once on the same args
4806         (dbus_bus_get_with_g_main): new function
4807
4808 2003-10-02  Havoc Pennington  <hp@redhat.com>
4809
4810         * doc/dbus-tutorial.xml: write some stuff
4811
4812 2003-09-29  Havoc Pennington  <hp@pobox.com>
4813
4814         * configure.in: split checks for Doxygen from XML docs, check for
4815         xmlto
4816
4817         * doc/Makefile.am: XML-ify all the docs, and add a blank
4818         dbus-tutorial.xml
4819
4820 2003-09-29  Havoc Pennington  <hp@pobox.com>
4821
4822         * Merge dbus-object-names branch. To see the entire patch 
4823         do cvs diff -r DBUS_OBJECT_NAMES_BRANCHPOINT -r dbus-object-names,
4824         it's huuuuge though.
4825         To revert, I tagged DBUS_BEFORE_OBJECT_NAMES_MERGE.
4826         
4827 2003-09-28  Havoc Pennington  <hp@pobox.com>
4828
4829         * HACKING: update to reflect new server
4830
4831 2003-09-26  Seth Nickell  <seth@gnome.org>
4832
4833         * python/dbus.py:
4834         * python/examples/example-signals.py:
4835
4836         Start implementing some notions of signals. The API
4837         is really terrible, but they sort of work (with the
4838         exception of being able to filter by service, and to
4839         transmit signals *as* a particular service). Need to
4840         figure out how to make messages come from the service
4841         we registered :-(
4842         
4843         * python/dbus_bindings.pyx.in:
4844
4845         Removed duplicate message_handler callbacks.
4846         
4847 2003-09-25  Havoc Pennington  <hp@redhat.com>
4848
4849         * bus/session.conf.in: fix my mess
4850
4851 2003-09-25  Havoc Pennington  <hp@pobox.com>
4852
4853         * bus/session.conf.in: fix security policy, reported by Seth Nickell
4854
4855 2003-09-25  Seth Nickell  <seth@gnome.org>
4856
4857         * python/examples/example-service.py:
4858
4859         Johan notices complete wrong code in example-service, but
4860         completely wrong in a way that works exactly the same (!).
4861         Johan is confused, how could this possibly work? Example
4862         code fails to serve purpose of making things clear.
4863         Seth fixes.
4864
4865 2003-09-25  Mark McLoughlin  <mark@skynet.ie>
4866
4867         * doc/dbus-specification.sgml: don't require header fields
4868         to be 4-byte aligned and specify that fields should be
4869         distinguished from padding by the fact that zero is not
4870         a valid field name.
4871         
4872         * doc/TODO: remove re-alignment item and add item to doc
4873         the OBJECT_PATH type.
4874         
4875         * dbus/dbus-message.c:
4876         (HeaderField): rename the original member to value_offset
4877         and introduce a name_offset member to keep track of where
4878         the field actually begins.
4879         (adjust_field_offsets): remove.
4880         (append_int_field), (append_uint_field),
4881         (append_string_field): don't align the start of the header
4882         field to a 4-byte boundary.
4883         (get_next_field): impl finding the next marhsalled field
4884         after a given field.
4885         (re_align_field_recurse): impl re-aligning a number of
4886         already marshalled fields.
4887         (delete_field): impl deleting a field of any type and
4888         re-aligning any following fields.
4889         (delete_int_or_uint_field), (delete_string_field): remove.
4890         (set_int_field), (set_uint_field): no need to re-check
4891         that we have the correct type for the field.
4892         (set_string_field): ditto and impl re-aligning any
4893         following fields.
4894         (decode_header_data): update to take into account that
4895         the fields aren't 4-byte aligned any more and the new
4896         way to distinguish padding from header fields. Also,
4897         don't exit when there is too much header padding.
4898         (process_test_subdir): print the directory.
4899         (_dbus_message_test): add test to make sure a following
4900         field is re-aligned correctly after field deletion.
4901         
4902         * dbus/dbus-string.[ch]:
4903         (_dbus_string_insert_bytes): rename from insert_byte and
4904         allow the insert of multiple bytes.
4905         (_dbus_string_test): test inserting multiple bytes.
4906
4907         * dbus/dbus-marshal.c: (_dbus_marshal_set_string): add
4908         warning note to docs about having to re-align any
4909         marshalled values following the string.
4910         
4911         * dbus/dbus-message-builder.c:
4912         (append_string_field), (_dbus_message_data_load):
4913         don't align the header field.
4914         
4915         * dbus/dbus-auth.c: (process_test_subdir): print the
4916         directory.
4917         
4918         * test/break-loader.c: (randomly_add_one_byte): upd. for
4919         insert_byte change.
4920         
4921         * test/data/invalid-messages/bad-header-field-alignment.message:
4922         new test case.
4923         
4924         * test/data/valid-messages/unknown-header-field.message: shove
4925         a dict in the unknown field.
4926
4927 2003-09-25  Seth Nickell  <seth@gnome.org>
4928
4929         * python/dbus.py:
4930         * python/dbus_bindings.pyx.in:
4931
4932         Handle return values.
4933         
4934         * python/examples/example-client.py:
4935         * python/examples/example-service.py:
4936
4937         Pass back return values from the service to the client.
4938         
4939 2003-09-24  Seth Nickell  <seth@gnome.org>
4940
4941         * python/dbus.py:
4942
4943         Connect Object methods (when you are sharing an object) up... pass
4944         in a list of methods to be shared. Sharing all the methods just
4945         worked out too weird. You can now create nice Services over the
4946         DBus in Python. :-)
4947         
4948         * python/dbus_bindings.pyx.in:
4949
4950         Keep references to user_data tuples passed into C functions so 
4951         Python doesn't garbage collect on us.
4952
4953         Implement MethodReturn and Error subclasses of Message for creating
4954         DBusMessage's of those types.
4955         
4956         * python/examples/example-client.py:
4957         * python/examples/example-service.py:
4958
4959         Simple example code showing both how create DBus services and objects,
4960         and how to use them.
4961
4962 2003-09-23  Havoc Pennington  <hp@pobox.com>
4963
4964         * glib/dbus-gproxy.c (dbus_gproxy_manager_filter): implement
4965
4966 2003-09-23  Havoc Pennington  <hp@redhat.com>
4967
4968         * glib/dbus-gproxy.c (dbus_gproxy_connect_signal): implement
4969         (dbus_gproxy_disconnect_signal): implement
4970         (dbus_gproxy_manager_remove_signal_match): implement
4971         (dbus_gproxy_manager_add_signal_match): implement
4972         (dbus_gproxy_oneway_call): implement
4973
4974 2003-09-23  Havoc Pennington  <hp@pobox.com>
4975
4976         * glib/dbus-gproxy.c (struct DBusGProxy): convert to a GObject
4977         subclass. This means dropping the transparent thread safety of the
4978         proxy; you now need a separate proxy per-thread, or your own
4979         locking on the proxy. Probably right anyway.
4980         (dbus_gproxy_ref, dbus_gproxy_unref): nuke, just use g_object_ref
4981
4982 2003-09-22  Havoc Pennington  <hp@redhat.com>
4983
4984         * glib/dbus-gproxy.c (dbus_gproxy_manager_get): implement
4985
4986 2003-09-21  Seth Nickell  <seth@gnome.org>
4987
4988         First checkin of the Python bindings.
4989         
4990         * python/.cvsignore:
4991         * python/Makefile.am:
4992         * python/dbus_bindings.pyx.in:
4993         * python/dbus_h_wrapper.h:
4994
4995         Pieces for Pyrex to operate on, building a dbus_bindings.so
4996         python module for low-level access to the DBus APIs.
4997         
4998         * python/dbus.py:
4999
5000         High-level Python module for accessing DBus objects.
5001
5002         * configure.in:
5003         * Makefile.am:
5004
5005         Build stuff for the python bindings.
5006
5007         * acinclude.m4:
5008
5009         Extra macro needed for finding the Python C header files.
5010
5011 2003-09-21  Havoc Pennington  <hp@pobox.com>
5012
5013         * glib/dbus-gproxy.c (dbus_gproxy_manager_new): start
5014         implementing the proxy manager, didn't get very far.
5015
5016         * dbus/dbus-bus.c (dbus_bus_add_match): new
5017         (dbus_bus_remove_match): new
5018
5019         * glib/dbus-gproxy.c (dbus_gproxy_new_for_service): add a
5020         path_name argument; adjust the other not-yet-implemented 
5021         gproxy constructors to be what I think they should be.
5022
5023 2003-09-21  Havoc Pennington  <hp@pobox.com>
5024
5025         * dbus/dbus-bus.c (dbus_bus_get): set exit_on_disconnect to TRUE
5026         by default for message bus connections.
5027
5028         * dbus/dbus-connection.c (dbus_connection_dispatch): exit if
5029         exit_on_disconnect flag is set and we process the disconnected
5030         signal.
5031         (dbus_connection_set_exit_on_disconnect): new function
5032
5033 2003-09-21  Havoc Pennington  <hp@pobox.com>
5034
5035         Get matching rules mostly working in the bus; only actually
5036         parsing the rule text remains. However, the client side of
5037         "signal connections" hasn't been started, this patch is only the
5038         bus side.
5039         
5040         * dbus/dispatch.c: fix for the matching rules changes
5041         
5042         * bus/driver.c (bus_driver_handle_remove_match)
5043         (bus_driver_handle_add_match): send an ack reply from these
5044         method calls
5045
5046         * glib/dbus-gproxy.c (dbus_gproxy_begin_call): fix order of
5047         arguments, reported by Seth Nickell
5048
5049         * bus/config-parser.c (append_rule_from_element): support
5050         eavesdrop=true|false attribute on policies so match rules 
5051         can be prevented from snooping on the system bus.
5052
5053         * bus/dbus-daemon-1.1.in: consistently use terminology "sender"
5054         and "destination" in attribute names; fix some docs bugs; 
5055         add eavesdrop=true|false attribute
5056
5057         * bus/driver.c (bus_driver_handle_add_match)
5058         (bus_driver_handle_remove_match): handle AddMatch, RemoveMatch
5059         messages
5060
5061         * dbus/dbus-protocol.h (DBUS_SERVICE_ORG_FREEDESKTOP_BROADCAST): get
5062         rid of broadcast service concept, signals are just always broadcast
5063
5064         * bus/signals.c, bus/dispatch.c, bus/connection.c, bus/bus.c:
5065         mostly implement matching rules stuff (currently only exposed as signal
5066         connections)
5067
5068 2003-09-21  Mark McLoughlin  <mark@skynet.ie>
5069
5070         * doc/dbus-specification.sgml: Change the header field name
5071         to be an enum and update the rest of the spec to reference
5072         the fields using the conventinal name.
5073
5074         * dbus/dbus-protocol.h: update to reflect the spec.
5075
5076         * doc/TODO: add item to remove the 4 byte alignment requirement.
5077         
5078         * dbus/dbus-message.c: Remove the code to generalise the
5079         header/body length and serial number header fields as named
5080         header fields so we can reference field names using the 
5081         protocol values.
5082         (append_int_field), (append_uint_field), (append_string_field):
5083         Append the field name as a byte rather than four chars.
5084         (delete_int_or_uint_field), (delete_string_field): reflect the
5085         fact that the field name and typecode now occupy 4 bytes instead
5086         of 8.
5087         (decode_string_field), (decode_header_data): update to reflect
5088         protocol changes and move the field specific encoding from
5089         decode_string_field() back into decode_header_data().
5090         
5091         * dbus/dbus-internals.[ch]: (_dbus_header_field_to_string):
5092         Add utility to aid debugging.
5093         
5094         * dbus/dbus-message-builder.c:
5095         (append_string_field), (_dbus_message_data_load): Update to
5096         reflect protocol changes; Change the FIELD_NAME directive
5097         to HEADER_FIELD and allow it to take the field's conventional
5098         name rather than the actual value.
5099         
5100         * test/data/*/*.message: Update to use HEADER_FIELD instead
5101         of FIELD_NAME; Always align the header on an 8 byte boundary
5102         *before* updating the header length.
5103
5104 2003-09-15  Havoc Pennington  <hp@pobox.com>
5105
5106         * dbus/dbus-pending-call.c: add the get/set object data
5107         boilerplate as for DBusConnection, etc. Use generic object data
5108         for the notify callback.
5109
5110         * glib/dbus-gparser.c (parse_node): parse child nodes
5111
5112         * tools/dbus-viewer.c: more hacking on the dbus-viewer
5113         
5114         * glib/dbus-gutils.c (_dbus_gutils_split_path): add a file to
5115         contain functions shared between the convenience lib and the
5116         installed lib
5117
5118         * glib/Makefile.am (libdbus_glib_1_la_LDFLAGS): add
5119         -export-symbols-regex to the GLib library
5120
5121         * dbus/dbus-object-tree.c (_dbus_object_tree_dispatch_and_unlock):
5122         fix the locking in here, and add a default handler for
5123         Introspect() that just returns sub-nodes.
5124
5125 2003-09-14  Havoc Pennington  <hp@pobox.com>
5126
5127         * glib/dbus-gthread.c (dbus_g_thread_init): rename to make g_foo
5128         rather than gfoo consistent
5129
5130         * glib/dbus-gproxy.h: delete for now, move contents to
5131         dbus-glib.h, because the include files don't work right since we
5132         aren't in the dbus/ subdir.
5133         
5134         * glib/dbus-gproxy.c (dbus_gproxy_send): finish implementing
5135         (dbus_gproxy_end_call): finish
5136         (dbus_gproxy_begin_call): finish
5137
5138         * glib/dbus-gmain.c (dbus_set_g_error): new
5139
5140         * glib/dbus-gobject.c (handle_introspect): include information
5141         about child nodes in the introspection
5142
5143         * dbus/dbus-connection.c (dbus_connection_list_registered): new
5144         function to help in implementation of introspection
5145
5146         * dbus/dbus-object-tree.c
5147         (_dbus_object_tree_list_registered_and_unlock): new function
5148
5149 2003-09-12  Havoc Pennington  <hp@pobox.com>
5150
5151         * glib/dbus-gidl.h: add common base class for all the foo_info
5152         types
5153
5154         * tools/dbus-viewer.c: add GTK-based introspection UI thingy
5155         similar to kdcop
5156
5157         * test/Makefile.am: try test srcdir -ef . in addition to test
5158         srcdir = ., one of them should work (yeah lame)
5159         
5160         * glib/Makefile.am: build the "idl" parser stuff as a convenience
5161         library
5162         
5163         * glib/dbus-gparser.h: make description_load routines return
5164         NodeInfo* not Parser*
5165
5166         * Makefile.am (SUBDIRS): build test dir after all library dirs
5167
5168         * configure.in: add GTK+ detection
5169
5170 2003-09-07  Havoc Pennington  <hp@pobox.com>
5171
5172         * Make Doxygen contented.
5173
5174 2003-09-07  Havoc Pennington  <hp@pobox.com>
5175
5176         * doc/dbus-specification.sgml: more updates
5177
5178 2003-09-06  Havoc Pennington  <hp@pobox.com>
5179
5180         * doc/dbus-specification.sgml: partial updates
5181
5182         * bus/dbus-daemon-1.1.in: fix the config file docs for the
5183         zillionth time; hopefully I edited the right file this time.
5184
5185         * bus/config-parser.c (append_rule_from_element): support
5186         send_type, send_path, receive_type, receive_path
5187
5188         * bus/policy.c: add message type and path to the list of things
5189         that can be "firewalled"
5190
5191 2003-09-06  Havoc Pennington  <hp@pobox.com>
5192
5193         * dbus/dbus-connection.c (dbus_connection_register_fallback): add this
5194         (dbus_connection_register_object_path): make this not handle
5195         messages to paths below the given path
5196
5197 2003-09-03  Havoc Pennington  <hp@pobox.com>
5198
5199         * test/glib/Makefile.am: add this with random glib-linked test
5200         programs
5201
5202         * glib/Makefile.am: remove the random test programs from here,
5203         leave only the unit tests
5204
5205         * glib/dbus-gobject.c (_dbus_gobject_test): add test for 
5206         uscore/javacaps conversion, and fix     
5207         (get_object_property, set_object_property): change to .NET
5208         convention for mapping props to methods, set_FooBar/get_FooBar, 
5209         since one language has such a convention we may as well copy it. 
5210         Plus real methods in either getFooBar or get_foo_bar style won't 
5211         collide with this convention.
5212
5213 2003-09-01  Havoc Pennington  <hp@pobox.com>
5214
5215         * glib/dbus-gparser.c: implement
5216
5217         * glib/dbus-gobject.c: start implementing skeletons support
5218
5219         * configure.in: when disabling checks/assert, also define
5220         G_DISABLE_ASSERT and G_DISABLE_CHECKS
5221
5222 2003-09-01  Havoc Pennington  <hp@pobox.com>
5223
5224         * glib/Makefile.am: rearrange a bunch of files and get "make
5225         check" framework set up
5226
5227 2003-08-31  Havoc Pennington  <hp@pobox.com>
5228
5229         * fix build with --disable-tests
5230
5231 2003-08-30  Havoc Pennington  <hp@pobox.com>
5232
5233         * dbus/dbus-connection.c: purge DBusMessageHandler
5234
5235         * dbus/dbus-message-handler.c: remove DBusMessageHandler, just 
5236         use callbacks everywhere
5237
5238 2003-08-30  Havoc Pennington  <hp@pobox.com>
5239
5240         * test/data/valid-config-files/system.d/test.conf: change to 
5241         root for the user so warnings don't get printed
5242
5243         * dbus/dbus-message.c: add dbus_message_get_path,
5244         dbus_message_set_path
5245         
5246         * dbus/dbus-object-tree.c (do_test_dispatch): add test of
5247         dispatching to a path
5248
5249         * dbus/dbus-string.c (_dbus_string_validate_path): add
5250
5251         * dbus/dbus-marshal.c (_dbus_demarshal_object_path): implement
5252         (_dbus_marshal_object_path): implement
5253
5254         * dbus/dbus-protocol.h (DBUS_HEADER_FIELD_PATH): new header field 
5255         to contain the path to the target object
5256         (DBUS_HEADER_FIELD_SENDER_SERVICE): rename
5257         DBUS_HEADER_FIELD_SENDER to explicitly say it's the sender service
5258
5259 2003-08-30  Havoc Pennington  <hp@pobox.com>
5260
5261         * dbus/dbus-object-tree.c: write tests and fix the discovered bugs
5262
5263 2003-08-29  Havoc Pennington  <hp@pobox.com>
5264
5265         * dbus/dbus-object-tree.c: modify to allow overlapping paths to be
5266         registered
5267         (struct DBusObjectSubtree): shrink this
5268         a lot, since we may have a lot of them
5269         (_dbus_object_tree_free_all_unlocked): implement
5270         (_dbus_object_tree_dispatch_and_unlock): implement
5271
5272 2003-08-29  Havoc Pennington  <hp@pobox.com>
5273
5274         * dbus/dbus-internals.h: fix _DBUS_N_GLOBAL_LOCKS
5275
5276 2003-08-28  Havoc Pennington  <hp@pobox.com>
5277
5278         purge DBusObjectID
5279         
5280         * dbus/dbus-connection.c: port to no ObjectID, create a
5281         DBusObjectTree, rename ObjectTree to ObjectPath in public API
5282
5283         * dbus/dbus-connection.h (struct DBusObjectTreeVTable): delete 
5284         everything except UnregisterFunction and MessageFunction
5285         
5286         * dbus/dbus-marshal.c: port away from DBusObjectID, 
5287         add DBUS_TYPE_OBJECT_PATH
5288         
5289         * dbus/dbus-object-registry.[hc], dbus/dbus-object.[hc], 
5290         dbus/dbus-objectid.[hc]: remove these, we are moving to 
5291         path-based object IDs
5292
5293 2003-08-25  Havoc Pennington  <hp@pobox.com>
5294
5295         Just noticed that dbus_message_test is hosed, I wonder when I
5296         broke that. I thought make check was passing earlier...
5297         
5298         * dbus/dbus-object-tree.c: add new "object tree" to match DCOP 
5299         container tree, will replace most of dbus-object-registry
5300
5301         * dbus/dbus-string.c (_dbus_string_append_printf_valist): fix C99
5302         screwup
5303
5304 2003-08-19  Havoc Pennington  <hp@pobox.com>
5305
5306         * dbus/dbus-message.c (decode_string_field): support FIELD_SENDER
5307         (dbus_message_is_error): fix this function
5308
5309         * bus/dbus-daemon-1.1: clarify logic on when <deny>/<allow> rules
5310         match
5311
5312         * bus/policy.c (bus_client_policy_check_can_receive): fix code to
5313         reflect clarified man page
5314         (bus_client_policy_check_can_send): ditto
5315         
5316         * bus/session.conf.in: fixup
5317
5318         * bus/system.conf.in: fixup
5319
5320 2003-08-18  Havoc Pennington  <hp@redhat.com>
5321
5322         * dbus/dbus-hash.c (_dbus_hash_table_insert_two_strings): fix
5323
5324         * dbus/dbus-message.c (_dbus_message_loader_queue_messages): fix
5325         dumb bug created earlier (wrong order of args to
5326         decode_header_data())
5327         
5328         * tools/dbus-send.c: port
5329
5330         * tools/dbus-print-message.c (print_message): port
5331
5332         * test/data/*messages: port all messages over
5333         
5334         * dbus/dbus-message-builder.c: support including 
5335         message type
5336         
5337         * bus/driver.c: port over
5338         
5339         * bus/dispatch.c: port over to new stuff
5340
5341         * dbus/dbus-connection.c (_dbus_connection_new_for_transport):
5342         rename disconnect signal to "Disconnected"
5343
5344 2003-08-17  Havoc Pennington  <hp@pobox.com>
5345
5346         This doesn't compile yet, but syncing up so I can hack on it from
5347         work. What are branches for if not broken code? ;-)
5348         
5349         * dbus/dbus-protocol.h: remove DBUS_HEADER_FIELD_NAME, add
5350         DBUS_HEADER_FIELD_INTERFACE, DBUS_HEADER_FIELD_MEMBER,
5351         DBUS_HEADER_FIELD_ERROR_NAME
5352         
5353         * dbus/dbus-hash.c: Introduce DBUS_HASH_TWO_STRINGS as hack to use
5354         for the interface+member pairs
5355         (string_hash): change to use g_str_hash algorithm
5356         (find_direct_function, find_string_function): refactor these to
5357         share most code.
5358         
5359         * dbus/dbus-message.c: port all of this over to support 
5360         interface/member fields instead of name field
5361
5362         * dbus/dbus-object-registry.c: port over
5363         
5364         * dbus/dbus-string.c (_dbus_string_validate_interface): rename
5365         from _dbus_string_validate_name
5366
5367         * bus/dbus-daemon-1.1: change file format for the 
5368         <deny>/<allow> stuff to match new message naming scheme
5369
5370         * bus/policy.c: port over
5371
5372         * bus/config-parser.c: parse new format
5373         
5374 2003-08-16  Havoc Pennington  <hp@pobox.com>
5375
5376         * dbus/dbus-object-registry.c (add_and_remove_objects): remove
5377         broken assertion
5378
5379         * glib/dbus-gproxy.c: some hacking
5380
5381 2003-08-15  Havoc Pennington  <hp@redhat.com>
5382
5383         * dbus/dbus-pending-call.c (dbus_pending_call_block): implement
5384
5385         * dbus/dbus-connection.c
5386         (dbus_connection_send_with_reply_and_block): factor out internals;
5387         change to convert any error replies to DBusError instead of 
5388         returning them as a message
5389
5390 2003-08-15  Havoc Pennington  <hp@pobox.com>
5391
5392         * dbus/dbus-connection.c, 
5393         dbus/dbus-pending-call.c: Finish the pending call stuff
5394
5395 2003-08-14  Havoc Pennington  <hp@redhat.com>
5396
5397         * dbus/dbus-pending-call.c: start on new object that will replace
5398         DBusMessageHandler and ReplyHandlerData for tracking outstanding
5399         replies
5400
5401         * dbus/dbus-gproxy.c: start on proxy object used to communicate
5402         with remote interfaces
5403
5404         * dbus/dbus-gidl.c: do the boring boilerplate in here
5405         
5406 2003-08-12  Havoc Pennington  <hp@pobox.com>
5407
5408         * bus/dispatch.c (bus_dispatch): make this return proper 
5409         DBusHandlerResult to avoid DBUS_ERROR_UNKNOWN_METHOD
5410
5411         * dbus/dbus-errors.c (dbus_set_error): use
5412         _dbus_string_append_printf_valist
5413
5414         * dbus/dbus-string.c (_dbus_string_append_printf_valist)
5415         (_dbus_string_append_printf): new
5416
5417         * dbus/dbus-errors.h (DBUS_ERROR_UNKNOWN_MESSAGE): change to
5418         UNKNOWN_METHOD
5419
5420         * dbus/dbus-connection.c (dbus_connection_dispatch): handle
5421         DBUS_HANDLER_RESULT_NEED_MEMORY; send default error reply if a
5422         message is unhandled.
5423
5424 2003-08-11  Havoc Pennington  <hp@pobox.com>
5425
5426         * bus/test.c (client_disconnect_handler): change to return
5427         HANDLED (would have been REMOVE_MESSAGE)
5428
5429         * dbus/dbus-object.h (enum DBusHandlerResult): rename to
5430         HANDLED/NOT_YET_HANDLED instead of
5431         REMOVE_MESSAGE/ALLOW_MORE_HANDLERS to make it clearer how it 
5432         should be used.
5433
5434 2003-08-10  Havoc Pennington  <hp@pobox.com>
5435
5436         * tools/dbus-send.c (main): add --type argument, for now
5437         supporting only method_call and signal types.
5438
5439         * tools/dbus-print-message.c: print message type
5440
5441         * dbus/dbus-connection.c (_dbus_connection_new_for_transport):
5442         init connection->objects
5443
5444         * doc/dbus-specification.sgml: fix sgml
5445
5446         * bus/*.c: port over to object-instance API changes
5447
5448         * test/test-service.c: ditto
5449         
5450         * dbus/dbus-message.c (dbus_message_create_header): allow #NULL
5451         name, we will have to fix up the rest of the code to also handle
5452         this
5453         (dbus_message_new): generic message-creation call
5454         (set_string_field): allow appending name field
5455
5456 2003-08-06  Havoc Pennington  <hp@pobox.com>
5457
5458         * dbus/dbus-object-registry.c: implement signal connection 
5459         and dispatch
5460
5461         * dbus/dbus-connection.c (_dbus_connection_unref_unlocked): new
5462
5463         * dbus/dbus-internals.c (_dbus_memdup): new function
5464
5465 2003-08-02  Havoc Pennington  <hp@pobox.com>
5466
5467         * dbus/dbus-message.c (dbus_message_get_no_reply)
5468         (dbus_message_set_no_reply): add these and remove
5469         set_is_error/get_is_error
5470
5471         * dbus/dbus-protocol.h, doc/dbus-specification.sgml: 
5472         remove the ERROR flag, since there's now an ERROR type
5473
5474 2003-08-01  Havoc Pennington  <hp@pobox.com>
5475
5476         * dbus/dbus-object-registry.c (_dbus_object_registry_handle_and_unlock):
5477         implement
5478
5479         * dbus/dbus-message.c (dbus_message_get_type): new function
5480
5481         * doc/dbus-specification.sgml: add "type" byte to messages
5482
5483 2003-08-01  Havoc Pennington  <hp@pobox.com>
5484
5485         * dbus/dbus-protocol.h (DBUS_MESSAGE_TYPE_*): introduce
5486         a message type enum to distinguish kinds of message
5487         (DBUS_HEADER_FLAG_NO_REPLY_EXPECTED): flag for a message 
5488         that need not be replied to
5489
5490 2003-08-01  Havoc Pennington  <hp@pobox.com>
5491
5492         * dbus/dbus-marshal.c: adapt to DBusObjectID changes
5493         (unpack_8_octets): fix no-64-bit-int bug
5494
5495         * dbus/dbus-object-registry.c (validate_id): validate the 
5496         connection ID bits, not just the instance ID.
5497
5498         * dbus/dbus-connection.c (_dbus_connection_init_id): initialize
5499         the connection-global 33 bits of the object ID
5500
5501         * dbus/dbus-object-registry.c (info_from_entry): fill in 
5502         object ID in the new way
5503
5504         * dbus/dbus-objectid.h: rather than high/low bits, specifically 
5505         define server/client/instance bits.
5506
5507 2003-07-30  Havoc Pennington  <hp@pobox.com>
5508
5509         * dbus/dbus-connection.c (dbus_connection_register_object): fix
5510         build
5511
5512 2003-07-13  Havoc Pennington  <hp@pobox.com>
5513
5514         * dbus/dbus-object.h (struct DBusObjectVTable): add padding
5515         fields to DBusObjectVTable and DBusObjectInfo
5516
5517 2003-07-12  Havoc Pennington  <hp@pobox.com>
5518
5519         * dbus/dbus-object-registry.c: implement unit test,
5520         fix bugs discovered in process
5521
5522         * dbus/dbus-connection.c: remove handler_table and
5523         register_handler(), add DBusObjectRegistry usage
5524
5525         * dbus/dbus-objectid.c (dbus_object_id_is_null)
5526         (dbus_object_id_set_null): new functions
5527
5528 2003-07-08  Havoc Pennington  <hp@pobox.com>
5529
5530         * dbus/dbus-object.c: implement some of this
5531
5532         * dbus/dbus-object-registry.c
5533         (_dbus_object_registry_add_and_unlock): fill in the object_id out
5534         param
5535         (_dbus_object_registry_new): handle OOM
5536
5537 2003-07-08  Havoc Pennington  <hp@pobox.com>
5538
5539         * dbus/dbus-object.h: sketch out an API for registering objects
5540         with a connection, that allows us to use as little as 24 bytes
5541         per object and lets application code represent an object in 
5542         any conceivable way.
5543
5544         * dbus/dbus-object-registry.c: implement the hard bits of the
5545         DBusConnection aspect of object API. Not yet wired up.
5546         
5547 2003-07-06  Havoc Pennington  <hp@pobox.com>
5548
5549         * dbus/dbus-marshal.c (_dbus_marshal_set_object_id): new function
5550         (_dbus_marshal_object_id): new
5551         (_dbus_demarshal_object_id): new
5552         (_dbus_marshal_get_arg_end_pos): support object ID type, and
5553         consolidate identical switch cases. Don't conditionalize handling
5554         of DBUS_TYPE_UINT64, need to handle the type always.
5555         (_dbus_marshal_validate_arg): consolidate identical cases, and
5556         handle DBUS_TYPE_OBJECT_ID
5557
5558         * dbus/dbus-objectid.c: new file with DBusObjectID data type.
5559
5560         * dbus/dbus-protocol.h: add DBUS_TYPE_OBJECT_ID
5561
5562 2003-09-28  Havoc Pennington  <hp@pobox.com>
5563
5564         * real 0.13 release
5565
5566 2003-09-28  Havoc Pennington  <hp@pobox.com>
5567
5568         * doc/Makefile.am (dbus-specification.html): testing a funky hack
5569         to work with Debian db2html
5570
5571 2003-09-28  Havoc Pennington  <hp@pobox.com>
5572
5573         * configure.in: 0.13
5574
5575         * doc/Makefile.am (dbus-test-plan.html): accept nonexistence of
5576         stylesheet-images for benefit of Debian
5577         
5578         Change back to using filesystem-linked sockets for the system
5579         bus, so only root can create the default system bus address.
5580         
5581         * bus/system.conf.in: change to use
5582         DBUS_SYSTEM_BUS_DEFAULT_ADDRESS
5583
5584         * dbus/Makefile.am (INCLUDES): remove DBUS_SYSTEM_BUS_PATH define
5585         from here.
5586
5587         * configure.in: define DBUS_SYSTEM_BUS_DEFAULT_ADDRESS
5588         here, and AC_DEFINE DBUS_SYSTEM_PATH
5589
5590 2003-08-09  Anders Carlsson  <andersca@codefactory.se>
5591
5592         * doc/TODO:
5593         * doc/busconfig.dtd:
5594         Add busconfig DTD.
5595         
5596 2003-08-09  Anders Carlsson  <andersca@codefactory.se>
5597
5598         * doc/dbus-specification.sgml:
5599         Add activation reply values.
5600         
5601 2003-08-05  Havoc Pennington  <hp@redhat.com>
5602
5603         * configure.in: 0.12
5604
5605 2003-08-05  Anders Carlsson  <andersca@codefactory.se>
5606
5607         * glib/dbus-gmain.c: (watch_fd_new), (watch_fd_ref),
5608         (watch_fd_unref), (dbus_gsource_check), (dbus_gsource_dispatch),
5609         (add_watch), (remove_watch), (create_source):
5610         Refcount fds, fixes some reentrancy issues.
5611         
5612 2003-07-30  Havoc Pennington  <hp@redhat.com>
5613
5614         * dbus/dbus-bus.c (init_connections_unlocked): fix default system
5615         bus address to be abstract if we have abstract sockets
5616
5617         * NEWS: update
5618
5619 2003-07-28  Havoc Pennington  <hp@redhat.com>
5620
5621         * bus/messagebus.in: fix to avoid processname/servicename 
5622         confusion, from Michael Kearey
5623         https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=100965
5624         
5625 2003-07-23  Havoc Pennington  <hp@pobox.com>
5626
5627         * dbus/dbus-message.c (dbus_message_iter_get_named): 
5628         fix from Andy Hanton to remove broken "+1"
5629
5630 2003-07-16  Havoc Pennington  <hp@pobox.com>
5631
5632         * tools/dbus-launch.c (babysit): close stdout/stderr in the
5633         babysitter process, as suggested by Thomas Leonard, so 
5634         an "eval `dbus-launch --exit-with-session`" will actually 
5635         return
5636
5637 2003-07-16  Havoc Pennington  <hp@pobox.com>
5638
5639         * configure.in: print out EXPANDED_* variables in the summary at
5640         the end; clean up the code that computes EXPANDED_ variables and
5641         get the ones using exec_prefix right. Should make things work
5642         when you build without --prefix
5643
5644 2003-06-29  Havoc Pennington  <hp@pobox.com>
5645
5646         * mono/Test.cs (class Test): fire up a main loop and run it
5647
5648         * mono/DBus.cs (DBus): don't g_thread_init since it can only be
5649         done once, the app has to do it
5650
5651 2003-06-26  Havoc Pennington  <hp@pobox.com>
5652
5653         * mono/Connection.cs: set up connection with the glib main loop
5654
5655 2003-07-01  Havoc Pennington  <hp@redhat.com>
5656
5657         * doc/dbus-specification.sgml: clarify the format of a type code,
5658         change suggested by Jim Blandy
5659
5660 2003-06-29  Miloslav Trmac  <mitr@volny.cz>
5661
5662         * doc/Makefile.am:
5663         * tools/Makefile.am: Don't assume srcdir == builddir.
5664
5665         * dbus/dbus-memory.c (dbus_realloc): Don't check guards after shrinking
5666         the allocated block.
5667         (_dbus_memory_test): New function.
5668         * dbus/dbus-test.h: Add _dbus_memory_test ().
5669         * dbus/dbus-test.c (dbus_internal_do_not_use_run_tests): Call it.
5670
5671         * dbus/dbus-message.c (decode_header_data): Use %.4s instead
5672         of %c%c%c%c.
5673         (dbus_message_new): Remove obsolete @todo.
5674
5675         * dbus/dbus-marshal.c (_dbus_marshal_set_int64)
5676         (_dbus_marshal_set_uint64): Fix comment.
5677
5678         * dbus/dbus-message.c (append_int_field, append_uint_field): Don't
5679         hardcode FIELD_REPLY_SERIAL.
5680
5681         * dbus/dbus-mainloop.c (_dbus_loop_remove_watch)
5682         (_dbus_loop_remove_timeout): Cast function pointers to (void *) for %p
5683
5684         * configure.in: Add -D_POSIX_C_SOURCE=199309L -DBSD_SOURCE to CFLAGS
5685         and disable DBUS_USE_ATOMIC_INT_486 when --enable-ansi is used
5686
5687 2003-06-24  Havoc Pennington  <hp@pobox.com>
5688
5689         * mono/*.cs: Use IntPtr.Zero instead of ((IntPtr) 0)
5690
5691 2003-06-23  Anders Carlsson  <andersca@codefactory.se>
5692
5693         * configure.in:
5694         * gcj/.cvsignore:
5695         * gcj/Hello.java:
5696         * gcj/Makefile.am:
5697         * gcj/TestMessage.java: (TestMessage), (TestMessage.main):
5698         * gcj/org/.cvsignore:
5699         * gcj/org/Makefile.am:
5700         * gcj/org/freedesktop/.cvsignore:
5701         * gcj/org/freedesktop/Makefile.am:
5702         * gcj/org/freedesktop/dbus/.cvsignore:
5703         * gcj/org/freedesktop/dbus/Makefile.am:
5704         * gcj/org/freedesktop/dbus/Message.java: (Message),
5705         (Message.Message):
5706         * gcj/org/freedesktop/dbus/natMessage.cc:
5707         Fix the build system.
5708
5709 2003-06-22  Havoc Pennington  <hp@pobox.com>
5710
5711         * mono/Connection.cs: add more bindings
5712
5713         * dbus/dbus-threads.c (dbus_threads_init): allow calling this
5714         more than once.
5715
5716 2003-06-22  Havoc Pennington  <hp@pobox.com>
5717
5718         * mono/Connection.cs, mono/DBus.cs, mono/Error.cs:
5719         Start wrapping more stuff.
5720
5721 2003-06-22  Havoc Pennington  <hp@pobox.com>
5722
5723         * mono/Message.cs: implement Message.Wrap() that ensures we only
5724         have a single C# wrapper per DBusMessage, assuming it works which
5725         it probably doesn't.
5726
5727         * dbus/dbus-message.c (dbus_message_allocate_data_slot): new
5728         (dbus_message_free_data_slot): new
5729         (dbus_message_set_data): new
5730         (dbus_message_get_data): new
5731
5732 2003-06-22  Havoc Pennington  <hp@pobox.com>
5733
5734         * dbus/dbus-dataslot.c (_dbus_data_slot_allocator_unref)
5735         (_dbus_data_slot_allocator_alloc): rework these to keep a
5736         reference count on each slot and automatically manage a global
5737         slot ID variable passed in by address
5738
5739         * bus/bus.c: convert to new dataslot API
5740
5741         * dbus/dbus-bus.c: convert to new dataslot API
5742
5743         * dbus/dbus-connection.c: convert to new dataslot API
5744
5745         * dbus/dbus-server.c: convert to new dataslot API
5746
5747         * glib/dbus-gmain.c: ditto
5748
5749         * bus/test.c: ditto
5750
5751         * bus/connection.c: ditto
5752
5753 2003-06-22  Anders Carlsson  <andersca@codefactory.se>
5754
5755         * configure.in: Add AM_PROG_GCJ and move AM_PROG_LIBTOOL
5756         after the gcj checks so that the correct configuration tags
5757         will be added to libtool.
5758
5759         * dbus-glib-1.pc.in: No need to specify any includes since
5760         dbus-1.pc.in has those.
5761
5762 2003-06-22  Havoc Pennington  <hp@pobox.com>
5763
5764         * mono/*, gcj/*, configure.in, Makefile.am:
5765         Check in makefiles and subdirs for mono and gcj bindings.
5766         Neither binding actually exists, just trying to get through
5767         all the build and other boring bits.
5768
5769 2003-06-21  Philip Blundell  <philb@gnu.org>
5770
5771         * tools/dbus-monitor.1: Updated.
5772
5773         * tools/dbus-send.1: Likewise.
5774
5775 2003-06-20  Anders Carlsson  <andersca@codefactory.se>
5776
5777         * dbus/dbus-transport-unix.c (unix_handle_watch): Check
5778         for hangup and error after checking read so we won't discard
5779         pending data if both hangup and read are set.
5780
5781 2003-06-19  Philip Blundell  <philb@gnu.org>
5782
5783         * tools/dbus-print-message.c (print_message): Handle BOOLEAN.
5784
5785         * tools/dbus-send.c: Accept both --system and --session.
5786
5787         * tools/dbus-monitor.c: Same here.
5788
5789 2003-06-19  Anders Carlsson  <andersca@codefactory.se>
5790
5791         * glib/dbus-glib.h: Fix so that dbus-glib.h can be used
5792         from C++ (Patch by Miloslav Trmac).
5793
5794 2003-06-15  Joe Shaw  <joe@assbarn.com>
5795
5796         * configure.in: Check for socklen_t.
5797
5798         * dbus/dbus-sysdeps.c: Define socklen_t if it's not defined.
5799
5800         * test/test-segfault.c: Add #include <sys/time.h>
5801
5802         * tools/Makefile.am: Add DBUS_X_CFLAGS to the INCLUDES since
5803         dbus-launch needs it.
5804
5805 2003-06-09  Havoc Pennington  <hp@redhat.com>
5806
5807         * dbus/dbus-sysdeps.c (_dbus_listen_unix_socket): don't use
5808         SUN_LEN, it breaks abstract socket usage
5809
5810         * dbus/dbus-internals.c (_dbus_verbose_real): only print PID at
5811         starts of lines.
5812
5813 2003-06-04  Havoc Pennington  <hp@pobox.com>
5814
5815         * dbus/dbus-server.c (dbus_server_listen): allow abstract sockets
5816         using unix:abstract=/foo, and when listening in a tmpdir
5817         i.e. unix:tmpdir=/tmp, always use abstract sockets if we can.
5818
5819         * dbus/dbus-transport.c (_dbus_transport_open): support
5820         unix:abstract=/foo
5821
5822         * dbus/dbus-server-unix.c (_dbus_server_new_for_domain_socket):
5823         support abstract sockets
5824
5825         * dbus/dbus-transport-unix.c
5826         (_dbus_transport_new_for_domain_socket): support abstract sockets
5827
5828         * dbus/dbus-sysdeps.c (_dbus_connect_unix_socket): add "abstract"
5829         toggle as an argument, implement abstract namespace support
5830         (_dbus_listen_unix_socket): ditto
5831
5832         * configure.in: add --enable-abstract-sockets and implement
5833         a configure check for autodetection of the right value.
5834
5835 2003-06-01  Havoc Pennington  <hp@pobox.com>
5836
5837         * tools/dbus-cleanup-sockets.c: add utility to clean up sockets
5838         in /tmp (though on Linux this will end up being useless,
5839         when we add abstract namespace support)
5840
5841         * configure.in: define DBUS_SESSION_SOCKET_DIR in addition to
5842         subst'ing it
5843
5844 2003-05-28  Colin Walters  <walters@verbum.org>
5845
5846         * tools/dbus-monitor.c (main): Fix silly typo (s/--session/--system/).
5847
5848 2003-05-18  Anders Carlsson  <andersca@codefactory.se>
5849
5850         * dbus/dbus-message.c (dbus_message_new): Remove @todo.
5851
5852 2003-05-17  Colin Walters  <walters@gnu.org>
5853
5854         * tools/dbus-send.c: Don't exit with an error code if --help was
5855         passed.  Default to using the session bus instead of the system
5856         one.
5857
5858         * tools/dbus-launch.c: Ditto.
5859
5860         * tools/dbus-monitor.c: Ditto.
5861
5862         * tools/dbus-send.1: Update with new arguments.
5863
5864         * tools/dbus-launch.c: Emit code to export variables.  New
5865         arguments -s and -c to specify shell syntax, and a bit of code to
5866         autodetect syntax.  Also, allow specifying a program to run.
5867
5868         * tools/dbus-launch.1: Update with new arguments.
5869
5870         * tools/dbus-send.1: Ditto.
5871
5872         * tools/dbus-monitor.1: Ditto.
5873
5874 2003-05-17  Havoc Pennington  <hp@pobox.com>
5875
5876         * bus/config-parser.c (merge_included): merge in policies from
5877         child configuration file.
5878
5879         * bus/policy.c (bus_policy_merge): function to merge two policies
5880         together
5881
5882 2003-05-16  Havoc Pennington  <hp@redhat.com>
5883
5884         * dbus/dbus-connection.c: disable verbose lock spew
5885
5886         * tools/dbus-send.c: add --print-reply command line option
5887
5888         * tools/dbus-print-message.h (print_message): new util function
5889         shared by dbus-send and dbus-monitor
5890
5891         * tools/dbus-monitor.c (handler_func): exit on disconnect
5892
5893         * dbus/dbus-transport-unix.c (do_reading): if the transport is
5894         disconnected, don't try to use the read_watch
5895
5896         * dbus/dbus-watch.c (dbus_watch_get_enabled): assert watch != NULL
5897         so we can find this bug more easily
5898
5899 2003-05-16  Havoc Pennington  <hp@redhat.com>
5900
5901         * bus/policy.c (free_rule_list_func): avoid a crash when passed
5902         NULL as DBusHashTable is annoyingly likely to do.
5903
5904 2003-05-16  Colin Walters  <walters@verbum.org>
5905
5906         * tools/dbus-monitor.c: Add --session argument and usage()
5907         function.
5908
5909         * tools/dbus-monitor.1: Update with new --session arg.
5910
5911         * bus/Makefile.am (install-data-hook): Create
5912         $(libdir)/dbus-1.0/services so that the session bus is happy.
5913
5914 2003-05-15  Havoc Pennington  <hp@redhat.com>
5915
5916         * dbus/dbus-sysdeps.c (_dbus_atomic_dec, _dbus_atomic_inc): work
5917         on non-x86. ifdef's are evil.
5918
5919 2003-05-15  Havoc Pennington  <hp@redhat.com>
5920
5921         * configure.in: 0.11
5922
5923         * NEWS: update
5924
5925         * bus/Makefile.am (initddir): apparently we are supposed to put
5926         init scripts in /etc/rc.d/init.d not /etc/init.d
5927
5928         * bus/Makefile.am: remove the "you must --enable-tests to make
5929         check" as it broke distcheck
5930
5931         * bus/Makefile.am (install-data-hook): create /etc/dbus-1/system.d
5932
5933 2003-05-13  James Willcox  <jwillcox@gnome.org>
5934
5935         * configure.in:
5936         * bus/activation.c: (bus_activation_service_created),
5937         (bus_activation_activate_service):
5938         * bus/driver.c: (bus_driver_send_service_deleted),
5939         (bus_driver_send_service_created), (bus_driver_send_service_lost),
5940         (bus_driver_send_service_acquired),
5941         (bus_driver_send_welcome_message),
5942         (bus_driver_handle_list_services):
5943         * bus/session.conf.in:
5944         * dbus/dbus-bus.c: (dbus_bus_acquire_service),
5945         (dbus_bus_service_exists), (dbus_bus_activate_service):
5946         * dbus/dbus-bus.h:
5947
5948         Add some convenience API which lets you activate a service, and did a
5949         bunch of s/0/DBUS_TYPE_INVALID/ in calls to dbus_message_append_args()
5950         and dbus_message_get_args()
5951
5952 2003-05-11  Havoc Pennington  <hp@pobox.com>
5953
5954         * dbus/dbus-marshal.c (_dbus_marshal_validate_arg): fix to avoid
5955         calling _dbus_marshal_validate_arg() for every byte in a byte
5956         array, etc.
5957
5958         * dbus/dbus-message-handler.c: use atomic reference counting to
5959         reduce number of locks slightly; the global lock in here sucks
5960
5961         * dbus/dbus-connection.c
5962         (_dbus_connection_update_dispatch_status_and_unlock): variant of
5963         update_dispatch_status that can be called with lock held; then use
5964         in a couple places to reduce locking/unlocking
5965         (dbus_connection_send): hold the lock over the whole function
5966         instead of acquiring it twice.
5967
5968         * dbus/dbus-timeout.c (_dbus_timeout_new): handle OOM
5969
5970         * bus/connection.c (bus_connections_setup_connection): fix access
5971         to already-freed memory.
5972
5973         * dbus/dbus-connection.c: keep a little cache of linked list
5974         nodes, to avoid using the global linked list alloc lock in the
5975         normal send-message case. Instead we just use the connection lock
5976         that we already have to take.
5977
5978         * dbus/dbus-list.c (_dbus_list_find_last): new function
5979
5980         * dbus/dbus-sysdeps.c (_dbus_atomic_inc, _dbus_atomic_dec):
5981         change to use a struct for the atomic type; fix docs,
5982         they return value before increment, not after increment.
5983
5984         * dbus/dbus-string.c (_dbus_string_append_4_aligned)
5985         (_dbus_string_append_8_aligned): new functions to try to
5986         microoptimize this operation.
5987         (reallocate_for_length): break this out of set_length(), to
5988         improve profile info, and also so we can consider inlining the
5989         set_length() part.
5990
5991         * dbus/dbus-message.c (dbus_message_new_empty_header): init data
5992         strings with some preallocation, cuts down on our calls to realloc
5993         a fair bit. Though if we can get the "move entire string to empty
5994         string" optimization below to kick in here, it would be better.
5995
5996         * dbus/dbus-string.c (_dbus_string_move): just call
5997         _dbus_string_move_len
5998         (_dbus_string_move_len): add a special case for moving
5999         an entire string into an empty string; we can just
6000         swap the string data instead of doing any reallocs.
6001         (_dbus_string_init_preallocated): new function
6002
6003 2003-05-11  Havoc Pennington  <hp@pobox.com>
6004
6005         Write a "test-profile" that does echo client-server with threads;
6006         profile reveals lock contention, memcpy/realloc of buffers, and
6007         UTF-8 validation as hot spots. 20% of lock contention eliminated
6008         with dbus_atomic_inc/dec implementation on x86.  Much remaining
6009         contention is global mempool locks for GList and DBusList.
6010
6011         * dbus/dbus-sysdeps.c (_dbus_atomic_inc, _dbus_atomic_dec): add
6012         x86 implementation
6013
6014         * dbus/dbus-connection.c (struct DBusConnection): use
6015         dbus_atomic_t for the reference count
6016
6017         * dbus/dbus-message.c (struct DBusMessage): declare
6018         dbus_atomic_t values as volatile
6019
6020         * configure.in: code to detect ability to use atomic integer
6021         operations in assembly, from GLib patch
6022
6023         * dbus/dbus-internals.c (_dbus_verbose_real): call getpid every
6024         time, tired of it being wrong in threads and forked processes
6025
6026         * glib/test-profile.c: a little program to bounce messages back
6027         and forth between threads and eat CPU
6028
6029         * dbus/dbus-connection.c: add debug spew macros for debugging
6030         thread locks; include config.h at top; fix deadlock in
6031         dbus_connection_flush()
6032
6033 2003-05-08  Havoc Pennington  <hp@pobox.com>
6034
6035         * dbus/dbus-spawn.c: s/_exit/exit/ because it was keeping gcov
6036         data from getting written, and there wasn't a good reason to
6037         use _exit really.
6038
6039         * test/decode-gcov.c (mark_inside_dbus_build_tests): don't count
6040         dbus_verbose lines in test coverage
6041         (main): add list of functions sorted by # of untested blocks
6042         to the coverage report
6043
6044         * dbus/dbus-mempool.c: put some test-only code in DBUS_BUILD_TESTS
6045
6046         * dbus/dbus-marshal.c (_dbus_marshal_test): extend test coverage
6047
6048         * dbus/dbus-message-handler.c (_dbus_message_handler_test):
6049         extend test coverage
6050
6051         * test/data/auth/cancel.auth-script: test canceling an
6052         authentication
6053
6054         * dbus/Makefile.am: remove dbus-server-debug.[hc] for now, as they
6055         aren't used. in CVS history if we end up needing them.
6056
6057 2003-05-04  Havoc Pennington  <hp@pobox.com>
6058
6059         * dbus/dbus-message-handler.c (_dbus_message_handler_test): add
6060         unit test
6061
6062         * dbus/dbus-marshal.c (_dbus_demarshal_string_array): fix this
6063         function, which assumed length was in # of strings, not bytes
6064
6065         * dbus/dbus-message.c (_dbus_message_test): add tests for some
6066         missing coverage
6067
6068         * dbus/dbus-connection.c
6069         (_dbus_connection_queue_received_message): disable function for
6070         now, we are only using it in test mode
6071
6072         * dbus/dbus-message.c (_dbus_message_loader_queue_messages):
6073         remove a mistaken FIXME
6074
6075 2003-05-04  Havoc Pennington  <hp@pobox.com>
6076
6077         * dbus/dbus-connection.c (dbus_connection_preallocate_send):
6078         unlock mutex on successful return, patch from Anders Gustafsson
6079
6080 2003-05-04  Havoc Pennington  <hp@pobox.com>
6081
6082         * dbus-glib-1.pc.in (Requires): fix dependencies, from
6083         Anders Gustafsson
6084
6085 2003-05-04  Havoc Pennington  <hp@pobox.com>
6086
6087         * tools/dbus-launch.c: implement
6088
6089         * bus/main.c (main), bus/bus.c (bus_context_new):
6090         implement --print-pid and --fork
6091
6092 2003-05-03  Havoc Pennington  <hp@redhat.com>
6093
6094         * dbus/dbus-address.c (dbus_parse_address): fix bug when a key in
6095         the address had no value, and add to test suite. Fix and
6096         regression test from Miloslav Trmac
6097
6098 2003-05-03  Havoc Pennington  <hp@pobox.com>
6099
6100         * dbus/dbus-watch.c (dbus_watch_handle): warn and return if a
6101         watch is invalid when handled
6102
6103         * tools/Makefile.am, tools/dbus-launch.c, tools/dbus-launch.1: add
6104         dbus-launch utility to launch the bus from a shell script.  Didn't
6105         actually implement dbus-launch yet, it's just a placeholder still.
6106
6107 2003-05-03  Havoc Pennington  <hp@pobox.com>
6108
6109         * bus/Makefile.am, bus/dbus-daemon-1.1.in: man page for the
6110         daemon; also documents daemon config file, so replaces
6111         doc/config-file.txt. Corrected some stuff from config-file.txt in
6112         the process of moving it.
6113
6114 2003-05-03  Havoc Pennington  <hp@pobox.com>
6115
6116         * tools/Makefile.am, tools/dbus-send.1, tools/dbus-monitor.1:
6117         add some man pages
6118
6119 2003-05-03  Colin Walters  <walters@verbum.org>
6120
6121         * dbus/dbus-sysdeps.c (fill_user_info): Test against
6122         DBUS_UID_UNSET to determine whether to do a uid lookup or not.
6123
6124         * Makefile.am: Update to use new .pc versioning scheme.
6125
6126 2003-05-02  Havoc Pennington  <hp@redhat.com>
6127
6128         * bus/system.conf.in: allow send/receive to/from message bus
6129         service
6130
6131 2003-04-30  Havoc Pennington  <hp@redhat.com>
6132
6133         * configure.in: print a note when building with unit tests and
6134         without assertions
6135
6136 2003-04-30  Havoc Pennington  <hp@redhat.com>
6137
6138         * Makefile.am: add a check-local that complains if you didn't
6139         configure with --enable-tests
6140
6141 2003-04-29  Havoc Pennington  <hp@redhat.com>
6142
6143         * glib/dbus-gmain.c: docs cleanups
6144
6145         * dbus/dbus-types.h: add docs on int64 types
6146
6147         * dbus/dbus-memory.c: fix docs to avoid putting private API in
6148         public API docs section
6149
6150 2003-04-29  Havoc Pennington  <hp@redhat.com>
6151
6152         * dbus-1.pc.in, dbus-glib-1.pc.in: rename these from
6153         dbus-1.0.pc.in, dbus-glib-1.0.pc.in. As these change with the
6154         parallel install API version, not with the D-BUS package version.
6155
6156         * HACKING: move some of README over here
6157
6158         * README: updates, and document API/ABI policy
6159
6160         * configure.in: reindentation
6161
6162 2003-04-29  Havoc Pennington  <hp@redhat.com>
6163
6164         * dbus/dbus.h: add "you have to define DBUS_API_SUBJECT_TO_CHANGE
6165         to use this library" to be sure people have the right
6166         expectations.
6167
6168 2003-04-28  Havoc Pennington  <hp@redhat.com>
6169
6170         * configure.in: add --enable-docs which by default is auto yes if
6171         doxygen and db2html found, no otherwise; but can be forced on/off
6172
6173         * doc/Makefile.am: conditionalize whether to build docs on
6174         --enable-docs
6175
6176 2003-04-28  Havoc Pennington  <hp@redhat.com>
6177
6178         * configure.in: 0.10
6179
6180         * NEWS: update
6181
6182         * bus/system.conf.in: add <includedir>system.d</includedir>
6183
6184         * dbus/dbus-userdb.c (_dbus_user_database_lookup): fix bug when
6185         username was provided but not uid
6186
6187         * bus/config-parser.c (struct BusConfigParser): keep track of
6188         whether the parser is toplevel or was included; change some
6189         of the error handling if it's included.
6190
6191 2003-04-27  Havoc Pennington  <hp@pobox.com>
6192
6193         Unbreak my code...
6194
6195         * dbus/dbus-transport.c (_dbus_transport_get_dispatch_status):
6196         report correct status if we finish processing authentication
6197         inside this function.
6198
6199         * bus/activation.c (try_send_activation_failure): use
6200         bus_transaction_send_error_reply
6201
6202         * bus/connection.c (bus_connection_get_groups): return an error
6203         explaining the problem
6204
6205         * bus/bus.c (bus_context_check_security_policy): implement
6206         restriction here that inactive connections can only send the
6207         hello message. Also, allow bus driver to send anything to
6208         any recipient.
6209
6210         * bus/connection.c (bus_connection_complete): create the
6211         BusClientPolicy here instead of on-demand.
6212         (bus_connection_get_policy): don't return an error
6213
6214         * dbus/dbus-message.c (dbus_message_new_error_reply): allow NULL
6215         sender field in message being replied to
6216
6217         * bus/bus.c (bus_context_check_security_policy): fix silly typo
6218         causing it to return FALSE always
6219
6220         * bus/policy.c (bus_client_policy_check_can_send): fix bug where
6221         we checked sender rather than destination
6222
6223 2003-04-25  Havoc Pennington  <hp@redhat.com>
6224
6225         test suite is slightly hosed at the moment, will fix soon
6226
6227         * bus/connection.c (bus_connections_expire_incomplete): fix to
6228         properly disable the timeout when required
6229         (bus_connection_set_name): check whether we can remove incomplete
6230         connections timeout after we complete each connection.
6231
6232         * dbus/dbus-mainloop.c (check_timeout): fix this up a bit,
6233         probably still broken.
6234
6235         * bus/services.c (bus_registry_acquire_service): implement max
6236         number of services owned, and honor allow/deny rules on which
6237         services a connection can own.
6238
6239         * bus/connection.c (bus_connection_get_policy): report errors here
6240
6241         * bus/activation.c: implement limit on number of pending
6242         activations
6243
6244 2003-04-25  Havoc Pennington  <hp@redhat.com>
6245
6246         * dbus/dbus-transport.c (_dbus_transport_get_unix_user): fix bug
6247         where we used >= 0 instead of != DBUS_UID_UNSET.
6248
6249 2003-04-25  Havoc Pennington  <hp@redhat.com>
6250
6251         * glib/dbus-gmain.c (remove_watch): fix for a crash when watches
6252         were toggled without add/remove, fix from Anders Gustafsson
6253
6254 2003-04-24  Havoc Pennington  <hp@redhat.com>
6255
6256         * test/data/valid-config-files/basic.conf: add <limit> tags to
6257         this test
6258
6259         * bus/config-parser.h, bus/config-parser.c, bus/bus.c: Implement
6260         <limit> tag in configuration file.
6261
6262 2003-04-24  Havoc Pennington  <hp@redhat.com>
6263
6264         * bus/dispatch.c: somehow missed some name_is
6265
6266         * dbus/dbus-timeout.c (_dbus_timeout_set_enabled)
6267         (_dbus_timeout_set_interval): new
6268
6269         * bus/connection.c (bus_connections_setup_connection): record time
6270         when each connection is first set up, and expire them after the
6271         auth timeout passes.
6272
6273 2003-04-24  Havoc Pennington  <hp@redhat.com>
6274
6275         * dbus/dbus-message.c (dbus_message_name_is): rename
6276         (dbus_message_service_is): rename
6277         (dbus_message_sender_is): rename
6278         (dbus_message_get_service): rename
6279
6280 2003-04-24  Havoc Pennington  <hp@redhat.com>
6281
6282         * configure.in: add --enable-checks
6283
6284         * dbus/dbus-message.c (dbus_message_new): reverse name/service arguments
6285
6286         * dbus/dbus-connection.c (dbus_connection_preallocate_send): fix
6287         to use thread locks.
6288         (_dbus_connection_handler_destroyed_locked): move some private
6289         functions into proper docs group
6290
6291         * dbus/dbus-internals.h: add _dbus_return_if_fail,
6292         _dbus_return_val_if_fail
6293
6294         Throughout: use dbus_return_if_fail
6295
6296 2003-04-23  James Willcox  <jwillcox@gnome.org>
6297
6298         * glib/dbus-glib.h:
6299         * glib/dbus-gmain.c: (add_timeout), (wakeup_main), (create_source),
6300         (dbus_connection_setup_with_g_main),
6301         (dbus_server_setup_with_g_main):
6302         * glib/test-dbus-glib.c: (main):
6303         * glib/test-thread-client.c: (main):
6304         * glib/test-thread-server.c: (new_connection_callback), (main):
6305         * tools/dbus-monitor.c: (main):
6306
6307         Added a GMainContext argument to dbus_connection_setup_with_g_main()
6308         and dbus_server_setup_with_g_main().
6309
6310 2003-04-20  Havoc Pennington  <hp@pobox.com>
6311
6312         * doc/dbus-specification.sgml: document the restrictions on
6313         message and service names
6314
6315 2003-04-22  Havoc Pennington  <hp@redhat.com>
6316
6317         * dbus/dbus-message.c, dbus/dbus-marshal.c: add 64-bit integer
6318         support, and do some code cleanups to share more code and
6319         speed up array marshal/demarshal.
6320
6321         * dbus-1.0.pc.in (Cflags): put libdir include file in cflags
6322
6323         * configure.in: generate dbus-arch-deps.h
6324
6325         * dbus/dbus-protocol.h (DBUS_TYPE_INT64, DBUS_TYPE_UINT64): add
6326         64-bit typecodes
6327
6328 2003-04-22  Havoc Pennington  <hp@redhat.com>
6329
6330         * test/data/valid-messages/opposite-endian.message: fix test
6331         to use proper type for rply field
6332
6333         * test/data/invalid-messages: add tests for below validation
6334
6335         * dbus/dbus-message.c (decode_header_data): validate field types,
6336         and validate that named fields are valid names
6337         (decode_name_field): consider messages in the
6338         org.freedesktop.Local. namespace to be invalid.
6339
6340         * dbus/dbus-string.c (_dbus_string_validate_name): new
6341
6342 2003-04-19  Havoc Pennington  <hp@pobox.com>
6343
6344         * bus/driver.c (bus_driver_handle_hello): check limits and
6345         return an error if they are exceeded.
6346
6347         * bus/connection.c: maintain separate lists of active and inactive
6348         connections, and a count of each. Maintain count of completed
6349         connections per user. Implement code to check connection limits.
6350
6351         * dbus/dbus-list.c (_dbus_list_unlink): export
6352
6353         * bus/bus.c (bus_context_check_security_policy): enforce a maximum
6354         number of bytes in the message queue for a connection
6355
6356 2003-04-18  Havoc Pennington  <hp@pobox.com>
6357
6358         * dbus/dbus-auth.c (record_mechanisms): memleak fixes
6359
6360         * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): fix some
6361         memleaks
6362
6363         * dbus/dbus-keyring.c (add_new_key): fix a memleak, and
6364         on realloc be sure to update the pointer in the keyring
6365
6366         * dbus/dbus-string.c (_dbus_string_zero): compensate for align
6367         offset to avoid writing to unallocated memory
6368
6369         * dbus/dbus-auth.c (process_rejected): return FALSE if we fail to
6370         try the next mechanism, so we properly handle OOM
6371
6372         * dbus/dbus-keyring.c (_dbus_keyring_new_homedir): fix double-free
6373         on OOM.
6374         (_dbus_keyring_new): fix OOM bug
6375         (_dbus_keyring_new_homedir): always set error; impose a maximum
6376         number of keys we'll load from the file, mostly to speed up the
6377         test suite and make its OOM checks more useful, but also for
6378         general sanity.
6379
6380         * dbus/dbus-auth.c (process_error_server): reject authentication
6381         if we get an error from the client
6382         (process_cancel): on cancel, send REJECTED, per the spec
6383         (process_error_client): send CANCEL if we get an error from the
6384         server.
6385
6386 2003-04-18  Havoc Pennington  <hp@pobox.com>
6387
6388         * dbus/dbus-mainloop.c (_dbus_loop_iterate): fix UMR in verbose
6389         debug spew
6390
6391         * dbus/dbus-auth.c (handle_client_data_cookie_sha1_mech): fix OOM
6392         handling problem
6393
6394         * dbus/dbus-keyring.c (_dbus_keyring_new_homedir): only whine
6395         about DBUS_TEST_HOMEDIR once
6396
6397         * bus/Makefile.am (TESTS_ENVIRONMENT): put DBUS_TEST_HOMEDIR in
6398         the environment
6399
6400         * bus/dispatch.c (bus_dispatch_sha1_test): actually load sha1
6401         config file so we test the right thing
6402
6403         Throughout: assorted docs improvements
6404
6405 2003-04-18  Havoc Pennington  <hp@pobox.com>
6406
6407         * glib/dbus-gmain.c: adapt to watch changes
6408
6409         * bus/bus.c, bus/activation.c, etc.: adjust to watch changes
6410
6411         * dbus/dbus-server.h: remove dbus_server_handle_watch
6412
6413         * dbus/dbus-connection.h: remove dbus_connection_handle_watch
6414
6415         * dbus/dbus-watch.c (dbus_watch_handle): change DBusWatch to work
6416         like DBusTimeout, so we don't need dbus_connection_handle_watch
6417         etc.
6418
6419 2003-04-17  Havoc Pennington  <hp@redhat.com>
6420
6421         * dbus/dbus-userdb.c, dbus/dbus-sysdeps.c: redo all the passwd
6422         database usage so it all goes via the DBusUserDatabase cache.
6423
6424 2003-04-17  Havoc Pennington  <hp@redhat.com>
6425
6426         * dbus/dbus-mainloop.c (_dbus_loop_iterate): fix logic so that if
6427         there was an OOM watch we skipped, we always return TRUE so we
6428         iterate again to have a look at it again. Fixes test suite hang.
6429         Code rearrangement also lets us lose some memset and only iterate
6430         over callbacks once.
6431
6432         * bus/driver.c (bus_driver_handle_message): sense of test for
6433         reply was backward
6434
6435 2003-04-16  Havoc Pennington  <hp@pobox.com>
6436
6437         * doc/dbus-specification.sgml: make spec say serials are unsigned
6438
6439         * dbus/dbus-message.h: change message serials to unsigned
6440
6441         * dbus/dbus-connection.c: adapt to message serials being unsigned
6442
6443 2003-04-15  Havoc Pennington  <hp@pobox.com>
6444
6445         * bus/bus.c: create and keep around a shared DBusUserDatabase
6446         object.
6447
6448         * bus/connection.c (bus_connection_get_groups): don't cache
6449         groups for user in the connection object, since user database
6450         object now does that.
6451
6452 2003-04-16  Havoc Pennington  <hp@redhat.com>
6453
6454         * dbus/dbus-message.c (_dbus_message_add_size_counter): keep a
6455         list of size counters
6456         (_dbus_message_loader_putback_message_link): put back a popped link
6457
6458         * dbus/dbus-connection.c
6459         (dbus_connection_set_max_live_messages_size): rename
6460         max_received_size
6461         (dbus_connection_get_outgoing_size): get size of outgoing
6462         queue
6463         (_dbus_connection_set_connection_counter): remove this cruft
6464
6465 2003-04-14  Havoc Pennington  <hp@redhat.com>
6466
6467         * dbus/dbus-userdb.c: user database abstraction, mostly to get
6468         caching, but at some point we might want to be able to use a
6469         different database.
6470
6471         * bus/dispatch.c (bus_dispatch_sha1_test): add a test that uses
6472         SHA1 conf file to test the sha1 auth mechanism, since the regular
6473         test always uses EXTERNAL when available.
6474
6475         * configure.in,
6476         test/data/valid-config-files/debug-allow-all-sha1.conf.in:
6477         add conf file that requires use of sha1 auth
6478
6479 2003-04-13  Havoc Pennington  <hp@pobox.com>
6480
6481         * tools/dbus-send.c, tools/dbus-monitor.c: two utility programs
6482         from Philip Blundell to send messages and monitor them.
6483
6484 2003-04-13  Havoc Pennington  <hp@pobox.com>
6485
6486         * dbus/dbus-mainloop.c: fix some reentrancy issues by refcounting
6487         callbacks
6488
6489         * test/data/valid-config-files/debug-allow-all.conf.in: allow all
6490         users
6491
6492         * dbus/dbus-transport.c (_dbus_transport_get_dispatch_status):
6493         fix to only recover unused bytes if we're already authenticated
6494         (_dbus_transport_get_is_authenticated): fix to still mark us
6495         authenticated if there are unused bytes.
6496
6497         * bus/dispatch.c: implement security policy checking
6498
6499         * bus/connection.c (bus_transaction_send_from_driver): new
6500
6501         * bus/bus.c (bus_context_check_security_policy): new
6502
6503         * bus/dispatch.c (send_service_nonexistent_error): delete this,
6504         now we just set the DBusError and it gets converted to an error
6505         reply.
6506
6507         * bus/connection.c (allow_user_function): enable code using actual
6508         data from the config file
6509
6510         * bus/policy.c (list_allows_user): handle wildcard rules for
6511         user/group connection perms
6512
6513 2003-04-13  Havoc Pennington  <hp@pobox.com>
6514
6515         * bus/config-parser.c: Load up the BusPolicy and BusPolicyRules
6516
6517         * dbus/dbus-sysdeps.c (_dbus_get_user_id): new function
6518
6519         * bus/policy.c (bus_policy_append_mandatory_rule)
6520         (bus_policy_append_default_rule, bus_policy_append_user_rule)
6521         (bus_policy_append_group_rule): new functions
6522
6523 2003-04-12  Havoc Pennington  <hp@pobox.com>
6524
6525         * bus/config-parser.c (bus_config_parser_new): fix a memleak
6526
6527         * dbus/dbus-sysdeps.c: change DBusCredentials to use longs for
6528         the pid/gid/uid, just for paranoia.
6529
6530         * test/break-loader.c (randomly_do_n_things): find a byte
6531         containing a type code, and randomly change it to a different
6532         type code.
6533
6534 2003-04-12  Havoc Pennington  <hp@pobox.com>
6535
6536         * bus/policy.h: change BusPolicy to be the thing from the config
6537         file, and rename old BusPolicy to BusClientPolicy
6538
6539         * bus/bus.c, bus/connection.c, bus/config-parser.c: change to
6540         match change in how policy works
6541
6542         * dbus/dbus-internals.h: mark assert_not_reached as
6543         __attribute((noreturn))__
6544
6545 2003-04-11  Havoc Pennington  <hp@redhat.com>
6546
6547         * doc/dbus-specification.sgml: fix a spot with the wrong name for
6548         the broadcast service. Use boolean return for ServiceExists.
6549
6550 2003-04-11  Havoc Pennington  <hp@redhat.com>
6551
6552         * configure.in: add another directory to look for qt in.
6553
6554 2003-04-11  Havoc Pennington  <hp@redhat.com>
6555
6556         * AUTHORS: add Colin Walters
6557
6558 2003-04-11  Havoc Pennington  <hp@redhat.com>
6559
6560         * NEWS: update
6561
6562         * configure.in: 0.9
6563
6564 2003-04-11  Havoc Pennington  <hp@redhat.com>
6565
6566         * bus/messagebus.in: remove pid file when stopping the
6567         message bus, since the bus won't have privileges to remove it
6568         itself.
6569
6570 2003-04-11  Havoc Pennington  <hp@redhat.com>
6571
6572         * bus/bus.c (bus_context_new): move credentials change after
6573         creating pidfile
6574
6575 2003-04-11  Havoc Pennington  <hp@pobox.com>
6576
6577         * test/decode-gcov.c: add "below average functions" to the
6578         coverage report, and change how some of the code works.
6579
6580         * bus/test-main.c: bracket some stuff in DBUS_BUILD_TESTS so it's
6581         not in the coverage stats.
6582
6583         * test/test-service.c (main): use _dbus_verbose not fprintf in a
6584         couple places so running the test suite doesn't result in megaspam.
6585
6586 2003-04-11  Havoc Pennington  <hp@pobox.com>
6587
6588         * bus/dispatch.c (check_existent_service_activation): accept a no
6589         memory error in a place we didn't before
6590
6591         * bus/test.c (bus_test_run_everything): remove hacky "do it twice
6592         in case the first one failed," since the test suite is less
6593         broken now.
6594
6595 2003-04-10  Havoc Pennington  <hp@pobox.com>
6596
6597         * bus/dispatch.c (check_segfault_service_activation): add test
6598         for launching an executable that just crashes.
6599
6600         * test/test-segfault.c (main): try setting coredumpsize to 0 so we
6601         don't leave a million cores. We'll see how portable this is.
6602
6603 2003-04-10  Havoc Pennington  <hp@pobox.com>
6604
6605         * dbus/dbus-spawn.c (_dbus_spawn_async_with_babysitter): move all
6606         the possible parent failures before we fork, so that we don't
6607         fail to create a babysitter after creating the child.
6608
6609         * bus/activation.c (bus_activation_activate_service): kill child
6610         if we don't successfully complete the activation.
6611
6612 2003-04-10  Havoc Pennington  <hp@redhat.com>
6613
6614         * dbus/dbus-connection.c (dbus_connection_flush): don't spin on
6615         the connection if it's disconnected
6616
6617         * bus/activation.c (bus_activation_service_created): use new
6618         transaction features to roll back removal of pending activation if
6619         we don't successfully create the service after all. Don't remove
6620         pending activation if the function fails.
6621
6622         * dbus/dbus-list.c (_dbus_list_insert_before_link)
6623         (_dbus_list_insert_after_link): new code to facilitate
6624         services.c fixes
6625
6626         * dbus/dbus-hash.c (_dbus_hash_table_insert_string_preallocated):
6627         new functionality, so we can preallocate the ability to insert
6628         into a hash table.
6629
6630         * bus/connection.c (bus_transaction_add_cancel_hook): new function
6631         allowing us to put custom hooks in a transaction to be used for
6632         cancelling said transaction
6633
6634         * doc/dbus-specification.sgml: add some discussion of secondary
6635         service owners, and disallow zero-length service names
6636
6637         * bus/services.c (bus_registry_acquire_service): new function,
6638         splits out part of bus_driver_handle_acquire_service() and fixes
6639         a bug where we didn't remove the service doing the acquiring
6640         from the secondary queue if we failed to remove the current owner
6641         from the front of the queue.
6642
6643 2003-04-10  Alexander Larsson  <alexl@redhat.com>
6644
6645         * doc/dbus-specification.sgml:
6646         s/org.freedesktop.Broadcast/org.freedesktop.DBus.Broadcast/
6647
6648 2003-04-10  Alexander Larsson  <alexl@redhat.com>
6649
6650         * bus/.cvsignore:
6651         * glib/.cvsignore:
6652         * test/.cvsignore:
6653         Added files to cvsignore
6654
6655         * dbus/dbus-message.h:
6656         * dbus/dbus-message.c: (dbus_message_iter_get_named):
6657         Make get_named() take two out argument and return a boolean.
6658         (dbus_message_iter_get_args_valist):
6659         Update usage of get_named().
6660         (dbus_message_iter_append_byte):
6661         Fix typo
6662         (dbus_message_iter_append_named)
6663         Fix typo
6664         (message_iter_test), (check_message_handling_type), (_dbus_message_test):
6665         More tests.
6666
6667 2003-04-10  Alexander Larsson  <alexl@redhat.com>
6668
6669         * dbus/dbus-marshal.[ch]:
6670         Add array_type_pos argument to _dbus_marshal_validate_arg.
6671         Let you pass a NULL end_pos to _dbus_marshal_validate_type.
6672
6673         * dbus/dbus-message.[ch]:
6674         Multi-dimensional arrays have full type specification in the
6675         outermost array. Iter code re-arranged to handle this.
6676         Added some more iter tests.
6677
6678         * doc/dbus-specification.sgml:
6679         Add me to authors.
6680         Remove old FIXME.
6681         Update new array encoding description.
6682         Correct DBUS_SERVICE_FLAGS_REPLACE_EXISTING description.
6683
6684         * test/data/invalid-messages/array-with-mixed-types.message:
6685         * test/data/valid-messages/array-of-array-of-uint32.message:
6686         Change to the new array format.
6687
6688         * test/data/invalid-messages/too-short-dict.message:
6689         Fix bug in test.
6690
6691         * test/data/valid-messages/recursive-types.message:
6692         Fix up and extend test.
6693
6694 2003-04-10  Havoc Pennington  <hp@pobox.com>
6695
6696         * bus/dispatch.c: lots of fixes
6697
6698         * dbus/dbus-mainloop.c (_dbus_loop_dispatch): export
6699         (_dbus_loop_iterate): remove old "quit if no callbacks" code,
6700         that was crack, broke the test service.
6701
6702         * dbus/dbus-transport.c (_dbus_transport_open): fix error
6703         handling to avoid piling up errors if we get a failure on the
6704         first address.
6705
6706         * dbus/dbus-internals.c (_dbus_real_assert_not_reached): include
6707         pid in assertion failures.
6708
6709         * dbus/dbus-mainloop.c (_dbus_loop_iterate): use static arrays up
6710         to some fixed size of file descriptor array. Don't return TRUE
6711         anytime a timeout exists, that led to lots of busy loop silliness
6712         in the tests.
6713
6714 2003-04-09  Havoc Pennington  <hp@redhat.com>
6715
6716         * dbus/dbus-mainloop.c (check_timeout): fix timeouts, I thought
6717         I'd checked this in earlier but hadn't.
6718
6719 2003-04-09  Havoc Pennington  <hp@redhat.com>
6720
6721         * bus/dispatch.c (bus_dispatch_test): get a bit further through
6722         the activation test (man this is getting old!)
6723
6724 2003-04-09  Havoc Pennington  <hp@redhat.com>
6725
6726         * test/test-utils.c: use dispatch status function to fix this up
6727
6728         * bus/connection.c (connection_watch_callback): don't dispatch
6729         from here
6730         (connection_timeout_callback): don't dispatch from here
6731         (bus_connections_setup_connection): set the dispatch status function
6732         (bus_connection_disconnected): unset it
6733
6734         * dbus/dbus-mainloop.c (_dbus_loop_queue_dispatch): new function
6735         used to add a connection to be dispatched
6736         (_dbus_loop_iterate): do the dispatching at the end of each
6737         iteration
6738
6739         * dbus/dbus-connection.c
6740         (dbus_connection_set_dispatch_status_function): new function
6741         allowing us to fix up main loop usage
6742         (_dbus_connection_last_unref): free all the various function
6743         user data
6744         (dbus_connection_dispatch): call the DispatchStatusFunction
6745         whenever this function returns
6746         (dbus_connection_handle_watch): call DispatchStatusFunction
6747         (dbus_connection_send_with_reply_and_block): call DispatchStatusFunction
6748         (reply_handler_timeout): call DispatchStatusFunction
6749         (dbus_connection_flush): call DispatchStatusFunction
6750
6751 2003-04-09  Havoc Pennington  <hp@redhat.com>
6752
6753         * dbus/dbus-bus.c (dbus_bus_register): fix up error handling and
6754         a memory leak
6755
6756         * bus/dispatch.c (check_service_activated): fix bug in test
6757
6758         * dbus/dbus-mainloop.c (check_timeout): fix this up
6759
6760         * dbus/dbus-internals.c (_dbus_verbose_real): include PID in
6761         verbose output so we can sort out output from different processes,
6762         e.g. in the activation case.
6763
6764 2003-04-08  Colin Walters  <walters@gnu.org>
6765
6766         * bus/bus.c (struct BusContext) [pidfile]: New member, to store
6767         the pid file.
6768         (bus_context_new): Set it.
6769         (bus_context_unref): Use it to delete the pid file.
6770
6771 2003-04-08  Havoc Pennington  <hp@redhat.com>
6772
6773         * test/data/invalid-messages/array-with-mixed-types.message:
6774         regression test that fails for the moment
6775
6776         * dbus/dbus-test.c (dbus_internal_do_not_use_run_tests): reorder
6777         tests for convenience
6778
6779         * dbus/dbus-marshal.c (_dbus_marshal_validate_arg): don't allow
6780         array of nil, it broke things.
6781
6782         * test/data/invalid-messages/array-of-nil.message: regression test
6783
6784         * test/data/valid-messages/array-of-array-of-uint32.message:
6785         happened to write this so added it to suite
6786
6787 2003-04-08  Havoc Pennington  <hp@redhat.com>
6788
6789         * bus/driver.c (bus_driver_handle_acquire_service): init
6790         retval/reply before checking name
6791
6792         * dbus/dbus-marshal.c (_dbus_marshal_validate_arg): add a
6793         recursion depth argument
6794
6795         * dbus/dbus-message.h (struct DBusMessageIter): put some padding
6796         in the public struct for future extension
6797
6798         * dbus/dbus-message-builder.c (_dbus_message_data_load): fix
6799         typo
6800
6801         * dbus/dbus-marshal.c (_dbus_marshal_validate_arg): fix a verbose
6802         message
6803
6804         * doc/dbus-specification.sgml: fix typo
6805
6806 2003-04-08  Alexander Larsson  <alexl@redhat.com>
6807
6808         Implemented recursive types, named types and new-style iters
6809
6810         * bus/driver.c:
6811         * glib/test-thread-client.c: (thread_func):
6812         * glib/test-thread-server.c: (handle_test_message):
6813         * test/test-service.c: (handle_echo):
6814         Update to new api
6815
6816         * dbus/Makefile.am:
6817         * dbus/dbus-dict.c:
6818         * dbus/dbus-dict.h:
6819         * dbus/dbus.h
6820         Remove DBusDict
6821
6822         * dbus/dbus-internals.c: (_dbus_type_to_string):
6823         Update for new types.
6824
6825         * dbus/dbus-marshal.[ch]:
6826         Implement recursive types and the new marshalling format.
6827         Remove hardcoded dict marshalling.
6828         Marshal named types.
6829
6830         * dbus/dbus-message-builder.c:
6831         Add BYTE_ARRAY.
6832         Remove references to old types
6833
6834         * dbus/dbus-message.[ch]:
6835         New non-refcounted iter API that supports recursive iters.
6836         Use iters for appending, including support for recursive
6837         iters.
6838         Add byte and named type support.
6839         Update everything to new marshalling formats.
6840         Add tests for new API.
6841
6842         * dbus/dbus-protocol.h:
6843         Remove old array types.
6844         Add types: BYTE, ARRAY, DICT, NAMED
6845
6846         * dbus/dbus-string.c:
6847         * dbus/dbus-sysdeps.c:
6848         Make parse_double locale safe.
6849
6850         * dbus/dbus-test-main.c:
6851         Call setlocale.
6852
6853         * dbus/dbus-test.c:
6854         Kill dict test
6855
6856         * doc/dbus-specification.sgml:
6857         Update spec
6858
6859         * test/data/incomplete-messages/missing-body.message:
6860         * test/data/invalid-messages/bad-boolean.message:
6861         * test/data/invalid-messages/bad-boolean-array.message:
6862         * test/data/invalid-messages/boolean-array-length-too-long.message-raw:
6863         * test/data/invalid-messages/boolean-has-no-value.message-raw:
6864         * test/data/invalid-messages/too-short-dict.message:
6865         * test/data/valid-messages/dict-simple.message:
6866         * test/data/valid-messages/dict.message:
6867         * test/data/valid-messages/emptiness.message:
6868         * test/data/valid-messages/lots-of-arguments.message:
6869         * test/data/valid-messages/no-padding.message:
6870         * test/data/valid-messages/recursive-types.message:
6871         Add missing NAME fields
6872         Fix up dicts & arrays
6873
6874         * test/data/invalid-messages/dict-with-nil-value.message:
6875         Removed, this is not invalid anymore.
6876
6877         * test/data/valid-messages/recursive-types.message:
6878         Add new test for deeply recursive types.
6879
6880 2003-04-07  Havoc Pennington  <hp@pobox.com>
6881
6882         * bus/driver.c (bus_driver_handle_acquire_service): return an
6883         error if you try to acquire a service that starts with ':'
6884
6885 2003-04-07  Havoc Pennington  <hp@redhat.com>
6886
6887         * doc/dbus-specification.sgml: require that base service names
6888         start with ':' and that the base service is created/deleted
6889         as first and last things a connection does on the bus
6890
6891         * bus/dispatch.c (check_existent_service_activation): lots more
6892         work on the activation test; it doesn't fully pass yet...
6893
6894         * test/test-service.c (main): fix so we don't memleak the
6895         connection to the message bus
6896         (filter_func): accept a message asking us to exit
6897
6898 2003-04-06  Havoc Pennington  <hp@pobox.com>
6899
6900         * qt/Makefile.am (dbusinclude_HEADERS): install dbus-qt.h,
6901         from Colin Walters
6902
6903         * configure.in: fixes to Qt detection from Colin Walters
6904
6905         * doc/Makefile.am: Only remove generated docbook dirs if they
6906         exist, from Colin Walters
6907
6908         * dbus/dbus-bus.c: change how we set well-known connections to
6909         NULL, so that it works if a single connection is stored in
6910         two well-known array slots.
6911
6912         * test/Makefile.am: remove a lot of stuff that isn't immediately
6913         useful, it's in CVS history if we want it.
6914
6915         * test/test-service.c: use dbus-mainloop instead of that
6916         watch.[hc] crack
6917
6918 2003-04-06  Havoc Pennington  <hp@pobox.com>
6919
6920         * dbus/Makefile.am: split lists of sources into stuff that goes in
6921         the library, util functions that go in the lib and are also used
6922         elsewhere, and util functions that are used in tests/daemon but
6923         don't go in the lib.
6924
6925         * dbus/dbus-mainloop.h, dbus/dbus-mainloop.c: move bus/loop.[hc]
6926         here so it can be used in test binaries also
6927
6928 2003-04-06  Havoc Pennington  <hp@pobox.com>
6929
6930         * dbus/dbus-sysdeps.c (_dbus_become_daemon): write the pidfile
6931         here in the parent process, so we can return an error if it
6932         fails. Also, move some of the code into the child so the parent
6933         is less hosed if we fail midway through.
6934
6935         * bus/bus.c (bus_context_new): move pidfile detection further up
6936         in the function, before we start overwriting sockets and such.
6937
6938         * bus/messagebus.in: adjust this a bit, not sure if it will work.
6939
6940         * configure.in: add --with-system-pid-file and --with-system-socket
6941
6942 2003-04-06  Colin Walters  <walters@verbum.org>
6943
6944         * configure.in (DBUS_SYSTEM_PID_FILE): New variable.
6945
6946         * bus/system.conf.in: Declare a pidfile.
6947
6948         * bus/bus.c (bus_context_new): Test for an existing pid file, and
6949         create one (if appropriate).
6950
6951         * bus/config-parser.c (enum ElementType) [ELEMENT_PIDFILE]: New.
6952         (struct BusConfigParser) [pidfile]: New.
6953         (element_type_to_name, merge_included, start_busconfig_child)
6954         (bus_config_parser_end_element, bus_config_parser_content): Handle it.
6955         (bus_config_parser_unref): Free it.
6956         (bus_config_parser_get_pidfile): New function.
6957
6958         * bus/config-parser.h (_dbus_write_pid_file): Prototype.
6959
6960         * dbus/dbus-errors.h (DBUS_ERROR_PIDFILE_EXISTS): New error.
6961
6962         * dbus/dbus-sysdeps.c (_dbus_write_pid_file): New function.
6963
6964         * dbus/dbus-sysdeps.h: Prototype it.
6965
6966 2003-04-06  Havoc Pennington  <hp@pobox.com>
6967
6968         * bus/bus.c (bus_context_new): print the address in here, rather
6969         than in main(), because we need to do it before forking the daemon
6970
6971         * bus/dispatch.c (send_service_nonexistent_error): set the sender
6972         on the service nonexistent error
6973
6974         * bus/driver.c (bus_driver_handle_acquire_service): set the
6975         sender on the AcquireService reply
6976
6977         * test/data/valid-config-files/debug-allow-all.conf.in: Make test
6978         server also listen on a UNIX socket so services can connect to it.
6979
6980 2003-04-06  Havoc Pennington  <hp@pobox.com>
6981
6982         * dbus/dbus-threads.c: Redo how the fake debug mutexes are done
6983         so it detects deadlocks and also we actually init threads when
6984         debugging.
6985
6986 2003-04-06  Havoc Pennington  <hp@pobox.com>
6987
6988         * dbus/dbus-server-unix.c (_dbus_server_new_for_domain_socket):
6989         save the domain socket name, and unlink it when we disconnect the
6990         server. Means that at least when we exit normally, we won't leave
6991         a bunch of junk in /tmp
6992
6993         * dbus/dbus-transport-unix.c
6994         (_dbus_transport_new_for_domain_socket): code cleanup (nicer
6995         memory management). (I was making a real change here but then
6996         didn't)
6997
6998 2003-04-06  Havoc Pennington  <hp@pobox.com>
6999
7000         * bus/bus.c (bus_context_new): fix wrong handling of
7001         server_data_slot_unref() in the error case.
7002
7003         * dbus/dbus-internals.h (_dbus_assert): change so it passes
7004         "(condition) != 0" to _dbus_real_assert so that
7005         "_dbus_assert (pointer)" doesn't cause a warning
7006
7007         * bus/main.c (main): accept --print-address option to print out
7008         the message bus address
7009
7010         * dbus/dbus-sysdeps.c (_dbus_generate_random_ascii): export this
7011
7012         * dbus/dbus-transport.c (_dbus_transport_open): special error for
7013         "tmpdir" option to unix: address on client side
7014
7015         * dbus/dbus-server.c (dbus_server_listen): handle "tmpdir" option
7016         to unix: address
7017
7018         * configure.in (TEST_SOCKET_DIR): locate a temporary directory
7019         we can use to create sockets in the test suite.
7020
7021         * bus/main.c (signal_handler): on SIGTERM, exit the daemon
7022         cleanly. To be used for testing.
7023
7024         * dbus/dbus-spawn.c (babysit): use _dbus_set_signal_handler()
7025
7026         * dbus/dbus-sysdeps.c (_dbus_set_signal_handler): new
7027
7028         * dbus/dbus-server-debug-pipe.c (_dbus_transport_debug_pipe_new):
7029         handle trying to call this when there's no servers active
7030
7031 2003-04-05  Havoc Pennington  <hp@pobox.com>
7032
7033         * NEWS: update
7034
7035         * configure.in: 0.8
7036
7037 2003-04-05  Havoc Pennington  <hp@pobox.com>
7038
7039         * bus/bus.c (setup_server): fix this so dbus-daemon-1 doesn't
7040         crash on startup. Need to get "try starting the daemon"
7041         in the test suite I guess. ;-)
7042
7043         * dbus/dbus-server.h, dbus/dbus-server.c: remove the stuff that
7044         tracked the number of open connections; it's better done in
7045         application-specific code as you want it to span all servers etc.
7046
7047 2003-04-05  Havoc Pennington  <hp@pobox.com>
7048
7049         * bus/Makefile.am (install-data-hook): add missing DESTDIR,
7050         patch from Colin Walters
7051
7052 2003-04-05  Havoc Pennington  <hp@pobox.com>
7053
7054         * doc/config-file.txt (Elements): fix docs of <auth> to reflect
7055         reality; in fact multiple mechanisms are allowed.
7056
7057         * dbus/dbus-internals.c (_dbus_real_assert)
7058         (_dbus_real_assert_not_reached): move guts of _dbus_assert() and
7059         _dbus_assert_not_reached() into functions, so that they don't show
7060         up in basic block counts for test coverage, and don't use up as
7061         much disk space. Does mean slower execution speed though, so
7062         assumes --disable-asserts is the normal production case.
7063
7064 2003-04-05  Havoc Pennington  <hp@pobox.com>
7065
7066         * test/Makefile.am (dist-hook): also dist *.in files
7067
7068         * NEWS: update
7069
7070         * configure.in: 0.7
7071
7072 2003-04-05  Havoc Pennington  <hp@pobox.com>
7073
7074         * dbus/dbus-string.c: docs warning
7075
7076         * dbus/dbus-spawn.c: missing docs
7077
7078         * dbus/dbus-memory.c (struct ShutdownClosure): missing docs
7079
7080 2003-04-05  Havoc Pennington  <hp@pobox.com>
7081
7082         * bus/loop.c (bus_loop_iterate): fix the timeout code, using
7083         magic from GLib
7084
7085         * dbus/dbus-spawn.c (_dbus_babysitter_unref): set sitter_pid
7086         to -1 once we've reaped the babysitter
7087         (_dbus_babysitter_handle_watch): do as much work as we can, not
7088         just one go of it
7089
7090         * bus/activation.c: add code using DBusBabysitter so that we
7091         handle it when a service fails to start up properly.
7092         (bus_activation_service_created): don't remove the activation
7093         entries as we go, just let them get removed when we free the pending
7094         activation. Unref reply messages after sending them.
7095
7096 2003-04-05  Havoc Pennington  <hp@pobox.com>
7097
7098         * test/decode-gcov.c (main): print per-directory stats in the report
7099
7100         * Makefile.am (coverage-report.txt): don't include test/* in gcov stats
7101
7102 2003-04-05  Havoc Pennington  <hp@pobox.com>
7103
7104         * Makefile.am (coverage-report.txt): add target "coverage-report.txt"
7105
7106         * test/decode-gcov.c: hack up a little program to suck data
7107         out of gcov files. Yes this is sort of silly.
7108
7109         * configure.in: define something in config.h and do an
7110         AM_CONDITIONAL when gcov is enabled
7111
7112 2003-04-04  Havoc Pennington  <hp@redhat.com>
7113
7114         * dbus/dbus-spawn.c, dbus/dbus-spawn.h: Change dbus_spawn to
7115         return a "babysitter" object that is used to monitor the status of
7116         the spawned process and reap it when required.
7117
7118         * test/test-segfault.c, test/test-exit.c,
7119         test/test-sleep-forever.c: binaries that do various lame things,
7120         used in the test suite.
7121
7122         * dbus/dbus-sysdeps.c: kill _dbus_errno_to_string()
7123
7124 2003-04-03  Havoc Pennington  <hp@pobox.com>
7125
7126         * dbus/dbus-spawn.c: Move dbus-spawn into a separate file
7127         in preparation for modifying it, dbus-sysdeps is getting
7128         a bit unmanageable.
7129
7130 2003-04-03  Havoc Pennington  <hp@redhat.com>
7131
7132         * bus/loop.h, bus/loop.c: make the mainloop an object so we can
7133         have multiple ones
7134
7135         * bus/*.[hc]: adapt to mainloop change
7136
7137 2003-04-03  Havoc Pennington  <hp@redhat.com>
7138
7139         * bus/activation.c (load_directory): fix up memleaks
7140         (bus_activation_entry_free): free the entry
7141
7142         * dbus/dbus-bus.c (dbus_bus_acquire_service): return an error if
7143         we get one from the message bus; fix memleaks.
7144
7145         * dbus/dbus-message.c (dbus_set_error_from_message): new function
7146
7147 2003-04-03  Havoc Pennington  <hp@pobox.com>
7148
7149         * bus/config-parser.c (bus_config_parser_unref): free
7150         list of mechanisms, bug discovered by test suite enhancements
7151         (putting system.conf and session.conf into suite)
7152
7153         * test/Makefile.am, test/test-service.c: add placeholder for a
7154         test service that we'll activate as part of test suite. Doesn't
7155         do anything yet.
7156
7157         * dbus/dbus-sysdeps.c (_dbus_setenv): support unsetenv by
7158         setting NULL value, and use system malloc not dbus_malloc()
7159         when we have unavoidable memleakage.
7160
7161         * dbus/dbus-bus.c (dbus_bus_get): fix bug where bus type of 0
7162         didn't work, and support DBUS_BUS_ACTIVATION.
7163
7164         * bus/activation.c (child_setup): pass our well-known bus type to
7165         the child
7166
7167         * bus/config-parser.c: support <type> to specify well-known type
7168
7169         * doc/dbus-specification.sgml: document the env variables to
7170         locate well-known buses and find service activator
7171
7172 2003-04-02  Havoc Pennington  <hp@redhat.com>
7173
7174         * test/Makefile.am (all-local): add a rule to copy tests to
7175         builddir, so we can have generated tests. Use this to remove the
7176         silly hack for testing system.conf and session.conf. Will use this
7177         shortly to generate .service files pointing to test binaries.
7178
7179 2003-04-02  Havoc Pennington  <hp@redhat.com>
7180
7181         * dbus/dbus-string.c (set_length): fix a bug - we allocated max of
7182         current alloc and needed new length, not max of the doubled
7183         allocation and needed new length. Also, when building tests,
7184         don't do the double-allocation stuff, just realloc every time.
7185
7186 2003-04-02  Havoc Pennington  <hp@redhat.com>
7187
7188         * dbus/dbus-sysdeps.c (_dbus_file_get_contents): include filenames
7189         in error messages
7190         (_dbus_string_get_dirname): new
7191         (_dbus_sysdeps_test): new
7192         (_dbus_directory_open): include dirnames in error messages
7193
7194         * bus/config-parser.c: interpret <include> and <includedir> and
7195         <servicedir> relative to config file location if the given
7196         filename is not absolute.
7197
7198         * dbus/dbus-string.c (_dbus_string_find_byte_backward): new
7199
7200 2003-04-02  Havoc Pennington  <hp@redhat.com>
7201
7202         * bus/connection.c (bus_transaction_send_error_reply): set sender
7203         service for the error, and unref the reply on success
7204
7205         * bus/activation.c: convert to use BusTransaction so OOM can be
7206         handled correctly
7207         (bus_activation_service_created): set sender of the message
7208
7209 2003-04-01  Havoc Pennington  <hp@redhat.com>
7210
7211         * bus/config-parser.c, bus/bus.c: implement <servicedir> and
7212         <includedir> (at least mostly)
7213
7214         * dbus/dbus-sysdeps.c (_dbus_change_identity): set the group ID
7215         first, then the user ID
7216
7217 2003-04-01  Havoc Pennington  <hp@pobox.com>
7218
7219         * dbus/dbus-server.c (dbus_server_set_auth_mechanisms): new
7220         function
7221
7222         * dbus/dbus-auth.c (_dbus_auth_set_mechanisms): new
7223
7224         * dbus/dbus-internals.c (_dbus_dup_string_array): new function
7225
7226         * dbus/dbus-sysdeps.c (_dbus_listen_unix_socket): chmod the
7227         socket 0777, and unlink any existing socket.
7228
7229         * bus/bus.c (bus_context_new): change our UID/GID and fork if
7230         the configuration file so specifies; set up auth mechanism
7231         restrictions
7232
7233         * bus/config-parser.c (bus_config_parser_content): add support
7234         for <fork> option and fill in code for <auth>
7235
7236         * bus/system.conf.in: add <fork/> to default configuration,
7237         and limit auth mechanisms to EXTERNAL
7238
7239         * doc/config-file.txt (Elements): add <fork>
7240
7241         * dbus/dbus-sysdeps.c (_dbus_become_daemon): new function
7242         (_dbus_change_identity): new function
7243
7244 2003-03-31  Havoc Pennington  <hp@redhat.com>
7245
7246         * dbus/dbus-sysdeps.c (_dbus_connect_unix_socket)
7247         (_dbus_listen_unix_socket): fix off-by-one error in null
7248         termination spotted by Nalin
7249
7250 2003-03-31  Havoc Pennington  <hp@redhat.com>
7251
7252         * dbus/dbus-keyring.c (_dbus_keyring_new_homedir): allow setting
7253         DBUS_TEST_HOMEDIR when tests are enabled, so we can test without
7254         having a real home directory available.
7255
7256 2003-03-31  Havoc Pennington  <hp@redhat.com>
7257
7258         * bus/Makefile.am (install-data-hook): create /var/run/dbus
7259
7260         * bus/messagebus.in: add init script for Red Hat /etc/init.d
7261
7262         * configure.in: add support for specifying a style of init script
7263         to install
7264
7265 2003-03-31  Havoc Pennington  <hp@redhat.com>
7266
7267         Fix some annoying DBusString API and fix all affected code.
7268
7269         * dbus/dbus-string.c (_dbus_string_init): get rid of annoying
7270         max_length argument
7271         (_dbus_string_get_data): change to return string instead of using
7272         an out param
7273         (_dbus_string_get_const_data): ditto
7274         (_dbus_string_get_data_len): ditto
7275         (_dbus_string_get_const_data_len): ditto
7276
7277 2003-03-31  Havoc Pennington  <hp@redhat.com>
7278
7279         * bus/main.c (main): fix up the command line arguments to be nicer
7280
7281 2003-03-31  Havoc Pennington  <hp@redhat.com>
7282
7283         * dbus/Makefile.am (INCLUDES): use EXPANDED_LOCALSTATEDIR to
7284         define DBUS_SYSTEM_BUS_PATH as we want to compile in the same
7285         final location that lands in the config file
7286
7287         * bus/config-loader-expat.c (bus_config_load): fix type of
7288         XML_Parser variable
7289
7290         * doc/TODO: remove TODO item for dbus_bus_get()
7291
7292         * dbus/dbus-bus.c (bus_data_free): add missing lock/unlock
7293
7294 2003-03-31  Havoc Pennington  <hp@pobox.com>
7295
7296         * dbus/dbus-transport-unix.c (_dbus_transport_new_for_domain_socket)
7297         (_dbus_transport_new_for_tcp_socket): these didn't need the "server"
7298         argument since they are always client side
7299
7300         * dbus/dbus-server.c (dbus_server_get_address): new function
7301
7302         * bus/main.c (main): take the configuration file as an argument.
7303
7304         * test/data/valid-config-files/debug-allow-all.conf: new file to
7305         use with dispatch.c tests for example
7306
7307         * bus/test-main.c (main): require test data dir
7308
7309         * bus/bus.c (bus_context_new): change this to take a
7310         configuration file name as argument
7311
7312         * doc/config-file.txt (Elements): add <servicedir>
7313
7314         * bus/system.conf, bus/session.conf: new files
7315
7316         * dbus/dbus-bus.c (dbus_bus_get): look for system bus on
7317         well-known socket if none set
7318
7319         * configure.in: create system.conf and session.conf
7320
7321 2003-03-30  Havoc Pennington  <hp@pobox.com>
7322
7323         * bus/config-parser.c: hacking
7324
7325         * dbus/dbus-memory.c: don't use DBusList for the list of stuff
7326         to shut down, since it could cause weirdness with the DBusList
7327         lock
7328
7329         * dbus/dbus-list.c (_dbus_list_test): add tests for the
7330         link-oriented stack routines
7331         (alloc_link): free the mempool if the first alloc from it fails
7332
7333         * dbus/dbus-mempool.c (struct DBusMemBlock): fix alignment issue
7334
7335         * dbus/dbus-string.c (UNICODE_VALID): sync new version of this
7336         from GLib
7337         (_dbus_string_skip_white): new
7338
7339         * doc/config-file.txt (Elements): add <includedir>
7340
7341 2003-03-28  Havoc Pennington  <hp@pobox.com>
7342
7343         * dbus/dbus-string.c (_dbus_string_copy_data_len)
7344         (_dbus_string_copy_data): new functions
7345
7346 2003-03-28  Anders Carlsson  <andersca@codefactory.se>
7347
7348         * dbus/dbus-bus.c: (bus_data_free), (dbus_bus_get):
7349         * dbus/dbus-bus.h:
7350         Add dbus_bus_get.
7351
7352         * dbus/dbus-memory.c:
7353         Fix a doc comment.
7354
7355 2003-03-28  Havoc Pennington  <hp@pobox.com>
7356
7357         * bus/test.c (bus_test_flush_bus): remove the sleep from here,
7358         I think it may have just been superstition. Not sure.
7359
7360         * dbus/dbus-string.c (_dbus_string_base64_decode): catch some OOM
7361         failures that were not being handled.
7362
7363         * dbus/dbus-auth.c (process_auth): fix a memleak in OOM handling
7364
7365         * dbus/dbus-memory.c: add ability to set number of mallocs in a
7366         row that will fail on out-of-memory.
7367
7368         * dbus/dbus-internals.c (_dbus_test_oom_handling): convenience
7369         function for testing out-of-memory handling.
7370
7371         * bus/config-loader-expat.c (memsuite): don't wrap the dbus
7372         allocation functions, they do map exactly to the expat ones.
7373
7374 2003-03-27  Havoc Pennington  <hp@redhat.com>
7375
7376         * bus/config-loader-libxml.c (bus_config_load): add another error
7377         check
7378
7379 2003-03-26  Anders Carlsson  <andersca@codefactory.se>
7380
7381         * doc/TODO:
7382         Add note about automatic service activation.
7383
7384         * doc/dbus-specification.sgml:
7385         Rename the specification and clarify a few things.
7386
7387 2003-03-26  Anders Carlsson  <andersca@codefactory.se>
7388
7389         * Doxyfile.in:
7390         * dbus/dbus-address.c:
7391         * dbus/dbus-dict.c:
7392         * dbus/dbus-marshal.c:
7393         * dbus/dbus-server-debug-pipe.c:
7394         * dbus/dbus-transport-unix.c:
7395         Fix documentation warnings.
7396
7397 2003-03-26  Havoc Pennington  <hp@pobox.com>
7398
7399         * bus/test-main.c, dbus/dbus-test.c (main): check memleaks
7400         after every test so it's quick and easy to see which leaked, and
7401         so we test multiple dbus_shutdown() calls
7402
7403         * configure.in: change configure.in XML stuff to also support
7404         expat
7405
7406         * config-loader-libxml.c: some hacking
7407
7408         * config-loader-expat.c: some hacking
7409
7410         * config-parser.c: some hacking, plus tests
7411
7412 2003-03-25  Havoc Pennington  <hp@redhat.com>
7413
7414         * throughout - add more _DBUS_ASSERT_ERROR_IS_CLEAR
7415
7416         * configure.in: add --with-xml option to specify XML library,
7417         right now only libxml is supported.
7418
7419         * bus/config-loader-libxml.c, config-parser.c: sync some minor
7420         nonworking code between home and work, still just stubs
7421
7422 2003-03-24  Havoc Pennington  <hp@redhat.com>
7423
7424         * dbus/dbus-sysdeps.c (_dbus_set_fd_nonblocking): move to this
7425         file
7426
7427         * dbus/dbus-errors.c (dbus_set_error, dbus_set_error_const): allow
7428         NULL argument for "message" if the error is a well-known one,
7429         fill in a generic message in this case.
7430
7431         * dbus/dbus-errors.h (DBusResultCode): Kill DBusResultCode in
7432         favor of DBusError
7433
7434         * bus/test.c (bus_test_flush_bus): add
7435
7436         * bus/policy.c (bus_policy_test): test code stub
7437
7438 2003-03-24  Havoc Pennington  <hp@pobox.com>
7439
7440         * bus/connection.c (bus_connections_setup_connection): set up
7441         the "can this user connect" function, but it always returns
7442         TRUE until we have a config file parser so we can have a config
7443         file that allows connections.
7444
7445 2003-03-23  Havoc Pennington  <hp@pobox.com>
7446
7447         * dbus/dbus-threads.c (dbus_mutex_new, dbus_condvar_new): with
7448         DBUS_BUILD_TESTS, actually alloc/free a block of memory for
7449         the mutex, so we can check for proper memory management
7450         and OOM handling.
7451
7452         * dbus/dbus-dataslot.c: remove the mutex from
7453         DBusDataSlotAllocator and lock it manually when using it,
7454         to simplify fitting it into the global slots framework.
7455
7456         * dbus/dbus-threads.c (init_static_locks): rework how we're
7457         handling global locks so they are easily shut down.
7458
7459         * bus/policy.c (bus_policy_append_rule): fix
7460
7461         * bus/test-main.c (main): check for memleaks
7462
7463         * dbus/dbus-test.c (dbus_internal_do_not_use_run_tests): make
7464         test suite check for memleaks
7465
7466         * dbus/dbus-memory.c: add support in test mode for tracking
7467         number of outstanding blocks
7468
7469 2003-03-23  Havoc Pennington  <hp@pobox.com>
7470
7471         * bus/policy.c, bus/bus.c, bus/connection.c: implement allow/deny
7472         policies code
7473
7474         * dbus/dbus-hash.h: add ULONG hash keys
7475
7476         * dbus/dbus-sysdeps.c (_dbus_get_groups): new
7477         (_dbus_get_group_id): new function
7478
7479 2003-03-20  Havoc Pennington  <hp@redhat.com>
7480
7481         * dbus/dbus-connection.c (dbus_connection_set_unix_user_function):
7482         new function
7483         (dbus_connection_get_unix_user): new function
7484
7485 2003-03-20  Havoc Pennington  <hp@pobox.com>
7486
7487         * bus/connection.c (bus_connection_send_oom_error): assert that
7488         message has a sender
7489         (connection_execute_transaction): ditto
7490         (bus_connection_preallocate_oom_error): fix to set the sender, and
7491         set recipient to the destination service, not the bus driver
7492
7493         * bus/policy.c: hacking
7494
7495         * dbus/dbus-message.c (dbus_message_service_is): new function
7496         (dbus_message_sender_is): new
7497
7498 2003-03-19  Havoc Pennington  <hp@redhat.com>
7499
7500         * bus/policy.c: start sketching code for policy restrictions on
7501         what connections can do.
7502
7503 2003-03-18  Havoc Pennington  <hp@redhat.com>
7504
7505         * doc/TODO: some notes on high-level todo items. Little nitpick
7506         stuff is all in @todo, so no need to add it here.
7507
7508         * doc/config-file.txt: some notes on how config file might look
7509
7510 2003-03-18  Anders Carlsson  <andersca@codefactory.se>
7511
7512         * configure.in: 0.6
7513
7514         * NEWS: Update.
7515
7516 2003-03-17  Havoc Pennington  <hp@redhat.com>
7517
7518         * dbus/dbus-internals.h: add gcc attributes so that
7519         our printf-style functions warn on bad arguments to
7520         format
7521
7522         * dbus/dbus-sysdeps.c (_dbus_connect_tcp_socket): fix printf
7523         format bug
7524
7525         * dbus/dbus-message.c (_dbus_message_loader_queue_messages): fix
7526         printf format bug
7527
7528 2003-03-17  Havoc Pennington  <hp@redhat.com>
7529
7530         * bus/test-main.c (main): make it print something as it runs
7531         so make check doesn't look stuck
7532
7533         * doc/negotiation.txt, doc/dbus-sasl-profile.txt: remove
7534         from CVS, now obsolete
7535
7536 2003-03-17  Anders Carlsson  <andersca@codefactory.se>
7537
7538         * bus/dispatch.c: (bus_dispatch):
7539         Refetch the service name since it may have been reallocated
7540         when dbus_message_set_sender was called.
7541
7542         * dbus/dbus-sysdeps.c: (_dbus_accept):
7543         Add address and address length variables and use them to stop
7544         valgrind from complaining.
7545
7546 2003-03-17  Havoc Pennington  <hp@pobox.com>
7547
7548         All tests pass, no memleaks, no valgrind complaints.
7549
7550         * bus/test.c: refcount handler_slot
7551
7552         * bus/connection.c (bus_connections_new): refcount
7553         connection_data_slot
7554
7555         * dbus/dbus-auth-script.c (_dbus_auth_script_run): delete unused
7556         bytes so that auth scripts pass.
7557
7558         * bus/dispatch.c: init message_handler_slot so it gets allocated
7559         properly
7560
7561         * bus/dispatch.c (message_handler_slot_ref): fix memleak
7562
7563         * dbus/dbus-server-debug-pipe.c (_dbus_server_debug_pipe_new):
7564         dealloc server_pipe_hash when no longer used for benefit of
7565         leak checking
7566
7567         * dbus/dbus-auth.c (process_command): memleak fix
7568
7569         * bus/dispatch.c (check_hello_message): memleak fix
7570
7571 2003-03-16  Havoc Pennington  <hp@pobox.com>
7572
7573         * dbus/dbus-bus.c (ensure_bus_data): fix double-unref of the data slot
7574
7575 2003-03-17  Anders Carlsson  <andersca@codefactory.se>
7576
7577         * bus/activation.c (bus_activation_activate_service): Append
7578         the pending activation entry to the list of pending activations.
7579
7580 2003-03-16  Havoc Pennington  <hp@pobox.com>
7581
7582         * bus/dispatch.c (bus_dispatch_test): remove double-unrefs of
7583         connections
7584
7585         * dbus/dbus-address.c (create_entry): fix OOM handling when
7586         failing to alloc entry->method
7587
7588 2003-03-16  Havoc Pennington  <hp@pobox.com>
7589
7590         * dbus/dbus-watch.c (_dbus_watch_new): handle failure to malloc
7591         the watch
7592
7593         * dbus/dbus-server-debug-pipe.c (_dbus_transport_debug_pipe_new):
7594         add some missing dbus_set_result
7595
7596         * bus/dispatch.c (bus_dispatch_add_connection): handle failure to
7597         alloc the DBusMessageHandler
7598
7599         * dbus/dbus-transport.c (_dbus_transport_disconnect): don't ref
7600         the transport here, since we call this from the finalizer; it
7601         resulted in a double-finalize.
7602
7603         * dbus/dbus-transport.c (_dbus_transport_disconnect): fix a bug
7604         where we tried to use transport->connection that was NULL,
7605         happened when transport was disconnected early on due to OOM
7606
7607         * bus/*.c: adapt to handle OOM for watches/timeouts
7608
7609         * dbus/dbus-transport-unix.c: port to handle OOM during
7610         watch handling
7611
7612         * dbus/dbus-auth.c (_dbus_auth_get_unused_bytes): return a
7613         reference to unused bytes instead of a copy
7614
7615         * dbus/dbus-server.c (dbus_server_handle_watch): return FALSE for
7616         out of memory
7617
7618         * dbus/dbus-connection.c (dbus_connection_handle_watch): return
7619         FALSE on OOM
7620
7621         * dbus/dbus-timeout.c (dbus_timeout_handle): return FALSE for out
7622         of memory
7623
7624 2003-03-16  Anders Carlsson  <andersca@codefactory.se>
7625
7626         * doc/dbus-specification.sgml:
7627         Document reply message for ActivateService.
7628
7629 2003-03-16  Anders Carlsson  <andersca@codefactory.se>
7630
7631         * bus/activation.c: (bus_pending_activation_entry_free),
7632         (bus_pending_activation_free), (bus_activation_new),
7633         (bus_activation_unref), (bus_activation_service_created),
7634         (bus_activation_activate_service):
7635         * bus/activation.h:
7636         * bus/bus.c: (bus_context_new):
7637         * bus/desktop-file.c: (new_section):
7638         * bus/driver.c: (bus_driver_send_service_deleted),
7639         (bus_driver_handle_activate_service):
7640         * bus/services.c: (bus_registry_new), (bus_registry_ensure):
7641         * bus/services.h:
7642         * dbus/dbus-connection.c:
7643         (dbus_connection_send_with_reply_and_block):
7644         * dbus/dbus-message.c: (dbus_message_append_args_valist):
7645         * dbus/dbus-protocol.h:
7646         Make activation work better. Now pending activations will be queued
7647         and the daemon won't try to activate services that are already registered.
7648
7649 2003-03-16  Havoc Pennington  <hp@pobox.com>
7650
7651         * dbus/dbus-bus.c (ensure_bus_data): handle failure to set
7652         connection data
7653
7654         * dbus/dbus-memory.c (_dbus_initialize_malloc_debug): support
7655         DBUS_MALLOC_BACKTRACES to print trace when failing an alloc
7656
7657 2003-03-16  Havoc Pennington  <hp@pobox.com>
7658
7659         * dbus/dbus-string.c (_dbus_string_validate_utf8): oops, unbreak
7660         this. always run the test suite before commit...
7661
7662         * bus/*: adapt to DBusConnection API changes
7663
7664         * glib/dbus-gmain.c: adapt to DBusConnection API changes,
7665         requires renaming stuff to avoid dbus_connection_dispatch name
7666         conflict.
7667
7668         * dbus/dbus-transport.c (_dbus_transport_queue_messages): new
7669         function
7670
7671         * dbus/dbus-message.c (_dbus_message_loader_queue_messages):
7672         separate from _dbus_message_loader_return_buffer()
7673
7674         * dbus/dbus-connection.c (dbus_connection_get_n_messages): remove
7675         this, because it's now always broken to use; the number of
7676         messages in queue vs. the number still buffered by the message
7677         loader is undefined/meaningless. Should use
7678         dbus_connection_get_dispatch_state().
7679         (dbus_connection_dispatch): rename from
7680         dbus_connection_dispatch_message
7681
7682 2003-03-16  Havoc Pennington  <hp@pobox.com>
7683
7684         * dbus/dbus-string.c (_dbus_string_validate_utf8): copy in a real
7685         implementation
7686
7687 2003-03-16  Anders Carlsson  <andersca@codefactory.se>
7688
7689         * dbus/dbus-connection.c:
7690         (dbus_connection_send_with_reply_and_block):
7691         Decrease connection->n_incoming when removing an entry
7692         from the list.
7693         * dbus/dbus-dict.c: (dbus_dict_entry_free),
7694         (dbus_dict_set_boolean_array), (dbus_dict_set_int32_array),
7695         (dbus_dict_set_uint32_array), (dbus_dict_set_double_array),
7696         (dbus_dict_set_byte_array), (dbus_dict_set_string_array),
7697         (dbus_dict_get_boolean_array), (dbus_dict_get_double_array),
7698         (dbus_dict_get_byte_array):
7699         Handle NULL arrays and strings. Also add support for byte arrays.
7700
7701         * dbus/dbus-marshal.c: (_dbus_marshal_byte_array),
7702         (_dbus_marshal_dict), (_dbus_demarshal_byte_array),
7703         (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
7704         (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
7705         (_dbus_demarshal_dict), (demarshal_and_validate_len),
7706         (_dbus_marshal_validate_arg), (_dbus_marshal_test):
7707         * dbus/dbus-marshal.h:
7708         Add support for marshalling and demarshalling empty arrays and strings.
7709
7710         * dbus/dbus-message.c: (dbus_message_append_args_valist),
7711         (dbus_message_append_string_array),
7712         (dbus_message_iter_get_boolean),
7713         (dbus_message_iter_get_boolean_array),
7714         (dbus_message_iter_get_int32_array),
7715         (dbus_message_iter_get_uint32_array),
7716         (dbus_message_iter_get_double_array),
7717         (dbus_message_iter_get_byte_array),
7718         (dbus_message_iter_get_string_array), (dbus_message_iter_get_dict),
7719         (check_message_handling):
7720         Add support for getting empty arrays and dicts.
7721
7722         * dbus/dbus-string.c: (_dbus_string_validate_utf8):
7723         Don't do any validation at all for now, that's better than just checking
7724         for ASCII.
7725
7726         * test/data/valid-messages/emptiness.message:
7727         New test message with lots of empty arrays.
7728
7729 2003-03-16  Havoc Pennington  <hp@pobox.com>
7730
7731         * dbus/dbus-connection.c
7732         (_dbus_connection_queue_received_message_link): new function that
7733         can't fail due to OOM
7734
7735         * dbus/dbus-message.c (_dbus_message_loader_pop_message_link):
7736         new function pops a message together with a list link
7737         containing it.
7738
7739         * dbus/dbus-transport-unix.c (queue_messages): use new link-based
7740         message queuing functions to avoid needing to alloc memory
7741
7742 2003-03-16  Havoc Pennington  <hp@pobox.com>
7743
7744         Oops - test code was only testing failure of around 30 of the
7745         mallocs in the test path, but it turns out there are 500+
7746         mallocs. I believe this was due to misguided linking setup such
7747         that there was one copy of dbus_malloc etc. in the daemon and one
7748         in the shared lib, and only daemon mallocs were tested. In any
7749         case, the test case now tests all 500+ mallocs, and doesn't pass
7750         yet, though there are lots of fixes in this patch.
7751
7752         * dbus/dbus-connection.c (dbus_connection_dispatch_message): fix
7753         this so that it doesn't need to allocate memory, since it
7754         has no way of indicating failure due to OOM (and would be
7755         annoying if it did).
7756
7757         * dbus/dbus-list.c (_dbus_list_pop_first_link): new function
7758
7759         * bus/Makefile.am: rearrange to create two self-contained
7760         libraries, to avoid having libraries with overlapping symbols.
7761         that was resulting in weirdness, e.g. I'm pretty sure there
7762         were two copies of global static variables.
7763
7764         * dbus/dbus-internals.c: move the malloc debug stuff to
7765         dbus-memory.c
7766
7767         * dbus/dbus-list.c (free_link): free list mempool if it becomes
7768         empty.
7769
7770         * dbus/dbus-memory.c (_dbus_disable_mem_pools): new function
7771
7772         * dbus/dbus-address.c (dbus_parse_address): free list nodes
7773         on failure.
7774
7775         * bus/dispatch.c (bus_dispatch_add_connection): free
7776         message_handler_slot when no longer using it, so
7777         memory leak checkers are happy for the test suite.
7778
7779         * dbus/dbus-server-debug-pipe.c (debug_finalize): free server name
7780
7781         * bus/bus.c (new_connection_callback): disconnect in here if
7782         bus_connections_setup_connection fails.
7783
7784         * bus/connection.c (bus_connections_unref): fix to free the
7785         connections
7786         (bus_connections_setup_connection): if this fails, don't
7787         disconnect the connection, just be sure there are no side
7788         effects.
7789
7790         * dbus/dbus-string.c (undo_alignment): unbreak this
7791
7792         * dbus/dbus-auth.c (_dbus_auth_unref): free some stuff we were
7793         leaking
7794         (_dbus_auth_new): fix the order in which we free strings
7795         on OOM failure
7796
7797         * bus/connection.c (bus_connection_disconnected): fix to
7798         not send ServiceDeleted multiple times in case of memory
7799         allocation failure
7800
7801         * dbus/dbus-bus.c (dbus_bus_get_base_service): new function to
7802         get the base service name
7803         (dbus_bus_register_client): don't return base service name,
7804         instead store it on the DBusConnection and have an accessor
7805         function for it.
7806         (dbus_bus_register_client): rename dbus_bus_register()
7807
7808         * bus/dispatch.c (check_hello_message): verify that other
7809         connections on the bus also got the correct results, not
7810         just the one sending hello
7811
7812 2003-03-15  Havoc Pennington  <hp@pobox.com>
7813
7814         Make it pass the Hello handling test including all OOM codepaths.
7815         Now to do other messages...
7816
7817         * bus/services.c (bus_service_remove_owner): fix crash when
7818         removing owner from an empty list of owners
7819         (bus_registry_ensure): don't leave service in the list of
7820         a connection's owned services if we fail to put the service
7821         in the hash table.
7822
7823         * bus/connection.c (bus_connection_preallocate_oom_error): set
7824         error flag on the OOM error.
7825
7826         * dbus/dbus-connection.c (_dbus_connection_new_for_transport):
7827         handle _dbus_transport_set_connection failure
7828
7829         * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd): modify
7830         to create watches up front and simply enable/disable them as
7831         needed.
7832         (unix_connection_set): this can now fail on OOM
7833
7834         * dbus/dbus-timeout.c, dbus/dbus-watch.c: add concept
7835         of enabling/disabling a watch or timeout.
7836
7837         * bus/loop.c (bus_loop_iterate): don't touch disabled
7838         watches/timeouts
7839
7840         * glib/dbus-gmain.c: adapt to enable/disable watches and timeouts
7841
7842 2003-03-15  Havoc Pennington  <hp@pobox.com>
7843
7844         * bus/dispatch.c (bus_dispatch_test): OK, now finally actually
7845         write useful test code, after all that futzing around ;-)
7846
7847         Test does not yet pass because we can't handle OOM in
7848         _dbus_transport_messages_pending (basically,
7849         dbus_connection_preallocate_send() does not prealloc the write
7850         watch). To fix this, I think we need to add new stuff to
7851         set_watch_functions, namely a SetEnabled function so we can alloc
7852         the watch earlier, then enable it later.
7853
7854         * dbus/Makefile.am (libdbus_convenience_la_SOURCES): move
7855         dbus-memory.c to the convenience lib
7856
7857         * bus/test.c: rename some static functions to keep them clearly
7858         distinct from stuff in connection.c. Handle client disconnection.
7859
7860 2003-03-14  Havoc Pennington  <hp@pobox.com>
7861
7862         * bus/dispatch.c (bus_dispatch_test): do test using debug-pipe
7863         transport, tests more of the real codepath. Set up clients
7864         with bus_setup_debug_client.
7865
7866         * bus/test.c (bus_setup_debug_client): function to set up debug
7867         "clients" on the main loop
7868
7869         * dbus/dbus-transport.c (_dbus_transport_open): add debug-pipe
7870         support
7871
7872         * dbus/dbus-server.c (dbus_server_listen): add debug-pipe
7873         server type
7874
7875         * dbus/dbus-server-debug.c: support a debug server based on pipes
7876
7877         * dbus/dbus-sysdeps.c (_dbus_full_duplex_pipe): new function
7878         (_dbus_close): new function
7879
7880         * configure.in: check for socketpair
7881
7882 2003-03-14  Havoc Pennington  <hp@redhat.com>
7883
7884         * dbus/dbus-memory.c: add a "detect buffer overwrites on free"
7885         cheesy hack
7886
7887         * dbus/dbus-transport-debug.c: rework this a good bit to be
7888         less complicated. hopefully still works.
7889
7890         * dbus/dbus-server-debug.c (handle_new_client): remove timeout
7891         manually
7892
7893         * glib/dbus-gmain.c (timeout_handler): don't remove timeout
7894         after running it
7895
7896         * dbus/dbus-message.c (dbus_message_copy): rename from
7897         dbus_message_new_from_message, fix it up to copy
7898         all the message fields, add test case
7899
7900         * bus/dispatch.c (bus_dispatch_test): add some more test code,
7901         not quite passing yet
7902
7903 2003-03-14  Havoc Pennington  <hp@pobox.com>
7904
7905         * bus/loop.c (bus_loop_iterate): add this so we can "run loop
7906         until no work remains" in test code. (the large diff here
7907         is just code movement, no actual changes)
7908
7909         * dbus/dbus-server-debug.c (DEFAULT_INTERVAL): change interval to
7910         1, no point waiting around for test code.
7911         (_dbus_server_debug_accept_transport): unref the timeout
7912         after adding it (right?)
7913
7914         * dbus/dbus-transport-debug.c (DEFAULT_INTERVAL): ditto
7915
7916 2003-03-13  Havoc Pennington  <hp@redhat.com>
7917
7918         * dbus/dbus-timeout.c (_dbus_timeout_list_set_functions): handle
7919         out of memory
7920
7921         * dbus/dbus-watch.c (_dbus_watch_list_set_functions): handle out
7922         of memory
7923
7924         * dbus/dbus-connection.h: Make AddWatchFunction and
7925         AddTimeoutFunction return a bool so they can fail on out-of-memory
7926
7927         * bus/bus.c (bus_context_new): set up timeout handlers
7928
7929         * bus/connection.c (bus_connections_setup_connection): set up
7930         timeout handlers
7931
7932         * glib/dbus-gmain.c: adapt to the fact that set_functions stuff
7933         can fail
7934
7935         * bus/bus.c (bus_context_new): adapt to changes
7936
7937         * bus/connection.c: adapt to changes
7938
7939         * test/watch.c: adapt to DBusWatch changes
7940
7941         * bus/dispatch.c (bus_dispatch_test): started adding this but
7942         didn't finish
7943
7944 2003-03-14  Anders Carlsson  <andersca@codefactory.se>
7945
7946         * bus/dispatch.c (send_service_nonexistent_error): Fix typo.
7947
7948 2003-03-13  Havoc Pennington  <hp@pobox.com>
7949
7950         * bus/test.c, bus/test.h, bus/Makefile.am, bus/test-main.c:
7951         set up a test framework as for the library
7952
7953 2003-03-12  Havoc Pennington  <hp@pobox.com>
7954
7955         Throughout: purge global variables, introduce BusActivation,
7956         BusConnections, BusRegistry, etc. objects instead.
7957
7958         * bus/bus.h, bus/bus.c: introduce BusContext as a global
7959         message bus object
7960
7961         * test/Makefile.am (TEST_BINARIES): disable bus-test for now,
7962         going to redo this a bit differently I think
7963
7964 2003-03-12  Havoc Pennington  <hp@redhat.com>
7965
7966         Mega-patch that gets the message bus daemon initially handling
7967         out-of-memory. Work still needed. Also lots of random
7968         moving stuff to DBusError instead of ResultCode.
7969
7970         * dbus/dbus-list.c (_dbus_list_length_is_one): new function
7971
7972         * dbus/dbus-connection.c
7973         (dbus_connection_send_with_reply_and_block): use DBusError
7974
7975         * dbus/dbus-bus.c: adapt to API changes, make it use DBusError not
7976         DBusResultCode
7977
7978         * dbus/dbus-connection.c (dbus_connection_send): drop the result
7979         code here, as the only failure possible is OOM.
7980
7981         * bus/connection.c (bus_connection_disconnect):
7982         rename bus_connection_disconnected as it's a notification only
7983
7984         * bus/driver.c (bus_driver_handle_acquire_service): don't free
7985         "name" on get_args failure, should be done by get_args;
7986         don't disconnect client for bad args, just return an error.
7987         (bus_driver_handle_service_exists): ditto
7988
7989         * bus/services.c (bus_services_list): NULL-terminate returned array
7990
7991         * bus/driver.c (bus_driver_send_service_lost)
7992         (bus_driver_send_service_acquired): send messages from driver to a
7993         specific client to the client's unique name, not to the broadcast
7994         service.
7995
7996         * dbus/dbus-message.c (decode_header_data): reject messages that
7997         contain no name field
7998         (_dbus_message_get_client_serial): rename to
7999         dbus_message_get_serial and make public
8000         (_dbus_message_set_serial): rename from set_client_serial
8001         (_dbus_message_set_reply_serial): make public
8002         (_dbus_message_get_reply_serial): make public
8003
8004         * bus/connection.c (bus_connection_foreach): allow stopping
8005         iteration by returning FALSE from foreach function.
8006
8007         * dbus/dbus-connection.c (dbus_connection_send_preallocated)
8008         (dbus_connection_free_preallocated_send)
8009         (dbus_connection_preallocate_send): new API for sending a message
8010         without possibility of malloc failure.
8011         (dbus_connection_send_message): rename to just
8012         dbus_connection_send (and same for whole function family)
8013
8014         * dbus/dbus-errors.c (dbus_error_free): make this reinit the error
8015
8016         * dbus/dbus-sysdeps.c (_dbus_exit): new function
8017
8018         * bus/activation.c: handle/return errors
8019
8020         * dbus/dbus-errors.h: add more DBUS_ERROR #define
8021
8022         * dbus/dbus-sysdeps.c (_dbus_directory_open) (_dbus_file_get_contents)
8023         (_dbus_directory_get_next_file): use DBusError instead of DBusResultCode
8024         (_dbus_result_from_errno): move to this file
8025
8026 2003-03-10  Anders Carlsson  <andersca@codefactory.se>
8027
8028         * dbus/dbus-marshal.c:
8029         (_dbus_marshal_set_string):
8030         Take a length argument so we can marshal the correct string
8031         length.
8032
8033         (_dbus_marshal_dict), (_dbus_demarshal_dict),
8034         (_dbus_marshal_get_arg_end_pos), (_dbus_marshal_validate_arg),
8035         (_dbus_marshal_test):
8036         * dbus/dbus-marshal.h:
8037         Add support for marshalling and demarshalling dicts.
8038
8039         * dbus/dbus-message-builder.c: (_dbus_message_data_load):
8040         Add support for TYPE DICT.
8041
8042         * dbus/dbus-message.c: (set_string_field):
8043         Adjust header padding.
8044
8045         (dbus_message_append_args_valist), (dbus_message_append_dict),
8046         (dbus_message_get_args_valist), (dbus_message_iter_get_arg_type),
8047         (dbus_message_iter_get_dict), (_dbus_message_loader_return_buffer),
8048         (check_message_handling), (check_have_valid_message):
8049         * dbus/dbus-message.h:
8050         Add functions for setting and getting dicts.
8051
8052         * dbus/dbus-protocol.h:
8053         Add DBUS_TYPE_DICT.
8054
8055         * dbus/dbus.h:
8056         Add dbus-dict.h
8057
8058         * doc/dbus-specification.sgml:
8059         Add information about how dicts are marshalled.
8060
8061         * test/data/invalid-messages/dict-with-nil-value.message:
8062         * test/data/invalid-messages/too-short-dict.message:
8063         * test/data/valid-messages/dict-simple.message:
8064         * test/data/valid-messages/dict.message:
8065         Add sample messages containing dicts.
8066
8067 2003-03-08  Anders Carlsson  <andersca@codefactory.se>
8068
8069         * dbus/dbus-dict.h: Add DBUS_END_DECLS.
8070
8071 2003-03-07  Anders Carlsson  <andersca@codefactory.se>
8072
8073         * dbus/Makefile.am:
8074         * dbus/dbus-dict.c: (dbus_dict_entry_free), (dbus_dict_new),
8075         (dbus_dict_get_keys), (insert_entry), (dbus_dict_set_boolean),
8076         (dbus_dict_set_int32), (dbus_dict_set_uint32),
8077         (dbus_dict_set_double), (dbus_dict_set_string),
8078         (dbus_dict_set_boolean_array), (dbus_dict_set_int32_array),
8079         (dbus_dict_set_uint32_array), (dbus_dict_set_double_array),
8080         (dbus_dict_set_string_array), (_dbus_dict_test):
8081         * dbus/dbus-dict.h:
8082         Fix according to comments from Havoc.
8083
8084 2003-03-06  Michael Meeks  <michael@server.home>
8085
8086         * configure.in: if we don't have kde-config, disable have_qt.
8087
8088 2003-03-07  Anders Carlsson  <andersca@codefactory.se>
8089
8090         * dbus/Makefile.am:
8091         Add dbus-dict.[ch]
8092
8093         * dbus/dbus-dict.c: (dbus_dict_entry_free), (dbus_dict_new),
8094         (dbus_dict_ref), (dbus_dict_unref), (dbus_dict_contains),
8095         (dbus_dict_remove), (dbus_dict_get_value_type),
8096         (dbus_dict_get_keys), (dbus_dict_put_boolean),
8097         (dbus_dict_put_int32), (dbus_dict_put_uint32),
8098         (dbus_dict_put_double), (dbus_dict_put_string),
8099         (dbus_dict_put_boolean_array), (dbus_dict_put_int32_array),
8100         (dbus_dict_put_uint32_array), (dbus_dict_put_double_array),
8101         (dbus_dict_put_string_array), (dbus_dict_get_boolean),
8102         (dbus_dict_get_int32), (dbus_dict_get_uint32),
8103         (dbus_dict_get_double), (dbus_dict_get_string),
8104         (dbus_dict_get_boolean_array), (dbus_dict_get_int32_array),
8105         (dbus_dict_get_uint32_array), (dbus_dict_get_double_array),
8106         (dbus_dict_get_string_array), (_dbus_dict_test):
8107         * dbus/dbus-dict.h:
8108         Add DBusDict implementation
8109
8110         * dbus/dbus-test.c: (dbus_internal_do_not_use_run_tests):
8111         * dbus/dbus-test.h:
8112         Add _dbus_dict_test
8113
8114 2003-03-04  Havoc Pennington  <hp@pobox.com>
8115
8116         * test/data/auth/*: adapt to changes
8117
8118         * dbus/dbus-auth-script.c (_dbus_auth_script_run): add
8119         USERID_BASE64 and change USERNAME_BASE64 to put in username not
8120         userid
8121
8122         * dbus/dbus-keyring.c (_dbus_keyring_validate_context): prevent
8123         more stuff from being in a context name, to make the protocol
8124         simpler to deal with
8125
8126         * dbus/dbus-errors.c (dbus_error_has_name): new function
8127         (dbus_error_is_set): new function
8128
8129         * dbus/dbus-auth.c: replace DBUS_STUPID_TEST_MECH auth
8130         with DBUS_COOKIE_SHA1, implement DBUS_COOKIE_SHA1
8131
8132         * dbus/dbus-connection.c (dbus_connection_flush): also read
8133         messages during a flush operation
8134
8135         * dbus/Makefile.am: remove dbus-md5 since it isn't currently used.
8136
8137 2003-03-05  Anders Carlsson  <andersca@codefactory.se>
8138
8139         * configure.in: Check for gethostbyname on Solaris.
8140
8141         * dbus/dbus-transport.c: (_dbus_transport_open):
8142         Remove duplicate "tcp" entry.
8143
8144         * doc/dbus-specification.sgml:
8145         Clarify some things.
8146
8147 2003-03-05  Anders Carlsson  <andersca@codefactory.se>
8148
8149         * dbus/dbus-auth.c: (send_rejected), (process_test_subdir):
8150         * dbus/dbus-keyring.c: (_dbus_keyring_new_homedir),
8151         (_dbus_keyring_test):
8152         * dbus/dbus-md5.c: (_dbus_md5_compute):
8153         * dbus/dbus-sha.c: (_dbus_sha_compute):
8154         Plug memory leaks.
8155
8156 2003-03-05  Anders Carlsson  <andersca@codefactory.se>
8157
8158         * README: Add some things.
8159
8160 2003-03-04  Anders Carlsson  <andersca@codefactory.se>
8161
8162         * dbus/dbus-message.c (dbus_message_append_args_valist): Add a break;
8163         after case DBUS_TYPE_BOOELAN.
8164
8165 2003-03-02  Havoc Pennington  <hp@pobox.com>
8166
8167         * test/break-loader.c (randomly_set_extreme_ints): add test that
8168         sets really huge and small integers
8169
8170         * dbus/dbus-marshal.c (_dbus_marshal_validate_arg): add check
8171         that length of boolean array fits in the string, and that
8172         string has room for boolean value in single-bool case.
8173
8174         * dbus/dbus-message-builder.c (_dbus_message_data_load): add
8175         optional value to "ALIGN" command which is what to fill the
8176         alignment with.
8177
8178         * test/data/valid-messages/no-padding.message: add regression
8179         test for the message padding problem
8180
8181 2003-03-02  Havoc Pennington  <hp@pobox.com>
8182
8183         * dbus/dbus-message.c (decode_header_data): fix to always init
8184         message_padding, from Benjamin Dauvergne
8185
8186 2003-03-02  Havoc Pennington  <hp@pobox.com>
8187
8188         * configure.in: 0.5
8189
8190         * NEWS: Update.
8191
8192 2003-03-01  Joe Shaw  <joe@assbarn.com>
8193
8194         * configure.in: Check for "struct cmsgcred" and try to access its
8195         members for BSD-like unices.
8196
8197         * dbus/dbus-sysdeps.c (read_credentials_byte): Fold this back into
8198         _dbus_read_credentials_unix_socket().
8199         (_dbus_read_credentials_unix_socket): Use recvmsg() instead of
8200         read() for reading the credential byte off the unix socket.  Use
8201         struct cmsgcred on systems that support it.
8202
8203 2003-02-27  Alexander Larsson  <alexl@redhat.com>
8204
8205         * glib/Makefile.am:
8206         * configure.in:
8207         Make gthreads-2.0 dependency optional. Don't build thread test if
8208         its not found.
8209
8210 2003-02-27  Havoc Pennington  <hp@pobox.com>
8211
8212         * dbus/dbus-connection.c
8213         (dbus_connection_send_message_with_reply_and_block): fix doh!
8214         doh! doh! bug that resulted in never removing a reply from the
8215         queue, no wonder we called get_reply_serial so much ;-)
8216
8217         * dbus/dbus-message.c (struct DBusMessage): cache reply serial
8218         and client serial instead of demarshaling them every time
8219
8220 2003-02-27  Havoc Pennington  <hp@pobox.com>
8221
8222         * dbus/dbus-marshal.c (_dbus_demarshal_int32): rewrite to be much
8223         more inlined, using dbus-string-private.h, speeds things up
8224         substantially
8225
8226         * dbus/dbus-string.c (_dbus_string_free): apply align offset
8227         when freeing the string
8228         (_dbus_string_steal_data): fix for align offset
8229         (undo_alignment): new function
8230
8231 2003-02-26  Havoc Pennington  <hp@redhat.com>
8232
8233         All kinds of audit fixes from Owen, plus initial attempt to
8234         handle unaligned memory returned from malloc.
8235
8236         * dbus/dbus-string.c (_dbus_string_init): clamp max length to
8237         leave room for align_offset and nul byte
8238         (fixup_alignment): function to track an align_offset and
8239         ensure real->str is aligned
8240         (DBUS_GENERIC_STRING_PREAMBLE): len must be less than allocated,
8241         to allow a nul byte plus align offset
8242         (_dbus_string_lock): fix overflow issue
8243         (_dbus_string_init_const_len): add assertions on sanity of len,
8244         assign allocated to be ALLOCATION_PADDING larger than len
8245         (set_length): fixup the overflow handling
8246         (_dbus_string_get_data_len): fix overflow in assertion
8247         (open_gap): detect overflow in size of gap to be opened
8248         (_dbus_string_lengthen): add overflow check
8249         (_dbus_string_align_length): fix overflow with _DBUS_ALIGN_VALUE
8250         (_dbus_string_append): add overflow check
8251         (_dbus_string_append_unichar): overflow
8252         (_dbus_string_delete): fix overflow in assertion
8253         (_dbus_string_copy_len): overflow in assertion
8254         (_dbus_string_replace_len): overflows in assertions
8255         (_dbus_string_find): change to implement in terms of
8256         _dbus_string_find_to
8257         (_dbus_string_find_to): assorted fixage
8258         (_dbus_string_equal_c_str): assert c_str != NULL,
8259         fix logic so the function works
8260         (_dbus_string_ends_with_c_str): fix overflow thingy
8261         (_dbus_string_base64_encode): overflow fix
8262         (_dbus_string_validate_ascii): overflow
8263         (_dbus_string_validate_nul): overflow
8264
8265 2003-02-26  Havoc Pennington  <hp@redhat.com>
8266
8267         * dbus/dbus-marshal.c (_dbus_marshal_test): fix to work with DISABLE_ASSERTS
8268
8269 2003-02-26  Alexander Larsson  <alexl@redhat.com>
8270
8271         * configure.in:
8272         Set DBUS_GLIB_THREADS_LIBS for apps using gthread-2.0
8273
8274         * dbus/dbus-connection.c:
8275         * dbus/dbus-connection.h:
8276         Fix _dbus_connection_acquire_io_path and _dbus_connection_acquire_dispatch.
8277         Add dbus_connection_set_wakeup_main_function and use it when queueing
8278         incoming and outgoing messages.
8279
8280
8281         * dbus/dbus-dataslot.c:
8282         Threadsafe usage of DBusDataSlotAllocator
8283
8284         * dbus/dbus-message.c: (dbus_message_get_args_iter):
8285         dbus_new can fail.
8286
8287         * dbus/dbus-server-unix.c:
8288         Add todo comment
8289
8290         * glib/dbus-gmain.c:
8291         Implement the new wakeup functions for glib.
8292
8293         * glib/Makefile.am:
8294         * glib/test-thread-client.c:
8295         * glib/test-thread-server.c:
8296         * glib/test-thread.h:
8297         Initial cut at some thread test code. Not really done yet.
8298
8299 2003-02-26  Havoc Pennington  <hp@pobox.com>
8300
8301         * dbus/dbus-connection.c
8302         (dbus_connection_send_message_with_reply_and_block): fix crash
8303         where we ref'd the outgoing message instead of the returned reply
8304
8305         * dbus/dbus-transport-unix.c (do_authentication): check read watch
8306         at the end of this function, so if we didn't need to read for
8307         authentication, we reinstall it for receiving messages
8308
8309         * dbus/dbus-message.c (dbus_message_new_reply): allow replies to
8310         a NULL sender for peer-to-peer case
8311
8312         * dbus/dbus-transport-unix.c (check_read_watch): handle
8313         !authenticated case correctly
8314
8315         * glib/dbus-gmain.c: add support for DBusServer
8316
8317         * dbus/dbus-server.c: add data slot support
8318
8319         * glib/dbus-gmain.c (dbus_connection_setup_with_g_main): check
8320         return values and handle errors
8321
8322         * dbus/dbus-dataslot.c: factor out the data slot stuff from
8323         DBusConnection
8324
8325         * Doxyfile.in (INPUT): add glib subdir
8326
8327         * glib/dbus-gmain.c (dbus_connection_setup_with_g_main): rename
8328         setup_with_g_main instead of hookup_with_g_main; write docs
8329
8330 2003-02-24  Anders Carlsson  <andersca@codefactory.se>
8331
8332         * dbus/dbus-marshal.c: (_dbus_marshal_validate_arg):
8333         * dbus/dbus-message-builder.c: (_dbus_message_data_load):
8334         * dbus/dbus-message.c: (dbus_message_append_boolean),
8335         (dbus_message_append_boolean_array),
8336         (dbus_message_get_args_valist), (_dbus_message_test):
8337         * dbus/dbus-message.h:
8338         * doc/dbus-specification.sgml:
8339         Various fixes as pointed out by Havoc.
8340
8341         * test/data/invalid-messages/bad-boolean-array.message:
8342         * test/data/invalid-messages/bad-boolean.message:
8343         Add invalid boolean value test cases.
8344
8345 2003-02-24  Anders Carlsson  <andersca@codefactory.se>
8346
8347         * dbus/dbus-internals.c: (_dbus_type_to_string):
8348         * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
8349         (_dbus_marshal_validate_arg):
8350         * dbus/dbus-message-builder.c: (_dbus_message_data_load):
8351         * dbus/dbus-message.c: (dbus_message_append_args_valist),
8352         (dbus_message_append_boolean), (dbus_message_append_boolean_array),
8353         (dbus_message_get_args_valist), (dbus_message_iter_get_boolean),
8354         (dbus_message_iter_get_int32), (dbus_message_iter_get_uint32),
8355         (dbus_message_iter_get_double),
8356         (dbus_message_iter_get_boolean_array), (message_iter_test):
8357         * dbus/dbus-message.h:
8358         * dbus/dbus-protocol.h:
8359         * doc/dbus-specification.sgml:
8360         * test/data/valid-messages/lots-of-arguments.message:
8361         Add support for boolean and boolean array types.
8362
8363 2003-02-23  Havoc Pennington  <hp@pobox.com>
8364
8365         * dbus/dbus-keyring.c: finish most of this implementation and
8366         simple unit test
8367
8368         * dbus/dbus-errors.c (dbus_set_error_const, dbus_set_error): make
8369         these barf if the error isn't cleared to NULL
8370
8371         * dbus/dbus-sysdeps.c (_dbus_delete_file): set error on failure
8372         (_dbus_create_directory): new function
8373
8374         * dbus/dbus-errors.c (dbus_set_error): fix warning
8375
8376         * dbus/dbus-string.c (_dbus_string_hex_encode): new function
8377         (_dbus_string_hex_decode): new function
8378         (test_hex_roundtrip): test code
8379
8380         * dbus/dbus-sha.c (_dbus_sha_compute): use dbus_string_hex_encode
8381
8382         * dbus/dbus-md5.c (_dbus_md5_compute): use dbus_string_hex_encode
8383
8384         * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): make this use
8385         the save-to-temp/rename trick to atomically write the new file
8386         (_dbus_string_parse_uint): new function
8387
8388 2003-02-22  Havoc Pennington  <hp@pobox.com>
8389
8390         * test/Makefile.am (dist-hook): fix dist for test/data/sha-1
8391
8392 2003-02-22  Havoc Pennington  <hp@pobox.com>
8393
8394         * dbus/dbus-message.c (dbus_message_iter_get_string_array):
8395         (dbus_message_iter_get_byte_array): Fix up doxygen warnings
8396
8397         * dbus/dbus-sha.c: add implementation of SHA-1 algorithm
8398
8399         * dbus/test/data/sha-1: add US government test suite for SHA-1
8400
8401 2003-02-21  Anders Carlsson  <andersca@codefactory.se>
8402
8403         * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
8404         Make string arrays NULL-terminated.
8405
8406         * dbus/dbus-memory.c: (dbus_free_string_array):
8407         * dbus/dbus-memory.h:
8408         New function for freeing NULL-terminated string arrays.
8409
8410         * dbus/dbus-message-builder.c: (append_quoted_string),
8411         (_dbus_message_data_load):
8412         Add support for array types.
8413
8414         * dbus/dbus-message.c: (check_message_handling):
8415         Add more types as test cases.
8416
8417         * dbus/dbus-sysdeps.c: (_dbus_string_parse_int),
8418         (_dbus_string_parse_double):
8419         Add the start offset to the end offset.
8420
8421         * test/data/valid-messages/lots-of-arguments.message:
8422         New test message with lots of arguments.
8423
8424 2003-02-21  Anders Carlsson  <andersca@codefactory.se>
8425
8426         * dbus/dbus-message.c: (dbus_message_append_nil),
8427         (dbus_message_append_int32), (dbus_message_append_uint32),
8428         (dbus_message_append_double), (dbus_message_append_string),
8429         (dbus_message_append_int32_array),
8430         (dbus_message_append_uint32_array),
8431         (dbus_message_append_double_array),
8432         (dbus_message_append_byte_array),
8433         (dbus_message_append_string_array):
8434         Fix all out-of-memory handling in these functions.
8435
8436 2003-02-21  Anders Carlsson  <andersca@codefactory.se>
8437
8438         * dbus/dbus-message.c: (dbus_message_append_nil):
8439         Fix a silly.
8440
8441 2003-02-21  Anders Carlsson  <andersca@codefactory.se>
8442
8443         * dbus/dbus-message.c: (dbus_message_append_args_valist),
8444         (dbus_message_append_nil), (dbus_message_append_int32_array),
8445         (dbus_message_append_uint32_array),
8446         (dbus_message_append_double_array),
8447         (dbus_message_append_byte_array),
8448         (dbus_message_append_string_array), (dbus_message_get_args_valist),
8449         (dbus_message_iter_get_int32_array),
8450         (dbus_message_iter_get_uint32_array),
8451         (dbus_message_iter_get_double_array),
8452         (dbus_message_iter_get_byte_array),
8453         (dbus_message_iter_get_string_array):
8454
8455         * dbus/dbus-message.h:
8456         Add functions for appending and getting arrays.
8457
8458 2003-02-21  Anders Carlsson  <andersca@codefactory.se>
8459
8460         * dbus/dbus-mempool.c (_dbus_mem_pool_new): Make the
8461         element size at least 8 bytes, fixes mempool tests on
8462         64-bit machines.
8463
8464 2003-02-20  Alexander Larsson  <alexl@redhat.com>
8465
8466         * dbus/dbus-transport-unix.c (unix_do_iteration):
8467         Unlock the connection mutex during a blocking select call.
8468         Add todo about how we need a way to wake up the select.
8469
8470         * dbus/dbus-connection-internal.h:
8471         * dbus/dbus-connection.c:
8472         Add _dbus_connection_lock and _dbus_connection_unlock.
8473
8474 2003-02-19  Havoc Pennington  <hp@pobox.com>
8475
8476         * Doxyfile.in (PREDEFINED): put DOXYGEN_SHOULD_SKIP_THIS in
8477         Doxyfile.in, not Doxyfile
8478
8479         * dbus/dbus-keyring.c: do some hacking on this
8480
8481         * dbus/dbus-sysdeps.c (_dbus_delete_file): new
8482
8483         * dbus/dbus-errors.c (dbus_set_error_const): do not call
8484         dbus_error_init
8485         (dbus_set_error): remove dbus_error_init, check for message ==
8486         NULL *before* we sprintf into it, and add @todo about including
8487         system headers in this file
8488
8489         * dbus/dbus-sysdeps.c (_dbus_create_file_exclusively): new
8490
8491         * dbus/dbus-errors.h (DBUS_ERROR_FAILED): add
8492
8493         * dbus/dbus-sysdeps.c (get_user_info): break this function out to
8494         get various bits of user information based on either username
8495         or user ID
8496         (_dbus_homedir_from_username): new function
8497
8498 2003-02-19  Anders Carlsson  <andersca@codefactory.se>
8499
8500         * configure.in:
8501         Add check for nonposix getpwnam_r
8502
8503         * dbus/dbus-mempool.c: (_dbus_mem_pool_new):
8504         Align the pool element size to a sizeof (void *) boundary.
8505
8506         * dbus/dbus-sysdeps.c: (_dbus_setenv), (_dbus_connect_unix_socket),
8507         (_dbus_listen_unix_socket), (_dbus_credentials_from_username):
8508         General Solaris fixes.
8509
8510         * test/data/valid-messages/simplest-manual.message:
8511         Explicitly state that we want little-endian packing.
8512
8513 2003-02-19  Mikael Hallendal  <micke@codefactory.se>
8514
8515         * dbus/dbus-server.c (dbus_server_listen): Support tcp: addresses.
8516
8517         * dbus/dbus-transport-unix.c (_dbus_transport_new_for_tcp_socket):
8518         Added to create a transport connecting using a tcp/ip socket.
8519
8520         * dbus/dbus-sysdeps.c (_dbus_connect_tcp_socket): Added to connect
8521         to a tcp socket at given host and port.
8522         (_dbus_listen_tcp_socket): added to listen on tcp socket for given
8523         hostname and port.
8524
8525         * dbus/dbus-server.c (dbus_server_listen): Support tcp: addresses.
8526
8527         * dbus/dbus-server-unix.c (_dbus_server_new_for_tcp_socket):
8528         Added to create a server listening on a TCP/IP socket.
8529
8530 2003-02-19  Havoc Pennington  <hp@pobox.com>
8531
8532         Throughout: mop up all the Doxygen warnings and undocumented
8533         stuff.
8534
8535         * dbus/dbus-sysdeps.c (do_exec): do not use execvp, we don't want
8536         to search any paths.
8537
8538         * dbus/dbus-threads.c: move global mutex initializers to
8539         dbus-internals.h, multiple prototypes was confusing doxygen
8540         besides being kind of ugly
8541
8542         * Doxyfile (PREDEFINED): have Doxygen define
8543         DOXYGEN_SHOULD_SKIP_THIS so we can exclude things from
8544         docs with #ifndef DOXYGEN_SHOULD_SKIP_THIS
8545         (do not abuse the feature! it's for stuff like the autogenerated
8546         macros in dbus-md5.c, not just for things you don't feel like
8547         documenting...)
8548
8549 2003-02-18  Havoc Pennington  <hp@pobox.com>
8550
8551         * dbus/dbus-string.c (_dbus_string_zero): new function
8552
8553         * dbus/dbus-md5.c: include MD5 implementation by L. Peter Deutsch,
8554         wrap it in some dbus-friendly API
8555
8556         * dbus/dbus-types.h: add 16-bit types
8557
8558 2003-02-18  Joe Shaw  <joe@assbarn.com>
8559
8560         * dbus/dbus-auth.c (handle_server_data_stupid_test_mech): Just get
8561         credentials from our currently running process.
8562         (get_word): Fix a buglet where we were copying the entire length
8563         instead of relative to our position.
8564
8565         * dbus/dbus-hash.c (_dbus_hash_test): Don't try to allocate the
8566         keys on the stack... it's 640k of data.
8567
8568         * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): Always
8569         read the credentials byte off the socket, even if we don't have
8570         SO_PEERCRED.
8571         (_dbus_poll): Implement poll() using select() for systems which
8572         don't have it.
8573
8574         * glib/test-dbus-glib.c (main): Print out an error if no
8575         parameters are given.
8576
8577         * test/data/auth/fallback.auth-script: Added.  Tests that a client
8578         can fallback to a secondary auth mechanism if the first fails.
8579
8580 2003-02-18  Havoc Pennington  <hp@pobox.com>
8581
8582         * AUTHORS: add Alex
8583
8584 2003-02-17  Havoc Pennington  <hp@pobox.com>
8585
8586         * doc/dbus-specification.sgml: lots of cosmetic
8587         cleanups/rearrangement, add assorted FIXME, change DBUS_ADDRESS
8588         env variable to DBUS_BUS_ADDRESS, s/client/application/,
8589         s/server/bus/ (except in authentication section). Add a section
8590         "Message Bus Message Routing"
8591
8592 2003-02-17  Anders Carlsson  <andersca@codefactory.se.>
8593
8594         Release 0.4
8595
8596         * NEWS: Update
8597
8598 2003-02-17  Anders Carlsson  <andersca@codefactory.se>
8599
8600         * doc/dbus-specification.sgml:
8601         Specification updates.
8602
8603 2003-02-17  Anders Carlsson  <andersca@codefactory.se>
8604
8605         * bus/activation.c: (bus_activation_init), (child_setup),
8606         (bus_activation_activate_service):
8607         * bus/activation.h:
8608         * bus/main.c: (main):
8609         Set DBUS_ADDRESS environment variable.
8610
8611         * dbus/dbus-errors.c: (dbus_set_error):
8612         Don't use va_copy since that's a C99 feature.
8613
8614         * dbus/dbus-sysdeps.c: (_dbus_setenv), (do_exec),
8615         (_dbus_spawn_async):
8616         * dbus/dbus-sysdeps.h:
8617         Add child_setup_func to _dbus_spawn_async.
8618
8619         * doc/dbus-specification.sgml:
8620         Update specification.
8621
8622         * test/spawn-test.c: (setup_func), (main):
8623         Fix test.
8624
8625 2003-02-17  Alexander Larsson  <alexl@redhat.com>
8626
8627         * dbus/dbus-connection.c (_dbus_connection_handler_destroyed_locked):
8628         Added todo.
8629
8630 2003-02-17  Anders Carlsson  <andersca@codefactory.se>
8631
8632         * doc/.cvsignore:
8633         * doc/Makefile.am:
8634         * doc/dbus-test-plan.sgml:
8635         Add test plan document.
8636
8637         * test/Makefile.am:
8638         Fix distcheck.
8639
8640 2003-02-17  Anders Carlsson  <andersca@codefactory.se>
8641
8642         * dbus/dbus-message.c: (decode_header_data),
8643         (_dbus_message_loader_return_buffer):
8644         Set the header padding amount when loading a message.
8645
8646 2003-02-16  Anders Carlsson  <andersca@codefactory.se>
8647
8648         * bus/dispatch.c: (send_one_message):
8649         Only send broadcast messages to registered connections.
8650
8651         * dbus/dbus-message.c: (dbus_message_name_is):
8652         * dbus/dbus-message.h:
8653         New convenience function.
8654
8655         * dbus/dbus-transport-debug.c: (do_reading):
8656         Only dispatch one message per run.
8657
8658         * test/Makefile.am:
8659         * test/bus-test.c: (new_connection_callback), (die),
8660         (test_hello_client1_handler), (test_hello_client2_handler),
8661         (test_hello_replies), (main):
8662
8663         * test/bus-test-loop.[ch]:
8664         Add these.
8665
8666 2003-02-16  Havoc Pennington  <hp@pobox.com>
8667
8668         * dbus/dbus-connection.c (dbus_connection_dispatch_message): fix
8669         backward conditional
8670
8671 2003-02-16  Alexander Larsson  <alexl@redhat.com>
8672
8673         * dbus/dbus-connection.c:
8674         Implement sent_message_with_reply. (with_reply_and block is still
8675         busted).
8676         Made dispatch_message not lose message if OOM.
8677
8678         * dbus/dbus-errors.h:
8679         Add NoReply error (for reply timeouts).
8680
8681 2003-02-16  Alexander Larsson  <alexl@redhat.com>
8682
8683         * dbus/dbus-hash.c (_dbus_hash_table_unref):
8684         Actually free keys and values when destroying hashtable.
8685
8686 2003-02-16  Anders Carlsson  <andersca@codefactory.se>
8687
8688         * dbus/dbus-auth.c: (client_try_next_mechanism):
8689         Plug a leak.
8690
8691         * dbus/dbus-threads.c: (dbus_condvar_wait_timeout):
8692         Return TRUE if there's no thread implementation around.
8693
8694         * glib/dbus-gmain.c: (free_source),
8695         (dbus_connection_hookup_with_g_main):
8696         Make sure to remove the GSource when the connection is finalized.
8697
8698 2003-02-16  Anders Carlsson  <andersca@codefactory.se>
8699
8700         * bus/dispatch.c: (bus_dispatch_message_handler):
8701         * dbus/dbus-errors.h:
8702         Return an error if someone tries to send a message to a service
8703         that doesn't exist.
8704
8705 2003-02-16  Anders Carlsson  <andersca@codefactory.se>
8706
8707         * bus/activation.c: (load_directory), (bus_activation_init),
8708         (bus_activation_activate_service):
8709         * bus/activation.h:
8710         * bus/driver.c:
8711         (bus_driver_handle_activate_service), (bus_driver_handle_message):
8712         More work on the activation handling.
8713
8714         * dbus/dbus-errors.h:
8715         Add some error messages
8716
8717         * dbus/dbus-message.c: (dbus_message_new_error_reply):
8718         * dbus/dbus-message.h:
8719         New function that creates an error message.
8720
8721         * dbus/dbus-protocol.h:
8722         Add ACTIVATE_SERVER message.
8723
8724         * dbus/dbus-server-unix.c: (unix_handle_watch),
8725         (_dbus_server_new_for_domain_socket):
8726         Call _dbus_fd_set_close_on_exec.
8727
8728         * dbus/dbus-sysdeps.c: (make_pipe), (do_exec),
8729         (_dbus_spawn_async), (_dbus_disable_sigpipe),
8730         (_dbus_fd_set_close_on_exec):
8731         * dbus/dbus-sysdeps.h:
8732         Add _dbus_fd_set_close_on exec function. Also add function that checks
8733         that all open fds are set to close-on-exec and warns otherwise.
8734
8735         * dbus/dbus-transport-unix.c:
8736         (_dbus_transport_new_for_domain_socket):
8737         Call _dbus_fd_set_close_on_exec.
8738
8739 2003-02-16  Havoc Pennington  <hp@pobox.com>
8740
8741         * dbus/dbus-connection.c (dbus_connection_set_change_sigpipe):
8742         allow people to avoid setting SIGPIPE to SIG_IGN
8743         (_dbus_connection_new_for_transport): disable SIGPIPE unless
8744         we've been asked not to
8745
8746 2003-02-15  Anders Carlsson  <andersca@codefactory.se>
8747
8748         * dbus/dbus-list.c: (_dbus_list_append_link),
8749         (_dbus_list_prepend_link):
8750         * dbus/dbus-memory.c: (dbus_malloc), (dbus_malloc0),
8751         (dbus_realloc):
8752         Warning fixes.
8753
8754 2003-02-15  Anders Carlsson  <andersca@codefactory.se>
8755
8756         * bus/Makefile.am:
8757         * bus/activation.c: (bus_activation_entry_free),
8758         (add_desktop_file_entry), (load_directory), (bus_activation_init):
8759         * bus/activation.h:
8760         * bus/main.c: (main):
8761         Add simple activation support, doesn't work yet though.
8762
8763 2003-02-15   Zack Rusin  <zack@kde.org>
8764
8765         * qt/dbus-qthread.cpp:  small casting fix
8766
8767 2003-02-15  Anders Carlsson  <andersca@codefactory.se>
8768
8769         * dbus/dbus-errors.c: (dbus_set_error):
8770         * dbus/dbus-errors.h:
8771         Add a few errors and make dbus_set_error void.
8772
8773         * dbus/dbus-sysdeps.c:
8774         (_dbus_errno_to_string), (close_and_invalidate), (make_pipe),
8775         (write_err_and_exit), (read_ints), (do_exec), (_dbus_spawn_async):
8776         * dbus/dbus-sysdeps.h:
8777         Add _dbus_spawn_async.
8778
8779         * test/spawn-test.c: (main):
8780         Test for _dbus_spawn_async.
8781
8782 2003-02-15  Anders Carlsson  <andersca@codefactory.se>
8783
8784         * dbus/dbus-internals.h:
8785         Fix build without tests.
8786
8787         * dbus/dbus-list.c: (alloc_link):
8788         Fix a segfault when a malloc fails.
8789
8790         * dbus/dbus-memory.c: (initialize_malloc_debug), (dbus_malloc),
8791         (dbus_malloc0), (dbus_realloc):
8792         Add support for malloc debugging.
8793
8794 2003-02-15  Alexander Larsson  <alexl@redhat.com>
8795
8796         * dbus/dbus-threads.c:
8797         * dbus/dbus-threads.h:
8798         Add condvars. Remove static mutext from API.
8799         Implement static mutexes by initializing them from threads_init.
8800
8801         * glib/dbus-gthread.c:
8802         * qt/dbus-qthread.cpp:
8803         Update with the thread api changes.
8804
8805
8806         * dbus/dbus-list.c:
8807         * dbus/dbus-list.h:
8808         Turn StaticMutex into normal mutex + init function.
8809         Export new functions _dbus_list_alloc_link, _dbus_list_free_link,
8810         _dbus_list_append_link, _dbus_list_prepend_link
8811
8812
8813         * dbus/dbus-sysdeps.c:
8814         * dbus/dbus-sysdeps.h:
8815         New type dbus_atomic_t, and new functions _dbus_atomic_inc,
8816         _dbus_atomic_dec. Only slow fallback implementation at the moment.
8817
8818         * dbus/dbus-protocol.h:
8819         Add DBUS_MESSAGE_LOCAL_DISCONNECT define
8820
8821         * dbus/dbus-message.c:
8822         Make ref/unref atomic.
8823         Fix some docs.
8824
8825         * dbus/dbus-connection-internal.h:
8826         * dbus/dbus-connection.c:
8827         * dbus/dbus-connection.h:
8828         Make threadsafe.
8829         Change _peek to _borrow,_return & _steal_borrowed.
8830         Change disconnect callback to event.
8831         Make dbus_connection_dispatch_messages reentrant.
8832
8833         * dbus/dbus-transport.c:
8834         Don't ref the connection on calls to the transport
8835         implementation.
8836
8837         * dbus/dbus-message-handler.c:
8838         Make threadsafe.
8839
8840         * glib/dbus-gmain.c:
8841         Don't use peek_message anymore
8842
8843         * test/Makefile.am:
8844         * test/debug-thread.c:
8845         * test/debug-thread.h:
8846         Simple thread implementation that asserts() on deadlocks in
8847         single-threaded code.
8848
8849         * test/bus-test.c:
8850         (main) Call debug_threads_init.
8851
8852         * test/watch.c:
8853         Use disconnect message instead of disconnect callback.
8854
8855         * bus/connection.c:
8856         * bus/connection.h:
8857         Don't call dbus_connection_set_disconnect_function. Instead export
8858         bus_connection_disconnect.
8859
8860         * bus/dispatch.c:
8861         Call bus_connection_disconnect when we get a disconnected message.
8862
8863 2003-02-15  Havoc Pennington  <hp@pobox.com>
8864
8865         * dbus/dbus-message.c (dbus_message_new): fool around with the
8866         docs
8867
8868 2003-02-14  Havoc Pennington  <hp@pobox.com>
8869
8870         * dbus/dbus-mempool.c: fail if the debug functions so indicate
8871
8872         * dbus/dbus-memory.c: fail if the debug functions indicate we
8873         should
8874
8875         * dbus/dbus-internals.c (_dbus_set_fail_alloc_counter)
8876         (_dbus_decrement_fail_alloc_counter): debug functions to
8877         simulate memory allocation failures
8878
8879 2003-02-14  Havoc Pennington  <hp@pobox.com>
8880
8881         * dbus/dbus-errors.h (struct DBusError): add a word of padding
8882         to DBusError
8883
8884 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
8885
8886         * bus/driver.c: (bus_driver_handle_hello):
8887         * bus/driver.h:
8888         * bus/services.c: (bus_service_lookup):
8889         Reorder message sending so we get a more sane order.
8890
8891         * test/bus-test.c: (message_handler):
8892         Fix tyop.
8893
8894 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
8895
8896         * bus/driver.c: (bus_driver_send_service_deleted),
8897         (bus_driver_send_service_created), (bus_driver_send_service_lost),
8898         (bus_driver_send_service_acquired), (bus_driver_handle_hello),
8899         (bus_driver_send_welcome_message),
8900         (bus_driver_handle_list_services),
8901         (bus_driver_handle_acquire_service),
8902         (bus_driver_handle_service_exists):
8903         * dbus/dbus-bus.c: (dbus_bus_register_client),
8904         (dbus_bus_acquire_service), (dbus_bus_service_exists):
8905         * dbus/dbus-errors.c: (dbus_result_to_string):
8906         * dbus/dbus-errors.h:
8907         * dbus/dbus-message.c: (dbus_message_append_args),
8908         (dbus_message_append_args_valist), (dbus_message_get_args),
8909         (dbus_message_get_args_valist), (dbus_message_get_args_iter),
8910         (dbus_message_iter_get_arg_type), (dbus_message_iter_get_string),
8911         (dbus_message_iter_get_byte_array),
8912         (dbus_message_iter_get_string_array), (message_iter_test),
8913         (check_message_handling), (_dbus_message_test):
8914         * dbus/dbus-message.h:
8915         * test/bus-test.c: (main):
8916         Change fields to arguments in messages, so that they won't be
8917         confused with header fields.
8918
8919         * glib/test-dbus-glib.c: (main):
8920         Remove append_fields from hello message.
8921
8922 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
8923
8924         * dbus/dbus-errors.c:
8925         * dbus/dbus-message.c:
8926         * dbus/dbus-string.c:
8927         Documentation fixes.
8928
8929 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
8930
8931         * glib/dbus-gmain.c: (timeout_handler), (add_timeout),
8932         (remove_timeout):
8933         Implement support for timeouts in dbus-glib.
8934
8935 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
8936
8937         * dbus/dbus-message-builder.c: (_dbus_message_data_load):
8938         * dbus/dbus-message.c: (process_test_subdir):
8939         * test/break-loader.c: (find_breaks_based_on):
8940         Plug some memory leaks.
8941
8942 2003-02-13  Richard Hult  <rhult@codefactory.se>
8943
8944         * bus/main.c: Fix build.
8945
8946         * dbus/dbus-errors.h:
8947         * dbus/dbus-errors.c: Fix copyright for Anders.
8948
8949 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
8950
8951         * bus/Makefile.am:
8952         Add utils.[ch]
8953
8954         * bus/connection.c: (bus_connection_foreach):
8955         Fix a warning.
8956
8957         * bus/desktop-file.c: (grow_lines_in_section), (grow_sections),
8958         (unescape_string), (new_section), (parse_section_start),
8959         (parse_key_value), (report_error), (bus_desktop_file_load),
8960         (bus_desktop_file_get_string):
8961         * bus/desktop-file.h:
8962         Use DBusError for error reporting.
8963
8964         * bus/dispatch.c: (send_one_message),
8965         (bus_dispatch_message_handler):
8966         * bus/driver.c: (bus_driver_send_service_deleted),
8967         (bus_driver_send_service_created), (bus_driver_send_service_lost),
8968         (bus_driver_send_service_acquired), (bus_driver_handle_hello),
8969         (bus_driver_send_welcome_message),
8970         (bus_driver_handle_list_services),
8971         (bus_driver_handle_acquire_service),
8972         (bus_driver_handle_service_exists):
8973         * bus/loop.c: (bus_loop_run):
8974         * bus/main.c:
8975         Use BUS_HANDLE_OOM instead of _DBUS_HANDLE_OOM.
8976
8977         * bus/utils.c: (bus_wait_for_memory):
8978         * bus/utils.h:
8979         New files with general utility functions.
8980
8981         * dbus/dbus-internals.h:
8982         Remove _DBUS_HANDLE_OOM.
8983
8984 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
8985
8986         * dbus/dbus-errors.c: (dbus_result_to_string), (dbus_error_init),
8987         (dbus_error_free), (dbus_set_error_const), (dbus_set_error):
8988         * dbus/dbus-errors.h:
8989         Add DBusError structure.
8990
8991 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
8992
8993         * test/data/valid-messages/standard-acquire-service.message:
8994         * test/data/valid-messages/standard-hello.message:
8995         * test/data/valid-messages/standard-list-services.message:
8996         * test/data/valid-messages/standard-service-exists.message:
8997         Add some standard messages.
8998
8999 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
9000
9001         * bus/driver.c: (bus_driver_send_welcome_message),
9002         (bus_driver_handle_list_services),
9003         (bus_driver_handle_acquire_service),
9004         (bus_driver_handle_service_exists), (bus_driver_handle_message):
9005         Update for API changes in libdbus.
9006
9007         * dbus/dbus-message.c: (dbus_message_new_reply):
9008         * dbus/dbus-message.h:
9009         Remove the name argument. The spec states that replies shouldn't
9010         have a name.
9011
9012 2003-02-13  Anders Carlsson  <andersca@codefactory.se>
9013
9014         * bus/desktop-file.c: (parse_section_start), (parse_key_value),
9015         (report_error), (bus_desktop_file_load), (lookup_section),
9016         (lookup_line), (bus_desktop_file_get_raw),
9017         (bus_desktop_file_get_string):
9018         * bus/desktop-file.h:
9019         Some fixes, and new functions for getting a key value from a section.
9020
9021 2003-02-13  Havoc Pennington  <hp@pobox.com>
9022
9023         * test/data/auth/fail-after-n-attempts.auth-script: new test
9024
9025         * dbus/dbus-auth.c (send_rejected): shutdown_mech() when we
9026         reject the client.
9027
9028 2003-02-13  Havoc Pennington  <hp@pobox.com>
9029
9030         * dbus/dbus-auth.c (handle_server_data_external_mech): args to
9031         dbus_credentials_match were backward
9032
9033         * dbus/dbus-auth-script.c (_dbus_auth_script_run): support
9034         NO_CREDENTIALS and ROOT_CREDENTIALS
9035
9036         * dbus/dbus-auth.c (_dbus_auth_do_work): move get_state() routine
9037         into here. Never process more commands after we've reached an
9038         end state; store further data as unused bytes.
9039
9040         * test/data/auth/*: add more auth tests
9041
9042         * dbus/dbus-auth-script.c (_dbus_auth_script_run): support EXPECT
9043         command to match exact string and EXPECT_UNUSED to match unused
9044         bytes
9045
9046         * test/Makefile.am (dist-hook): fix to dist all the test stuff
9047
9048 2003-02-12  Havoc Pennington  <hp@pobox.com>
9049
9050         * dbus/dbus-string.c (_dbus_string_pop_line): fix to also strip
9051         \r off of popped lines
9052
9053         * dbus/dbus-auth.c (_dbus_auth_test): write code to run auth
9054         scripts
9055
9056         * dbus/dbus-auth-script.c (_dbus_auth_script_run): when doing a
9057         SEND, append \r\n
9058
9059 2003-02-12  Havoc Pennington  <hp@pobox.com>
9060
9061         * dbus/Makefile.am: remove break-loader from the build, since it
9062         moved.
9063
9064         * configure.in: add --enable-gcov to turn on coverage profiling
9065         flags and disable optimization
9066
9067 2003-02-10  Havoc Pennington  <hp@pobox.com>
9068
9069         * dbus/dbus-auth-script.c, dbus/dbus-auth-script.h: sync
9070         initial cut at test framework for DBusAuth from laptop.
9071         Doesn't quite work yet but it compiles and I need to get
9072         it off the 266mhz laptop. ;-)
9073
9074         * dbus/dbus-server-debug.c (_dbus_server_debug_accept_transport):
9075         fix a memleak in error case
9076
9077 2003-02-12  Anders Carlsson  <andersca@codefactory.se>
9078
9079         * bus/Makefile.am:
9080         * bus/desktop-file.c:
9081         * bus/desktop-file.h:
9082         Add a desktop file parser.
9083
9084 2003-02-11  Zack Rusin  <zack@kde.org>
9085
9086         * qt/message.[h|cpp]: sample implementation
9087         of the KDE wrapper for DBusMessage
9088
9089 2003-02-09  Zack Rusin  <zack@kde.org>
9090
9091         * test/bus-test.c: make_it_compile
9092         * doc/dbus-specification.sgml: minimal semantic fix
9093
9094 2003-02-06  Anders Carlsson  <andersca@codefactory.se>
9095
9096         Release 0.3
9097
9098         * NEWS: Update
9099
9100 2003-02-06  Anders Carlsson  <andersca@codefactory.se>
9101
9102         * dbus/Makefile.am:
9103         * dbus/dbus-break-loader.c:
9104         * test/Makefile.am:
9105         * test/break-loader.c:
9106         Move dbus-break-loader to test/ and rename it to break-loader.
9107
9108 2003-02-02  Havoc Pennington  <hp@pobox.com>
9109
9110         * dbus/dbus-keyring.c, dbus/dbus-keyring.h: template files
9111         for code to manage cookies in your home directory
9112
9113         * dbus/dbus-sysdeps.c (_dbus_generate_random_bytes): new function
9114
9115         * dbus/dbus-auth.c (get_state): impose a maximum number of tries
9116         to authenticate, then disconnect the client.
9117
9118 2003-02-03  Alexander Larsson  <alexl@redhat.com>
9119
9120         * dbus/dbus-message.c (dbus_message_append_fields):
9121         Correct docs.
9122
9123 2003-02-02  Anders Carlsson  <andersca@codefactory.se>
9124
9125         * doc/dbus-specification.sgml:
9126         Update address format section.
9127
9128 2003-02-02  Anders Carlsson  <andersca@codefactory.se>
9129
9130         * test/Makefile.am:
9131         * test/bus-test.c: (get_time), (add_timeout), (remove_timeout),
9132         (message_handler), (new_connection_callback), (loop_quit),
9133         (loop_run), (main):
9134         Add bus test.
9135
9136 2003-02-02  Anders Carlsson  <andersca@codefactory.se>
9137
9138         * bus/driver.c: (bus_driver_handle_service_exists):
9139         Simplify the code a bit.
9140
9141         * dbus/dbus-bus.c: (dbus_bus_service_exists):
9142         Fix a silly.
9143
9144 2003-02-02  Anders Carlsson  <andersca@codefactory.se>
9145
9146         * bus/Makefile.am:
9147         Add libdbus-daemon.la and link to it.
9148
9149 2003-02-01  James Willcox  <jwillcox@gnome.org>
9150
9151         * bus/driver.c: (bus_driver_handle_own_service):
9152         Actually include the service reply code in the message.
9153
9154 2003-02-02  Anders Carlsson  <andersca@codefactory.se>
9155
9156         * bus/driver.c: (bus_driver_handle_service_exists):
9157         Don't unref the incoming message.
9158
9159 2003-02-02  Anders Carlsson  <andersca@codefactory.se>
9160
9161         * dbus/dbus.h: Add dbus-address.h and dbus-bus.h
9162
9163 2003-02-02  Anders Carlsson  <andersca@codefactory.se>
9164
9165         * dbus/dbus-server.c: (dbus_server_listen):
9166         * dbus/dbus-transport.c: (_dbus_transport_open):
9167         ifdef out the calls to the debug transport and server.
9168
9169 2003-02-02  Alexander Larsson  <alexl@redhat.com>
9170
9171         * dbus/dbus-watch.c (dbus_watch_get_flags):
9172         Add note in the docs that ERROR or HANGUP won't be returned
9173         and are assumed always on.
9174
9175         * glib/dbus-gmain.c (add_watch):
9176         Always add IO_ERR | IO_HUP
9177
9178         * dbus/dbus-message.h:
9179         Add semicolon after dbus_message_iter_get_string_array().
9180         Makes qt code build again
9181
9182 2003-02-01  Anders Carlsson  <andersca@codefactory.se>
9183
9184         * bus/driver.c: (create_unique_client_name),
9185         (bus_driver_handle_hello):
9186         Don't take a name, just use a numeric id to identify
9187         each client.
9188
9189         * dbus/Makefile.am:
9190         * dbus/dbus-bus.c: (dbus_bus_register_client),
9191         (dbus_bus_acquire_service), (dbus_bus_service_exists):
9192         * dbus/dbus-bus.h:
9193         Add new convenience functions for communicating with the bus.
9194
9195         * dbus/dbus-message.h:
9196
9197         * dbus/dbus-protocol.h:
9198         Fix a typo.
9199
9200 2003-02-01  Alexander Larsson  <alexl@redhat.com>
9201
9202         * dbus/dbus-message.c (dbus_message_append_fields):
9203         Add some more doc comments.
9204
9205 2003-02-01  Havoc Pennington  <hp@pobox.com>
9206
9207         * dbus/dbus-break-loader.c (randomly_modify_length): change
9208         a 4-byte value in the message as if it were a length
9209
9210         * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): don't set
9211         execute bit on saved files
9212
9213 2003-02-01  Havoc Pennington  <hp@pobox.com>
9214
9215         * dbus/dbus-break-loader.c (main): new program to find messages
9216         that break the loader.
9217
9218         * dbus/dbus-sysdeps.c (_dbus_string_append_uint): new function
9219         * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): new function
9220
9221         * dbus/dbus-string.c (_dbus_string_set_byte): new
9222
9223 2003-01-31  Havoc Pennington  <hp@pobox.com>
9224
9225         * dbus/dbus-message.c: refactor the test code to be more general,
9226         in preparation for writing a "randomly permute test cases to
9227         try to break the loader" program.
9228
9229 2003-01-31  Havoc Pennington  <hp@pobox.com>
9230
9231         * doc/dbus-specification.sgml: work on the specification
9232
9233         * dbus/dbus-message.c (_dbus_message_loader_return_buffer): check
9234         the protocol version of the message.
9235
9236         * dbus/dbus-protocol.h: drop special _REPLY names, the spec
9237         no longer specifies that.
9238         (DBUS_SERVICE_REPLY_SERVICE_EXISTS): fix flags (1/2/4/8 not
9239         1/2/3/4)
9240
9241         * dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos): add missing
9242         "break" for DBUS_TYPE_NIL, remove @todo
9243
9244 2003-01-31  Havoc Pennington  <hp@pobox.com>
9245
9246         * dbus/dbus-message.c (dbus_message_set_is_error_reply): rename
9247         just set_is_error/get_is_error as this is a commonly-used
9248         function, and write docs.
9249
9250 2003-01-31  Anders Carlsson  <andersca@codefactory.se>
9251
9252         * dbus/dbus-address.c: (dbus_address_entry_free):
9253         Free key and value lists.
9254
9255         * dbus/dbus-internals.c: (_dbus_type_to_string):
9256         Add the types we didn't have.
9257
9258         * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
9259         (_dbus_marshal_validate_arg):
9260         Add NIL types.
9261
9262         * dbus/dbus-message.c: (dbus_message_set_sender):
9263         Remove todo about being able to set sender to NULL.
9264
9265         (dbus_message_set_is_error_reply),
9266         (dbus_message_get_is_error_reply):
9267         * dbus/dbus-message.h:
9268         New functions.
9269
9270         * dbus/dbus-protocol.h:
9271         Add error reply flag.
9272
9273         * test/data/valid-messages/opposite-endian.message:
9274         Add NIL type to test.
9275
9276 2003-01-31  Havoc Pennington  <hp@pobox.com>
9277
9278         * doc/dbus-specification.sgml: fully specify the header.  Add
9279         flags and major protocol version, and change header/body len to
9280         unsigned.
9281
9282         * dbus/dbus-message-builder.c (append_saved_length): append length
9283         as uint32
9284
9285         * dbus/dbus-message.c (dbus_message_create_header): change header
9286         length and body length to unsigned. Add the new fields from the
9287         spec
9288         (_dbus_message_loader_return_buffer): unsigned header/body len
9289
9290 2003-01-30  Havoc Pennington  <hp@pobox.com>
9291
9292         * dbus/dbus-auth.c: rework to use only REJECTED, no
9293         MECHANISMS
9294
9295         * doc/dbus-sasl-profile.txt: drop MECHANISMS and just
9296         use REJECTED, suggested by Mark McLoughlin
9297
9298 2003-01-30  Havoc Pennington  <hp@pobox.com>
9299
9300         * dbus/dbus-server.c (dbus_server_listen): @todo about how we need
9301         a better way to report errors here. e.g.  "unix address lacks
9302         path" or something. also "no such file" when the path doesn't
9303         exist, etc.
9304
9305         * dbus/dbus-address.c (dbus_address_entries_free): add @todo about
9306         leaking list nodes
9307         (dbus_parse_address): add @todo about documenting address format,
9308         and allowing , and ; to be escaped
9309
9310 2003-01-30  Anders Carlsson  <andersca@codefactory.se>
9311
9312         * dbus/Makefile.am:
9313         Add dbus-address.[ch]
9314
9315         * dbus/dbus-address.c: (dbus_address_entry_free),
9316         (dbus_address_entries_free), (create_entry),
9317         (dbus_address_entry_get_method), (dbus_address_entry_get_value),
9318         (dbus_parse_address), (_dbus_address_test):
9319         * dbus/dbus-address.h:
9320         New files for dealing with address parsing.
9321
9322         * dbus/dbus-connection.c:
9323         Document timeout functions.
9324
9325         * dbus/dbus-message.c:
9326         Document dbus_message_new_from_message.
9327
9328         * dbus/dbus-server-debug.c:
9329         Document.
9330
9331         * dbus/dbus-server.c: (dbus_server_listen):
9332         Parse address and use correct server implementation.
9333
9334         * dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
9335         * dbus/dbus-string.h:
9336         New function with test.
9337
9338         * dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
9339         * dbus/dbus-test.h:
9340         Add address tests.
9341
9342         * dbus/dbus-transport-debug.c:
9343         Document.
9344
9345         * dbus/dbus-transport.c: (_dbus_transport_open):
9346         Parse address and use correct transport implementation.
9347
9348 2003-01-30  Havoc Pennington  <hp@pobox.com>
9349
9350         * dbus/dbus-message.c: use message->byte_order instead of
9351         DBUS_COMPILER_BYTE_ORDER throughout.
9352         (dbus_message_create_header): pad header to align the
9353         start of the body of the message to 8-byte boundary
9354
9355         * dbus/dbus-marshal.h: make all the demarshalers take const
9356         DBusString arguments.
9357
9358         * dbus/dbus-message.c (_dbus_message_loader_return_buffer):
9359         validate message args here, so we don't have to do slow validation
9360         later, and so we catch bad messages as they are incoming. Also add
9361         better checks on header_len and body_len. Also fill in
9362         message->byte_order
9363
9364         * dbus/dbus-string.c (_dbus_string_validate_utf8): new (not
9365         implemented properly)
9366         (_dbus_string_validate_nul): new function to check all-nul
9367
9368         * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): rename
9369         get_arg_end_pos and remove all validation
9370         (_dbus_marshal_validate_arg): actually do validation here.
9371
9372 2003-01-29  Havoc Pennington  <hp@pobox.com>
9373
9374         * dbus/dbus-message.c (check_message_handling): fix assertion
9375         failure on set_client_serial
9376
9377 2003-01-28  Havoc Pennington  <hp@pobox.com>
9378
9379         * dbus/dbus-server-debug.c: Add doc section comments
9380
9381         * dbus/dbus-transport-debug.c: add doc section comments
9382
9383 2003-01-28  Havoc Pennington  <hp@redhat.com>
9384
9385         * dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
9386         the reverse order from how I had it
9387         (_dbus_string_base64_encode): reverse encoding order. I was
9388         basically byteswapping everything during encoding.
9389
9390 2003-01-28  Anders Carlsson  <andersca@codefactory.se>
9391
9392         * dbus/dbus-connection-internal.h:
9393         * dbus/dbus-connection.c: (_dbus_connection_add_timeout),
9394         (_dbus_connection_remove_timeout):
9395         Add functions for adding and removing timeouts.
9396
9397         * dbus/dbus-message.c: (dbus_message_new_from_message):
9398         Add new function that takes a message and creates an exact
9399         copy of it, but with the refcount set to 1.
9400         (check_message_handling):
9401         Fix build error.
9402
9403         * dbus/dbus-server-protected.h:
9404         * dbus/dbus-server.c: (_dbus_server_init_base),
9405         (_dbus_server_finalize_base), (_dbus_server_add_timeout),
9406         (dbus_server_set_timeout_functions):
9407         (_dbus_server_remove_timeout):
9408         New functions so that a server can add and remove timeouts.
9409
9410         (dbus_server_listen):
9411         Add commented out call to dbus_server_debug_new.
9412
9413         * dbus/dbus-timeout.c: (_dbus_timeout_new):
9414         Actually set the handler, doh.
9415
9416         * dbus/dbus-transport.c: (_dbus_transport_open):
9417         Add commented out call to dbus_transport_debug_client_new.
9418
9419         * dbus/Makefile.am:
9420         Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
9421
9422 2003-01-28  Havoc Pennington  <hp@pobox.com>
9423
9424         * dbus/dbus-message.c (check_message_handling): function to check
9425         on the loaded message, iterates over it etc.
9426
9427 2003-01-28  Havoc Pennington  <hp@pobox.com>
9428
9429         * test/Makefile.am (dist-hook): fix make distdir
9430
9431         * dbus/Makefile.am (TESTS_ENVIRONMENT): fix make check
9432
9433 2003-01-27  Havoc Pennington  <hp@pobox.com>
9434
9435         * dbus/dbus-mempool.c (time_for_size): replace printf with
9436         _dbus_verbose
9437
9438         * dbus/dbus-message-builder.c (_dbus_message_data_load): allow
9439         empty lines; fix the SAVE_LENGTH stuff to be
9440         START_LENGTH/END_LENGTH so it actually works; couple other
9441         bugfixes
9442
9443         * test/Makefile.am (dist-hook): add dist-hook for .message files
9444
9445         * dbus/dbus-string.c (DBUS_STRING_COPY_PREAMBLE): source of a copy
9446         can be constant or locked.
9447         (_dbus_string_free): allow freeing a const string as
9448         documented/intended
9449
9450         * dbus/dbus-sysdeps.c (_dbus_concat_dir_and_file): utility
9451
9452         * dbus/dbus-test-main.c (main): take an argument which is the
9453         directory containing test data
9454
9455         * dbus/dbus-message.c (_dbus_message_test): pass a test_data_dir
9456         argument to this and load all the messages in test/data/
9457         checking that they can be loaded or not loaded as appropriate.
9458
9459 2003-01-27  Anders Carlsson  <andersca@codefactory.se>
9460
9461         * bus/dispatch.c: (bus_dispatch_message_handler):
9462         Dispatch messages sent to services.
9463
9464         * bus/driver.c: (bus_driver_send_service_deleted),
9465         (bus_driver_send_service_created), (bus_driver_send_service_lost),
9466         (bus_driver_send_service_acquired):
9467         Add helper functions for sending service related messages.
9468
9469         (bus_driver_send_welcome_message):
9470         Send HELLO_REPLY instead of WELCOME.
9471
9472         (bus_driver_handle_list_services):
9473         Send LIST_SERVICES_REPLY instead of SERVICES.
9474
9475         (bus_driver_handle_own_service),
9476         (bus_driver_handle_service_exists):
9477         New message handlers.
9478
9479         (bus_driver_handle_message):
9480         Invoke new message handlers.
9481
9482         (bus_driver_remove_connection):
9483         Don't remove any services here since that's done automatically
9484         by bus_service_remove_owner now.
9485
9486         * bus/driver.h:
9487         New function signatures.
9488
9489         * bus/services.c: (bus_service_add_owner):
9490         Send ServiceAcquired message if we're the only primary owner.
9491
9492         (bus_service_remove_owner):
9493         Send ServiceAcquired/ServiceLost messages.
9494
9495         (bus_service_set_prohibit_replacement),
9496         (bus_service_get_prohibit_replacement):
9497         Functions for setting prohibit replacement.
9498
9499         (bus_service_has_owner):
9500         New function that checks if a connection is in the owner queue of
9501         a certain service.
9502
9503         * bus/services.h:
9504         Add new function signatures.
9505
9506         * dbus/dbus-list.c: (_dbus_list_test):
9507         Add tests for _dbus_list_remove_last and traversing the list backwards.
9508
9509         * dbus/dbus-list.h:
9510         Fix a typo in _dbus_list_get_prev_link, if we're at the first element we can't
9511         go any further, so return NULL then.
9512
9513         * dbus/dbus-protocol.h:
9514         Add new messages, service flags and service replies.
9515
9516 2003-01-26  Havoc Pennington  <hp@pobox.com>
9517
9518         * dbus/dbus-message-builder.c: implement, completely untested.
9519
9520         * test/data/*: add data to be used in testing.
9521         ".message" files are our simple loadable text format.
9522         ".message-raw" will be binary dumps of messages.
9523
9524         * dbus/dbus-string.c (_dbus_string_starts_with_c_str): new
9525
9526 2003-01-26  Havoc Pennington  <hp@pobox.com>
9527
9528         * dbus/dbus-sysdeps.c (_dbus_file_get_contents): new function
9529
9530         * dbus/dbus-errors.c (dbus_result_to_string): add
9531         file errors
9532
9533         * dbus/dbus-message-builder.c: new file, will contain code to load
9534         up messages from files. Not implemented yet.
9535
9536 2003-01-26  Havoc Pennington  <hp@pobox.com>
9537
9538         * dbus/dbus-message.c (dbus_message_set_sender): support deleting
9539         the sender by setting to NULL
9540
9541 2003-01-26  Havoc Pennington  <hp@pobox.com>
9542
9543         The unit tests pass, but otherwise untested.  If it breaks, the
9544         tests should have been better. ;-)
9545
9546         * bus/driver.c (bus_driver_handle_hello): return if we disconnect
9547         the connection.
9548
9549         * dbus/dbus-message.c: redo everything so we maintain
9550         message->header as the only copy of the various fields.
9551         This avoids the possibility of out-of-memory in some cases,
9552         for example dbus_message_lock() can't run out of memory anymore,
9553         and avoids extra copying. Figured I may as well go ahead and do
9554         this since it was busted for dbus_message_lock to not return
9555         failure on OOM, and dbus_message_write_header was totally
9556         unchecked for OOM. Also fixed some random other bugs.
9557
9558         * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): verify
9559         that strings are nul-terminated. Also, end_pos can be equal
9560         to string length just not greater than, I think.
9561         (_dbus_marshal_set_int32): new function
9562         (_dbus_marshal_set_uint32): new function
9563         (_dbus_marshal_set_string): new function
9564
9565         * dbus/dbus-connection.c (_dbus_connection_new_for_transport): fix
9566         a warning, init timeout_list to NULL
9567         (dbus_connection_send_message): don't use uninitialized variable
9568         "serial"
9569
9570         * dbus/dbus-string.c (_dbus_string_replace_len): new function
9571
9572 2003-01-26  Anders Carlsson  <andersca@codefactory.se>
9573
9574         * bus/driver.c: (bus_driver_handle_hello),
9575         (bus_driver_send_welcome_message):
9576         Plug leaks
9577
9578 2003-01-26  Anders Carlsson  <andersca@codefactory.se>
9579
9580         * dbus/dbus-auth.c: (process_auth), (_dbus_auth_unref):
9581         * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
9582         (dbus_connection_unref):
9583         * dbus/dbus-marshal.c: (_dbus_marshal_test):
9584         * dbus/dbus-message.c: (dbus_message_unref),
9585         Plug memory leaks.
9586
9587         (dbus_message_get_fields):
9588         Remove debugging printout.
9589
9590         (_dbus_message_loader_return_buffer):
9591         Don't store the header string.
9592
9593         (_dbus_message_test):
9594         Plug leaks.
9595
9596 2003-01-26  Richard Hult  <rhult@codefactory.se>
9597
9598         * glib/dbus-gmain.c (dbus_connection_dispatch): Traverse a copy of
9599         the file descriptor list, since it can change under us.
9600
9601 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
9602
9603         * glib/dbus-gmain.c: (dbus_connection_prepare),
9604         (dbus_connection_check), (dbus_connection_dispatch), (add_watch),
9605         (remove_watch), (dbus_connection_hookup_with_g_main):
9606         Rewrite the glib handling to use its own GSource instead of a
9607         GIOChannel so we can catch messages put in the queue while waiting
9608         for a reply.
9609
9610 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
9611
9612         * bus/Makefile.am:
9613         * bus/connection.c: (connection_disconnect_handler),
9614         (connection_watch_callback), (bus_connection_setup):
9615         * bus/dispatch.c: (send_one_message),
9616         (bus_dispatch_broadcast_message), (bus_dispatch_message_handler),
9617         (bus_dispatch_add_connection), (bus_dispatch_remove_connection):
9618         * bus/dispatch.h:
9619         * bus/driver.c: (bus_driver_send_service_deleted),
9620         (bus_driver_send_service_created), (bus_driver_handle_hello),
9621         (bus_driver_send_welcome_message),
9622         (bus_driver_handle_list_services), (bus_driver_remove_connection),
9623         (bus_driver_handle_message):
9624         * bus/driver.h:
9625         Refactor code, put the message dispatching in its own file. Use
9626         _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client
9627         is disconnected.
9628
9629 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
9630
9631         * dbus/dbus-internals.h:
9632         Add _DBUS_HANDLE_OOM macro, it doesn't do anything currently.
9633
9634         * dbus/dbus-message.c: (dbus_message_get_sender):
9635         * dbus/dbus-message.h:
9636         Implement dbus_message_get_sender.
9637
9638         * dbus/dbus-protocol.h:
9639         Add message and service defines.
9640
9641 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
9642
9643         * dbus/dbus-connection.c: (dbus_connection_send_message):
9644         * dbus/dbus-message-internal.h:
9645         * dbus/dbus-message.c: (_dbus_message_get_client_serial),
9646         (dbus_message_write_header):
9647         Remove _dbus_messag_unlock and don't set the client serial on a
9648         message if one already exists.
9649
9650 2003-01-24  Havoc Pennington  <hp@pobox.com>
9651
9652         * dbus/dbus-list.c (alloc_link): put a thread lock on the global
9653         list_pool
9654
9655         * bus/driver.c (bus_driver_handle_list_services): fix a leak
9656         on OOM
9657
9658 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
9659
9660         * dbus/dbus-list.c: (alloc_link), (free_link):
9661         Use a memory pool for the links.
9662
9663 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
9664
9665         * bus/connection.c: (bus_connection_foreach):
9666         * bus/connection.h:
9667         Add new bus_connection_foreach function.
9668
9669         * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
9670         Add function that broadcasts a message to all clients.
9671
9672         (bus_driver_send_service_created), (bus_driver_handle_hello),
9673         (bus_driver_send_welcome_message),
9674         (bus_driver_handle_list_services), (bus_driver_message_handler):
9675         Implement functions that take care of listing services, and notifying
9676         clients when new services are created.
9677
9678         * bus/services.c: (bus_services_list):
9679         * bus/services.h:
9680         Add new function that returns an array of strings with the currently
9681         registered services.
9682
9683         * glib/dbus-glib.h:
9684         * glib/dbus-gmain.c:
9685         Update copyright year.
9686
9687 2003-01-25  Anders Carlsson  <andersca@codefactory.se>
9688
9689         * dbus/dbus-connection.c: (dbus_connection_send_message):
9690         Unlock the message in case it was sent earlier.
9691
9692         (dbus_connection_send_message_with_reply_and_block):
9693         Remove the reply message from the list.
9694
9695         * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
9696         Set array_len and new_pos correctly.
9697
9698         (_dbus_marshal_test):
9699         Remove debug output.
9700
9701         * dbus/dbus-message-internal.h:
9702         * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
9703         New function that returns the reply serial.
9704
9705         (_dbus_message_unlock):
9706         New function that unlocks a message and resets its header.
9707
9708         (dbus_message_append_string_array),
9709         (dbus_message_get_fields_valist),
9710         (dbus_message_iter_get_field_type),
9711         (dbus_message_iter_get_string_array),
9712         (dbus_message_get_fields),
9713         (dbus_message_append_fields_valist):
9714         Handle string arrays.
9715
9716         (dbus_message_set_sender):
9717         Make this function public since the bus daemon needs it.
9718
9719         (decode_header_data):
9720         Set the reply serial to -1 initially.
9721
9722         * dbus/dbus-message.h:
9723         Add dbus_message_set_sender.
9724
9725 2003-01-24  Havoc Pennington  <hp@pobox.com>
9726
9727         * doc/dbus-specification.sgml: add some stuff
9728
9729 2003-01-22  Havoc Pennington  <hp@pobox.com>
9730
9731         * doc/dbus-specification.sgml: Start to document the protocol.
9732
9733 2003-01-22  Havoc Pennington  <hp@pobox.com>
9734
9735         * dbus/dbus-connection.c
9736         (dbus_connection_send_message_with_reply_and_block): add some @todo
9737
9738         * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
9739
9740 2003-01-21  Havoc Pennington  <hp@pobox.com>
9741
9742         (patch untested because can't compile)
9743
9744         * bus/driver.c (create_unique_client_name): make this function
9745         never recycle client names. Also, caller should initialize
9746         the DBusString.
9747
9748         * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
9749
9750 2003-01-21  Anders Carlsson  <andersca@codefactory.se>
9751
9752         * dbus/dbus-marshal.c: (_dbus_marshal_double),
9753         (_dbus_marshal_int32), (_dbus_marshal_uint32),
9754         (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
9755         (_dbus_marshal_double_array), (_dbus_marshal_string_array),
9756         (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
9757         (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
9758         (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
9759         * dbus/dbus-marshal.h:
9760         * dbus/dbus-protocol.h:
9761         Add support for marshalling and demarshalling integer, double
9762         and string arrays.
9763
9764 2003-01-21  Anders Carlsson  <andersca@codefactory.se>
9765
9766         * bus/Makefile.am:
9767         Add driver.[ch]
9768
9769         * bus/connection.c: (connection_disconnect_handler):
9770         Remove the connection from the bus driver's list.
9771
9772         (connection_watch_callback): Dispatch messages.
9773
9774         (free_connection_data): Free connection name.
9775
9776         (bus_connection_setup): Add connection to the bus driver's list.
9777         (bus_connection_remove_owned_service):
9778         (bus_connection_set_name), (bus_connection_get_name):
9779         Add functions for setting and getting the connection's name.
9780
9781         * bus/connection.h:
9782         Add function headers.
9783
9784         * bus/driver.c: (create_unique_client_name),
9785         (bus_driver_handle_hello_message),
9786         (bus_driver_send_welcome_message), (bus_driver_message_handler),
9787         (bus_driver_add_connection), (bus_driver_remove_connection):
9788         * bus/driver.h:
9789         * bus/main.c:
9790         * bus/services.c: (bus_service_free):
9791         * bus/services.h:
9792         New file that handles communication and registreation with the bus
9793         itself.
9794
9795 2003-01-21  Anders Carlsson  <andersca@codefactory.se>
9796
9797         * dbus/dbus-connection.c: (dbus_connection_send_message):
9798         Add a new client_serial parameter.
9799
9800         (dbus_connection_send_message_with_reply):
9801         Remove a @todo since we've implemented the blocking function.
9802
9803         (dbus_connection_send_message_with_reply_and_block):
9804         New function that sends a message and waits for a reply and
9805         then returns the reply.
9806
9807         * dbus/dbus-connection.h:
9808         Add new functions.
9809
9810         * dbus/dbus-errors.c: (dbus_result_to_string):
9811         * dbus/dbus-errors.h:
9812         Add new DBUS_RESULT.
9813
9814         * dbus/dbus-message-internal.h:
9815         * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
9816         (_dbus_message_set_sender), (dbus_message_write_header),
9817         (dbus_message_new_reply), (decode_header_data),
9818         (_dbus_message_loader_return_buffer), (_dbus_message_test):
9819         * dbus/dbus-message.h:
9820         Add new functions that set the reply serial and sender.
9821         Also marshal and demarshal them correctly and add test.
9822
9823         * dbus/dbus-protocol.h:
9824         Add new DBUS_MESSAGE_TYPE_SENDER.
9825
9826         * glib/dbus-glib.h:
9827         * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
9828         (add_watch), (remove_watch), (add_timeout), (remove_timeout),
9829         (dbus_connection_hookup_with_g_main):
9830         * glib/test-dbus-glib.c: (main):
9831         Rewrite to use GIOChannel and remove the GSource crack.
9832
9833         * test/echo-client.c: (main):
9834         * test/watch.c: (check_messages):
9835         Update for changed APIs
9836
9837 2003-01-19  Anders Carlsson  <andersca@codefactory.se>
9838
9839         * dbus/Makefile.am: Add dbus-timeout.[cħ]
9840
9841         * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
9842         Create a DBusTimeoutList.
9843         (dbus_connection_set_timeout_functions): Add new function to
9844         set timeout callbacks
9845
9846         * dbus/dbus-connection.h: Add public DBusTimeout API.
9847
9848         * dbus/dbus-message.c: (dbus_message_get_service):
9849         * dbus/dbus-message.h:  New function.
9850
9851         * dbus/dbus-server.c: Fix small doc typo.
9852
9853         * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
9854
9855 2003-01-19  Anders Carlsson  <andersca@codefactory.se>
9856
9857         * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
9858         of the string, just as long as specified.
9859
9860 2003-01-19  Havoc Pennington  <hp@pobox.com>
9861
9862         * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
9863         new function
9864
9865         * dbus/dbus-server.c (dbus_server_set_max_connections)
9866         (dbus_server_get_max_connections, dbus_server_get_n_connections):
9867         keep track of current number of connections, and add API for
9868         setting a max (but haven't implemented enforcing the max yet)
9869
9870 2003-01-18  Havoc Pennington  <hp@pobox.com>
9871
9872         * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
9873         reading/writing if read_watch != NULL or write_watch != NULL.
9874
9875         * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
9876         the message loader code to actually load message->header and
9877         message->body into the newly-created message.
9878
9879         * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
9880         in OOM case
9881
9882         * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
9883         (dbus_connection_get_max_message_size)
9884         (dbus_connection_set_max_live_messages_size)
9885         (dbus_connection_get_max_live_messages_size): implement some
9886         resource limitation functions
9887
9888         * dbus/dbus-resources.c: new file implementing some of the
9889         resource limits stuff
9890
9891         * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
9892         missing docs, add @todo to handle OOM etc.
9893
9894         * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
9895         docs
9896
9897 2003-01-18  Havoc Pennington  <hp@pobox.com>
9898
9899         * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
9900         connection if it hasn't been already.
9901
9902         * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
9903         replace with DisconnectFunction.
9904
9905 2003-01-18  Havoc Pennington  <hp@pobox.com>
9906
9907         Building --disable-verbose-mode --disable-asserts --disable-tests
9908         cuts the library from 112K to 45K or so
9909
9910         * configure.in: check for varargs macro support,
9911         add --enable-verbose-mode, --enable-asserts.
9912
9913         * dbus/dbus-internals.h (_dbus_assert): support
9914         DBUS_DISABLE_ASSERT
9915         (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
9916
9917 2003-01-18  Havoc Pennington  <hp@pobox.com>
9918
9919         * dbus/dbus-test.c: include config.h so that tests actually run
9920
9921         * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
9922         so the failure mode when that assumption fails will be plenty
9923         obvious.
9924
9925 2003-01-18  Havoc Pennington  <hp@pobox.com>
9926
9927         * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
9928
9929         * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
9930         the distribution
9931
9932         * test/Makefile.am: don't use special variable "TESTS" for echo-*
9933         since we don't want to use those in make check
9934
9935 2003-01-15  Havoc Pennington  <hp@redhat.com>
9936
9937         Release 0.2
9938
9939         * NEWS: update
9940
9941 2003-01-15  Havoc Pennington  <hp@redhat.com>
9942
9943         * test/Makefile.am: fix so that test source code ends up in the
9944         distribution on make distcheck
9945
9946 2003-01-15  Havoc Pennington  <hp@redhat.com>
9947
9948         Release 0.1.
9949
9950         * NEWS: update
9951
9952 2003-01-15  Havoc Pennington  <hp@redhat.com>
9953
9954         * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
9955         fix build when --disable-tests
9956
9957         * Makefile.am (EXTRA_DIST): put HACKING in here
9958
9959         * HACKING: document procedure for making a tarball release.
9960
9961 2003-01-14  Anders Carlsson  <andersca@codefactory.se>
9962
9963         * bus/connection.c: (connection_error_handler),
9964         (bus_connection_setup):
9965         * bus/main.c: (main):
9966         Make sure that the DBusConnectionData struct is NULLed
9967         out to prevent a segfault.
9968
9969         * dbus/dbus-errors.c: (dbus_result_to_string):
9970         * dbus/dbus-errors.h:
9971         * dbus/dbus-message.c: (dbus_message_get_fields),
9972         (dbus_message_get_fields_valist), (_dbus_message_test):
9973         * dbus/dbus-message.h:
9974         Make dbus_message_get_fields return a result code so we can
9975         track invalid fields as well as oom.
9976
9977 2003-01-11  Havoc Pennington  <hp@pobox.com>
9978
9979         * configure.in: change --enable-test/--enable-ansi action-if-given
9980         to enable_foo=$enableval instead of enable_foo=yes
9981
9982 2003-01-08  Havoc Pennington  <hp@pobox.com>
9983
9984         * dbus/dbus-string.c (_dbus_string_align_length): new function
9985
9986         * dbus/dbus-test-main.c: move main() for test app here
9987         * dbus/dbus-test.c
9988         (dbus_internal_symbol_do_not_use_run_tests): we have to export a
9989         symbol to run tests, because dbus-test isn't in the main
9990         library
9991
9992         Code review nitpicks.
9993
9994         * dbus/dbus-message.c (dbus_message_write_header): add newlines
9995         for people with narrow emacs ;-). Assert client_serial was filled
9996         in. Assert message->name != NULL.
9997         (dbus_message_append_fields): have "first_field_type" arg separate
9998         from va list, needed for C++ binding that also uses varargs IIRC
9999         and helps with type safety
10000         (dbus_message_new): add @todo about using DBusString to store
10001         service/name internally
10002         (dbus_message_new): don't leak ->service and ->name on OOM later
10003         in the function
10004         (dbus_message_unref): free the service name
10005         (dbus_message_get_fields): same change to varargs
10006         i.e. first_field_type
10007         (_dbus_message_loader_return_buffer): assert that the message data
10008         is aligned (if not it's a bug in our code). Put in verbose griping
10009         about why we set corrupted = TRUE.
10010         (decode_header_data): add FIXME that char* is evil.  Was going to
10011         add FIXME about evil locale-specific string.h strncmp, but just
10012         switched to wacky string-as-uint32 optimization. Move check for
10013         "no room for field name" above get_const_data_len() to avoid
10014         assertion failure in get_const_data_len if we have trailing 2
10015         bytes or the like. Check for service and name fields being
10016         provided twice. Don't leak service/name on error. Require field
10017         names to be aligned to 4 bytes.
10018
10019         * dbus/dbus-marshal.c: move byte swap stuff to header
10020         (_dbus_pack_int32): uscore-prefix
10021         (_dbus_unpack_int32): uscore-prefix
10022         (_dbus_unpack_uint32): export
10023         (_dbus_demarshal_string): add @todo complaining about use of
10024         memcpy()
10025         (_dbus_marshal_get_field_end_pos): add @todo about bad error
10026         handling allowing corrupt data to go unchecked
10027
10028 2003-01-08  Havoc Pennington  <hp@redhat.com>
10029
10030         * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
10031         to the select() as needed for authentication. (should be using
10032         _dbus_poll() not select, but for another day)
10033
10034         * dbus/dbus.h: include dbus/dbus-protocol.h
10035
10036 2003-01-08  Anders Carlsson  <andersca@codefactory.se>
10037
10038         * dbus/Makefile.am (dbusinclude_HEADERS): Install
10039         dbus-connection.h
10040
10041 2003-01-08  Anders Carlsson  <andersca@codefactory.se>
10042
10043         * dbus/dbus-internals.c: (_dbus_type_to_string):
10044         New function that returns a string describing a type.
10045
10046         * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
10047         * dbus/dbus-marshal.h:
10048         * dbus/dbus-message.c: (dbus_message_get_fields_valist),
10049         (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
10050         (dbus_message_iter_get_byte_array):
10051         * dbus/dbus-message.h:
10052         Add new convenience functions for appending and getting message fields.
10053         Also add demarshalling routines for byte arrays.
10054
10055 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
10056
10057         * dbus/dbus-connection-internal.h:
10058         * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
10059         (_dbus_connection_get_next_client_serial),
10060         (dbus_connection_send_message):
10061         * dbus/dbus-internals.h:
10062         * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
10063         (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
10064         (_dbus_marshal_uint32), (_dbus_demarshal_double),
10065         (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
10066         (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
10067         (_dbus_verbose_bytes), (_dbus_marshal_test):
10068         * dbus/dbus-marshal.h:
10069         * dbus/dbus-message-internal.h:
10070         * dbus/dbus-message.c: (_dbus_message_set_client_serial),
10071         (dbus_message_write_header), (_dbus_message_lock),
10072         (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
10073         (dbus_message_get_name), (dbus_message_append_int32),
10074         (dbus_message_append_uint32), (dbus_message_append_double),
10075         (dbus_message_append_string), (dbus_message_append_byte_array),
10076         (dbus_message_get_fields_iter), (dbus_message_iter_ref),
10077         (dbus_message_iter_unref), (dbus_message_iter_has_next),
10078         (dbus_message_iter_next), (dbus_message_iter_get_field_type),
10079         (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
10080         (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
10081         (decode_header_data), (_dbus_message_loader_return_buffer),
10082         (message_iter_test), (_dbus_message_test):
10083         * dbus/dbus-message.h:
10084         * dbus/dbus-protocol.h:
10085         * dbus/dbus-test.c: (main):
10086         * dbus/dbus-test.h:
10087         * glib/test-dbus-glib.c: (message_handler), (main):
10088         * test/echo-client.c: (main):
10089         * test/watch.c: (check_messages):
10090         Make messages sendable and receivable for real.
10091
10092 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
10093
10094         * dbus/dbus-marshal.c: (_dbus_marshal_double),
10095         (_dbus_marshal_string), (_dbus_marshal_byte_array):
10096         * dbus/dbus-message.c: (dbus_message_append_int32),
10097         (dbus_message_append_uint32), (dbus_message_append_double),
10098         (dbus_message_append_string), (dbus_message_append_byte_array):
10099         Handle OOM restoration.
10100
10101 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
10102
10103         * dbus/dbus-marshal.c: (_dbus_marshal_string),
10104         (_dbus_demarshal_string), (_dbus_marshal_test):
10105         * dbus/dbus-marshal.h:
10106         * dbus/dbus-message.c: (dbus_message_get_name),
10107         Document these functions.
10108
10109         (dbus_message_append_int32), (dbus_message_append_uint32),
10110         (dbus_message_append_double), (dbus_message_append_string),
10111         (dbus_message_append_byte_array):
10112         * dbus/dbus-message.h:
10113         Add functions for adding message fields of different types.
10114
10115         * dbus/dbus-protocol.h:
10116         Add the different types.
10117
10118 2003-01-05  Havoc Pennington  <hp@pobox.com>
10119
10120         * bus/connection.c: implement routines for handling connections,
10121         first thing is keeping a list of owned services on each connection
10122         and setting up watches etc.
10123
10124         * bus/services.c: implement a mapping from service names to lists
10125         of connections
10126
10127         * dbus/dbus-hash.c: add DBUS_HASH_POINTER
10128
10129         * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
10130         to use static mutexes for global data
10131
10132         * dbus/dbus-connection.c (dbus_connection_set_data): add new
10133         collection of functions to set/get application-specific data
10134         on the DBusConnection.
10135
10136 2003-01-04  Havoc Pennington  <hp@pobox.com>
10137
10138         * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
10139         (_dbus_poll): new function
10140
10141         * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
10142         copied from GLib
10143
10144         * bus/loop.c: initial code for the daemon main loop
10145
10146 2003-01-04  Havoc Pennington  <hp@pobox.com>
10147
10148         * test/watch.c (error_handler): make it safe if the error handler
10149         is called multiple times (if we s/error handler/disconnect
10150         handler/ we should just guarantee it's called only once)
10151
10152         * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
10153         error handler on disconnect (it's quite possible we should
10154         just change the error handler to a "disconnect handler," I'm
10155         not sure we have any other meaningful errors)
10156
10157         * configure.in: check for getpwnam_r
10158
10159         * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
10160         dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
10161         mechanism as in SASL spec, using socket credentials
10162
10163         * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
10164         (_dbus_send_credentials_unix_socket): new function
10165
10166         * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
10167         dbus_accept()
10168         (_dbus_write): only check errno if <0 returned
10169         (_dbus_write_two): ditto
10170
10171 2003-01-02  Anders Carlsson  <andersca@codefactory.se>
10172
10173         * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
10174         (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
10175         (_dbus_marshal_test):
10176         * dbus/dbus-marshal.h:
10177         Add _dbus_marshal_byte_array and rename _dbus_marshal_string
10178         to _dbus_marshal_utf8_string. Also fix some tests.
10179
10180 2002-12-28  Harri Porten  <porten@kde.org>
10181
10182         * configure.in: added check for C++ compiler and a very cheesy
10183         check for the Qt integration
10184
10185         * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
10186
10187         * qt/Makefile.am: added
10188
10189         * qt/.cvsignore: added
10190
10191         * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
10192         latter, added #ifdef QT_THREAD_SUPPORT guard.
10193
10194         * dbus/Makefile.am: added missing headers for make dist
10195
10196 2002-12-28  Kristian Rietveld  <kris@gtk.org>
10197
10198         * dbus/Makefile.am: fixup export-symbols-regex.
10199
10200 2002-12-27  Anders Carlsson  <andersca@codefactory.se>
10201
10202         * acinclude.m4: Add this file and put the
10203         PKG_CHECK_MODULE macro in it.
10204
10205 2002-12-27  Anders Carlsson  <andersca@codefactory.se>
10206
10207         * dbus/dbus-marshal.c: (_dbus_marshal_string),
10208         (_dbus_demarshal_double), (_dbus_demarshal_int32),
10209         (_dbus_demarshal_uint32), (_dbus_demarshal_string),
10210         (_dbus_marshal_test):
10211         Make the demarshalling routines align the pos argument.
10212         Add string marshalling tests and fix the obvious bugs
10213         discovered.
10214
10215 2002-12-26  Havoc Pennington  <hp@pobox.com>
10216
10217         * dbus/dbus-auth.c: fixes fixes fixes
10218
10219         * dbus/dbus-transport-unix.c: wire up support for
10220         encoding/decoding data on the wire
10221
10222         * dbus/dbus-auth.c (_dbus_auth_encode_data)
10223         (_dbus_auth_decode_data): append to target string
10224         instead of nuking it.
10225
10226 2002-12-26  Havoc Pennington  <hp@pobox.com>
10227
10228         * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
10229         WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
10230         doh
10231
10232         * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
10233         avoid swap_bytes() overhead (ignoring possible assembly stuff for
10234         now). Main point is because I wanted unpack_uint32 to implement
10235         _dbus_verbose_bytes
10236         (_dbus_verbose_bytes): new function
10237
10238         * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
10239
10240         * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
10241         mechanism to handle a corrupt message stream
10242         (_dbus_message_loader_new): fix preallocation to only prealloc,
10243         not prelengthen
10244
10245         * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
10246         (_dbus_string_test): enhance tests for copy/move and fix the
10247         functions
10248
10249         * dbus/dbus-transport-unix.c: Hold references in more places to
10250         avoid reentrancy problems
10251
10252         * dbus/dbus-transport.c: ditto
10253
10254         * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
10255         leak reference count in no-message case
10256
10257         * test/watch.c (do_mainloop): handle adding/removing watches
10258         during iteration over the watches. Also, ref the connection/server
10259         stored on a watch, so we don't try to mangle a destroyed one.
10260
10261         * dbus/dbus-transport-unix.c (do_authentication): perform
10262         authentication
10263
10264         * dbus/dbus-auth.c (get_state): add a state
10265         AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
10266         (_dbus_auth_get_unused_bytes): append the unused bytes
10267         to the passed in string, rather than prepend
10268
10269         * dbus/dbus-transport.c (_dbus_transport_init_base): create
10270         the auth conversation DBusAuth
10271
10272         * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
10273         (_dbus_transport_new_for_domain_socket): when creating a
10274         transport, pass in whether it's a client-side or server-side
10275         transport so we know which DBusAuth to create
10276
10277 2002-12-03  Havoc Pennington  <hp@pobox.com>
10278
10279         * dbus/dbus-transport-unix.c (unix_finalize): finalize base
10280         _after_ finalizing the derived members
10281         (unix_connection_set): unref watch if we fail to add it
10282
10283         * dbus/dbus-connection.c (dbus_connection_unref): delete the
10284         transport first, so that the connection owned by the
10285         transport will be valid as the transport finalizes.
10286
10287         * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
10288         if necessary, and remove watches from the connection.
10289
10290         * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
10291
10292 2002-12-26  Anders Carlsson  <andersca@codefactory.se>
10293
10294         * dbus/dbus-marshal.c: (_dbus_marshal_string),
10295         (_dbus_demarshal_double), (_dbus_demarshal_int32),
10296         (_dbus_demarshal_uint32), (_dbus_demarshal_string),
10297         (_dbus_marshal_test):
10298         * dbus/dbus-marshal.h:
10299         Add string marshal functions and have the demarshal functions
10300         return the new position.
10301
10302 2002-12-25  Havoc Pennington  <hp@pobox.com>
10303
10304         * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
10305         it is a simple protocol that just maps directly to SASL.
10306
10307         * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
10308         initial implementation, not actually used yet.
10309
10310         * dbus/dbus-string.c (_dbus_string_find): new function
10311         (_dbus_string_equal): new function
10312         (_dbus_string_base64_encode): new function
10313         (_dbus_string_base64_decode): new function
10314
10315 2002-12-25  Anders Carlsson  <andersca@codefactory.se>
10316
10317         * dbus/Makefile.am:
10318         * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
10319         (_dbus_marshal_int32), (_dbus_marshal_uint32),
10320         (_dbus_demarshal_double), (_dbus_demarshal_int32),
10321         (_dbus_demarshal_uint32), (_dbus_marshal_test):
10322         * dbus/dbus-marshal.h:
10323         * dbus/dbus-protocol.h:
10324         * dbus/dbus-test.c: (main):
10325         * dbus/dbus-test.h:
10326         Add un-optimized marshalling/demarshalling routines.
10327
10328 2002-12-25  Harri Porten  <porten@kde.org>
10329
10330         * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
10331
10332 2002-12-24  Zack Rusin  <zack@kde.org>
10333
10334         * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
10335         * qt/dbus-qt.h: skeleton with two sample implemenatation of the
10336         main loop stuff
10337
10338 2002-12-24  Havoc Pennington  <hp@pobox.com>
10339
10340         * glib/dbus-gthread.c: fix include
10341
10342         * glib/dbus-glib.h: rename DBusMessageHandler for now.
10343         I think glib API needs to change, though, as you don't
10344         want to use DBusMessageFunction, you want to use the
10345         DBusMessageHandler object. Probably
10346         dbus_connection_open_with_g_main_loop()
10347         and dbus_connection_setup_g_main_loop() or something like that
10348         (but think of better names...) that just create a connection
10349         that has watch/timeout functions etc. already set up.
10350
10351         * dbus/dbus-connection.c
10352         (dbus_connection_send_message_with_reply): new function just to
10353         show how the message handler helps us deal with replies.
10354
10355         * dbus/dbus-list.c (_dbus_list_remove_last): new function
10356
10357         * dbus/dbus-string.c (_dbus_string_test): free a string that
10358         wasn't
10359
10360         * dbus/dbus-hash.c: use memory pools for the hash entries
10361         (rebuild_table): be more paranoid about overflow, and
10362         shrink table when we can
10363         (_dbus_hash_test): reduce number of sprintfs and write
10364         valid C89. Add tests for case where we grow and then
10365         shrink the hash table.
10366
10367         * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
10368
10369         * dbus/dbus-connection.c (dbus_connection_register_handler)
10370         (dbus_connection_unregister_handler): new functions
10371
10372         * dbus/dbus-message.c (dbus_message_get_name): new
10373
10374         * dbus/dbus-list.c: fix docs typo
10375
10376         * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
10377         an object representing a handler for messages.
10378
10379 2002-12-16  Anders Carlsson  <andersca@codefactory.se>
10380
10381         * glib/dbus-glib.h:
10382         * glib/dbus-gthread.c: (dbus_gthread_init):
10383         Don't use the gdbus prefix for public functions.
10384
10385 2002-12-16  Anders Carlsson  <andersca@codefactory.se>
10386
10387         * Makefile.am:
10388         * configure.in:
10389         Add GLib checks and fixup .pc files
10390
10391         * glib/Makefile.am:
10392         * glib/dbus-glib.h:
10393         * glib/dbus-gmain.c: (gdbus_connection_prepare),
10394         (gdbus_connection_check), (gdbus_connection_dispatch),
10395         (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
10396         (dbus_connection_gsource_new):
10397         * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
10398         (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
10399         * glib/test-dbus-glib.c: (message_handler), (main):
10400         Add GLib support.
10401
10402 2002-12-15  Harri Porten  <porten@kde.org>
10403
10404         * autogen.sh: check for libtoolize before attempting to use it
10405
10406         * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
10407         struct.
10408
10409         * .cvsignore: ignore more stamp files
10410
10411         * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
10412
10413         * test/Makefile.am: added -I$(top_srcdir) to be able to compile
10414         without make install.
10415
10416 2002-12-15  Havoc Pennington  <hp@pobox.com>
10417
10418         * dbus/dbus-threads.c: add thread stubs that a higher library
10419         layer can fill in. e.g. the GLib wrapper might fill them in with
10420         GThread stuff. We still need to use this thread API to
10421         thread-safe-ize the library.
10422
10423 2002-12-12  Havoc Pennington  <hp@pobox.com>
10424
10425         * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
10426         below new interfaces and include fewer system headers.
10427
10428         * dbus/dbus-sysdeps.c (_dbus_read): new function
10429         (_dbus_write): new function
10430         (_dbus_write_two): new function
10431         (_dbus_connect_unix_socket): new function
10432         (_dbus_listen_unix_socket): new function
10433
10434         * dbus/dbus-message-internal.h: change interfaces to use
10435         DBusString
10436
10437 2002-12-11  Havoc Pennington  <hp@pobox.com>
10438
10439         * dbus/dbus-types.h: add dbus_unichar
10440
10441         * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
10442
10443         * dbus/dbus-connection.c (dbus_connection_send_message): return
10444         TRUE on success
10445
10446         * dbus/dbus-transport.c: include dbus-watch.h
10447
10448         * dbus/dbus-connection.c: include dbus-message-internal.h
10449
10450         * HACKING: add file with coding guidelines stuff.
10451
10452         * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
10453         handling here, for security purposes (as in vsftpd). Not actually
10454         using this class yet.
10455
10456         * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
10457         system/libc usage here, as in vsftpd, for ease of auditing (and
10458         should also simplify portability). Haven't actually moved all the
10459         system/libc usage into here yet.
10460
10461 2002-11-25  Havoc Pennington  <hp@pobox.com>
10462
10463         * dbus/dbus-internals.c (_dbus_verbose): fix to not
10464         always print the first verbose message.
10465
10466 2002-11-24  Havoc Pennington  <hp@pobox.com>
10467
10468         * test/echo-client.c, test/echo-server.c: cheesy test
10469         clients.
10470
10471         * configure.in (AC_CHECK_FUNCS): check for writev
10472
10473         * dbus/dbus-message.c (_dbus_message_get_network_data): new
10474         function
10475
10476         * dbus/dbus-list.c (_dbus_list_foreach): new function
10477
10478         * dbus/dbus-internals.c (_dbus_verbose): new function
10479
10480         * dbus/dbus-server.c, dbus/dbus-server.h: public object
10481         representing a server that listens for connections.
10482
10483         * dbus/.cvsignore: create
10484
10485         * dbus/dbus-errors.h, dbus/dbus-errors.c:
10486         public API for reporting errors
10487
10488         * dbus/dbus-connection.h, dbus/dbus-connection.c:
10489         public object representing a connection that
10490         sends/receives messages. (Same object used for
10491         both client and server.)
10492
10493         * dbus/dbus-transport.h, dbus/dbus-transport.c:
10494         Basic abstraction for different kinds of stream
10495         that we might read/write messages from.
10496
10497 2002-11-23  Havoc Pennington  <hp@pobox.com>
10498
10499         * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
10500         _DBUS_INT_MAX
10501
10502         * dbus/dbus-test.c (main): add list test, and include
10503         dbus-test.h as intended
10504
10505         * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
10506         (_dbus_hash_table_remove_int): return value indicates
10507         whether the entry existed to remove
10508
10509         * dbus/dbus-list.c: add linked list utility class,
10510         with docs and tests
10511
10512         * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
10513         array sometimes.
10514
10515 2002-11-23  Havoc Pennington  <hp@pobox.com>
10516
10517         * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
10518         DBUS_END_DECLS to nothing, that should fix this once and for all
10519
10520         * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
10521
10522         * dbus/dbus-message.c, dbus/dbus-hash.c:
10523         add some missing @brief
10524
10525 2002-11-23  Havoc Pennington  <hp@pobox.com>
10526
10527         * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
10528         to avoid confusing Doxygen
10529
10530         * dbus/dbus-hash.c: @} not }@
10531
10532         * dbus/dbus-message.c (struct DBusMessage): split out
10533         internals docs
10534
10535 2002-11-23  Havoc Pennington  <hp@pobox.com>
10536
10537         * configure.in: pile on more warning flags if using gcc
10538
10539         * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
10540         to document static functions
10541
10542         * configure.in: add summary to end of configure so it
10543         looks nice and attractive
10544
10545         * dbus/dbus-hash.c: finish implementation and write unit
10546         tests and docs
10547
10548         * configure.in: add --enable-tests to enable unit tests
10549
10550         * dbus/dbus-test.c: test program to run unit tests
10551         for all files in dbus/*, initially runs a test for
10552         dbus-hash.c
10553
10554         * dbus/dbus-internals.h: file to hold some internal utility stuff
10555
10556 2002-11-22  Havoc Pennington  <hp@redhat.com>
10557
10558         * dbus/dbus-hash.c: copy in Tcl hash table, not yet
10559         "ported" away from Tcl
10560
10561         * dbus/dbus-types.h: header for types such as dbus_bool_t
10562
10563 2002-11-22  Havoc Pennington  <hp@redhat.com>
10564
10565         * dbus/dbus.h: fixups for doc warnings
10566
10567         * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
10568         macros
10569         (QUIET): make it quiet so we can see warnings
10570
10571         * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
10572
10573 2002-11-22  Havoc Pennington  <hp@redhat.com>
10574
10575         * Makefile.am: include "Doxyfile" target in all-local
10576
10577         * configure.in: generate the Doxyfile
10578
10579         * Doxyfile.in: move Doxyfile here, so we can use
10580         configure to generate a Doxyfile with the right
10581         version number etc.
10582
10583 2002-11-22  Havoc Pennington  <hp@redhat.com>
10584
10585         * dbus/dbus-message.c: move inline docs into .c file
10586
10587         * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
10588         so all docs are under doc/
10589         (MAN_EXTENSION): generate man pages. Use extension
10590         ".3dbus" which matches ".3qt" on my system,
10591         I guess this is OK, I don't know really.
10592         (FILE_PATTERNS): look for .c files not .h, makes sense
10593         for plain C I think
10594
10595 2002-11-22  Havoc Pennington  <hp@pobox.com>
10596
10597         * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
10598         because any app can be a server, and any app can be a client,
10599         the bus is a special kind of server.
10600
10601 Thu Nov 21 23:35:31 2002  Zack Rusin  <zack@kde.org>
10602
10603         * Doxyfile : adding. Still needs Makefile rules to be generated
10604         automatically (just run "doxygen" in the toplevel dir for now to
10605         generate docs)
10606
10607         * dbus/dbus-message.h : Adding sample docs (javadoc since
10608         resembles gtk-doc a little more)
10609
10610         * dbus/dbus.h : Adding sample docs
10611
10612 2002-11-21  Havoc Pennington  <hp@redhat.com>
10613
10614         * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
10615         so we can allow ourselves to include files directly,
10616         instead of having to use dbus.h
10617
10618         * dbus/dbus.h: fill in
10619
10620         * dbus/dbus-message.h: sketch out a sample header file.
10621         Include griping if you include it directly instead of
10622         via dbus.h
10623
10624         * dbus/dbus-macros.h: new file with macros for extern "C",
10625         TRUE/FALSE, NULL, etc.
10626
10627         * doc/file-boilerplate.c: put include guards in here
10628
10629 2002-11-21  Havoc Pennington  <hp@redhat.com>
10630
10631         * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
10632
10633         * COPYING: include the GPL as well, and license code
10634         under both AFL and GPL.
10635
10636 2002-11-21  Havoc Pennington  <hp@redhat.com>
10637
10638         * acconfig.h: get rid of this
10639
10640         * autogen.sh (run_configure): add --no-configure option
10641
10642         * configure.in: remove AC_ARG_PROGRAM to make
10643         autoconf complain less. add AC_PREREQ.
10644         add AC_DEFINE third arg.
10645
10646 2002-11-21  Anders Carlsson  <andersca@codefactory.se>
10647
10648         * doc/Makefile.am:
10649         Fix references so we can distcheck.
10650
10651 2002-11-21  Havoc Pennington  <hp@redhat.com>
10652
10653         * Initial module creation
10654