1 2003-01-07 Anders Carlsson <andersca@codefactory.se>
3 * dbus/dbus-marshal.c: (_dbus_marshal_string),
4 (_dbus_demarshal_string), (_dbus_marshal_test):
6 * dbus/dbus-message.c: (dbus_message_get_name),
7 Document these functions.
9 (dbus_message_append_int32), (dbus_message_append_uint32),
10 (dbus_message_append_double), (dbus_message_append_string),
11 (dbus_message_append_byte_array):
12 * dbus/dbus-message.h:
13 Add functions for adding message fields of different types.
15 * dbus/dbus-protocol.h:
16 Add the different types.
18 2003-01-05 Havoc Pennington <hp@pobox.com>
20 * bus/connection.c: implement routines for handling connections,
21 first thing is keeping a list of owned services on each connection
22 and setting up watches etc.
24 * bus/services.c: implement a mapping from service names to lists
27 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
29 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
30 to use static mutexes for global data
32 * dbus/dbus-connection.c (dbus_connection_set_data): add new
33 collection of functions to set/get application-specific data
34 on the DBusConnection.
36 2003-01-04 Havoc Pennington <hp@pobox.com>
38 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
39 (_dbus_poll): new function
41 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
44 * bus/loop.c: initial code for the daemon main loop
46 2003-01-04 Havoc Pennington <hp@pobox.com>
48 * test/watch.c (error_handler): make it safe if the error handler
49 is called multiple times (if we s/error handler/disconnect
50 handler/ we should just guarantee it's called only once)
52 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
53 error handler on disconnect (it's quite possible we should
54 just change the error handler to a "disconnect handler," I'm
55 not sure we have any other meaningful errors)
57 * configure.in: check for getpwnam_r
59 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
60 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
61 mechanism as in SASL spec, using socket credentials
63 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
64 (_dbus_send_credentials_unix_socket): new function
66 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
68 (_dbus_write): only check errno if <0 returned
69 (_dbus_write_two): ditto
71 2003-01-02 Anders Carlsson <andersca@codefactory.se>
73 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
74 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
76 * dbus/dbus-marshal.h:
77 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
78 to _dbus_marshal_utf8_string. Also fix some tests.
80 2002-12-28 Harri Porten <porten@kde.org>
82 * configure.in: added check for C++ compiler and a very cheesy
83 check for the Qt integration
85 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
87 * qt/Makefile.am: added
89 * qt/.cvsignore: added
91 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
92 latter, added #ifdef QT_THREAD_SUPPORT guard.
94 * dbus/Makefile.am: added missing headers for make dist
96 2002-12-28 Kristian Rietveld <kris@gtk.org>
98 * dbus/Makefile.am: fixup export-symbols-regex.
100 2002-12-27 Anders Carlsson <andersca@codefactory.se>
102 * acinclude.m4: Add this file and put the
103 PKG_CHECK_MODULE macro in it.
105 2002-12-27 Anders Carlsson <andersca@codefactory.se>
107 * dbus/dbus-marshal.c: (_dbus_marshal_string),
108 (_dbus_demarshal_double), (_dbus_demarshal_int32),
109 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
110 (_dbus_marshal_test):
111 Make the demarshalling routines align the pos argument.
112 Add string marshalling tests and fix the obvious bugs
115 2002-12-26 Havoc Pennington <hp@pobox.com>
117 * dbus/dbus-auth.c: fixes fixes fixes
119 * dbus/dbus-transport-unix.c: wire up support for
120 encoding/decoding data on the wire
122 * dbus/dbus-auth.c (_dbus_auth_encode_data)
123 (_dbus_auth_decode_data): append to target string
124 instead of nuking it.
126 2002-12-26 Havoc Pennington <hp@pobox.com>
128 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
129 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
132 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
133 avoid swap_bytes() overhead (ignoring possible assembly stuff for
134 now). Main point is because I wanted unpack_uint32 to implement
136 (_dbus_verbose_bytes): new function
138 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
140 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
141 mechanism to handle a corrupt message stream
142 (_dbus_message_loader_new): fix preallocation to only prealloc,
145 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
146 (_dbus_string_test): enhance tests for copy/move and fix the
149 * dbus/dbus-transport-unix.c: Hold references in more places to
150 avoid reentrancy problems
152 * dbus/dbus-transport.c: ditto
154 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
155 leak reference count in no-message case
157 * test/watch.c (do_mainloop): handle adding/removing watches
158 during iteration over the watches. Also, ref the connection/server
159 stored on a watch, so we don't try to mangle a destroyed one.
161 * dbus/dbus-transport-unix.c (do_authentication): perform
164 * dbus/dbus-auth.c (get_state): add a state
165 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
166 (_dbus_auth_get_unused_bytes): append the unused bytes
167 to the passed in string, rather than prepend
169 * dbus/dbus-transport.c (_dbus_transport_init_base): create
170 the auth conversation DBusAuth
172 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
173 (_dbus_transport_new_for_domain_socket): when creating a
174 transport, pass in whether it's a client-side or server-side
175 transport so we know which DBusAuth to create
177 2002-12-03 Havoc Pennington <hp@pobox.com>
179 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
180 _after_ finalizing the derived members
181 (unix_connection_set): unref watch if we fail to add it
183 * dbus/dbus-connection.c (dbus_connection_unref): delete the
184 transport first, so that the connection owned by the
185 transport will be valid as the transport finalizes.
187 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
188 if necessary, and remove watches from the connection.
190 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
192 2002-12-26 Anders Carlsson <andersca@codefactory.se>
194 * dbus/dbus-marshal.c: (_dbus_marshal_string),
195 (_dbus_demarshal_double), (_dbus_demarshal_int32),
196 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
197 (_dbus_marshal_test):
198 * dbus/dbus-marshal.h:
199 Add string marshal functions and have the demarshal functions
200 return the new position.
202 2002-12-25 Havoc Pennington <hp@pobox.com>
204 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
205 it is a simple protocol that just maps directly to SASL.
207 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
208 initial implementation, not actually used yet.
210 * dbus/dbus-string.c (_dbus_string_find): new function
211 (_dbus_string_equal): new function
212 (_dbus_string_base64_encode): new function
213 (_dbus_string_base64_decode): new function
215 2002-12-25 Anders Carlsson <andersca@codefactory.se>
218 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
219 (_dbus_marshal_int32), (_dbus_marshal_uint32),
220 (_dbus_demarshal_double), (_dbus_demarshal_int32),
221 (_dbus_demarshal_uint32), (_dbus_marshal_test):
222 * dbus/dbus-marshal.h:
223 * dbus/dbus-protocol.h:
224 * dbus/dbus-test.c: (main):
226 Add un-optimized marshalling/demarshalling routines.
228 2002-12-25 Harri Porten <porten@kde.org>
230 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
232 2002-12-24 Zack Rusin <zack@kde.org>
234 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
235 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
238 2002-12-24 Havoc Pennington <hp@pobox.com>
240 * glib/dbus-gthread.c: fix include
242 * glib/dbus-glib.h: rename DBusMessageHandler for now.
243 I think glib API needs to change, though, as you don't
244 want to use DBusMessageFunction, you want to use the
245 DBusMessageHandler object. Probably
246 dbus_connection_open_with_g_main_loop()
247 and dbus_connection_setup_g_main_loop() or something like that
248 (but think of better names...) that just create a connection
249 that has watch/timeout functions etc. already set up.
251 * dbus/dbus-connection.c
252 (dbus_connection_send_message_with_reply): new function just to
253 show how the message handler helps us deal with replies.
255 * dbus/dbus-list.c (_dbus_list_remove_last): new function
257 * dbus/dbus-string.c (_dbus_string_test): free a string that
260 * dbus/dbus-hash.c: use memory pools for the hash entries
261 (rebuild_table): be more paranoid about overflow, and
262 shrink table when we can
263 (_dbus_hash_test): reduce number of sprintfs and write
264 valid C89. Add tests for case where we grow and then
265 shrink the hash table.
267 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
269 * dbus/dbus-connection.c (dbus_connection_register_handler)
270 (dbus_connection_unregister_handler): new functions
272 * dbus/dbus-message.c (dbus_message_get_name): new
274 * dbus/dbus-list.c: fix docs typo
276 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
277 an object representing a handler for messages.
279 2002-12-16 Anders Carlsson <andersca@codefactory.se>
282 * glib/dbus-gthread.c: (dbus_gthread_init):
283 Don't use the gdbus prefix for public functions.
285 2002-12-16 Anders Carlsson <andersca@codefactory.se>
289 Add GLib checks and fixup .pc files
293 * glib/dbus-gmain.c: (gdbus_connection_prepare),
294 (gdbus_connection_check), (gdbus_connection_dispatch),
295 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
296 (dbus_connection_gsource_new):
297 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
298 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
299 * glib/test-dbus-glib.c: (message_handler), (main):
302 2002-12-15 Harri Porten <porten@kde.org>
304 * autogen.sh: check for libtoolize before attempting to use it
306 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
309 * .cvsignore: ignore more stamp files
311 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
313 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
314 without make install.
316 2002-12-15 Havoc Pennington <hp@pobox.com>
318 * dbus/dbus-threads.c: add thread stubs that a higher library
319 layer can fill in. e.g. the GLib wrapper might fill them in with
320 GThread stuff. We still need to use this thread API to
321 thread-safe-ize the library.
323 2002-12-12 Havoc Pennington <hp@pobox.com>
325 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
326 below new interfaces and include fewer system headers.
328 * dbus/dbus-sysdeps.c (_dbus_read): new function
329 (_dbus_write): new function
330 (_dbus_write_two): new function
331 (_dbus_connect_unix_socket): new function
332 (_dbus_listen_unix_socket): new function
334 * dbus/dbus-message-internal.h: change interfaces to use
337 2002-12-11 Havoc Pennington <hp@pobox.com>
339 * dbus/dbus-types.h: add dbus_unichar
341 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
343 * dbus/dbus-connection.c (dbus_connection_send_message): return
346 * dbus/dbus-transport.c: include dbus-watch.h
348 * dbus/dbus-connection.c: include dbus-message-internal.h
350 * HACKING: add file with coding guidelines stuff.
352 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
353 handling here, for security purposes (as in vsftpd). Not actually
354 using this class yet.
356 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
357 system/libc usage here, as in vsftpd, for ease of auditing (and
358 should also simplify portability). Haven't actually moved all the
359 system/libc usage into here yet.
361 2002-11-25 Havoc Pennington <hp@pobox.com>
363 * dbus/dbus-internals.c (_dbus_verbose): fix to not
364 always print the first verbose message.
366 2002-11-24 Havoc Pennington <hp@pobox.com>
368 * test/echo-client.c, test/echo-server.c: cheesy test
371 * configure.in (AC_CHECK_FUNCS): check for writev
373 * dbus/dbus-message.c (_dbus_message_get_network_data): new
376 * dbus/dbus-list.c (_dbus_list_foreach): new function
378 * dbus/dbus-internals.c (_dbus_verbose): new function
380 * dbus/dbus-server.c, dbus/dbus-server.h: public object
381 representing a server that listens for connections.
383 * dbus/.cvsignore: create
385 * dbus/dbus-errors.h, dbus/dbus-errors.c:
386 public API for reporting errors
388 * dbus/dbus-connection.h, dbus/dbus-connection.c:
389 public object representing a connection that
390 sends/receives messages. (Same object used for
391 both client and server.)
393 * dbus/dbus-transport.h, dbus/dbus-transport.c:
394 Basic abstraction for different kinds of stream
395 that we might read/write messages from.
397 2002-11-23 Havoc Pennington <hp@pobox.com>
399 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
402 * dbus/dbus-test.c (main): add list test, and include
403 dbus-test.h as intended
405 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
406 (_dbus_hash_table_remove_int): return value indicates
407 whether the entry existed to remove
409 * dbus/dbus-list.c: add linked list utility class,
412 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
415 2002-11-23 Havoc Pennington <hp@pobox.com>
417 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
418 DBUS_END_DECLS to nothing, that should fix this once and for all
420 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
422 * dbus/dbus-message.c, dbus/dbus-hash.c:
423 add some missing @brief
425 2002-11-23 Havoc Pennington <hp@pobox.com>
427 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
428 to avoid confusing Doxygen
430 * dbus/dbus-hash.c: @} not }@
432 * dbus/dbus-message.c (struct DBusMessage): split out
435 2002-11-23 Havoc Pennington <hp@pobox.com>
437 * configure.in: pile on more warning flags if using gcc
439 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
440 to document static functions
442 * configure.in: add summary to end of configure so it
443 looks nice and attractive
445 * dbus/dbus-hash.c: finish implementation and write unit
448 * configure.in: add --enable-tests to enable unit tests
450 * dbus/dbus-test.c: test program to run unit tests
451 for all files in dbus/*, initially runs a test for
454 * dbus/dbus-internals.h: file to hold some internal utility stuff
456 2002-11-22 Havoc Pennington <hp@redhat.com>
458 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
459 "ported" away from Tcl
461 * dbus/dbus-types.h: header for types such as dbus_bool_t
463 2002-11-22 Havoc Pennington <hp@redhat.com>
465 * dbus/dbus.h: fixups for doc warnings
467 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
469 (QUIET): make it quiet so we can see warnings
471 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
473 2002-11-22 Havoc Pennington <hp@redhat.com>
475 * Makefile.am: include "Doxyfile" target in all-local
477 * configure.in: generate the Doxyfile
479 * Doxyfile.in: move Doxyfile here, so we can use
480 configure to generate a Doxyfile with the right
483 2002-11-22 Havoc Pennington <hp@redhat.com>
485 * dbus/dbus-message.c: move inline docs into .c file
487 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
488 so all docs are under doc/
489 (MAN_EXTENSION): generate man pages. Use extension
490 ".3dbus" which matches ".3qt" on my system,
491 I guess this is OK, I don't know really.
492 (FILE_PATTERNS): look for .c files not .h, makes sense
495 2002-11-22 Havoc Pennington <hp@pobox.com>
497 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
498 because any app can be a server, and any app can be a client,
499 the bus is a special kind of server.
501 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
503 * Doxyfile : adding. Still needs Makefile rules to be generated
504 automatically (just run "doxygen" in the toplevel dir for now to
507 * dbus/dbus-message.h : Adding sample docs (javadoc since
508 resembles gtk-doc a little more)
510 * dbus/dbus.h : Adding sample docs
512 2002-11-21 Havoc Pennington <hp@redhat.com>
514 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
515 so we can allow ourselves to include files directly,
516 instead of having to use dbus.h
518 * dbus/dbus.h: fill in
520 * dbus/dbus-message.h: sketch out a sample header file.
521 Include griping if you include it directly instead of
524 * dbus/dbus-macros.h: new file with macros for extern "C",
525 TRUE/FALSE, NULL, etc.
527 * doc/file-boilerplate.c: put include guards in here
529 2002-11-21 Havoc Pennington <hp@redhat.com>
531 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
533 * COPYING: include the GPL as well, and license code
534 under both AFL and GPL.
536 2002-11-21 Havoc Pennington <hp@redhat.com>
538 * acconfig.h: get rid of this
540 * autogen.sh (run_configure): add --no-configure option
542 * configure.in: remove AC_ARG_PROGRAM to make
543 autoconf complain less. add AC_PREREQ.
544 add AC_DEFINE third arg.
546 2002-11-21 Anders Carlsson <andersca@codefactory.se>
549 Fix references so we can distcheck.
551 2002-11-21 Havoc Pennington <hp@redhat.com>
553 * Initial module creation