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