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