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