1 2002-12-26 Havoc Pennington <hp@pobox.com>
3 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
4 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
7 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
8 avoid swap_bytes() overhead (ignoring possible assembly stuff for
9 now). Main point is because I wanted unpack_uint32 to implement
11 (_dbus_verbose_bytes): new function
13 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
15 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
16 mechanism to handle a corrupt message stream
17 (_dbus_message_loader_new): fix preallocation to only prealloc,
20 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
21 (_dbus_string_test): enhance tests for copy/move and fix the
24 * dbus/dbus-transport-unix.c: Hold references in more places to
25 avoid reentrancy problems
27 * dbus/dbus-transport.c: ditto
29 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
30 leak reference count in no-message case
32 * test/watch.c (do_mainloop): handle adding/removing watches
33 during iteration over the watches. Also, ref the connection/server
34 stored on a watch, so we don't try to mangle a destroyed one.
36 * dbus/dbus-transport-unix.c (do_authentication): perform
39 * dbus/dbus-auth.c (get_state): add a state
40 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
41 (_dbus_auth_get_unused_bytes): append the unused bytes
42 to the passed in string, rather than prepend
44 * dbus/dbus-transport.c (_dbus_transport_init_base): create
45 the auth conversation DBusAuth
47 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
48 (_dbus_transport_new_for_domain_socket): when creating a
49 transport, pass in whether it's a client-side or server-side
50 transport so we know which DBusAuth to create
52 2002-12-03 Havoc Pennington <hp@pobox.com>
54 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
55 _after_ finalizing the derived members
56 (unix_connection_set): unref watch if we fail to add it
58 * dbus/dbus-connection.c (dbus_connection_unref): delete the
59 transport first, so that the connection owned by the
60 transport will be valid as the transport finalizes.
62 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
63 if necessary, and remove watches from the connection.
65 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
67 2002-12-26 Anders Carlsson <andersca@codefactory.se>
69 * dbus/dbus-marshal.c: (_dbus_marshal_string),
70 (_dbus_demarshal_double), (_dbus_demarshal_int32),
71 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
73 * dbus/dbus-marshal.h:
74 Add string marshal functions and have the demarshal functions
75 return the new position.
77 2002-12-25 Havoc Pennington <hp@pobox.com>
79 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
80 it is a simple protocol that just maps directly to SASL.
82 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
83 initial implementation, not actually used yet.
85 * dbus/dbus-string.c (_dbus_string_find): new function
86 (_dbus_string_equal): new function
87 (_dbus_string_base64_encode): new function
88 (_dbus_string_base64_decode): new function
90 2002-12-25 Anders Carlsson <andersca@codefactory.se>
93 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
94 (_dbus_marshal_int32), (_dbus_marshal_uint32),
95 (_dbus_demarshal_double), (_dbus_demarshal_int32),
96 (_dbus_demarshal_uint32), (_dbus_marshal_test):
97 * dbus/dbus-marshal.h:
98 * dbus/dbus-protocol.h:
99 * dbus/dbus-test.c: (main):
101 Add un-optimized marshalling/demarshalling routines.
103 2002-12-25 Harri Porten <porten@kde.org>
105 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
107 2002-12-24 Zack Rusin <zack@kde.org>
109 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
110 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
113 2002-12-24 Havoc Pennington <hp@pobox.com>
115 * glib/dbus-gthread.c: fix include
117 * glib/dbus-glib.h: rename DBusMessageHandler for now.
118 I think glib API needs to change, though, as you don't
119 want to use DBusMessageFunction, you want to use the
120 DBusMessageHandler object. Probably
121 dbus_connection_open_with_g_main_loop()
122 and dbus_connection_setup_g_main_loop() or something like that
123 (but think of better names...) that just create a connection
124 that has watch/timeout functions etc. already set up.
126 * dbus/dbus-connection.c
127 (dbus_connection_send_message_with_reply): new function just to
128 show how the message handler helps us deal with replies.
130 * dbus/dbus-list.c (_dbus_list_remove_last): new function
132 * dbus/dbus-string.c (_dbus_string_test): free a string that
135 * dbus/dbus-hash.c: use memory pools for the hash entries
136 (rebuild_table): be more paranoid about overflow, and
137 shrink table when we can
138 (_dbus_hash_test): reduce number of sprintfs and write
139 valid C89. Add tests for case where we grow and then
140 shrink the hash table.
142 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
144 * dbus/dbus-connection.c (dbus_connection_register_handler)
145 (dbus_connection_unregister_handler): new functions
147 * dbus/dbus-message.c (dbus_message_get_name): new
149 * dbus/dbus-list.c: fix docs typo
151 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
152 an object representing a handler for messages.
154 2002-12-16 Anders Carlsson <andersca@codefactory.se>
157 * glib/dbus-gthread.c: (dbus_gthread_init):
158 Don't use the gdbus prefix for public functions.
160 2002-12-16 Anders Carlsson <andersca@codefactory.se>
164 Add GLib checks and fixup .pc files
168 * glib/dbus-gmain.c: (gdbus_connection_prepare),
169 (gdbus_connection_check), (gdbus_connection_dispatch),
170 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
171 (dbus_connection_gsource_new):
172 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
173 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
174 * glib/test-dbus-glib.c: (message_handler), (main):
177 2002-12-15 Harri Porten <porten@kde.org>
179 * autogen.sh: check for libtoolize before attempting to use it
181 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
184 * .cvsignore: ignore more stamp files
186 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
188 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
189 without make install.
191 2002-12-15 Havoc Pennington <hp@pobox.com>
193 * dbus/dbus-threads.c: add thread stubs that a higher library
194 layer can fill in. e.g. the GLib wrapper might fill them in with
195 GThread stuff. We still need to use this thread API to
196 thread-safe-ize the library.
198 2002-12-12 Havoc Pennington <hp@pobox.com>
200 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
201 below new interfaces and include fewer system headers.
203 * dbus/dbus-sysdeps.c (_dbus_read): new function
204 (_dbus_write): new function
205 (_dbus_write_two): new function
206 (_dbus_connect_unix_socket): new function
207 (_dbus_listen_unix_socket): new function
209 * dbus/dbus-message-internal.h: change interfaces to use
212 2002-12-11 Havoc Pennington <hp@pobox.com>
214 * dbus/dbus-types.h: add dbus_unichar
216 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
218 * dbus/dbus-connection.c (dbus_connection_send_message): return
221 * dbus/dbus-transport.c: include dbus-watch.h
223 * dbus/dbus-connection.c: include dbus-message-internal.h
225 * HACKING: add file with coding guidelines stuff.
227 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
228 handling here, for security purposes (as in vsftpd). Not actually
229 using this class yet.
231 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
232 system/libc usage here, as in vsftpd, for ease of auditing (and
233 should also simplify portability). Haven't actually moved all the
234 system/libc usage into here yet.
236 2002-11-25 Havoc Pennington <hp@pobox.com>
238 * dbus/dbus-internals.c (_dbus_verbose): fix to not
239 always print the first verbose message.
241 2002-11-24 Havoc Pennington <hp@pobox.com>
243 * test/echo-client.c, test/echo-server.c: cheesy test
246 * configure.in (AC_CHECK_FUNCS): check for writev
248 * dbus/dbus-message.c (_dbus_message_get_network_data): new
251 * dbus/dbus-list.c (_dbus_list_foreach): new function
253 * dbus/dbus-internals.c (_dbus_verbose): new function
255 * dbus/dbus-server.c, dbus/dbus-server.h: public object
256 representing a server that listens for connections.
258 * dbus/.cvsignore: create
260 * dbus/dbus-errors.h, dbus/dbus-errors.c:
261 public API for reporting errors
263 * dbus/dbus-connection.h, dbus/dbus-connection.c:
264 public object representing a connection that
265 sends/receives messages. (Same object used for
266 both client and server.)
268 * dbus/dbus-transport.h, dbus/dbus-transport.c:
269 Basic abstraction for different kinds of stream
270 that we might read/write messages from.
272 2002-11-23 Havoc Pennington <hp@pobox.com>
274 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
277 * dbus/dbus-test.c (main): add list test, and include
278 dbus-test.h as intended
280 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
281 (_dbus_hash_table_remove_int): return value indicates
282 whether the entry existed to remove
284 * dbus/dbus-list.c: add linked list utility class,
287 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
290 2002-11-23 Havoc Pennington <hp@pobox.com>
292 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
293 DBUS_END_DECLS to nothing, that should fix this once and for all
295 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
297 * dbus/dbus-message.c, dbus/dbus-hash.c:
298 add some missing @brief
300 2002-11-23 Havoc Pennington <hp@pobox.com>
302 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
303 to avoid confusing Doxygen
305 * dbus/dbus-hash.c: @} not }@
307 * dbus/dbus-message.c (struct DBusMessage): split out
310 2002-11-23 Havoc Pennington <hp@pobox.com>
312 * configure.in: pile on more warning flags if using gcc
314 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
315 to document static functions
317 * configure.in: add summary to end of configure so it
318 looks nice and attractive
320 * dbus/dbus-hash.c: finish implementation and write unit
323 * configure.in: add --enable-tests to enable unit tests
325 * dbus/dbus-test.c: test program to run unit tests
326 for all files in dbus/*, initially runs a test for
329 * dbus/dbus-internals.h: file to hold some internal utility stuff
331 2002-11-22 Havoc Pennington <hp@redhat.com>
333 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
334 "ported" away from Tcl
336 * dbus/dbus-types.h: header for types such as dbus_bool_t
338 2002-11-22 Havoc Pennington <hp@redhat.com>
340 * dbus/dbus.h: fixups for doc warnings
342 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
344 (QUIET): make it quiet so we can see warnings
346 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
348 2002-11-22 Havoc Pennington <hp@redhat.com>
350 * Makefile.am: include "Doxyfile" target in all-local
352 * configure.in: generate the Doxyfile
354 * Doxyfile.in: move Doxyfile here, so we can use
355 configure to generate a Doxyfile with the right
358 2002-11-22 Havoc Pennington <hp@redhat.com>
360 * dbus/dbus-message.c: move inline docs into .c file
362 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
363 so all docs are under doc/
364 (MAN_EXTENSION): generate man pages. Use extension
365 ".3dbus" which matches ".3qt" on my system,
366 I guess this is OK, I don't know really.
367 (FILE_PATTERNS): look for .c files not .h, makes sense
370 2002-11-22 Havoc Pennington <hp@pobox.com>
372 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
373 because any app can be a server, and any app can be a client,
374 the bus is a special kind of server.
376 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
378 * Doxyfile : adding. Still needs Makefile rules to be generated
379 automatically (just run "doxygen" in the toplevel dir for now to
382 * dbus/dbus-message.h : Adding sample docs (javadoc since
383 resembles gtk-doc a little more)
385 * dbus/dbus.h : Adding sample docs
387 2002-11-21 Havoc Pennington <hp@redhat.com>
389 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
390 so we can allow ourselves to include files directly,
391 instead of having to use dbus.h
393 * dbus/dbus.h: fill in
395 * dbus/dbus-message.h: sketch out a sample header file.
396 Include griping if you include it directly instead of
399 * dbus/dbus-macros.h: new file with macros for extern "C",
400 TRUE/FALSE, NULL, etc.
402 * doc/file-boilerplate.c: put include guards in here
404 2002-11-21 Havoc Pennington <hp@redhat.com>
406 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
408 * COPYING: include the GPL as well, and license code
409 under both AFL and GPL.
411 2002-11-21 Havoc Pennington <hp@redhat.com>
413 * acconfig.h: get rid of this
415 * autogen.sh (run_configure): add --no-configure option
417 * configure.in: remove AC_ARG_PROGRAM to make
418 autoconf complain less. add AC_PREREQ.
419 add AC_DEFINE third arg.
421 2002-11-21 Anders Carlsson <andersca@codefactory.se>
424 Fix references so we can distcheck.
426 2002-11-21 Havoc Pennington <hp@redhat.com>
428 * Initial module creation