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