1 2003-01-31 Havoc Pennington <hp@pobox.com>
3 * dbus/dbus-message.c: refactor the test code to be more general,
4 in preparation for writing a "randomly permute test cases to
5 try to break the loader" program.
7 2003-01-31 Havoc Pennington <hp@pobox.com>
9 * doc/dbus-specification.sgml: work on the specification
11 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): check
12 the protocol version of the message.
14 * dbus/dbus-protocol.h: drop special _REPLY names, the spec
15 no longer specifies that.
16 (DBUS_SERVICE_REPLY_SERVICE_EXISTS): fix flags (1/2/4/8 not
19 * dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos): add missing
20 "break" for DBUS_TYPE_NIL, remove @todo
22 2003-01-31 Havoc Pennington <hp@pobox.com>
24 * dbus/dbus-message.c (dbus_message_set_is_error_reply): rename
25 just set_is_error/get_is_error as this is a commonly-used
26 function, and write docs.
28 2003-01-31 Anders Carlsson <andersca@codefactory.se>
30 * dbus/dbus-address.c: (dbus_address_entry_free):
31 Free key and value lists.
33 * dbus/dbus-internals.c: (_dbus_type_to_string):
34 Add the types we didn't have.
36 * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
37 (_dbus_marshal_validate_arg):
40 * dbus/dbus-message.c: (dbus_message_set_sender):
41 Remove todo about being able to set sender to NULL.
43 (dbus_message_set_is_error_reply),
44 (dbus_message_get_is_error_reply):
45 * dbus/dbus-message.h:
48 * dbus/dbus-protocol.h:
51 * test/data/valid-messages/opposite-endian.message:
54 2003-01-31 Havoc Pennington <hp@pobox.com>
56 * doc/dbus-specification.sgml: fully specify the header. Add
57 flags and major protocol version, and change header/body len to
60 * dbus/dbus-message-builder.c (append_saved_length): append length
63 * dbus/dbus-message.c (dbus_message_create_header): change header
64 length and body length to unsigned. Add the new fields from the
66 (_dbus_message_loader_return_buffer): unsigned header/body len
68 2003-01-30 Havoc Pennington <hp@pobox.com>
70 * dbus/dbus-auth.c: rework to use only REJECTED, no
73 * doc/dbus-sasl-profile.txt: drop MECHANISMS and just
74 use REJECTED, suggested by Mark McLoughlin
76 2003-01-30 Havoc Pennington <hp@pobox.com>
78 * dbus/dbus-server.c (dbus_server_listen): @todo about how we need
79 a better way to report errors here. e.g. "unix address lacks
80 path" or something. also "no such file" when the path doesn't
83 * dbus/dbus-address.c (dbus_address_entries_free): add @todo about
85 (dbus_parse_address): add @todo about documenting address format,
86 and allowing , and ; to be escaped
88 2003-01-30 Anders Carlsson <andersca@codefactory.se>
93 * dbus/dbus-address.c: (dbus_address_entry_free),
94 (dbus_address_entries_free), (create_entry),
95 (dbus_address_entry_get_method), (dbus_address_entry_get_value),
96 (dbus_parse_address), (_dbus_address_test):
97 * dbus/dbus-address.h:
98 New files for dealing with address parsing.
100 * dbus/dbus-connection.c:
101 Document timeout functions.
103 * dbus/dbus-message.c:
104 Document dbus_message_new_from_message.
106 * dbus/dbus-server-debug.c:
109 * dbus/dbus-server.c: (dbus_server_listen):
110 Parse address and use correct server implementation.
112 * dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
113 * dbus/dbus-string.h:
114 New function with test.
116 * dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
120 * dbus/dbus-transport-debug.c:
123 * dbus/dbus-transport.c: (_dbus_transport_open):
124 Parse address and use correct transport implementation.
126 2003-01-30 Havoc Pennington <hp@pobox.com>
128 * dbus/dbus-message.c: use message->byte_order instead of
129 DBUS_COMPILER_BYTE_ORDER throughout.
130 (dbus_message_create_header): pad header to align the
131 start of the body of the message to 8-byte boundary
133 * dbus/dbus-marshal.h: make all the demarshalers take const
134 DBusString arguments.
136 * dbus/dbus-message.c (_dbus_message_loader_return_buffer):
137 validate message args here, so we don't have to do slow validation
138 later, and so we catch bad messages as they are incoming. Also add
139 better checks on header_len and body_len. Also fill in
142 * dbus/dbus-string.c (_dbus_string_validate_utf8): new (not
143 implemented properly)
144 (_dbus_string_validate_nul): new function to check all-nul
146 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): rename
147 get_arg_end_pos and remove all validation
148 (_dbus_marshal_validate_arg): actually do validation here.
150 2003-01-29 Havoc Pennington <hp@pobox.com>
152 * dbus/dbus-message.c (check_message_handling): fix assertion
153 failure on set_client_serial
155 2003-01-28 Havoc Pennington <hp@pobox.com>
157 * dbus/dbus-server-debug.c: Add doc section comments
159 * dbus/dbus-transport-debug.c: add doc section comments
161 2003-01-28 Havoc Pennington <hp@redhat.com>
163 * dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
164 the reverse order from how I had it
165 (_dbus_string_base64_encode): reverse encoding order. I was
166 basically byteswapping everything during encoding.
168 2003-01-28 Anders Carlsson <andersca@codefactory.se>
170 * dbus/dbus-connection-internal.h:
171 * dbus/dbus-connection.c: (_dbus_connection_add_timeout),
172 (_dbus_connection_remove_timeout):
173 Add functions for adding and removing timeouts.
175 * dbus/dbus-message.c: (dbus_message_new_from_message):
176 Add new function that takes a message and creates an exact
177 copy of it, but with the refcount set to 1.
178 (check_message_handling):
181 * dbus/dbus-server-protected.h:
182 * dbus/dbus-server.c: (_dbus_server_init_base),
183 (_dbus_server_finalize_base), (_dbus_server_add_timeout),
184 (dbus_server_set_timeout_functions):
185 (_dbus_server_remove_timeout):
186 New functions so that a server can add and remove timeouts.
188 (dbus_server_listen):
189 Add commented out call to dbus_server_debug_new.
191 * dbus/dbus-timeout.c: (_dbus_timeout_new):
192 Actually set the handler, doh.
194 * dbus/dbus-transport.c: (_dbus_transport_open):
195 Add commented out call to dbus_transport_debug_client_new.
198 Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
200 2003-01-28 Havoc Pennington <hp@pobox.com>
202 * dbus/dbus-message.c (check_message_handling): function to check
203 on the loaded message, iterates over it etc.
205 2003-01-28 Havoc Pennington <hp@pobox.com>
207 * test/Makefile.am (dist-hook): fix make distdir
209 * dbus/Makefile.am (TESTS_ENVIRONMENT): fix make check
211 2003-01-27 Havoc Pennington <hp@pobox.com>
213 * dbus/dbus-mempool.c (time_for_size): replace printf with
216 * dbus/dbus-message-builder.c (_dbus_message_data_load): allow
217 empty lines; fix the SAVE_LENGTH stuff to be
218 START_LENGTH/END_LENGTH so it actually works; couple other
221 * test/Makefile.am (dist-hook): add dist-hook for .message files
223 * dbus/dbus-string.c (DBUS_STRING_COPY_PREAMBLE): source of a copy
224 can be constant or locked.
225 (_dbus_string_free): allow freeing a const string as
228 * dbus/dbus-sysdeps.c (_dbus_concat_dir_and_file): utility
230 * dbus/dbus-test-main.c (main): take an argument which is the
231 directory containing test data
233 * dbus/dbus-message.c (_dbus_message_test): pass a test_data_dir
234 argument to this and load all the messages in test/data/
235 checking that they can be loaded or not loaded as appropriate.
237 2003-01-27 Anders Carlsson <andersca@codefactory.se>
239 * bus/dispatch.c: (bus_dispatch_message_handler):
240 Dispatch messages sent to services.
242 * bus/driver.c: (bus_driver_send_service_deleted),
243 (bus_driver_send_service_created), (bus_driver_send_service_lost),
244 (bus_driver_send_service_acquired):
245 Add helper functions for sending service related messages.
247 (bus_driver_send_welcome_message):
248 Send HELLO_REPLY instead of WELCOME.
250 (bus_driver_handle_list_services):
251 Send LIST_SERVICES_REPLY instead of SERVICES.
253 (bus_driver_handle_own_service),
254 (bus_driver_handle_service_exists):
255 New message handlers.
257 (bus_driver_handle_message):
258 Invoke new message handlers.
260 (bus_driver_remove_connection):
261 Don't remove any services here since that's done automatically
262 by bus_service_remove_owner now.
265 New function signatures.
267 * bus/services.c: (bus_service_add_owner):
268 Send ServiceAcquired message if we're the only primary owner.
270 (bus_service_remove_owner):
271 Send ServiceAcquired/ServiceLost messages.
273 (bus_service_set_prohibit_replacement),
274 (bus_service_get_prohibit_replacement):
275 Functions for setting prohibit replacement.
277 (bus_service_has_owner):
278 New function that checks if a connection is in the owner queue of
282 Add new function signatures.
284 * dbus/dbus-list.c: (_dbus_list_test):
285 Add tests for _dbus_list_remove_last and traversing the list backwards.
288 Fix a typo in _dbus_list_get_prev_link, if we're at the first element we can't
289 go any further, so return NULL then.
291 * dbus/dbus-protocol.h:
292 Add new messages, service flags and service replies.
294 2003-01-26 Havoc Pennington <hp@pobox.com>
296 * dbus/dbus-message-builder.c: implement, completely untested.
298 * test/data/*: add data to be used in testing.
299 ".message" files are our simple loadable text format.
300 ".message-raw" will be binary dumps of messages.
302 * dbus/dbus-string.c (_dbus_string_starts_with_c_str): new
304 2003-01-26 Havoc Pennington <hp@pobox.com>
306 * dbus/dbus-sysdeps.c (_dbus_file_get_contents): new function
308 * dbus/dbus-errors.c (dbus_result_to_string): add
311 * dbus/dbus-message-builder.c: new file, will contain code to load
312 up messages from files. Not implemented yet.
314 2003-01-26 Havoc Pennington <hp@pobox.com>
316 * dbus/dbus-message.c (dbus_message_set_sender): support deleting
317 the sender by setting to NULL
319 2003-01-26 Havoc Pennington <hp@pobox.com>
321 The unit tests pass, but otherwise untested. If it breaks, the
322 tests should have been better. ;-)
324 * bus/driver.c (bus_driver_handle_hello): return if we disconnect
327 * dbus/dbus-message.c: redo everything so we maintain
328 message->header as the only copy of the various fields.
329 This avoids the possibility of out-of-memory in some cases,
330 for example dbus_message_lock() can't run out of memory anymore,
331 and avoids extra copying. Figured I may as well go ahead and do
332 this since it was busted for dbus_message_lock to not return
333 failure on OOM, and dbus_message_write_header was totally
334 unchecked for OOM. Also fixed some random other bugs.
336 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): verify
337 that strings are nul-terminated. Also, end_pos can be equal
338 to string length just not greater than, I think.
339 (_dbus_marshal_set_int32): new function
340 (_dbus_marshal_set_uint32): new function
341 (_dbus_marshal_set_string): new function
343 * dbus/dbus-connection.c (_dbus_connection_new_for_transport): fix
344 a warning, init timeout_list to NULL
345 (dbus_connection_send_message): don't use uninitialized variable
348 * dbus/dbus-string.c (_dbus_string_replace_len): new function
350 2003-01-26 Anders Carlsson <andersca@codefactory.se>
352 * bus/driver.c: (bus_driver_handle_hello),
353 (bus_driver_send_welcome_message):
356 2003-01-26 Anders Carlsson <andersca@codefactory.se>
358 * dbus/dbus-auth.c: (process_auth), (_dbus_auth_unref):
359 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
360 (dbus_connection_unref):
361 * dbus/dbus-marshal.c: (_dbus_marshal_test):
362 * dbus/dbus-message.c: (dbus_message_unref),
365 (dbus_message_get_fields):
366 Remove debugging printout.
368 (_dbus_message_loader_return_buffer):
369 Don't store the header string.
371 (_dbus_message_test):
374 2003-01-26 Richard Hult <rhult@codefactory.se>
376 * glib/dbus-gmain.c (dbus_connection_dispatch): Traverse a copy of
377 the file descriptor list, since it can change under us.
379 2003-01-25 Anders Carlsson <andersca@codefactory.se>
381 * glib/dbus-gmain.c: (dbus_connection_prepare),
382 (dbus_connection_check), (dbus_connection_dispatch), (add_watch),
383 (remove_watch), (dbus_connection_hookup_with_g_main):
384 Rewrite the glib handling to use its own GSource instead of a
385 GIOChannel so we can catch messages put in the queue while waiting
388 2003-01-25 Anders Carlsson <andersca@codefactory.se>
391 * bus/connection.c: (connection_disconnect_handler),
392 (connection_watch_callback), (bus_connection_setup):
393 * bus/dispatch.c: (send_one_message),
394 (bus_dispatch_broadcast_message), (bus_dispatch_message_handler),
395 (bus_dispatch_add_connection), (bus_dispatch_remove_connection):
397 * bus/driver.c: (bus_driver_send_service_deleted),
398 (bus_driver_send_service_created), (bus_driver_handle_hello),
399 (bus_driver_send_welcome_message),
400 (bus_driver_handle_list_services), (bus_driver_remove_connection),
401 (bus_driver_handle_message):
403 Refactor code, put the message dispatching in its own file. Use
404 _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client
407 2003-01-25 Anders Carlsson <andersca@codefactory.se>
409 * dbus/dbus-internals.h:
410 Add _DBUS_HANDLE_OOM macro, it doesn't do anything currently.
412 * dbus/dbus-message.c: (dbus_message_get_sender):
413 * dbus/dbus-message.h:
414 Implement dbus_message_get_sender.
416 * dbus/dbus-protocol.h:
417 Add message and service defines.
419 2003-01-25 Anders Carlsson <andersca@codefactory.se>
421 * dbus/dbus-connection.c: (dbus_connection_send_message):
422 * dbus/dbus-message-internal.h:
423 * dbus/dbus-message.c: (_dbus_message_get_client_serial),
424 (dbus_message_write_header):
425 Remove _dbus_messag_unlock and don't set the client serial on a
426 message if one already exists.
428 2003-01-24 Havoc Pennington <hp@pobox.com>
430 * dbus/dbus-list.c (alloc_link): put a thread lock on the global
433 * bus/driver.c (bus_driver_handle_list_services): fix a leak
436 2003-01-25 Anders Carlsson <andersca@codefactory.se>
438 * dbus/dbus-list.c: (alloc_link), (free_link):
439 Use a memory pool for the links.
441 2003-01-25 Anders Carlsson <andersca@codefactory.se>
443 * bus/connection.c: (bus_connection_foreach):
445 Add new bus_connection_foreach function.
447 * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
448 Add function that broadcasts a message to all clients.
450 (bus_driver_send_service_created), (bus_driver_handle_hello),
451 (bus_driver_send_welcome_message),
452 (bus_driver_handle_list_services), (bus_driver_message_handler):
453 Implement functions that take care of listing services, and notifying
454 clients when new services are created.
456 * bus/services.c: (bus_services_list):
458 Add new function that returns an array of strings with the currently
463 Update copyright year.
465 2003-01-25 Anders Carlsson <andersca@codefactory.se>
467 * dbus/dbus-connection.c: (dbus_connection_send_message):
468 Unlock the message in case it was sent earlier.
470 (dbus_connection_send_message_with_reply_and_block):
471 Remove the reply message from the list.
473 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
474 Set array_len and new_pos correctly.
476 (_dbus_marshal_test):
479 * dbus/dbus-message-internal.h:
480 * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
481 New function that returns the reply serial.
483 (_dbus_message_unlock):
484 New function that unlocks a message and resets its header.
486 (dbus_message_append_string_array),
487 (dbus_message_get_fields_valist),
488 (dbus_message_iter_get_field_type),
489 (dbus_message_iter_get_string_array),
490 (dbus_message_get_fields),
491 (dbus_message_append_fields_valist):
492 Handle string arrays.
494 (dbus_message_set_sender):
495 Make this function public since the bus daemon needs it.
497 (decode_header_data):
498 Set the reply serial to -1 initially.
500 * dbus/dbus-message.h:
501 Add dbus_message_set_sender.
503 2003-01-24 Havoc Pennington <hp@pobox.com>
505 * doc/dbus-specification.sgml: add some stuff
507 2003-01-22 Havoc Pennington <hp@pobox.com>
509 * doc/dbus-specification.sgml: Start to document the protocol.
511 2003-01-22 Havoc Pennington <hp@pobox.com>
513 * dbus/dbus-connection.c
514 (dbus_connection_send_message_with_reply_and_block): add some @todo
516 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
518 2003-01-21 Havoc Pennington <hp@pobox.com>
520 (patch untested because can't compile)
522 * bus/driver.c (create_unique_client_name): make this function
523 never recycle client names. Also, caller should initialize
526 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
528 2003-01-21 Anders Carlsson <andersca@codefactory.se>
530 * dbus/dbus-marshal.c: (_dbus_marshal_double),
531 (_dbus_marshal_int32), (_dbus_marshal_uint32),
532 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
533 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
534 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
535 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
536 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
537 * dbus/dbus-marshal.h:
538 * dbus/dbus-protocol.h:
539 Add support for marshalling and demarshalling integer, double
542 2003-01-21 Anders Carlsson <andersca@codefactory.se>
547 * bus/connection.c: (connection_disconnect_handler):
548 Remove the connection from the bus driver's list.
550 (connection_watch_callback): Dispatch messages.
552 (free_connection_data): Free connection name.
554 (bus_connection_setup): Add connection to the bus driver's list.
555 (bus_connection_remove_owned_service):
556 (bus_connection_set_name), (bus_connection_get_name):
557 Add functions for setting and getting the connection's name.
560 Add function headers.
562 * bus/driver.c: (create_unique_client_name),
563 (bus_driver_handle_hello_message),
564 (bus_driver_send_welcome_message), (bus_driver_message_handler),
565 (bus_driver_add_connection), (bus_driver_remove_connection):
568 * bus/services.c: (bus_service_free):
570 New file that handles communication and registreation with the bus
573 2003-01-21 Anders Carlsson <andersca@codefactory.se>
575 * dbus/dbus-connection.c: (dbus_connection_send_message):
576 Add a new client_serial parameter.
578 (dbus_connection_send_message_with_reply):
579 Remove a @todo since we've implemented the blocking function.
581 (dbus_connection_send_message_with_reply_and_block):
582 New function that sends a message and waits for a reply and
583 then returns the reply.
585 * dbus/dbus-connection.h:
588 * dbus/dbus-errors.c: (dbus_result_to_string):
589 * dbus/dbus-errors.h:
592 * dbus/dbus-message-internal.h:
593 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
594 (_dbus_message_set_sender), (dbus_message_write_header),
595 (dbus_message_new_reply), (decode_header_data),
596 (_dbus_message_loader_return_buffer), (_dbus_message_test):
597 * dbus/dbus-message.h:
598 Add new functions that set the reply serial and sender.
599 Also marshal and demarshal them correctly and add test.
601 * dbus/dbus-protocol.h:
602 Add new DBUS_MESSAGE_TYPE_SENDER.
605 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
606 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
607 (dbus_connection_hookup_with_g_main):
608 * glib/test-dbus-glib.c: (main):
609 Rewrite to use GIOChannel and remove the GSource crack.
611 * test/echo-client.c: (main):
612 * test/watch.c: (check_messages):
613 Update for changed APIs
615 2003-01-19 Anders Carlsson <andersca@codefactory.se>
617 * dbus/Makefile.am: Add dbus-timeout.[cħ]
619 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
620 Create a DBusTimeoutList.
621 (dbus_connection_set_timeout_functions): Add new function to
622 set timeout callbacks
624 * dbus/dbus-connection.h: Add public DBusTimeout API.
626 * dbus/dbus-message.c: (dbus_message_get_service):
627 * dbus/dbus-message.h: New function.
629 * dbus/dbus-server.c: Fix small doc typo.
631 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
633 2003-01-19 Anders Carlsson <andersca@codefactory.se>
635 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
636 of the string, just as long as specified.
638 2003-01-19 Havoc Pennington <hp@pobox.com>
640 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
643 * dbus/dbus-server.c (dbus_server_set_max_connections)
644 (dbus_server_get_max_connections, dbus_server_get_n_connections):
645 keep track of current number of connections, and add API for
646 setting a max (but haven't implemented enforcing the max yet)
648 2003-01-18 Havoc Pennington <hp@pobox.com>
650 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
651 reading/writing if read_watch != NULL or write_watch != NULL.
653 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
654 the message loader code to actually load message->header and
655 message->body into the newly-created message.
657 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
660 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
661 (dbus_connection_get_max_message_size)
662 (dbus_connection_set_max_live_messages_size)
663 (dbus_connection_get_max_live_messages_size): implement some
664 resource limitation functions
666 * dbus/dbus-resources.c: new file implementing some of the
667 resource limits stuff
669 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
670 missing docs, add @todo to handle OOM etc.
672 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
675 2003-01-18 Havoc Pennington <hp@pobox.com>
677 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
678 connection if it hasn't been already.
680 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
681 replace with DisconnectFunction.
683 2003-01-18 Havoc Pennington <hp@pobox.com>
685 Building --disable-verbose-mode --disable-asserts --disable-tests
686 cuts the library from 112K to 45K or so
688 * configure.in: check for varargs macro support,
689 add --enable-verbose-mode, --enable-asserts.
691 * dbus/dbus-internals.h (_dbus_assert): support
693 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
695 2003-01-18 Havoc Pennington <hp@pobox.com>
697 * dbus/dbus-test.c: include config.h so that tests actually run
699 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
700 so the failure mode when that assumption fails will be plenty
703 2003-01-18 Havoc Pennington <hp@pobox.com>
705 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
707 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
710 * test/Makefile.am: don't use special variable "TESTS" for echo-*
711 since we don't want to use those in make check
713 2003-01-15 Havoc Pennington <hp@redhat.com>
719 2003-01-15 Havoc Pennington <hp@redhat.com>
721 * test/Makefile.am: fix so that test source code ends up in the
722 distribution on make distcheck
724 2003-01-15 Havoc Pennington <hp@redhat.com>
730 2003-01-15 Havoc Pennington <hp@redhat.com>
732 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
733 fix build when --disable-tests
735 * Makefile.am (EXTRA_DIST): put HACKING in here
737 * HACKING: document procedure for making a tarball release.
739 2003-01-14 Anders Carlsson <andersca@codefactory.se>
741 * bus/connection.c: (connection_error_handler),
742 (bus_connection_setup):
743 * bus/main.c: (main):
744 Make sure that the DBusConnectionData struct is NULLed
745 out to prevent a segfault.
747 * dbus/dbus-errors.c: (dbus_result_to_string):
748 * dbus/dbus-errors.h:
749 * dbus/dbus-message.c: (dbus_message_get_fields),
750 (dbus_message_get_fields_valist), (_dbus_message_test):
751 * dbus/dbus-message.h:
752 Make dbus_message_get_fields return a result code so we can
753 track invalid fields as well as oom.
755 2003-01-11 Havoc Pennington <hp@pobox.com>
757 * configure.in: change --enable-test/--enable-ansi action-if-given
758 to enable_foo=$enableval instead of enable_foo=yes
760 2003-01-08 Havoc Pennington <hp@pobox.com>
762 * dbus/dbus-string.c (_dbus_string_align_length): new function
764 * dbus/dbus-test-main.c: move main() for test app here
766 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
767 symbol to run tests, because dbus-test isn't in the main
770 Code review nitpicks.
772 * dbus/dbus-message.c (dbus_message_write_header): add newlines
773 for people with narrow emacs ;-). Assert client_serial was filled
774 in. Assert message->name != NULL.
775 (dbus_message_append_fields): have "first_field_type" arg separate
776 from va list, needed for C++ binding that also uses varargs IIRC
777 and helps with type safety
778 (dbus_message_new): add @todo about using DBusString to store
779 service/name internally
780 (dbus_message_new): don't leak ->service and ->name on OOM later
782 (dbus_message_unref): free the service name
783 (dbus_message_get_fields): same change to varargs
784 i.e. first_field_type
785 (_dbus_message_loader_return_buffer): assert that the message data
786 is aligned (if not it's a bug in our code). Put in verbose griping
787 about why we set corrupted = TRUE.
788 (decode_header_data): add FIXME that char* is evil. Was going to
789 add FIXME about evil locale-specific string.h strncmp, but just
790 switched to wacky string-as-uint32 optimization. Move check for
791 "no room for field name" above get_const_data_len() to avoid
792 assertion failure in get_const_data_len if we have trailing 2
793 bytes or the like. Check for service and name fields being
794 provided twice. Don't leak service/name on error. Require field
795 names to be aligned to 4 bytes.
797 * dbus/dbus-marshal.c: move byte swap stuff to header
798 (_dbus_pack_int32): uscore-prefix
799 (_dbus_unpack_int32): uscore-prefix
800 (_dbus_unpack_uint32): export
801 (_dbus_demarshal_string): add @todo complaining about use of
803 (_dbus_marshal_get_field_end_pos): add @todo about bad error
804 handling allowing corrupt data to go unchecked
806 2003-01-08 Havoc Pennington <hp@redhat.com>
808 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
809 to the select() as needed for authentication. (should be using
810 _dbus_poll() not select, but for another day)
812 * dbus/dbus.h: include dbus/dbus-protocol.h
814 2003-01-08 Anders Carlsson <andersca@codefactory.se>
816 * dbus/Makefile.am (dbusinclude_HEADERS): Install
819 2003-01-08 Anders Carlsson <andersca@codefactory.se>
821 * dbus/dbus-internals.c: (_dbus_type_to_string):
822 New function that returns a string describing a type.
824 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
825 * dbus/dbus-marshal.h:
826 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
827 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
828 (dbus_message_iter_get_byte_array):
829 * dbus/dbus-message.h:
830 Add new convenience functions for appending and getting message fields.
831 Also add demarshalling routines for byte arrays.
833 2003-01-07 Anders Carlsson <andersca@codefactory.se>
835 * dbus/dbus-connection-internal.h:
836 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
837 (_dbus_connection_get_next_client_serial),
838 (dbus_connection_send_message):
839 * dbus/dbus-internals.h:
840 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
841 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
842 (_dbus_marshal_uint32), (_dbus_demarshal_double),
843 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
844 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
845 (_dbus_verbose_bytes), (_dbus_marshal_test):
846 * dbus/dbus-marshal.h:
847 * dbus/dbus-message-internal.h:
848 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
849 (dbus_message_write_header), (_dbus_message_lock),
850 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
851 (dbus_message_get_name), (dbus_message_append_int32),
852 (dbus_message_append_uint32), (dbus_message_append_double),
853 (dbus_message_append_string), (dbus_message_append_byte_array),
854 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
855 (dbus_message_iter_unref), (dbus_message_iter_has_next),
856 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
857 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
858 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
859 (decode_header_data), (_dbus_message_loader_return_buffer),
860 (message_iter_test), (_dbus_message_test):
861 * dbus/dbus-message.h:
862 * dbus/dbus-protocol.h:
863 * dbus/dbus-test.c: (main):
865 * glib/test-dbus-glib.c: (message_handler), (main):
866 * test/echo-client.c: (main):
867 * test/watch.c: (check_messages):
868 Make messages sendable and receivable for real.
870 2003-01-07 Anders Carlsson <andersca@codefactory.se>
872 * dbus/dbus-marshal.c: (_dbus_marshal_double),
873 (_dbus_marshal_string), (_dbus_marshal_byte_array):
874 * dbus/dbus-message.c: (dbus_message_append_int32),
875 (dbus_message_append_uint32), (dbus_message_append_double),
876 (dbus_message_append_string), (dbus_message_append_byte_array):
877 Handle OOM restoration.
879 2003-01-07 Anders Carlsson <andersca@codefactory.se>
881 * dbus/dbus-marshal.c: (_dbus_marshal_string),
882 (_dbus_demarshal_string), (_dbus_marshal_test):
883 * dbus/dbus-marshal.h:
884 * dbus/dbus-message.c: (dbus_message_get_name),
885 Document these functions.
887 (dbus_message_append_int32), (dbus_message_append_uint32),
888 (dbus_message_append_double), (dbus_message_append_string),
889 (dbus_message_append_byte_array):
890 * dbus/dbus-message.h:
891 Add functions for adding message fields of different types.
893 * dbus/dbus-protocol.h:
894 Add the different types.
896 2003-01-05 Havoc Pennington <hp@pobox.com>
898 * bus/connection.c: implement routines for handling connections,
899 first thing is keeping a list of owned services on each connection
900 and setting up watches etc.
902 * bus/services.c: implement a mapping from service names to lists
905 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
907 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
908 to use static mutexes for global data
910 * dbus/dbus-connection.c (dbus_connection_set_data): add new
911 collection of functions to set/get application-specific data
912 on the DBusConnection.
914 2003-01-04 Havoc Pennington <hp@pobox.com>
916 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
917 (_dbus_poll): new function
919 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
922 * bus/loop.c: initial code for the daemon main loop
924 2003-01-04 Havoc Pennington <hp@pobox.com>
926 * test/watch.c (error_handler): make it safe if the error handler
927 is called multiple times (if we s/error handler/disconnect
928 handler/ we should just guarantee it's called only once)
930 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
931 error handler on disconnect (it's quite possible we should
932 just change the error handler to a "disconnect handler," I'm
933 not sure we have any other meaningful errors)
935 * configure.in: check for getpwnam_r
937 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
938 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
939 mechanism as in SASL spec, using socket credentials
941 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
942 (_dbus_send_credentials_unix_socket): new function
944 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
946 (_dbus_write): only check errno if <0 returned
947 (_dbus_write_two): ditto
949 2003-01-02 Anders Carlsson <andersca@codefactory.se>
951 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
952 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
953 (_dbus_marshal_test):
954 * dbus/dbus-marshal.h:
955 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
956 to _dbus_marshal_utf8_string. Also fix some tests.
958 2002-12-28 Harri Porten <porten@kde.org>
960 * configure.in: added check for C++ compiler and a very cheesy
961 check for the Qt integration
963 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
965 * qt/Makefile.am: added
967 * qt/.cvsignore: added
969 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
970 latter, added #ifdef QT_THREAD_SUPPORT guard.
972 * dbus/Makefile.am: added missing headers for make dist
974 2002-12-28 Kristian Rietveld <kris@gtk.org>
976 * dbus/Makefile.am: fixup export-symbols-regex.
978 2002-12-27 Anders Carlsson <andersca@codefactory.se>
980 * acinclude.m4: Add this file and put the
981 PKG_CHECK_MODULE macro in it.
983 2002-12-27 Anders Carlsson <andersca@codefactory.se>
985 * dbus/dbus-marshal.c: (_dbus_marshal_string),
986 (_dbus_demarshal_double), (_dbus_demarshal_int32),
987 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
988 (_dbus_marshal_test):
989 Make the demarshalling routines align the pos argument.
990 Add string marshalling tests and fix the obvious bugs
993 2002-12-26 Havoc Pennington <hp@pobox.com>
995 * dbus/dbus-auth.c: fixes fixes fixes
997 * dbus/dbus-transport-unix.c: wire up support for
998 encoding/decoding data on the wire
1000 * dbus/dbus-auth.c (_dbus_auth_encode_data)
1001 (_dbus_auth_decode_data): append to target string
1002 instead of nuking it.
1004 2002-12-26 Havoc Pennington <hp@pobox.com>
1006 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
1007 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
1010 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
1011 avoid swap_bytes() overhead (ignoring possible assembly stuff for
1012 now). Main point is because I wanted unpack_uint32 to implement
1014 (_dbus_verbose_bytes): new function
1016 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
1018 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
1019 mechanism to handle a corrupt message stream
1020 (_dbus_message_loader_new): fix preallocation to only prealloc,
1023 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
1024 (_dbus_string_test): enhance tests for copy/move and fix the
1027 * dbus/dbus-transport-unix.c: Hold references in more places to
1028 avoid reentrancy problems
1030 * dbus/dbus-transport.c: ditto
1032 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
1033 leak reference count in no-message case
1035 * test/watch.c (do_mainloop): handle adding/removing watches
1036 during iteration over the watches. Also, ref the connection/server
1037 stored on a watch, so we don't try to mangle a destroyed one.
1039 * dbus/dbus-transport-unix.c (do_authentication): perform
1042 * dbus/dbus-auth.c (get_state): add a state
1043 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
1044 (_dbus_auth_get_unused_bytes): append the unused bytes
1045 to the passed in string, rather than prepend
1047 * dbus/dbus-transport.c (_dbus_transport_init_base): create
1048 the auth conversation DBusAuth
1050 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
1051 (_dbus_transport_new_for_domain_socket): when creating a
1052 transport, pass in whether it's a client-side or server-side
1053 transport so we know which DBusAuth to create
1055 2002-12-03 Havoc Pennington <hp@pobox.com>
1057 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
1058 _after_ finalizing the derived members
1059 (unix_connection_set): unref watch if we fail to add it
1061 * dbus/dbus-connection.c (dbus_connection_unref): delete the
1062 transport first, so that the connection owned by the
1063 transport will be valid as the transport finalizes.
1065 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
1066 if necessary, and remove watches from the connection.
1068 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
1070 2002-12-26 Anders Carlsson <andersca@codefactory.se>
1072 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1073 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1074 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1075 (_dbus_marshal_test):
1076 * dbus/dbus-marshal.h:
1077 Add string marshal functions and have the demarshal functions
1078 return the new position.
1080 2002-12-25 Havoc Pennington <hp@pobox.com>
1082 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
1083 it is a simple protocol that just maps directly to SASL.
1085 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
1086 initial implementation, not actually used yet.
1088 * dbus/dbus-string.c (_dbus_string_find): new function
1089 (_dbus_string_equal): new function
1090 (_dbus_string_base64_encode): new function
1091 (_dbus_string_base64_decode): new function
1093 2002-12-25 Anders Carlsson <andersca@codefactory.se>
1096 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
1097 (_dbus_marshal_int32), (_dbus_marshal_uint32),
1098 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1099 (_dbus_demarshal_uint32), (_dbus_marshal_test):
1100 * dbus/dbus-marshal.h:
1101 * dbus/dbus-protocol.h:
1102 * dbus/dbus-test.c: (main):
1104 Add un-optimized marshalling/demarshalling routines.
1106 2002-12-25 Harri Porten <porten@kde.org>
1108 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
1110 2002-12-24 Zack Rusin <zack@kde.org>
1112 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
1113 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
1116 2002-12-24 Havoc Pennington <hp@pobox.com>
1118 * glib/dbus-gthread.c: fix include
1120 * glib/dbus-glib.h: rename DBusMessageHandler for now.
1121 I think glib API needs to change, though, as you don't
1122 want to use DBusMessageFunction, you want to use the
1123 DBusMessageHandler object. Probably
1124 dbus_connection_open_with_g_main_loop()
1125 and dbus_connection_setup_g_main_loop() or something like that
1126 (but think of better names...) that just create a connection
1127 that has watch/timeout functions etc. already set up.
1129 * dbus/dbus-connection.c
1130 (dbus_connection_send_message_with_reply): new function just to
1131 show how the message handler helps us deal with replies.
1133 * dbus/dbus-list.c (_dbus_list_remove_last): new function
1135 * dbus/dbus-string.c (_dbus_string_test): free a string that
1138 * dbus/dbus-hash.c: use memory pools for the hash entries
1139 (rebuild_table): be more paranoid about overflow, and
1140 shrink table when we can
1141 (_dbus_hash_test): reduce number of sprintfs and write
1142 valid C89. Add tests for case where we grow and then
1143 shrink the hash table.
1145 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
1147 * dbus/dbus-connection.c (dbus_connection_register_handler)
1148 (dbus_connection_unregister_handler): new functions
1150 * dbus/dbus-message.c (dbus_message_get_name): new
1152 * dbus/dbus-list.c: fix docs typo
1154 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
1155 an object representing a handler for messages.
1157 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1160 * glib/dbus-gthread.c: (dbus_gthread_init):
1161 Don't use the gdbus prefix for public functions.
1163 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1167 Add GLib checks and fixup .pc files
1171 * glib/dbus-gmain.c: (gdbus_connection_prepare),
1172 (gdbus_connection_check), (gdbus_connection_dispatch),
1173 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
1174 (dbus_connection_gsource_new):
1175 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
1176 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
1177 * glib/test-dbus-glib.c: (message_handler), (main):
1180 2002-12-15 Harri Porten <porten@kde.org>
1182 * autogen.sh: check for libtoolize before attempting to use it
1184 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
1187 * .cvsignore: ignore more stamp files
1189 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
1191 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
1192 without make install.
1194 2002-12-15 Havoc Pennington <hp@pobox.com>
1196 * dbus/dbus-threads.c: add thread stubs that a higher library
1197 layer can fill in. e.g. the GLib wrapper might fill them in with
1198 GThread stuff. We still need to use this thread API to
1199 thread-safe-ize the library.
1201 2002-12-12 Havoc Pennington <hp@pobox.com>
1203 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
1204 below new interfaces and include fewer system headers.
1206 * dbus/dbus-sysdeps.c (_dbus_read): new function
1207 (_dbus_write): new function
1208 (_dbus_write_two): new function
1209 (_dbus_connect_unix_socket): new function
1210 (_dbus_listen_unix_socket): new function
1212 * dbus/dbus-message-internal.h: change interfaces to use
1215 2002-12-11 Havoc Pennington <hp@pobox.com>
1217 * dbus/dbus-types.h: add dbus_unichar
1219 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
1221 * dbus/dbus-connection.c (dbus_connection_send_message): return
1224 * dbus/dbus-transport.c: include dbus-watch.h
1226 * dbus/dbus-connection.c: include dbus-message-internal.h
1228 * HACKING: add file with coding guidelines stuff.
1230 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
1231 handling here, for security purposes (as in vsftpd). Not actually
1232 using this class yet.
1234 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
1235 system/libc usage here, as in vsftpd, for ease of auditing (and
1236 should also simplify portability). Haven't actually moved all the
1237 system/libc usage into here yet.
1239 2002-11-25 Havoc Pennington <hp@pobox.com>
1241 * dbus/dbus-internals.c (_dbus_verbose): fix to not
1242 always print the first verbose message.
1244 2002-11-24 Havoc Pennington <hp@pobox.com>
1246 * test/echo-client.c, test/echo-server.c: cheesy test
1249 * configure.in (AC_CHECK_FUNCS): check for writev
1251 * dbus/dbus-message.c (_dbus_message_get_network_data): new
1254 * dbus/dbus-list.c (_dbus_list_foreach): new function
1256 * dbus/dbus-internals.c (_dbus_verbose): new function
1258 * dbus/dbus-server.c, dbus/dbus-server.h: public object
1259 representing a server that listens for connections.
1261 * dbus/.cvsignore: create
1263 * dbus/dbus-errors.h, dbus/dbus-errors.c:
1264 public API for reporting errors
1266 * dbus/dbus-connection.h, dbus/dbus-connection.c:
1267 public object representing a connection that
1268 sends/receives messages. (Same object used for
1269 both client and server.)
1271 * dbus/dbus-transport.h, dbus/dbus-transport.c:
1272 Basic abstraction for different kinds of stream
1273 that we might read/write messages from.
1275 2002-11-23 Havoc Pennington <hp@pobox.com>
1277 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
1280 * dbus/dbus-test.c (main): add list test, and include
1281 dbus-test.h as intended
1283 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
1284 (_dbus_hash_table_remove_int): return value indicates
1285 whether the entry existed to remove
1287 * dbus/dbus-list.c: add linked list utility class,
1290 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
1293 2002-11-23 Havoc Pennington <hp@pobox.com>
1295 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
1296 DBUS_END_DECLS to nothing, that should fix this once and for all
1298 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
1300 * dbus/dbus-message.c, dbus/dbus-hash.c:
1301 add some missing @brief
1303 2002-11-23 Havoc Pennington <hp@pobox.com>
1305 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
1306 to avoid confusing Doxygen
1308 * dbus/dbus-hash.c: @} not }@
1310 * dbus/dbus-message.c (struct DBusMessage): split out
1313 2002-11-23 Havoc Pennington <hp@pobox.com>
1315 * configure.in: pile on more warning flags if using gcc
1317 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
1318 to document static functions
1320 * configure.in: add summary to end of configure so it
1321 looks nice and attractive
1323 * dbus/dbus-hash.c: finish implementation and write unit
1326 * configure.in: add --enable-tests to enable unit tests
1328 * dbus/dbus-test.c: test program to run unit tests
1329 for all files in dbus/*, initially runs a test for
1332 * dbus/dbus-internals.h: file to hold some internal utility stuff
1334 2002-11-22 Havoc Pennington <hp@redhat.com>
1336 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
1337 "ported" away from Tcl
1339 * dbus/dbus-types.h: header for types such as dbus_bool_t
1341 2002-11-22 Havoc Pennington <hp@redhat.com>
1343 * dbus/dbus.h: fixups for doc warnings
1345 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
1347 (QUIET): make it quiet so we can see warnings
1349 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
1351 2002-11-22 Havoc Pennington <hp@redhat.com>
1353 * Makefile.am: include "Doxyfile" target in all-local
1355 * configure.in: generate the Doxyfile
1357 * Doxyfile.in: move Doxyfile here, so we can use
1358 configure to generate a Doxyfile with the right
1361 2002-11-22 Havoc Pennington <hp@redhat.com>
1363 * dbus/dbus-message.c: move inline docs into .c file
1365 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
1366 so all docs are under doc/
1367 (MAN_EXTENSION): generate man pages. Use extension
1368 ".3dbus" which matches ".3qt" on my system,
1369 I guess this is OK, I don't know really.
1370 (FILE_PATTERNS): look for .c files not .h, makes sense
1373 2002-11-22 Havoc Pennington <hp@pobox.com>
1375 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
1376 because any app can be a server, and any app can be a client,
1377 the bus is a special kind of server.
1379 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
1381 * Doxyfile : adding. Still needs Makefile rules to be generated
1382 automatically (just run "doxygen" in the toplevel dir for now to
1385 * dbus/dbus-message.h : Adding sample docs (javadoc since
1386 resembles gtk-doc a little more)
1388 * dbus/dbus.h : Adding sample docs
1390 2002-11-21 Havoc Pennington <hp@redhat.com>
1392 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
1393 so we can allow ourselves to include files directly,
1394 instead of having to use dbus.h
1396 * dbus/dbus.h: fill in
1398 * dbus/dbus-message.h: sketch out a sample header file.
1399 Include griping if you include it directly instead of
1402 * dbus/dbus-macros.h: new file with macros for extern "C",
1403 TRUE/FALSE, NULL, etc.
1405 * doc/file-boilerplate.c: put include guards in here
1407 2002-11-21 Havoc Pennington <hp@redhat.com>
1409 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
1411 * COPYING: include the GPL as well, and license code
1412 under both AFL and GPL.
1414 2002-11-21 Havoc Pennington <hp@redhat.com>
1416 * acconfig.h: get rid of this
1418 * autogen.sh (run_configure): add --no-configure option
1420 * configure.in: remove AC_ARG_PROGRAM to make
1421 autoconf complain less. add AC_PREREQ.
1422 add AC_DEFINE third arg.
1424 2002-11-21 Anders Carlsson <andersca@codefactory.se>
1427 Fix references so we can distcheck.
1429 2002-11-21 Havoc Pennington <hp@redhat.com>
1431 * Initial module creation