1 2002-12-28 Harri Porten <porten@kde.org>
3 * configure.in: added check for C++ compiler and a very cheesy
4 check for the Qt integration
6 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
8 * qt/Makefile.am: added
10 * qt/.cvsignore: added
12 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
13 latter, added #ifdef QT_THREAD_SUPPORT guard.
15 2002-12-28 Kristian Rietveld <kris@gtk.org>
17 * dbus/Makefile.am: fixup export-symbols-regex.
19 2002-12-27 Anders Carlsson <andersca@codefactory.se>
21 * acinclude.m4: Add this file and put the
22 PKG_CHECK_MODULE macro in it.
24 2002-12-27 Anders Carlsson <andersca@codefactory.se>
26 * dbus/dbus-marshal.c: (_dbus_marshal_string),
27 (_dbus_demarshal_double), (_dbus_demarshal_int32),
28 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
30 Make the demarshalling routines align the pos argument.
31 Add string marshalling tests and fix the obvious bugs
34 2002-12-26 Havoc Pennington <hp@pobox.com>
36 * dbus/dbus-auth.c: fixes fixes fixes
38 * dbus/dbus-transport-unix.c: wire up support for
39 encoding/decoding data on the wire
41 * dbus/dbus-auth.c (_dbus_auth_encode_data)
42 (_dbus_auth_decode_data): append to target string
45 2002-12-26 Havoc Pennington <hp@pobox.com>
47 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
48 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
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
55 (_dbus_verbose_bytes): new function
57 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
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,
64 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
65 (_dbus_string_test): enhance tests for copy/move and fix the
68 * dbus/dbus-transport-unix.c: Hold references in more places to
69 avoid reentrancy problems
71 * dbus/dbus-transport.c: ditto
73 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
74 leak reference count in no-message case
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.
80 * dbus/dbus-transport-unix.c (do_authentication): perform
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
88 * dbus/dbus-transport.c (_dbus_transport_init_base): create
89 the auth conversation DBusAuth
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
96 2002-12-03 Havoc Pennington <hp@pobox.com>
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
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.
106 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
107 if necessary, and remove watches from the connection.
109 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
111 2002-12-26 Anders Carlsson <andersca@codefactory.se>
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.
121 2002-12-25 Havoc Pennington <hp@pobox.com>
123 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
124 it is a simple protocol that just maps directly to SASL.
126 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
127 initial implementation, not actually used yet.
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
134 2002-12-25 Anders Carlsson <andersca@codefactory.se>
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):
145 Add un-optimized marshalling/demarshalling routines.
147 2002-12-25 Harri Porten <porten@kde.org>
149 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
151 2002-12-24 Zack Rusin <zack@kde.org>
153 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
154 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
157 2002-12-24 Havoc Pennington <hp@pobox.com>
159 * glib/dbus-gthread.c: fix include
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.
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.
174 * dbus/dbus-list.c (_dbus_list_remove_last): new function
176 * dbus/dbus-string.c (_dbus_string_test): free a string that
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.
186 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
188 * dbus/dbus-connection.c (dbus_connection_register_handler)
189 (dbus_connection_unregister_handler): new functions
191 * dbus/dbus-message.c (dbus_message_get_name): new
193 * dbus/dbus-list.c: fix docs typo
195 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
196 an object representing a handler for messages.
198 2002-12-16 Anders Carlsson <andersca@codefactory.se>
201 * glib/dbus-gthread.c: (dbus_gthread_init):
202 Don't use the gdbus prefix for public functions.
204 2002-12-16 Anders Carlsson <andersca@codefactory.se>
208 Add GLib checks and fixup .pc files
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):
221 2002-12-15 Harri Porten <porten@kde.org>
223 * autogen.sh: check for libtoolize before attempting to use it
225 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
228 * .cvsignore: ignore more stamp files
230 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
232 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
233 without make install.
235 2002-12-15 Havoc Pennington <hp@pobox.com>
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.
242 2002-12-12 Havoc Pennington <hp@pobox.com>
244 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
245 below new interfaces and include fewer system headers.
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
253 * dbus/dbus-message-internal.h: change interfaces to use
256 2002-12-11 Havoc Pennington <hp@pobox.com>
258 * dbus/dbus-types.h: add dbus_unichar
260 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
262 * dbus/dbus-connection.c (dbus_connection_send_message): return
265 * dbus/dbus-transport.c: include dbus-watch.h
267 * dbus/dbus-connection.c: include dbus-message-internal.h
269 * HACKING: add file with coding guidelines stuff.
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.
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.
280 2002-11-25 Havoc Pennington <hp@pobox.com>
282 * dbus/dbus-internals.c (_dbus_verbose): fix to not
283 always print the first verbose message.
285 2002-11-24 Havoc Pennington <hp@pobox.com>
287 * test/echo-client.c, test/echo-server.c: cheesy test
290 * configure.in (AC_CHECK_FUNCS): check for writev
292 * dbus/dbus-message.c (_dbus_message_get_network_data): new
295 * dbus/dbus-list.c (_dbus_list_foreach): new function
297 * dbus/dbus-internals.c (_dbus_verbose): new function
299 * dbus/dbus-server.c, dbus/dbus-server.h: public object
300 representing a server that listens for connections.
302 * dbus/.cvsignore: create
304 * dbus/dbus-errors.h, dbus/dbus-errors.c:
305 public API for reporting errors
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.)
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.
316 2002-11-23 Havoc Pennington <hp@pobox.com>
318 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
321 * dbus/dbus-test.c (main): add list test, and include
322 dbus-test.h as intended
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
328 * dbus/dbus-list.c: add linked list utility class,
331 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
334 2002-11-23 Havoc Pennington <hp@pobox.com>
336 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
337 DBUS_END_DECLS to nothing, that should fix this once and for all
339 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
341 * dbus/dbus-message.c, dbus/dbus-hash.c:
342 add some missing @brief
344 2002-11-23 Havoc Pennington <hp@pobox.com>
346 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
347 to avoid confusing Doxygen
349 * dbus/dbus-hash.c: @} not }@
351 * dbus/dbus-message.c (struct DBusMessage): split out
354 2002-11-23 Havoc Pennington <hp@pobox.com>
356 * configure.in: pile on more warning flags if using gcc
358 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
359 to document static functions
361 * configure.in: add summary to end of configure so it
362 looks nice and attractive
364 * dbus/dbus-hash.c: finish implementation and write unit
367 * configure.in: add --enable-tests to enable unit tests
369 * dbus/dbus-test.c: test program to run unit tests
370 for all files in dbus/*, initially runs a test for
373 * dbus/dbus-internals.h: file to hold some internal utility stuff
375 2002-11-22 Havoc Pennington <hp@redhat.com>
377 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
378 "ported" away from Tcl
380 * dbus/dbus-types.h: header for types such as dbus_bool_t
382 2002-11-22 Havoc Pennington <hp@redhat.com>
384 * dbus/dbus.h: fixups for doc warnings
386 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
388 (QUIET): make it quiet so we can see warnings
390 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
392 2002-11-22 Havoc Pennington <hp@redhat.com>
394 * Makefile.am: include "Doxyfile" target in all-local
396 * configure.in: generate the Doxyfile
398 * Doxyfile.in: move Doxyfile here, so we can use
399 configure to generate a Doxyfile with the right
402 2002-11-22 Havoc Pennington <hp@redhat.com>
404 * dbus/dbus-message.c: move inline docs into .c file
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
414 2002-11-22 Havoc Pennington <hp@pobox.com>
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.
420 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
422 * Doxyfile : adding. Still needs Makefile rules to be generated
423 automatically (just run "doxygen" in the toplevel dir for now to
426 * dbus/dbus-message.h : Adding sample docs (javadoc since
427 resembles gtk-doc a little more)
429 * dbus/dbus.h : Adding sample docs
431 2002-11-21 Havoc Pennington <hp@redhat.com>
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
437 * dbus/dbus.h: fill in
439 * dbus/dbus-message.h: sketch out a sample header file.
440 Include griping if you include it directly instead of
443 * dbus/dbus-macros.h: new file with macros for extern "C",
444 TRUE/FALSE, NULL, etc.
446 * doc/file-boilerplate.c: put include guards in here
448 2002-11-21 Havoc Pennington <hp@redhat.com>
450 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
452 * COPYING: include the GPL as well, and license code
453 under both AFL and GPL.
455 2002-11-21 Havoc Pennington <hp@redhat.com>
457 * acconfig.h: get rid of this
459 * autogen.sh (run_configure): add --no-configure option
461 * configure.in: remove AC_ARG_PROGRAM to make
462 autoconf complain less. add AC_PREREQ.
463 add AC_DEFINE third arg.
465 2002-11-21 Anders Carlsson <andersca@codefactory.se>
468 Fix references so we can distcheck.
470 2002-11-21 Havoc Pennington <hp@redhat.com>
472 * Initial module creation