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