2003-01-21 Anders Carlsson <andersca@codefactory.se>
[platform/upstream/dbus.git] / ChangeLog
1 2003-01-21  Anders Carlsson  <andersca@codefactory.se>
2
3         * dbus/dbus-connection.c: (dbus_connection_send_message):
4         Add a new client_serial parameter.
5         
6         (dbus_connection_send_message_with_reply):
7         Remove a @todo since we've implemented the blocking function.
8         
9         (dbus_connection_send_message_with_reply_and_block):
10         New function that sends a message and waits for a reply and
11         then returns the reply.
12         
13         * dbus/dbus-connection.h:
14         Add new functions.
15         
16         * dbus/dbus-errors.c: (dbus_result_to_string):
17         * dbus/dbus-errors.h:
18         Add new DBUS_RESULT.
19         
20         * dbus/dbus-message-internal.h:
21         * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
22         (_dbus_message_set_sender), (dbus_message_write_header),
23         (dbus_message_new_reply), (decode_header_data),
24         (_dbus_message_loader_return_buffer), (_dbus_message_test):
25         * dbus/dbus-message.h:
26         Add new functions that set the reply serial and sender.
27         Also marshal and demarshal them correctly and add test.
28         
29         * dbus/dbus-protocol.h:
30         Add new DBUS_MESSAGE_TYPE_SENDER.
31         
32         * glib/dbus-glib.h:
33         * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
34         (add_watch), (remove_watch), (add_timeout), (remove_timeout),
35         (dbus_connection_hookup_with_g_main):
36         * glib/test-dbus-glib.c: (main):
37         Rewrite to use GIOChannel and remove the GSource crack.
38         
39         * test/echo-client.c: (main):
40         * test/watch.c: (check_messages):
41         Update for changed APIs
42         
43 2003-01-19  Anders Carlsson  <andersca@codefactory.se>
44
45         * dbus/Makefile.am: Add dbus-timeout.[cħ]
46         
47         * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
48         Create a DBusTimeoutList.       
49         (dbus_connection_set_timeout_functions): Add new function to
50         set timeout callbacks
51         
52         * dbus/dbus-connection.h: Add public DBusTimeout API.
53         
54         * dbus/dbus-message.c: (dbus_message_get_service):
55         * dbus/dbus-message.h:  New function.
56
57         * dbus/dbus-server.c: Fix small doc typo.
58         
59         * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
60
61 2003-01-19  Anders Carlsson  <andersca@codefactory.se>
62
63         * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
64         of the string, just as long as specified.
65
66 2003-01-19  Havoc Pennington  <hp@pobox.com>
67
68         * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
69         new function
70
71         * dbus/dbus-server.c (dbus_server_set_max_connections)
72         (dbus_server_get_max_connections, dbus_server_get_n_connections):
73         keep track of current number of connections, and add API for
74         setting a max (but haven't implemented enforcing the max yet)
75
76 2003-01-18  Havoc Pennington  <hp@pobox.com>
77
78         * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
79         reading/writing if read_watch != NULL or write_watch != NULL.
80
81         * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
82         the message loader code to actually load message->header and
83         message->body into the newly-created message.
84
85         * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
86         in OOM case
87
88         * dbus/dbus-connection.c (dbus_connection_set_max_message_size) 
89         (dbus_connection_get_max_message_size) 
90         (dbus_connection_set_max_live_messages_size) 
91         (dbus_connection_get_max_live_messages_size): implement some
92         resource limitation functions
93
94         * dbus/dbus-resources.c: new file implementing some of the
95         resource limits stuff
96
97         * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
98         missing docs, add @todo to handle OOM etc.
99
100         * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
101         docs
102         
103 2003-01-18  Havoc Pennington  <hp@pobox.com>
104
105         * dbus/dbus-connection.c (dbus_connection_unref): disconnect the 
106         connection if it hasn't been already.
107
108         * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
109         replace with DisconnectFunction.
110
111 2003-01-18  Havoc Pennington  <hp@pobox.com>
112
113         Building --disable-verbose-mode --disable-asserts --disable-tests
114         cuts the library from 112K to 45K or so
115         
116         * configure.in: check for varargs macro support, 
117         add --enable-verbose-mode, --enable-asserts. 
118
119         * dbus/dbus-internals.h (_dbus_assert): support
120         DBUS_DISABLE_ASSERT
121         (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
122
123 2003-01-18  Havoc Pennington  <hp@pobox.com>
124
125         * dbus/dbus-test.c: include config.h so that tests actually run
126
127         * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
128         so the failure mode when that assumption fails will be plenty
129         obvious.
130
131 2003-01-18  Havoc Pennington  <hp@pobox.com>
132
133         * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
134
135         * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
136         the distribution
137
138         * test/Makefile.am: don't use special variable "TESTS" for echo-*
139         since we don't want to use those in make check
140
141 2003-01-15  Havoc Pennington  <hp@redhat.com>
142
143         Release 0.2
144         
145         * NEWS: update
146
147 2003-01-15  Havoc Pennington  <hp@redhat.com>
148
149         * test/Makefile.am: fix so that test source code ends up in the
150         distribution on make distcheck
151
152 2003-01-15  Havoc Pennington  <hp@redhat.com>
153
154         Release 0.1.
155         
156         * NEWS: update  
157
158 2003-01-15  Havoc Pennington  <hp@redhat.com>
159
160         * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
161         fix build when --disable-tests
162
163         * Makefile.am (EXTRA_DIST): put HACKING in here
164
165         * HACKING: document procedure for making a tarball release.
166
167 2003-01-14  Anders Carlsson  <andersca@codefactory.se>
168
169         * bus/connection.c: (connection_error_handler),
170         (bus_connection_setup):
171         * bus/main.c: (main):
172         Make sure that the DBusConnectionData struct is NULLed
173         out to prevent a segfault.
174         
175         * dbus/dbus-errors.c: (dbus_result_to_string):
176         * dbus/dbus-errors.h:
177         * dbus/dbus-message.c: (dbus_message_get_fields),
178         (dbus_message_get_fields_valist), (_dbus_message_test):
179         * dbus/dbus-message.h:
180         Make dbus_message_get_fields return a result code so we can
181         track invalid fields as well as oom.
182         
183 2003-01-11  Havoc Pennington  <hp@pobox.com>
184
185         * configure.in: change --enable-test/--enable-ansi action-if-given
186         to enable_foo=$enableval instead of enable_foo=yes
187
188 2003-01-08  Havoc Pennington  <hp@pobox.com>
189
190         * dbus/dbus-string.c (_dbus_string_align_length): new function
191
192         * dbus/dbus-test-main.c: move main() for test app here
193         * dbus/dbus-test.c
194         (dbus_internal_symbol_do_not_use_run_tests): we have to export a
195         symbol to run tests, because dbus-test isn't in the main 
196         library
197
198         Code review nitpicks.
199         
200         * dbus/dbus-message.c (dbus_message_write_header): add newlines
201         for people with narrow emacs ;-). Assert client_serial was filled
202         in. Assert message->name != NULL.
203         (dbus_message_append_fields): have "first_field_type" arg separate
204         from va list, needed for C++ binding that also uses varargs IIRC
205         and helps with type safety
206         (dbus_message_new): add @todo about using DBusString to store
207         service/name internally
208         (dbus_message_new): don't leak ->service and ->name on OOM later
209         in the function
210         (dbus_message_unref): free the service name
211         (dbus_message_get_fields): same change to varargs
212         i.e. first_field_type
213         (_dbus_message_loader_return_buffer): assert that the message data
214         is aligned (if not it's a bug in our code). Put in verbose griping
215         about why we set corrupted = TRUE.
216         (decode_header_data): add FIXME that char* is evil.  Was going to
217         add FIXME about evil locale-specific string.h strncmp, but just
218         switched to wacky string-as-uint32 optimization. Move check for
219         "no room for field name" above get_const_data_len() to avoid
220         assertion failure in get_const_data_len if we have trailing 2
221         bytes or the like. Check for service and name fields being
222         provided twice. Don't leak service/name on error. Require field
223         names to be aligned to 4 bytes.
224
225         * dbus/dbus-marshal.c: move byte swap stuff to header
226         (_dbus_pack_int32): uscore-prefix
227         (_dbus_unpack_int32): uscore-prefix
228         (_dbus_unpack_uint32): export
229         (_dbus_demarshal_string): add @todo complaining about use of
230         memcpy()
231         (_dbus_marshal_get_field_end_pos): add @todo about bad error
232         handling allowing corrupt data to go unchecked
233
234 2003-01-08  Havoc Pennington  <hp@redhat.com>
235
236         * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write 
237         to the select() as needed for authentication. (should be using
238         _dbus_poll() not select, but for another day)
239
240         * dbus/dbus.h: include dbus/dbus-protocol.h
241
242 2003-01-08  Anders Carlsson  <andersca@codefactory.se>
243
244         * dbus/Makefile.am (dbusinclude_HEADERS): Install
245         dbus-connection.h
246
247 2003-01-08  Anders Carlsson  <andersca@codefactory.se>
248
249         * dbus/dbus-internals.c: (_dbus_type_to_string):
250         New function that returns a string describing a type.
251         
252         * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
253         * dbus/dbus-marshal.h:
254         * dbus/dbus-message.c: (dbus_message_get_fields_valist),
255         (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
256         (dbus_message_iter_get_byte_array):
257         * dbus/dbus-message.h:
258         Add new convenience functions for appending and getting message fields.
259         Also add demarshalling routines for byte arrays.
260
261 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
262
263         * dbus/dbus-connection-internal.h:
264         * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
265         (_dbus_connection_get_next_client_serial),
266         (dbus_connection_send_message):
267         * dbus/dbus-internals.h:
268         * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
269         (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
270         (_dbus_marshal_uint32), (_dbus_demarshal_double),
271         (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
272         (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
273         (_dbus_verbose_bytes), (_dbus_marshal_test):
274         * dbus/dbus-marshal.h:
275         * dbus/dbus-message-internal.h:
276         * dbus/dbus-message.c: (_dbus_message_set_client_serial),
277         (dbus_message_write_header), (_dbus_message_lock),
278         (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
279         (dbus_message_get_name), (dbus_message_append_int32),
280         (dbus_message_append_uint32), (dbus_message_append_double),
281         (dbus_message_append_string), (dbus_message_append_byte_array),
282         (dbus_message_get_fields_iter), (dbus_message_iter_ref),
283         (dbus_message_iter_unref), (dbus_message_iter_has_next),
284         (dbus_message_iter_next), (dbus_message_iter_get_field_type),
285         (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
286         (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
287         (decode_header_data), (_dbus_message_loader_return_buffer),
288         (message_iter_test), (_dbus_message_test):
289         * dbus/dbus-message.h:
290         * dbus/dbus-protocol.h:
291         * dbus/dbus-test.c: (main):
292         * dbus/dbus-test.h:
293         * glib/test-dbus-glib.c: (message_handler), (main):
294         * test/echo-client.c: (main):
295         * test/watch.c: (check_messages):
296         Make messages sendable and receivable for real.
297         
298 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
299
300         * dbus/dbus-marshal.c: (_dbus_marshal_double),
301         (_dbus_marshal_string), (_dbus_marshal_byte_array):
302         * dbus/dbus-message.c: (dbus_message_append_int32),
303         (dbus_message_append_uint32), (dbus_message_append_double),
304         (dbus_message_append_string), (dbus_message_append_byte_array):
305         Handle OOM restoration.
306         
307 2003-01-07  Anders Carlsson  <andersca@codefactory.se>
308
309         * dbus/dbus-marshal.c: (_dbus_marshal_string),
310         (_dbus_demarshal_string), (_dbus_marshal_test):
311         * dbus/dbus-marshal.h:
312         * dbus/dbus-message.c: (dbus_message_get_name),
313         Document these functions.
314         
315         (dbus_message_append_int32), (dbus_message_append_uint32),
316         (dbus_message_append_double), (dbus_message_append_string),
317         (dbus_message_append_byte_array):
318         * dbus/dbus-message.h:
319         Add functions for adding message fields of different types.
320         
321         * dbus/dbus-protocol.h:
322         Add the different types.
323
324 2003-01-05  Havoc Pennington  <hp@pobox.com>
325
326         * bus/connection.c: implement routines for handling connections,
327         first thing is keeping a list of owned services on each connection
328         and setting up watches etc.
329
330         * bus/services.c: implement a mapping from service names to lists
331         of connections
332
333         * dbus/dbus-hash.c: add DBUS_HASH_POINTER
334
335         * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
336         to use static mutexes for global data
337
338         * dbus/dbus-connection.c (dbus_connection_set_data): add new
339         collection of functions to set/get application-specific data
340         on the DBusConnection.
341
342 2003-01-04  Havoc Pennington  <hp@pobox.com>
343
344         * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
345         (_dbus_poll): new function
346
347         * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
348         copied from GLib
349
350         * bus/loop.c: initial code for the daemon main loop
351
352 2003-01-04  Havoc Pennington  <hp@pobox.com>
353
354         * test/watch.c (error_handler): make it safe if the error handler 
355         is called multiple times (if we s/error handler/disconnect
356         handler/ we should just guarantee it's called only once)
357
358         * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
359         error handler on disconnect (it's quite possible we should
360         just change the error handler to a "disconnect handler," I'm 
361         not sure we have any other meaningful errors)
362
363         * configure.in: check for getpwnam_r
364
365         * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
366         dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
367         mechanism as in SASL spec, using socket credentials
368
369         * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
370         (_dbus_send_credentials_unix_socket): new function
371
372         * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
373         dbus_accept()
374         (_dbus_write): only check errno if <0 returned
375         (_dbus_write_two): ditto
376
377 2003-01-02  Anders Carlsson  <andersca@codefactory.se>
378
379         * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
380         (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
381         (_dbus_marshal_test):
382         * dbus/dbus-marshal.h:
383         Add _dbus_marshal_byte_array and rename _dbus_marshal_string
384         to _dbus_marshal_utf8_string. Also fix some tests.
385         
386 2002-12-28  Harri Porten  <porten@kde.org>
387
388         * configure.in: added check for C++ compiler and a very cheesy
389         check for the Qt integration
390
391         * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
392
393         * qt/Makefile.am: added 
394
395         * qt/.cvsignore: added  
396
397         * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
398         latter, added #ifdef QT_THREAD_SUPPORT guard.
399
400         * dbus/Makefile.am: added missing headers for make dist
401
402 2002-12-28  Kristian Rietveld  <kris@gtk.org>
403
404         * dbus/Makefile.am: fixup export-symbols-regex.
405
406 2002-12-27  Anders Carlsson  <andersca@codefactory.se>
407
408         * acinclude.m4: Add this file and put the 
409         PKG_CHECK_MODULE macro in it.
410
411 2002-12-27  Anders Carlsson  <andersca@codefactory.se>
412
413         * dbus/dbus-marshal.c: (_dbus_marshal_string),
414         (_dbus_demarshal_double), (_dbus_demarshal_int32),
415         (_dbus_demarshal_uint32), (_dbus_demarshal_string),
416         (_dbus_marshal_test):
417         Make the demarshalling routines align the pos argument.
418         Add string marshalling tests and fix the obvious bugs 
419         discovered.
420         
421 2002-12-26  Havoc Pennington  <hp@pobox.com>
422
423         * dbus/dbus-auth.c: fixes fixes fixes
424
425         * dbus/dbus-transport-unix.c: wire up support for
426         encoding/decoding data on the wire
427
428         * dbus/dbus-auth.c (_dbus_auth_encode_data) 
429         (_dbus_auth_decode_data): append to target string 
430         instead of nuking it.
431
432 2002-12-26  Havoc Pennington  <hp@pobox.com>
433
434         * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
435         WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
436         doh
437
438         * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
439         avoid swap_bytes() overhead (ignoring possible assembly stuff for 
440         now). Main point is because I wanted unpack_uint32 to implement
441         _dbus_verbose_bytes
442         (_dbus_verbose_bytes): new function
443
444         * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
445
446         * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
447         mechanism to handle a corrupt message stream
448         (_dbus_message_loader_new): fix preallocation to only prealloc, 
449         not prelengthen
450         
451         * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
452         (_dbus_string_test): enhance tests for copy/move and fix the
453         functions
454
455         * dbus/dbus-transport-unix.c: Hold references in more places to 
456         avoid reentrancy problems
457
458         * dbus/dbus-transport.c: ditto
459
460         * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
461         leak reference count in no-message case
462
463         * test/watch.c (do_mainloop): handle adding/removing watches
464         during iteration over the watches. Also, ref the connection/server
465         stored on a watch, so we don't try to mangle a destroyed one.
466
467         * dbus/dbus-transport-unix.c (do_authentication): perform
468         authentication
469
470         * dbus/dbus-auth.c (get_state): add a state
471         AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
472         (_dbus_auth_get_unused_bytes): append the unused bytes
473         to the passed in string, rather than prepend
474
475         * dbus/dbus-transport.c (_dbus_transport_init_base): create 
476         the auth conversation DBusAuth
477
478         * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
479         (_dbus_transport_new_for_domain_socket): when creating a
480         transport, pass in whether it's a client-side or server-side
481         transport so we know which DBusAuth to create
482
483 2002-12-03  Havoc Pennington  <hp@pobox.com>
484
485         * dbus/dbus-transport-unix.c (unix_finalize): finalize base
486         _after_ finalizing the derived members
487         (unix_connection_set): unref watch if we fail to add it
488
489         * dbus/dbus-connection.c (dbus_connection_unref): delete the
490         transport first, so that the connection owned by the 
491         transport will be valid as the transport finalizes.
492
493         * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
494         if necessary, and remove watches from the connection.
495         
496         * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
497         
498 2002-12-26  Anders Carlsson  <andersca@codefactory.se>
499
500         * dbus/dbus-marshal.c: (_dbus_marshal_string),
501         (_dbus_demarshal_double), (_dbus_demarshal_int32),
502         (_dbus_demarshal_uint32), (_dbus_demarshal_string),
503         (_dbus_marshal_test):
504         * dbus/dbus-marshal.h:
505         Add string marshal functions and have the demarshal functions
506         return the new position.
507         
508 2002-12-25  Havoc Pennington  <hp@pobox.com>
509
510         * doc/dbus-sasl-profile.txt: docs on the authentication protocol, 
511         it is a simple protocol that just maps directly to SASL.
512
513         * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
514         initial implementation, not actually used yet.
515         
516         * dbus/dbus-string.c (_dbus_string_find): new function
517         (_dbus_string_equal): new function
518         (_dbus_string_base64_encode): new function
519         (_dbus_string_base64_decode): new function
520
521 2002-12-25  Anders Carlsson  <andersca@codefactory.se>
522
523         * dbus/Makefile.am:
524         * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
525         (_dbus_marshal_int32), (_dbus_marshal_uint32),
526         (_dbus_demarshal_double), (_dbus_demarshal_int32),
527         (_dbus_demarshal_uint32), (_dbus_marshal_test):
528         * dbus/dbus-marshal.h:
529         * dbus/dbus-protocol.h:
530         * dbus/dbus-test.c: (main):
531         * dbus/dbus-test.h:
532         Add un-optimized marshalling/demarshalling routines.
533         
534 2002-12-25  Harri Porten  <porten@kde.org>
535
536         * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
537
538 2002-12-24  Zack Rusin  <zack@kde.org>
539
540         * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
541         * qt/dbus-qt.h: skeleton with two sample implemenatation of the
542         main loop stuff
543
544 2002-12-24  Havoc Pennington  <hp@pobox.com>
545
546         * glib/dbus-gthread.c: fix include
547
548         * glib/dbus-glib.h: rename DBusMessageHandler for now. 
549         I think glib API needs to change, though, as you don't 
550         want to use DBusMessageFunction, you want to use the 
551         DBusMessageHandler object. Probably 
552         dbus_connection_open_with_g_main_loop()
553         and dbus_connection_setup_g_main_loop() or something like that
554         (but think of better names...) that just create a connection 
555         that has watch/timeout functions etc. already set up.
556
557         * dbus/dbus-connection.c
558         (dbus_connection_send_message_with_reply): new function just to 
559         show how the message handler helps us deal with replies.
560
561         * dbus/dbus-list.c (_dbus_list_remove_last): new function
562
563         * dbus/dbus-string.c (_dbus_string_test): free a string that
564         wasn't
565
566         * dbus/dbus-hash.c: use memory pools for the hash entries
567         (rebuild_table): be more paranoid about overflow, and 
568         shrink table when we can
569         (_dbus_hash_test): reduce number of sprintfs and write
570         valid C89. Add tests for case where we grow and then 
571         shrink the hash table.
572
573         * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
574
575         * dbus/dbus-connection.c (dbus_connection_register_handler) 
576         (dbus_connection_unregister_handler): new functions
577
578         * dbus/dbus-message.c (dbus_message_get_name): new
579
580         * dbus/dbus-list.c: fix docs typo
581
582         * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
583         an object representing a handler for messages.
584
585 2002-12-16  Anders Carlsson  <andersca@codefactory.se>
586
587         * glib/dbus-glib.h:
588         * glib/dbus-gthread.c: (dbus_gthread_init):
589         Don't use the gdbus prefix for public functions.
590         
591 2002-12-16  Anders Carlsson  <andersca@codefactory.se>
592
593         * Makefile.am:
594         * configure.in:
595         Add GLib checks and fixup .pc files
596         
597         * glib/Makefile.am:
598         * glib/dbus-glib.h:
599         * glib/dbus-gmain.c: (gdbus_connection_prepare),
600         (gdbus_connection_check), (gdbus_connection_dispatch),
601         (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
602         (dbus_connection_gsource_new):
603         * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
604         (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
605         * glib/test-dbus-glib.c: (message_handler), (main):
606         Add GLib support.
607         
608 2002-12-15  Harri Porten  <porten@kde.org>
609
610         * autogen.sh: check for libtoolize before attempting to use it 
611         
612         * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
613         struct.
614         
615         * .cvsignore: ignore more stamp files
616
617         * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
618
619         * test/Makefile.am: added -I$(top_srcdir) to be able to compile
620         without make install.
621
622 2002-12-15  Havoc Pennington  <hp@pobox.com>
623
624         * dbus/dbus-threads.c: add thread stubs that a higher library
625         layer can fill in. e.g. the GLib wrapper might fill them in with
626         GThread stuff. We still need to use this thread API to
627         thread-safe-ize the library.
628
629 2002-12-12  Havoc Pennington  <hp@pobox.com>
630
631         * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
632         below new interfaces and include fewer system headers.
633
634         * dbus/dbus-sysdeps.c (_dbus_read): new function
635         (_dbus_write): new function
636         (_dbus_write_two): new function
637         (_dbus_connect_unix_socket): new function
638         (_dbus_listen_unix_socket): new function
639
640         * dbus/dbus-message-internal.h: change interfaces to use
641         DBusString
642
643 2002-12-11  Havoc Pennington  <hp@pobox.com>
644
645         * dbus/dbus-types.h: add dbus_unichar
646
647         * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
648
649         * dbus/dbus-connection.c (dbus_connection_send_message): return
650         TRUE on success
651
652         * dbus/dbus-transport.c: include dbus-watch.h   
653
654         * dbus/dbus-connection.c: include dbus-message-internal.h
655
656         * HACKING: add file with coding guidelines stuff.
657
658         * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
659         handling here, for security purposes (as in vsftpd). Not actually
660         using this class yet.
661
662         * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
663         system/libc usage here, as in vsftpd, for ease of auditing (and
664         should also simplify portability). Haven't actually moved all the
665         system/libc usage into here yet.
666         
667 2002-11-25  Havoc Pennington  <hp@pobox.com>
668
669         * dbus/dbus-internals.c (_dbus_verbose): fix to not 
670         always print the first verbose message.
671
672 2002-11-24  Havoc Pennington  <hp@pobox.com>
673
674         * test/echo-client.c, test/echo-server.c: cheesy test 
675         clients.
676         
677         * configure.in (AC_CHECK_FUNCS): check for writev
678
679         * dbus/dbus-message.c (_dbus_message_get_network_data): new
680         function
681
682         * dbus/dbus-list.c (_dbus_list_foreach): new function
683
684         * dbus/dbus-internals.c (_dbus_verbose): new function
685
686         * dbus/dbus-server.c, dbus/dbus-server.h: public object
687         representing a server that listens for connections.
688
689         * dbus/.cvsignore: create
690
691         * dbus/dbus-errors.h, dbus/dbus-errors.c:
692         public API for reporting errors
693
694         * dbus/dbus-connection.h, dbus/dbus-connection.c:
695         public object representing a connection that 
696         sends/receives messages. (Same object used for 
697         both client and server.)
698
699         * dbus/dbus-transport.h, dbus/dbus-transport.c:
700         Basic abstraction for different kinds of stream
701         that we might read/write messages from.
702
703 2002-11-23  Havoc Pennington  <hp@pobox.com>
704
705         * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN 
706         _DBUS_INT_MAX
707
708         * dbus/dbus-test.c (main): add list test, and include 
709         dbus-test.h as intended
710
711         * dbus/dbus-hash.c (_dbus_hash_table_remove_string) 
712         (_dbus_hash_table_remove_int): return value indicates 
713         whether the entry existed to remove
714
715         * dbus/dbus-list.c: add linked list utility class, 
716         with docs and tests
717
718         * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket 
719         array sometimes.
720
721 2002-11-23  Havoc Pennington  <hp@pobox.com>
722
723         * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
724         DBUS_END_DECLS to nothing, that should fix this once and for all
725
726         * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
727
728         * dbus/dbus-message.c, dbus/dbus-hash.c: 
729         add some missing @brief
730
731 2002-11-23  Havoc Pennington  <hp@pobox.com>
732
733         * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS 
734         to avoid confusing Doxygen
735
736         * dbus/dbus-hash.c: @} not }@
737
738         * dbus/dbus-message.c (struct DBusMessage): split out 
739         internals docs
740
741 2002-11-23  Havoc Pennington  <hp@pobox.com>
742
743         * configure.in: pile on more warning flags if using gcc
744
745         * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have 
746         to document static functions
747
748         * configure.in: add summary to end of configure so it 
749         looks nice and attractive
750
751         * dbus/dbus-hash.c: finish implementation and write unit 
752         tests and docs
753
754         * configure.in: add --enable-tests to enable unit tests
755
756         * dbus/dbus-test.c: test program to run unit tests 
757         for all files in dbus/*, initially runs a test for 
758         dbus-hash.c
759         
760         * dbus/dbus-internals.h: file to hold some internal utility stuff
761
762 2002-11-22  Havoc Pennington  <hp@redhat.com>
763
764         * dbus/dbus-hash.c: copy in Tcl hash table, not yet 
765         "ported" away from Tcl
766
767         * dbus/dbus-types.h: header for types such as dbus_bool_t
768
769 2002-11-22  Havoc Pennington  <hp@redhat.com>
770
771         * dbus/dbus.h: fixups for doc warnings
772
773         * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up 
774         macros
775         (QUIET): make it quiet so we can see warnings
776
777         * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
778
779 2002-11-22  Havoc Pennington  <hp@redhat.com>
780
781         * Makefile.am: include "Doxyfile" target in all-local
782
783         * configure.in: generate the Doxyfile
784
785         * Doxyfile.in: move Doxyfile here, so we can use 
786         configure to generate a Doxyfile with the right 
787         version number etc.
788
789 2002-11-22  Havoc Pennington  <hp@redhat.com>
790
791         * dbus/dbus-message.c: move inline docs into .c file
792
793         * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
794         so all docs are under doc/
795         (MAN_EXTENSION): generate man pages. Use extension 
796         ".3dbus" which matches ".3qt" on my system, 
797         I guess this is OK, I don't know really.
798         (FILE_PATTERNS): look for .c files not .h, makes sense
799         for plain C I think
800
801 2002-11-22  Havoc Pennington  <hp@pobox.com>
802
803         * Makefile.am (SUBDIRS): rename subdir "server" to "bus" 
804         because any app can be a server, and any app can be a client, 
805         the bus is a special kind of server.
806
807 Thu Nov 21 23:35:31 2002  Zack Rusin  <zack@kde.org>
808
809         * Doxyfile : adding. Still needs Makefile rules to be generated
810         automatically (just run "doxygen" in the toplevel dir for now to
811         generate docs)
812         
813         * dbus/dbus-message.h : Adding sample docs (javadoc since
814         resembles gtk-doc a little more)
815
816         * dbus/dbus.h : Adding sample docs
817
818 2002-11-21  Havoc Pennington  <hp@redhat.com>
819
820         * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION 
821         so we can allow ourselves to include files directly, 
822         instead of having to use dbus.h
823
824         * dbus/dbus.h: fill in
825
826         * dbus/dbus-message.h: sketch out a sample header file.
827         Include griping if you include it directly instead of 
828         via dbus.h
829
830         * dbus/dbus-macros.h: new file with macros for extern "C", 
831         TRUE/FALSE, NULL, etc.
832
833         * doc/file-boilerplate.c: put include guards in here
834
835 2002-11-21  Havoc Pennington  <hp@redhat.com>
836
837         * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
838
839         * COPYING: include the GPL as well, and license code 
840         under both AFL and GPL.
841
842 2002-11-21  Havoc Pennington  <hp@redhat.com>
843
844         * acconfig.h: get rid of this
845
846         * autogen.sh (run_configure): add --no-configure option
847
848         * configure.in: remove AC_ARG_PROGRAM to make
849         autoconf complain less. add AC_PREREQ. 
850         add AC_DEFINE third arg.
851         
852 2002-11-21  Anders Carlsson  <andersca@codefactory.se>
853
854         * doc/Makefile.am:
855         Fix references so we can distcheck.
856
857 2002-11-21  Havoc Pennington  <hp@redhat.com>
858
859         * Initial module creation
860