2002-12-26 Anders Carlsson <andersca@codefactory.se>
[platform/upstream/dbus.git] / ChangeLog
1 2002-12-26  Anders Carlsson  <andersca@codefactory.se>
2
3         * dbus/dbus-marshal.c: (_dbus_marshal_string),
4         (_dbus_demarshal_double), (_dbus_demarshal_int32),
5         (_dbus_demarshal_uint32), (_dbus_demarshal_string),
6         (_dbus_marshal_test):
7         * dbus/dbus-marshal.h:
8         Add string marshal functions and have the demarshal functions
9         return the new position.
10         
11 2002-12-25  Havoc Pennington  <hp@pobox.com>
12
13         * doc/dbus-sasl-profile.txt: docs on the authentication protocol, 
14         it is a simple protocol that just maps directly to SASL.
15
16         * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
17         initial implementation, not actually used yet.
18         
19         * dbus/dbus-string.c (_dbus_string_find): new function
20         (_dbus_string_equal): new function
21         (_dbus_string_base64_encode): new function
22         (_dbus_string_base64_decode): new function
23
24 2002-12-25  Anders Carlsson  <andersca@codefactory.se>
25
26         * dbus/Makefile.am:
27         * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
28         (_dbus_marshal_int32), (_dbus_marshal_uint32),
29         (_dbus_demarshal_double), (_dbus_demarshal_int32),
30         (_dbus_demarshal_uint32), (_dbus_marshal_test):
31         * dbus/dbus-marshal.h:
32         * dbus/dbus-protocol.h:
33         * dbus/dbus-test.c: (main):
34         * dbus/dbus-test.h:
35         Add un-optimized marshalling/demarshalling routines.
36         
37 2002-12-25  Harri Porten  <porten@kde.org>
38
39         * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
40
41 2002-12-24  Zack Rusin  <zack@kde.org>
42
43         * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
44         * qt/dbus-qt.h: skeleton with two sample implemenatation of the
45         main loop stuff
46
47 2002-12-24  Havoc Pennington  <hp@pobox.com>
48
49         * glib/dbus-gthread.c: fix include
50
51         * glib/dbus-glib.h: rename DBusMessageHandler for now. 
52         I think glib API needs to change, though, as you don't 
53         want to use DBusMessageFunction, you want to use the 
54         DBusMessageHandler object. Probably 
55         dbus_connection_open_with_g_main_loop()
56         and dbus_connection_setup_g_main_loop() or something like that
57         (but think of better names...) that just create a connection 
58         that has watch/timeout functions etc. already set up.
59
60         * dbus/dbus-connection.c
61         (dbus_connection_send_message_with_reply): new function just to 
62         show how the message handler helps us deal with replies.
63
64         * dbus/dbus-list.c (_dbus_list_remove_last): new function
65
66         * dbus/dbus-string.c (_dbus_string_test): free a string that
67         wasn't
68
69         * dbus/dbus-hash.c: use memory pools for the hash entries
70         (rebuild_table): be more paranoid about overflow, and 
71         shrink table when we can
72         (_dbus_hash_test): reduce number of sprintfs and write
73         valid C89. Add tests for case where we grow and then 
74         shrink the hash table.
75
76         * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
77
78         * dbus/dbus-connection.c (dbus_connection_register_handler) 
79         (dbus_connection_unregister_handler): new functions
80
81         * dbus/dbus-message.c (dbus_message_get_name): new
82
83         * dbus/dbus-list.c: fix docs typo
84
85         * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
86         an object representing a handler for messages.
87
88 2002-12-16  Anders Carlsson  <andersca@codefactory.se>
89
90         * glib/dbus-glib.h:
91         * glib/dbus-gthread.c: (dbus_gthread_init):
92         Don't use the gdbus prefix for public functions.
93         
94 2002-12-16  Anders Carlsson  <andersca@codefactory.se>
95
96         * Makefile.am:
97         * configure.in:
98         Add GLib checks and fixup .pc files
99         
100         * glib/Makefile.am:
101         * glib/dbus-glib.h:
102         * glib/dbus-gmain.c: (gdbus_connection_prepare),
103         (gdbus_connection_check), (gdbus_connection_dispatch),
104         (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
105         (dbus_connection_gsource_new):
106         * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
107         (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
108         * glib/test-dbus-glib.c: (message_handler), (main):
109         Add GLib support.
110         
111 2002-12-15  Harri Porten  <porten@kde.org>
112
113         * autogen.sh: check for libtoolize before attempting to use it 
114         
115         * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
116         struct.
117         
118         * .cvsignore: ignore more stamp files
119
120         * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
121
122         * test/Makefile.am: added -I$(top_srcdir) to be able to compile
123         without make install.
124
125 2002-12-15  Havoc Pennington  <hp@pobox.com>
126
127         * dbus/dbus-threads.c: add thread stubs that a higher library
128         layer can fill in. e.g. the GLib wrapper might fill them in with
129         GThread stuff. We still need to use this thread API to
130         thread-safe-ize the library.
131
132 2002-12-12  Havoc Pennington  <hp@pobox.com>
133
134         * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
135         below new interfaces and include fewer system headers.
136
137         * dbus/dbus-sysdeps.c (_dbus_read): new function
138         (_dbus_write): new function
139         (_dbus_write_two): new function
140         (_dbus_connect_unix_socket): new function
141         (_dbus_listen_unix_socket): new function
142
143         * dbus/dbus-message-internal.h: change interfaces to use
144         DBusString
145
146 2002-12-11  Havoc Pennington  <hp@pobox.com>
147
148         * dbus/dbus-types.h: add dbus_unichar
149
150         * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
151
152         * dbus/dbus-connection.c (dbus_connection_send_message): return
153         TRUE on success
154
155         * dbus/dbus-transport.c: include dbus-watch.h   
156
157         * dbus/dbus-connection.c: include dbus-message-internal.h
158
159         * HACKING: add file with coding guidelines stuff.
160
161         * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
162         handling here, for security purposes (as in vsftpd). Not actually
163         using this class yet.
164
165         * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
166         system/libc usage here, as in vsftpd, for ease of auditing (and
167         should also simplify portability). Haven't actually moved all the
168         system/libc usage into here yet.
169         
170 2002-11-25  Havoc Pennington  <hp@pobox.com>
171
172         * dbus/dbus-internals.c (_dbus_verbose): fix to not 
173         always print the first verbose message.
174
175 2002-11-24  Havoc Pennington  <hp@pobox.com>
176
177         * test/echo-client.c, test/echo-server.c: cheesy test 
178         clients.
179         
180         * configure.in (AC_CHECK_FUNCS): check for writev
181
182         * dbus/dbus-message.c (_dbus_message_get_network_data): new
183         function
184
185         * dbus/dbus-list.c (_dbus_list_foreach): new function
186
187         * dbus/dbus-internals.c (_dbus_verbose): new function
188
189         * dbus/dbus-server.c, dbus/dbus-server.h: public object
190         representing a server that listens for connections.
191
192         * dbus/.cvsignore: create
193
194         * dbus/dbus-errors.h, dbus/dbus-errors.c:
195         public API for reporting errors
196
197         * dbus/dbus-connection.h, dbus/dbus-connection.c:
198         public object representing a connection that 
199         sends/receives messages. (Same object used for 
200         both client and server.)
201
202         * dbus/dbus-transport.h, dbus/dbus-transport.c:
203         Basic abstraction for different kinds of stream
204         that we might read/write messages from.
205
206 2002-11-23  Havoc Pennington  <hp@pobox.com>
207
208         * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN 
209         _DBUS_INT_MAX
210
211         * dbus/dbus-test.c (main): add list test, and include 
212         dbus-test.h as intended
213
214         * dbus/dbus-hash.c (_dbus_hash_table_remove_string) 
215         (_dbus_hash_table_remove_int): return value indicates 
216         whether the entry existed to remove
217
218         * dbus/dbus-list.c: add linked list utility class, 
219         with docs and tests
220
221         * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket 
222         array sometimes.
223
224 2002-11-23  Havoc Pennington  <hp@pobox.com>
225
226         * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
227         DBUS_END_DECLS to nothing, that should fix this once and for all
228
229         * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
230
231         * dbus/dbus-message.c, dbus/dbus-hash.c: 
232         add some missing @brief
233
234 2002-11-23  Havoc Pennington  <hp@pobox.com>
235
236         * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS 
237         to avoid confusing Doxygen
238
239         * dbus/dbus-hash.c: @} not }@
240
241         * dbus/dbus-message.c (struct DBusMessage): split out 
242         internals docs
243
244 2002-11-23  Havoc Pennington  <hp@pobox.com>
245
246         * configure.in: pile on more warning flags if using gcc
247
248         * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have 
249         to document static functions
250
251         * configure.in: add summary to end of configure so it 
252         looks nice and attractive
253
254         * dbus/dbus-hash.c: finish implementation and write unit 
255         tests and docs
256
257         * configure.in: add --enable-tests to enable unit tests
258
259         * dbus/dbus-test.c: test program to run unit tests 
260         for all files in dbus/*, initially runs a test for 
261         dbus-hash.c
262         
263         * dbus/dbus-internals.h: file to hold some internal utility stuff
264
265 2002-11-22  Havoc Pennington  <hp@redhat.com>
266
267         * dbus/dbus-hash.c: copy in Tcl hash table, not yet 
268         "ported" away from Tcl
269
270         * dbus/dbus-types.h: header for types such as dbus_bool_t
271
272 2002-11-22  Havoc Pennington  <hp@redhat.com>
273
274         * dbus/dbus.h: fixups for doc warnings
275
276         * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up 
277         macros
278         (QUIET): make it quiet so we can see warnings
279
280         * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
281
282 2002-11-22  Havoc Pennington  <hp@redhat.com>
283
284         * Makefile.am: include "Doxyfile" target in all-local
285
286         * configure.in: generate the Doxyfile
287
288         * Doxyfile.in: move Doxyfile here, so we can use 
289         configure to generate a Doxyfile with the right 
290         version number etc.
291
292 2002-11-22  Havoc Pennington  <hp@redhat.com>
293
294         * dbus/dbus-message.c: move inline docs into .c file
295
296         * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
297         so all docs are under doc/
298         (MAN_EXTENSION): generate man pages. Use extension 
299         ".3dbus" which matches ".3qt" on my system, 
300         I guess this is OK, I don't know really.
301         (FILE_PATTERNS): look for .c files not .h, makes sense
302         for plain C I think
303
304 2002-11-22  Havoc Pennington  <hp@pobox.com>
305
306         * Makefile.am (SUBDIRS): rename subdir "server" to "bus" 
307         because any app can be a server, and any app can be a client, 
308         the bus is a special kind of server.
309
310 Thu Nov 21 23:35:31 2002  Zack Rusin  <zack@kde.org>
311
312         * Doxyfile : adding. Still needs Makefile rules to be generated
313         automatically (just run "doxygen" in the toplevel dir for now to
314         generate docs)
315         
316         * dbus/dbus-message.h : Adding sample docs (javadoc since
317         resembles gtk-doc a little more)
318
319         * dbus/dbus.h : Adding sample docs
320
321 2002-11-21  Havoc Pennington  <hp@redhat.com>
322
323         * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION 
324         so we can allow ourselves to include files directly, 
325         instead of having to use dbus.h
326
327         * dbus/dbus.h: fill in
328
329         * dbus/dbus-message.h: sketch out a sample header file.
330         Include griping if you include it directly instead of 
331         via dbus.h
332
333         * dbus/dbus-macros.h: new file with macros for extern "C", 
334         TRUE/FALSE, NULL, etc.
335
336         * doc/file-boilerplate.c: put include guards in here
337
338 2002-11-21  Havoc Pennington  <hp@redhat.com>
339
340         * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
341
342         * COPYING: include the GPL as well, and license code 
343         under both AFL and GPL.
344
345 2002-11-21  Havoc Pennington  <hp@redhat.com>
346
347         * acconfig.h: get rid of this
348
349         * autogen.sh (run_configure): add --no-configure option
350
351         * configure.in: remove AC_ARG_PROGRAM to make
352         autoconf complain less. add AC_PREREQ. 
353         add AC_DEFINE third arg.
354         
355 2002-11-21  Anders Carlsson  <andersca@codefactory.se>
356
357         * doc/Makefile.am:
358         Fix references so we can distcheck.
359
360 2002-11-21  Havoc Pennington  <hp@redhat.com>
361
362         * Initial module creation
363