very basic check for Qt integration. Another proof that Qt's build
[platform/upstream/dbus.git] / ChangeLog
1 2002-12-28  Harri Porten  <porten@kde.org>
2
3         * configure.in: added check for C++ compiler and a very cheesy
4         check for the Qt integration
5
6         * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
7
8         * qt/Makefile.am: added 
9
10         * qt/.cvsignore: added  
11
12         * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
13         latter, added #ifdef QT_THREAD_SUPPORT guard.
14
15 2002-12-28  Kristian Rietveld  <kris@gtk.org>
16
17         * dbus/Makefile.am: fixup export-symbols-regex.
18
19 2002-12-27  Anders Carlsson  <andersca@codefactory.se>
20
21         * acinclude.m4: Add this file and put the 
22         PKG_CHECK_MODULE macro in it.
23
24 2002-12-27  Anders Carlsson  <andersca@codefactory.se>
25
26         * dbus/dbus-marshal.c: (_dbus_marshal_string),
27         (_dbus_demarshal_double), (_dbus_demarshal_int32),
28         (_dbus_demarshal_uint32), (_dbus_demarshal_string),
29         (_dbus_marshal_test):
30         Make the demarshalling routines align the pos argument.
31         Add string marshalling tests and fix the obvious bugs 
32         discovered.
33         
34 2002-12-26  Havoc Pennington  <hp@pobox.com>
35
36         * dbus/dbus-auth.c: fixes fixes fixes
37
38         * dbus/dbus-transport-unix.c: wire up support for
39         encoding/decoding data on the wire
40
41         * dbus/dbus-auth.c (_dbus_auth_encode_data) 
42         (_dbus_auth_decode_data): append to target string 
43         instead of nuking it.
44
45 2002-12-26  Havoc Pennington  <hp@pobox.com>
46
47         * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
48         WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
49         doh
50
51         * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
52         avoid swap_bytes() overhead (ignoring possible assembly stuff for 
53         now). Main point is because I wanted unpack_uint32 to implement
54         _dbus_verbose_bytes
55         (_dbus_verbose_bytes): new function
56
57         * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
58
59         * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
60         mechanism to handle a corrupt message stream
61         (_dbus_message_loader_new): fix preallocation to only prealloc, 
62         not prelengthen
63         
64         * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
65         (_dbus_string_test): enhance tests for copy/move and fix the
66         functions
67
68         * dbus/dbus-transport-unix.c: Hold references in more places to 
69         avoid reentrancy problems
70
71         * dbus/dbus-transport.c: ditto
72
73         * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
74         leak reference count in no-message case
75
76         * test/watch.c (do_mainloop): handle adding/removing watches
77         during iteration over the watches. Also, ref the connection/server
78         stored on a watch, so we don't try to mangle a destroyed one.
79
80         * dbus/dbus-transport-unix.c (do_authentication): perform
81         authentication
82
83         * dbus/dbus-auth.c (get_state): add a state
84         AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
85         (_dbus_auth_get_unused_bytes): append the unused bytes
86         to the passed in string, rather than prepend
87
88         * dbus/dbus-transport.c (_dbus_transport_init_base): create 
89         the auth conversation DBusAuth
90
91         * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
92         (_dbus_transport_new_for_domain_socket): when creating a
93         transport, pass in whether it's a client-side or server-side
94         transport so we know which DBusAuth to create
95
96 2002-12-03  Havoc Pennington  <hp@pobox.com>
97
98         * dbus/dbus-transport-unix.c (unix_finalize): finalize base
99         _after_ finalizing the derived members
100         (unix_connection_set): unref watch if we fail to add it
101
102         * dbus/dbus-connection.c (dbus_connection_unref): delete the
103         transport first, so that the connection owned by the 
104         transport will be valid as the transport finalizes.
105
106         * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
107         if necessary, and remove watches from the connection.
108         
109         * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
110         
111 2002-12-26  Anders Carlsson  <andersca@codefactory.se>
112
113         * dbus/dbus-marshal.c: (_dbus_marshal_string),
114         (_dbus_demarshal_double), (_dbus_demarshal_int32),
115         (_dbus_demarshal_uint32), (_dbus_demarshal_string),
116         (_dbus_marshal_test):
117         * dbus/dbus-marshal.h:
118         Add string marshal functions and have the demarshal functions
119         return the new position.
120         
121 2002-12-25  Havoc Pennington  <hp@pobox.com>
122
123         * doc/dbus-sasl-profile.txt: docs on the authentication protocol, 
124         it is a simple protocol that just maps directly to SASL.
125
126         * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
127         initial implementation, not actually used yet.
128         
129         * dbus/dbus-string.c (_dbus_string_find): new function
130         (_dbus_string_equal): new function
131         (_dbus_string_base64_encode): new function
132         (_dbus_string_base64_decode): new function
133
134 2002-12-25  Anders Carlsson  <andersca@codefactory.se>
135
136         * dbus/Makefile.am:
137         * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
138         (_dbus_marshal_int32), (_dbus_marshal_uint32),
139         (_dbus_demarshal_double), (_dbus_demarshal_int32),
140         (_dbus_demarshal_uint32), (_dbus_marshal_test):
141         * dbus/dbus-marshal.h:
142         * dbus/dbus-protocol.h:
143         * dbus/dbus-test.c: (main):
144         * dbus/dbus-test.h:
145         Add un-optimized marshalling/demarshalling routines.
146         
147 2002-12-25  Harri Porten  <porten@kde.org>
148
149         * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
150
151 2002-12-24  Zack Rusin  <zack@kde.org>
152
153         * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
154         * qt/dbus-qt.h: skeleton with two sample implemenatation of the
155         main loop stuff
156
157 2002-12-24  Havoc Pennington  <hp@pobox.com>
158
159         * glib/dbus-gthread.c: fix include
160
161         * glib/dbus-glib.h: rename DBusMessageHandler for now. 
162         I think glib API needs to change, though, as you don't 
163         want to use DBusMessageFunction, you want to use the 
164         DBusMessageHandler object. Probably 
165         dbus_connection_open_with_g_main_loop()
166         and dbus_connection_setup_g_main_loop() or something like that
167         (but think of better names...) that just create a connection 
168         that has watch/timeout functions etc. already set up.
169
170         * dbus/dbus-connection.c
171         (dbus_connection_send_message_with_reply): new function just to 
172         show how the message handler helps us deal with replies.
173
174         * dbus/dbus-list.c (_dbus_list_remove_last): new function
175
176         * dbus/dbus-string.c (_dbus_string_test): free a string that
177         wasn't
178
179         * dbus/dbus-hash.c: use memory pools for the hash entries
180         (rebuild_table): be more paranoid about overflow, and 
181         shrink table when we can
182         (_dbus_hash_test): reduce number of sprintfs and write
183         valid C89. Add tests for case where we grow and then 
184         shrink the hash table.
185
186         * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
187
188         * dbus/dbus-connection.c (dbus_connection_register_handler) 
189         (dbus_connection_unregister_handler): new functions
190
191         * dbus/dbus-message.c (dbus_message_get_name): new
192
193         * dbus/dbus-list.c: fix docs typo
194
195         * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
196         an object representing a handler for messages.
197
198 2002-12-16  Anders Carlsson  <andersca@codefactory.se>
199
200         * glib/dbus-glib.h:
201         * glib/dbus-gthread.c: (dbus_gthread_init):
202         Don't use the gdbus prefix for public functions.
203         
204 2002-12-16  Anders Carlsson  <andersca@codefactory.se>
205
206         * Makefile.am:
207         * configure.in:
208         Add GLib checks and fixup .pc files
209         
210         * glib/Makefile.am:
211         * glib/dbus-glib.h:
212         * glib/dbus-gmain.c: (gdbus_connection_prepare),
213         (gdbus_connection_check), (gdbus_connection_dispatch),
214         (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
215         (dbus_connection_gsource_new):
216         * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
217         (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
218         * glib/test-dbus-glib.c: (message_handler), (main):
219         Add GLib support.
220         
221 2002-12-15  Harri Porten  <porten@kde.org>
222
223         * autogen.sh: check for libtoolize before attempting to use it 
224         
225         * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
226         struct.
227         
228         * .cvsignore: ignore more stamp files
229
230         * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
231
232         * test/Makefile.am: added -I$(top_srcdir) to be able to compile
233         without make install.
234
235 2002-12-15  Havoc Pennington  <hp@pobox.com>
236
237         * dbus/dbus-threads.c: add thread stubs that a higher library
238         layer can fill in. e.g. the GLib wrapper might fill them in with
239         GThread stuff. We still need to use this thread API to
240         thread-safe-ize the library.
241
242 2002-12-12  Havoc Pennington  <hp@pobox.com>
243
244         * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
245         below new interfaces and include fewer system headers.
246
247         * dbus/dbus-sysdeps.c (_dbus_read): new function
248         (_dbus_write): new function
249         (_dbus_write_two): new function
250         (_dbus_connect_unix_socket): new function
251         (_dbus_listen_unix_socket): new function
252
253         * dbus/dbus-message-internal.h: change interfaces to use
254         DBusString
255
256 2002-12-11  Havoc Pennington  <hp@pobox.com>
257
258         * dbus/dbus-types.h: add dbus_unichar
259
260         * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
261
262         * dbus/dbus-connection.c (dbus_connection_send_message): return
263         TRUE on success
264
265         * dbus/dbus-transport.c: include dbus-watch.h   
266
267         * dbus/dbus-connection.c: include dbus-message-internal.h
268
269         * HACKING: add file with coding guidelines stuff.
270
271         * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
272         handling here, for security purposes (as in vsftpd). Not actually
273         using this class yet.
274
275         * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
276         system/libc usage here, as in vsftpd, for ease of auditing (and
277         should also simplify portability). Haven't actually moved all the
278         system/libc usage into here yet.
279         
280 2002-11-25  Havoc Pennington  <hp@pobox.com>
281
282         * dbus/dbus-internals.c (_dbus_verbose): fix to not 
283         always print the first verbose message.
284
285 2002-11-24  Havoc Pennington  <hp@pobox.com>
286
287         * test/echo-client.c, test/echo-server.c: cheesy test 
288         clients.
289         
290         * configure.in (AC_CHECK_FUNCS): check for writev
291
292         * dbus/dbus-message.c (_dbus_message_get_network_data): new
293         function
294
295         * dbus/dbus-list.c (_dbus_list_foreach): new function
296
297         * dbus/dbus-internals.c (_dbus_verbose): new function
298
299         * dbus/dbus-server.c, dbus/dbus-server.h: public object
300         representing a server that listens for connections.
301
302         * dbus/.cvsignore: create
303
304         * dbus/dbus-errors.h, dbus/dbus-errors.c:
305         public API for reporting errors
306
307         * dbus/dbus-connection.h, dbus/dbus-connection.c:
308         public object representing a connection that 
309         sends/receives messages. (Same object used for 
310         both client and server.)
311
312         * dbus/dbus-transport.h, dbus/dbus-transport.c:
313         Basic abstraction for different kinds of stream
314         that we might read/write messages from.
315
316 2002-11-23  Havoc Pennington  <hp@pobox.com>
317
318         * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN 
319         _DBUS_INT_MAX
320
321         * dbus/dbus-test.c (main): add list test, and include 
322         dbus-test.h as intended
323
324         * dbus/dbus-hash.c (_dbus_hash_table_remove_string) 
325         (_dbus_hash_table_remove_int): return value indicates 
326         whether the entry existed to remove
327
328         * dbus/dbus-list.c: add linked list utility class, 
329         with docs and tests
330
331         * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket 
332         array sometimes.
333
334 2002-11-23  Havoc Pennington  <hp@pobox.com>
335
336         * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
337         DBUS_END_DECLS to nothing, that should fix this once and for all
338
339         * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
340
341         * dbus/dbus-message.c, dbus/dbus-hash.c: 
342         add some missing @brief
343
344 2002-11-23  Havoc Pennington  <hp@pobox.com>
345
346         * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS 
347         to avoid confusing Doxygen
348
349         * dbus/dbus-hash.c: @} not }@
350
351         * dbus/dbus-message.c (struct DBusMessage): split out 
352         internals docs
353
354 2002-11-23  Havoc Pennington  <hp@pobox.com>
355
356         * configure.in: pile on more warning flags if using gcc
357
358         * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have 
359         to document static functions
360
361         * configure.in: add summary to end of configure so it 
362         looks nice and attractive
363
364         * dbus/dbus-hash.c: finish implementation and write unit 
365         tests and docs
366
367         * configure.in: add --enable-tests to enable unit tests
368
369         * dbus/dbus-test.c: test program to run unit tests 
370         for all files in dbus/*, initially runs a test for 
371         dbus-hash.c
372         
373         * dbus/dbus-internals.h: file to hold some internal utility stuff
374
375 2002-11-22  Havoc Pennington  <hp@redhat.com>
376
377         * dbus/dbus-hash.c: copy in Tcl hash table, not yet 
378         "ported" away from Tcl
379
380         * dbus/dbus-types.h: header for types such as dbus_bool_t
381
382 2002-11-22  Havoc Pennington  <hp@redhat.com>
383
384         * dbus/dbus.h: fixups for doc warnings
385
386         * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up 
387         macros
388         (QUIET): make it quiet so we can see warnings
389
390         * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
391
392 2002-11-22  Havoc Pennington  <hp@redhat.com>
393
394         * Makefile.am: include "Doxyfile" target in all-local
395
396         * configure.in: generate the Doxyfile
397
398         * Doxyfile.in: move Doxyfile here, so we can use 
399         configure to generate a Doxyfile with the right 
400         version number etc.
401
402 2002-11-22  Havoc Pennington  <hp@redhat.com>
403
404         * dbus/dbus-message.c: move inline docs into .c file
405
406         * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
407         so all docs are under doc/
408         (MAN_EXTENSION): generate man pages. Use extension 
409         ".3dbus" which matches ".3qt" on my system, 
410         I guess this is OK, I don't know really.
411         (FILE_PATTERNS): look for .c files not .h, makes sense
412         for plain C I think
413
414 2002-11-22  Havoc Pennington  <hp@pobox.com>
415
416         * Makefile.am (SUBDIRS): rename subdir "server" to "bus" 
417         because any app can be a server, and any app can be a client, 
418         the bus is a special kind of server.
419
420 Thu Nov 21 23:35:31 2002  Zack Rusin  <zack@kde.org>
421
422         * Doxyfile : adding. Still needs Makefile rules to be generated
423         automatically (just run "doxygen" in the toplevel dir for now to
424         generate docs)
425         
426         * dbus/dbus-message.h : Adding sample docs (javadoc since
427         resembles gtk-doc a little more)
428
429         * dbus/dbus.h : Adding sample docs
430
431 2002-11-21  Havoc Pennington  <hp@redhat.com>
432
433         * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION 
434         so we can allow ourselves to include files directly, 
435         instead of having to use dbus.h
436
437         * dbus/dbus.h: fill in
438
439         * dbus/dbus-message.h: sketch out a sample header file.
440         Include griping if you include it directly instead of 
441         via dbus.h
442
443         * dbus/dbus-macros.h: new file with macros for extern "C", 
444         TRUE/FALSE, NULL, etc.
445
446         * doc/file-boilerplate.c: put include guards in here
447
448 2002-11-21  Havoc Pennington  <hp@redhat.com>
449
450         * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
451
452         * COPYING: include the GPL as well, and license code 
453         under both AFL and GPL.
454
455 2002-11-21  Havoc Pennington  <hp@redhat.com>
456
457         * acconfig.h: get rid of this
458
459         * autogen.sh (run_configure): add --no-configure option
460
461         * configure.in: remove AC_ARG_PROGRAM to make
462         autoconf complain less. add AC_PREREQ. 
463         add AC_DEFINE third arg.
464         
465 2002-11-21  Anders Carlsson  <andersca@codefactory.se>
466
467         * doc/Makefile.am:
468         Fix references so we can distcheck.
469
470 2002-11-21  Havoc Pennington  <hp@redhat.com>
471
472         * Initial module creation
473