1 2003-02-01 Anders Carlsson <andersca@codefactory.se>
3 * bus/driver.c: (create_unique_client_name),
4 (bus_driver_handle_hello):
5 Don't take a name, just use a numeric id to identify
9 * dbus/dbus-bus.c: (dbus_bus_register_client),
10 (dbus_bus_acquire_service), (dbus_bus_service_exists):
12 Add new convenience functions for communicating with the bus.
14 * dbus/dbus-message.h:
16 * dbus/dbus-protocol.h:
19 2003-02-01 Alexander Larsson <alexl@redhat.com>
21 * dbus/dbus-message.c (dbus_message_append_fields):
22 Add some more doc comments.
24 2003-02-01 Havoc Pennington <hp@pobox.com>
26 * dbus/dbus-break-loader.c (randomly_modify_length): change
27 a 4-byte value in the message as if it were a length
29 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): don't set
30 execute bit on saved files
32 2003-02-01 Havoc Pennington <hp@pobox.com>
34 * dbus/dbus-break-loader.c (main): new program to find messages
35 that break the loader.
37 * dbus/dbus-sysdeps.c (_dbus_string_append_uint): new function
38 * dbus/dbus-sysdeps.c (_dbus_string_save_to_file): new function
40 * dbus/dbus-string.c (_dbus_string_set_byte): new
42 2003-01-31 Havoc Pennington <hp@pobox.com>
44 * dbus/dbus-message.c: refactor the test code to be more general,
45 in preparation for writing a "randomly permute test cases to
46 try to break the loader" program.
48 2003-01-31 Havoc Pennington <hp@pobox.com>
50 * doc/dbus-specification.sgml: work on the specification
52 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): check
53 the protocol version of the message.
55 * dbus/dbus-protocol.h: drop special _REPLY names, the spec
56 no longer specifies that.
57 (DBUS_SERVICE_REPLY_SERVICE_EXISTS): fix flags (1/2/4/8 not
60 * dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos): add missing
61 "break" for DBUS_TYPE_NIL, remove @todo
63 2003-01-31 Havoc Pennington <hp@pobox.com>
65 * dbus/dbus-message.c (dbus_message_set_is_error_reply): rename
66 just set_is_error/get_is_error as this is a commonly-used
67 function, and write docs.
69 2003-01-31 Anders Carlsson <andersca@codefactory.se>
71 * dbus/dbus-address.c: (dbus_address_entry_free):
72 Free key and value lists.
74 * dbus/dbus-internals.c: (_dbus_type_to_string):
75 Add the types we didn't have.
77 * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos),
78 (_dbus_marshal_validate_arg):
81 * dbus/dbus-message.c: (dbus_message_set_sender):
82 Remove todo about being able to set sender to NULL.
84 (dbus_message_set_is_error_reply),
85 (dbus_message_get_is_error_reply):
86 * dbus/dbus-message.h:
89 * dbus/dbus-protocol.h:
92 * test/data/valid-messages/opposite-endian.message:
95 2003-01-31 Havoc Pennington <hp@pobox.com>
97 * doc/dbus-specification.sgml: fully specify the header. Add
98 flags and major protocol version, and change header/body len to
101 * dbus/dbus-message-builder.c (append_saved_length): append length
104 * dbus/dbus-message.c (dbus_message_create_header): change header
105 length and body length to unsigned. Add the new fields from the
107 (_dbus_message_loader_return_buffer): unsigned header/body len
109 2003-01-30 Havoc Pennington <hp@pobox.com>
111 * dbus/dbus-auth.c: rework to use only REJECTED, no
114 * doc/dbus-sasl-profile.txt: drop MECHANISMS and just
115 use REJECTED, suggested by Mark McLoughlin
117 2003-01-30 Havoc Pennington <hp@pobox.com>
119 * dbus/dbus-server.c (dbus_server_listen): @todo about how we need
120 a better way to report errors here. e.g. "unix address lacks
121 path" or something. also "no such file" when the path doesn't
124 * dbus/dbus-address.c (dbus_address_entries_free): add @todo about
126 (dbus_parse_address): add @todo about documenting address format,
127 and allowing , and ; to be escaped
129 2003-01-30 Anders Carlsson <andersca@codefactory.se>
132 Add dbus-address.[ch]
134 * dbus/dbus-address.c: (dbus_address_entry_free),
135 (dbus_address_entries_free), (create_entry),
136 (dbus_address_entry_get_method), (dbus_address_entry_get_value),
137 (dbus_parse_address), (_dbus_address_test):
138 * dbus/dbus-address.h:
139 New files for dealing with address parsing.
141 * dbus/dbus-connection.c:
142 Document timeout functions.
144 * dbus/dbus-message.c:
145 Document dbus_message_new_from_message.
147 * dbus/dbus-server-debug.c:
150 * dbus/dbus-server.c: (dbus_server_listen):
151 Parse address and use correct server implementation.
153 * dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
154 * dbus/dbus-string.h:
155 New function with test.
157 * dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
161 * dbus/dbus-transport-debug.c:
164 * dbus/dbus-transport.c: (_dbus_transport_open):
165 Parse address and use correct transport implementation.
167 2003-01-30 Havoc Pennington <hp@pobox.com>
169 * dbus/dbus-message.c: use message->byte_order instead of
170 DBUS_COMPILER_BYTE_ORDER throughout.
171 (dbus_message_create_header): pad header to align the
172 start of the body of the message to 8-byte boundary
174 * dbus/dbus-marshal.h: make all the demarshalers take const
175 DBusString arguments.
177 * dbus/dbus-message.c (_dbus_message_loader_return_buffer):
178 validate message args here, so we don't have to do slow validation
179 later, and so we catch bad messages as they are incoming. Also add
180 better checks on header_len and body_len. Also fill in
183 * dbus/dbus-string.c (_dbus_string_validate_utf8): new (not
184 implemented properly)
185 (_dbus_string_validate_nul): new function to check all-nul
187 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): rename
188 get_arg_end_pos and remove all validation
189 (_dbus_marshal_validate_arg): actually do validation here.
191 2003-01-29 Havoc Pennington <hp@pobox.com>
193 * dbus/dbus-message.c (check_message_handling): fix assertion
194 failure on set_client_serial
196 2003-01-28 Havoc Pennington <hp@pobox.com>
198 * dbus/dbus-server-debug.c: Add doc section comments
200 * dbus/dbus-transport-debug.c: add doc section comments
202 2003-01-28 Havoc Pennington <hp@redhat.com>
204 * dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
205 the reverse order from how I had it
206 (_dbus_string_base64_encode): reverse encoding order. I was
207 basically byteswapping everything during encoding.
209 2003-01-28 Anders Carlsson <andersca@codefactory.se>
211 * dbus/dbus-connection-internal.h:
212 * dbus/dbus-connection.c: (_dbus_connection_add_timeout),
213 (_dbus_connection_remove_timeout):
214 Add functions for adding and removing timeouts.
216 * dbus/dbus-message.c: (dbus_message_new_from_message):
217 Add new function that takes a message and creates an exact
218 copy of it, but with the refcount set to 1.
219 (check_message_handling):
222 * dbus/dbus-server-protected.h:
223 * dbus/dbus-server.c: (_dbus_server_init_base),
224 (_dbus_server_finalize_base), (_dbus_server_add_timeout),
225 (dbus_server_set_timeout_functions):
226 (_dbus_server_remove_timeout):
227 New functions so that a server can add and remove timeouts.
229 (dbus_server_listen):
230 Add commented out call to dbus_server_debug_new.
232 * dbus/dbus-timeout.c: (_dbus_timeout_new):
233 Actually set the handler, doh.
235 * dbus/dbus-transport.c: (_dbus_transport_open):
236 Add commented out call to dbus_transport_debug_client_new.
239 Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
241 2003-01-28 Havoc Pennington <hp@pobox.com>
243 * dbus/dbus-message.c (check_message_handling): function to check
244 on the loaded message, iterates over it etc.
246 2003-01-28 Havoc Pennington <hp@pobox.com>
248 * test/Makefile.am (dist-hook): fix make distdir
250 * dbus/Makefile.am (TESTS_ENVIRONMENT): fix make check
252 2003-01-27 Havoc Pennington <hp@pobox.com>
254 * dbus/dbus-mempool.c (time_for_size): replace printf with
257 * dbus/dbus-message-builder.c (_dbus_message_data_load): allow
258 empty lines; fix the SAVE_LENGTH stuff to be
259 START_LENGTH/END_LENGTH so it actually works; couple other
262 * test/Makefile.am (dist-hook): add dist-hook for .message files
264 * dbus/dbus-string.c (DBUS_STRING_COPY_PREAMBLE): source of a copy
265 can be constant or locked.
266 (_dbus_string_free): allow freeing a const string as
269 * dbus/dbus-sysdeps.c (_dbus_concat_dir_and_file): utility
271 * dbus/dbus-test-main.c (main): take an argument which is the
272 directory containing test data
274 * dbus/dbus-message.c (_dbus_message_test): pass a test_data_dir
275 argument to this and load all the messages in test/data/
276 checking that they can be loaded or not loaded as appropriate.
278 2003-01-27 Anders Carlsson <andersca@codefactory.se>
280 * bus/dispatch.c: (bus_dispatch_message_handler):
281 Dispatch messages sent to services.
283 * bus/driver.c: (bus_driver_send_service_deleted),
284 (bus_driver_send_service_created), (bus_driver_send_service_lost),
285 (bus_driver_send_service_acquired):
286 Add helper functions for sending service related messages.
288 (bus_driver_send_welcome_message):
289 Send HELLO_REPLY instead of WELCOME.
291 (bus_driver_handle_list_services):
292 Send LIST_SERVICES_REPLY instead of SERVICES.
294 (bus_driver_handle_own_service),
295 (bus_driver_handle_service_exists):
296 New message handlers.
298 (bus_driver_handle_message):
299 Invoke new message handlers.
301 (bus_driver_remove_connection):
302 Don't remove any services here since that's done automatically
303 by bus_service_remove_owner now.
306 New function signatures.
308 * bus/services.c: (bus_service_add_owner):
309 Send ServiceAcquired message if we're the only primary owner.
311 (bus_service_remove_owner):
312 Send ServiceAcquired/ServiceLost messages.
314 (bus_service_set_prohibit_replacement),
315 (bus_service_get_prohibit_replacement):
316 Functions for setting prohibit replacement.
318 (bus_service_has_owner):
319 New function that checks if a connection is in the owner queue of
323 Add new function signatures.
325 * dbus/dbus-list.c: (_dbus_list_test):
326 Add tests for _dbus_list_remove_last and traversing the list backwards.
329 Fix a typo in _dbus_list_get_prev_link, if we're at the first element we can't
330 go any further, so return NULL then.
332 * dbus/dbus-protocol.h:
333 Add new messages, service flags and service replies.
335 2003-01-26 Havoc Pennington <hp@pobox.com>
337 * dbus/dbus-message-builder.c: implement, completely untested.
339 * test/data/*: add data to be used in testing.
340 ".message" files are our simple loadable text format.
341 ".message-raw" will be binary dumps of messages.
343 * dbus/dbus-string.c (_dbus_string_starts_with_c_str): new
345 2003-01-26 Havoc Pennington <hp@pobox.com>
347 * dbus/dbus-sysdeps.c (_dbus_file_get_contents): new function
349 * dbus/dbus-errors.c (dbus_result_to_string): add
352 * dbus/dbus-message-builder.c: new file, will contain code to load
353 up messages from files. Not implemented yet.
355 2003-01-26 Havoc Pennington <hp@pobox.com>
357 * dbus/dbus-message.c (dbus_message_set_sender): support deleting
358 the sender by setting to NULL
360 2003-01-26 Havoc Pennington <hp@pobox.com>
362 The unit tests pass, but otherwise untested. If it breaks, the
363 tests should have been better. ;-)
365 * bus/driver.c (bus_driver_handle_hello): return if we disconnect
368 * dbus/dbus-message.c: redo everything so we maintain
369 message->header as the only copy of the various fields.
370 This avoids the possibility of out-of-memory in some cases,
371 for example dbus_message_lock() can't run out of memory anymore,
372 and avoids extra copying. Figured I may as well go ahead and do
373 this since it was busted for dbus_message_lock to not return
374 failure on OOM, and dbus_message_write_header was totally
375 unchecked for OOM. Also fixed some random other bugs.
377 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): verify
378 that strings are nul-terminated. Also, end_pos can be equal
379 to string length just not greater than, I think.
380 (_dbus_marshal_set_int32): new function
381 (_dbus_marshal_set_uint32): new function
382 (_dbus_marshal_set_string): new function
384 * dbus/dbus-connection.c (_dbus_connection_new_for_transport): fix
385 a warning, init timeout_list to NULL
386 (dbus_connection_send_message): don't use uninitialized variable
389 * dbus/dbus-string.c (_dbus_string_replace_len): new function
391 2003-01-26 Anders Carlsson <andersca@codefactory.se>
393 * bus/driver.c: (bus_driver_handle_hello),
394 (bus_driver_send_welcome_message):
397 2003-01-26 Anders Carlsson <andersca@codefactory.se>
399 * dbus/dbus-auth.c: (process_auth), (_dbus_auth_unref):
400 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
401 (dbus_connection_unref):
402 * dbus/dbus-marshal.c: (_dbus_marshal_test):
403 * dbus/dbus-message.c: (dbus_message_unref),
406 (dbus_message_get_fields):
407 Remove debugging printout.
409 (_dbus_message_loader_return_buffer):
410 Don't store the header string.
412 (_dbus_message_test):
415 2003-01-26 Richard Hult <rhult@codefactory.se>
417 * glib/dbus-gmain.c (dbus_connection_dispatch): Traverse a copy of
418 the file descriptor list, since it can change under us.
420 2003-01-25 Anders Carlsson <andersca@codefactory.se>
422 * glib/dbus-gmain.c: (dbus_connection_prepare),
423 (dbus_connection_check), (dbus_connection_dispatch), (add_watch),
424 (remove_watch), (dbus_connection_hookup_with_g_main):
425 Rewrite the glib handling to use its own GSource instead of a
426 GIOChannel so we can catch messages put in the queue while waiting
429 2003-01-25 Anders Carlsson <andersca@codefactory.se>
432 * bus/connection.c: (connection_disconnect_handler),
433 (connection_watch_callback), (bus_connection_setup):
434 * bus/dispatch.c: (send_one_message),
435 (bus_dispatch_broadcast_message), (bus_dispatch_message_handler),
436 (bus_dispatch_add_connection), (bus_dispatch_remove_connection):
438 * bus/driver.c: (bus_driver_send_service_deleted),
439 (bus_driver_send_service_created), (bus_driver_handle_hello),
440 (bus_driver_send_welcome_message),
441 (bus_driver_handle_list_services), (bus_driver_remove_connection),
442 (bus_driver_handle_message):
444 Refactor code, put the message dispatching in its own file. Use
445 _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client
448 2003-01-25 Anders Carlsson <andersca@codefactory.se>
450 * dbus/dbus-internals.h:
451 Add _DBUS_HANDLE_OOM macro, it doesn't do anything currently.
453 * dbus/dbus-message.c: (dbus_message_get_sender):
454 * dbus/dbus-message.h:
455 Implement dbus_message_get_sender.
457 * dbus/dbus-protocol.h:
458 Add message and service defines.
460 2003-01-25 Anders Carlsson <andersca@codefactory.se>
462 * dbus/dbus-connection.c: (dbus_connection_send_message):
463 * dbus/dbus-message-internal.h:
464 * dbus/dbus-message.c: (_dbus_message_get_client_serial),
465 (dbus_message_write_header):
466 Remove _dbus_messag_unlock and don't set the client serial on a
467 message if one already exists.
469 2003-01-24 Havoc Pennington <hp@pobox.com>
471 * dbus/dbus-list.c (alloc_link): put a thread lock on the global
474 * bus/driver.c (bus_driver_handle_list_services): fix a leak
477 2003-01-25 Anders Carlsson <andersca@codefactory.se>
479 * dbus/dbus-list.c: (alloc_link), (free_link):
480 Use a memory pool for the links.
482 2003-01-25 Anders Carlsson <andersca@codefactory.se>
484 * bus/connection.c: (bus_connection_foreach):
486 Add new bus_connection_foreach function.
488 * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
489 Add function that broadcasts a message to all clients.
491 (bus_driver_send_service_created), (bus_driver_handle_hello),
492 (bus_driver_send_welcome_message),
493 (bus_driver_handle_list_services), (bus_driver_message_handler):
494 Implement functions that take care of listing services, and notifying
495 clients when new services are created.
497 * bus/services.c: (bus_services_list):
499 Add new function that returns an array of strings with the currently
504 Update copyright year.
506 2003-01-25 Anders Carlsson <andersca@codefactory.se>
508 * dbus/dbus-connection.c: (dbus_connection_send_message):
509 Unlock the message in case it was sent earlier.
511 (dbus_connection_send_message_with_reply_and_block):
512 Remove the reply message from the list.
514 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
515 Set array_len and new_pos correctly.
517 (_dbus_marshal_test):
520 * dbus/dbus-message-internal.h:
521 * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
522 New function that returns the reply serial.
524 (_dbus_message_unlock):
525 New function that unlocks a message and resets its header.
527 (dbus_message_append_string_array),
528 (dbus_message_get_fields_valist),
529 (dbus_message_iter_get_field_type),
530 (dbus_message_iter_get_string_array),
531 (dbus_message_get_fields),
532 (dbus_message_append_fields_valist):
533 Handle string arrays.
535 (dbus_message_set_sender):
536 Make this function public since the bus daemon needs it.
538 (decode_header_data):
539 Set the reply serial to -1 initially.
541 * dbus/dbus-message.h:
542 Add dbus_message_set_sender.
544 2003-01-24 Havoc Pennington <hp@pobox.com>
546 * doc/dbus-specification.sgml: add some stuff
548 2003-01-22 Havoc Pennington <hp@pobox.com>
550 * doc/dbus-specification.sgml: Start to document the protocol.
552 2003-01-22 Havoc Pennington <hp@pobox.com>
554 * dbus/dbus-connection.c
555 (dbus_connection_send_message_with_reply_and_block): add some @todo
557 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
559 2003-01-21 Havoc Pennington <hp@pobox.com>
561 (patch untested because can't compile)
563 * bus/driver.c (create_unique_client_name): make this function
564 never recycle client names. Also, caller should initialize
567 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
569 2003-01-21 Anders Carlsson <andersca@codefactory.se>
571 * dbus/dbus-marshal.c: (_dbus_marshal_double),
572 (_dbus_marshal_int32), (_dbus_marshal_uint32),
573 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
574 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
575 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
576 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
577 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
578 * dbus/dbus-marshal.h:
579 * dbus/dbus-protocol.h:
580 Add support for marshalling and demarshalling integer, double
583 2003-01-21 Anders Carlsson <andersca@codefactory.se>
588 * bus/connection.c: (connection_disconnect_handler):
589 Remove the connection from the bus driver's list.
591 (connection_watch_callback): Dispatch messages.
593 (free_connection_data): Free connection name.
595 (bus_connection_setup): Add connection to the bus driver's list.
596 (bus_connection_remove_owned_service):
597 (bus_connection_set_name), (bus_connection_get_name):
598 Add functions for setting and getting the connection's name.
601 Add function headers.
603 * bus/driver.c: (create_unique_client_name),
604 (bus_driver_handle_hello_message),
605 (bus_driver_send_welcome_message), (bus_driver_message_handler),
606 (bus_driver_add_connection), (bus_driver_remove_connection):
609 * bus/services.c: (bus_service_free):
611 New file that handles communication and registreation with the bus
614 2003-01-21 Anders Carlsson <andersca@codefactory.se>
616 * dbus/dbus-connection.c: (dbus_connection_send_message):
617 Add a new client_serial parameter.
619 (dbus_connection_send_message_with_reply):
620 Remove a @todo since we've implemented the blocking function.
622 (dbus_connection_send_message_with_reply_and_block):
623 New function that sends a message and waits for a reply and
624 then returns the reply.
626 * dbus/dbus-connection.h:
629 * dbus/dbus-errors.c: (dbus_result_to_string):
630 * dbus/dbus-errors.h:
633 * dbus/dbus-message-internal.h:
634 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
635 (_dbus_message_set_sender), (dbus_message_write_header),
636 (dbus_message_new_reply), (decode_header_data),
637 (_dbus_message_loader_return_buffer), (_dbus_message_test):
638 * dbus/dbus-message.h:
639 Add new functions that set the reply serial and sender.
640 Also marshal and demarshal them correctly and add test.
642 * dbus/dbus-protocol.h:
643 Add new DBUS_MESSAGE_TYPE_SENDER.
646 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
647 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
648 (dbus_connection_hookup_with_g_main):
649 * glib/test-dbus-glib.c: (main):
650 Rewrite to use GIOChannel and remove the GSource crack.
652 * test/echo-client.c: (main):
653 * test/watch.c: (check_messages):
654 Update for changed APIs
656 2003-01-19 Anders Carlsson <andersca@codefactory.se>
658 * dbus/Makefile.am: Add dbus-timeout.[cħ]
660 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
661 Create a DBusTimeoutList.
662 (dbus_connection_set_timeout_functions): Add new function to
663 set timeout callbacks
665 * dbus/dbus-connection.h: Add public DBusTimeout API.
667 * dbus/dbus-message.c: (dbus_message_get_service):
668 * dbus/dbus-message.h: New function.
670 * dbus/dbus-server.c: Fix small doc typo.
672 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
674 2003-01-19 Anders Carlsson <andersca@codefactory.se>
676 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
677 of the string, just as long as specified.
679 2003-01-19 Havoc Pennington <hp@pobox.com>
681 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
684 * dbus/dbus-server.c (dbus_server_set_max_connections)
685 (dbus_server_get_max_connections, dbus_server_get_n_connections):
686 keep track of current number of connections, and add API for
687 setting a max (but haven't implemented enforcing the max yet)
689 2003-01-18 Havoc Pennington <hp@pobox.com>
691 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
692 reading/writing if read_watch != NULL or write_watch != NULL.
694 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
695 the message loader code to actually load message->header and
696 message->body into the newly-created message.
698 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
701 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
702 (dbus_connection_get_max_message_size)
703 (dbus_connection_set_max_live_messages_size)
704 (dbus_connection_get_max_live_messages_size): implement some
705 resource limitation functions
707 * dbus/dbus-resources.c: new file implementing some of the
708 resource limits stuff
710 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
711 missing docs, add @todo to handle OOM etc.
713 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
716 2003-01-18 Havoc Pennington <hp@pobox.com>
718 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
719 connection if it hasn't been already.
721 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
722 replace with DisconnectFunction.
724 2003-01-18 Havoc Pennington <hp@pobox.com>
726 Building --disable-verbose-mode --disable-asserts --disable-tests
727 cuts the library from 112K to 45K or so
729 * configure.in: check for varargs macro support,
730 add --enable-verbose-mode, --enable-asserts.
732 * dbus/dbus-internals.h (_dbus_assert): support
734 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
736 2003-01-18 Havoc Pennington <hp@pobox.com>
738 * dbus/dbus-test.c: include config.h so that tests actually run
740 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
741 so the failure mode when that assumption fails will be plenty
744 2003-01-18 Havoc Pennington <hp@pobox.com>
746 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
748 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
751 * test/Makefile.am: don't use special variable "TESTS" for echo-*
752 since we don't want to use those in make check
754 2003-01-15 Havoc Pennington <hp@redhat.com>
760 2003-01-15 Havoc Pennington <hp@redhat.com>
762 * test/Makefile.am: fix so that test source code ends up in the
763 distribution on make distcheck
765 2003-01-15 Havoc Pennington <hp@redhat.com>
771 2003-01-15 Havoc Pennington <hp@redhat.com>
773 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
774 fix build when --disable-tests
776 * Makefile.am (EXTRA_DIST): put HACKING in here
778 * HACKING: document procedure for making a tarball release.
780 2003-01-14 Anders Carlsson <andersca@codefactory.se>
782 * bus/connection.c: (connection_error_handler),
783 (bus_connection_setup):
784 * bus/main.c: (main):
785 Make sure that the DBusConnectionData struct is NULLed
786 out to prevent a segfault.
788 * dbus/dbus-errors.c: (dbus_result_to_string):
789 * dbus/dbus-errors.h:
790 * dbus/dbus-message.c: (dbus_message_get_fields),
791 (dbus_message_get_fields_valist), (_dbus_message_test):
792 * dbus/dbus-message.h:
793 Make dbus_message_get_fields return a result code so we can
794 track invalid fields as well as oom.
796 2003-01-11 Havoc Pennington <hp@pobox.com>
798 * configure.in: change --enable-test/--enable-ansi action-if-given
799 to enable_foo=$enableval instead of enable_foo=yes
801 2003-01-08 Havoc Pennington <hp@pobox.com>
803 * dbus/dbus-string.c (_dbus_string_align_length): new function
805 * dbus/dbus-test-main.c: move main() for test app here
807 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
808 symbol to run tests, because dbus-test isn't in the main
811 Code review nitpicks.
813 * dbus/dbus-message.c (dbus_message_write_header): add newlines
814 for people with narrow emacs ;-). Assert client_serial was filled
815 in. Assert message->name != NULL.
816 (dbus_message_append_fields): have "first_field_type" arg separate
817 from va list, needed for C++ binding that also uses varargs IIRC
818 and helps with type safety
819 (dbus_message_new): add @todo about using DBusString to store
820 service/name internally
821 (dbus_message_new): don't leak ->service and ->name on OOM later
823 (dbus_message_unref): free the service name
824 (dbus_message_get_fields): same change to varargs
825 i.e. first_field_type
826 (_dbus_message_loader_return_buffer): assert that the message data
827 is aligned (if not it's a bug in our code). Put in verbose griping
828 about why we set corrupted = TRUE.
829 (decode_header_data): add FIXME that char* is evil. Was going to
830 add FIXME about evil locale-specific string.h strncmp, but just
831 switched to wacky string-as-uint32 optimization. Move check for
832 "no room for field name" above get_const_data_len() to avoid
833 assertion failure in get_const_data_len if we have trailing 2
834 bytes or the like. Check for service and name fields being
835 provided twice. Don't leak service/name on error. Require field
836 names to be aligned to 4 bytes.
838 * dbus/dbus-marshal.c: move byte swap stuff to header
839 (_dbus_pack_int32): uscore-prefix
840 (_dbus_unpack_int32): uscore-prefix
841 (_dbus_unpack_uint32): export
842 (_dbus_demarshal_string): add @todo complaining about use of
844 (_dbus_marshal_get_field_end_pos): add @todo about bad error
845 handling allowing corrupt data to go unchecked
847 2003-01-08 Havoc Pennington <hp@redhat.com>
849 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
850 to the select() as needed for authentication. (should be using
851 _dbus_poll() not select, but for another day)
853 * dbus/dbus.h: include dbus/dbus-protocol.h
855 2003-01-08 Anders Carlsson <andersca@codefactory.se>
857 * dbus/Makefile.am (dbusinclude_HEADERS): Install
860 2003-01-08 Anders Carlsson <andersca@codefactory.se>
862 * dbus/dbus-internals.c: (_dbus_type_to_string):
863 New function that returns a string describing a type.
865 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
866 * dbus/dbus-marshal.h:
867 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
868 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
869 (dbus_message_iter_get_byte_array):
870 * dbus/dbus-message.h:
871 Add new convenience functions for appending and getting message fields.
872 Also add demarshalling routines for byte arrays.
874 2003-01-07 Anders Carlsson <andersca@codefactory.se>
876 * dbus/dbus-connection-internal.h:
877 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
878 (_dbus_connection_get_next_client_serial),
879 (dbus_connection_send_message):
880 * dbus/dbus-internals.h:
881 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
882 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
883 (_dbus_marshal_uint32), (_dbus_demarshal_double),
884 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
885 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
886 (_dbus_verbose_bytes), (_dbus_marshal_test):
887 * dbus/dbus-marshal.h:
888 * dbus/dbus-message-internal.h:
889 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
890 (dbus_message_write_header), (_dbus_message_lock),
891 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
892 (dbus_message_get_name), (dbus_message_append_int32),
893 (dbus_message_append_uint32), (dbus_message_append_double),
894 (dbus_message_append_string), (dbus_message_append_byte_array),
895 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
896 (dbus_message_iter_unref), (dbus_message_iter_has_next),
897 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
898 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
899 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
900 (decode_header_data), (_dbus_message_loader_return_buffer),
901 (message_iter_test), (_dbus_message_test):
902 * dbus/dbus-message.h:
903 * dbus/dbus-protocol.h:
904 * dbus/dbus-test.c: (main):
906 * glib/test-dbus-glib.c: (message_handler), (main):
907 * test/echo-client.c: (main):
908 * test/watch.c: (check_messages):
909 Make messages sendable and receivable for real.
911 2003-01-07 Anders Carlsson <andersca@codefactory.se>
913 * dbus/dbus-marshal.c: (_dbus_marshal_double),
914 (_dbus_marshal_string), (_dbus_marshal_byte_array):
915 * dbus/dbus-message.c: (dbus_message_append_int32),
916 (dbus_message_append_uint32), (dbus_message_append_double),
917 (dbus_message_append_string), (dbus_message_append_byte_array):
918 Handle OOM restoration.
920 2003-01-07 Anders Carlsson <andersca@codefactory.se>
922 * dbus/dbus-marshal.c: (_dbus_marshal_string),
923 (_dbus_demarshal_string), (_dbus_marshal_test):
924 * dbus/dbus-marshal.h:
925 * dbus/dbus-message.c: (dbus_message_get_name),
926 Document these functions.
928 (dbus_message_append_int32), (dbus_message_append_uint32),
929 (dbus_message_append_double), (dbus_message_append_string),
930 (dbus_message_append_byte_array):
931 * dbus/dbus-message.h:
932 Add functions for adding message fields of different types.
934 * dbus/dbus-protocol.h:
935 Add the different types.
937 2003-01-05 Havoc Pennington <hp@pobox.com>
939 * bus/connection.c: implement routines for handling connections,
940 first thing is keeping a list of owned services on each connection
941 and setting up watches etc.
943 * bus/services.c: implement a mapping from service names to lists
946 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
948 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
949 to use static mutexes for global data
951 * dbus/dbus-connection.c (dbus_connection_set_data): add new
952 collection of functions to set/get application-specific data
953 on the DBusConnection.
955 2003-01-04 Havoc Pennington <hp@pobox.com>
957 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
958 (_dbus_poll): new function
960 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
963 * bus/loop.c: initial code for the daemon main loop
965 2003-01-04 Havoc Pennington <hp@pobox.com>
967 * test/watch.c (error_handler): make it safe if the error handler
968 is called multiple times (if we s/error handler/disconnect
969 handler/ we should just guarantee it's called only once)
971 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
972 error handler on disconnect (it's quite possible we should
973 just change the error handler to a "disconnect handler," I'm
974 not sure we have any other meaningful errors)
976 * configure.in: check for getpwnam_r
978 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
979 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
980 mechanism as in SASL spec, using socket credentials
982 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
983 (_dbus_send_credentials_unix_socket): new function
985 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
987 (_dbus_write): only check errno if <0 returned
988 (_dbus_write_two): ditto
990 2003-01-02 Anders Carlsson <andersca@codefactory.se>
992 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
993 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
994 (_dbus_marshal_test):
995 * dbus/dbus-marshal.h:
996 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
997 to _dbus_marshal_utf8_string. Also fix some tests.
999 2002-12-28 Harri Porten <porten@kde.org>
1001 * configure.in: added check for C++ compiler and a very cheesy
1002 check for the Qt integration
1004 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
1006 * qt/Makefile.am: added
1008 * qt/.cvsignore: added
1010 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
1011 latter, added #ifdef QT_THREAD_SUPPORT guard.
1013 * dbus/Makefile.am: added missing headers for make dist
1015 2002-12-28 Kristian Rietveld <kris@gtk.org>
1017 * dbus/Makefile.am: fixup export-symbols-regex.
1019 2002-12-27 Anders Carlsson <andersca@codefactory.se>
1021 * acinclude.m4: Add this file and put the
1022 PKG_CHECK_MODULE macro in it.
1024 2002-12-27 Anders Carlsson <andersca@codefactory.se>
1026 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1027 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1028 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1029 (_dbus_marshal_test):
1030 Make the demarshalling routines align the pos argument.
1031 Add string marshalling tests and fix the obvious bugs
1034 2002-12-26 Havoc Pennington <hp@pobox.com>
1036 * dbus/dbus-auth.c: fixes fixes fixes
1038 * dbus/dbus-transport-unix.c: wire up support for
1039 encoding/decoding data on the wire
1041 * dbus/dbus-auth.c (_dbus_auth_encode_data)
1042 (_dbus_auth_decode_data): append to target string
1043 instead of nuking it.
1045 2002-12-26 Havoc Pennington <hp@pobox.com>
1047 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
1048 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
1051 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
1052 avoid swap_bytes() overhead (ignoring possible assembly stuff for
1053 now). Main point is because I wanted unpack_uint32 to implement
1055 (_dbus_verbose_bytes): new function
1057 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
1059 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
1060 mechanism to handle a corrupt message stream
1061 (_dbus_message_loader_new): fix preallocation to only prealloc,
1064 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
1065 (_dbus_string_test): enhance tests for copy/move and fix the
1068 * dbus/dbus-transport-unix.c: Hold references in more places to
1069 avoid reentrancy problems
1071 * dbus/dbus-transport.c: ditto
1073 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
1074 leak reference count in no-message case
1076 * test/watch.c (do_mainloop): handle adding/removing watches
1077 during iteration over the watches. Also, ref the connection/server
1078 stored on a watch, so we don't try to mangle a destroyed one.
1080 * dbus/dbus-transport-unix.c (do_authentication): perform
1083 * dbus/dbus-auth.c (get_state): add a state
1084 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
1085 (_dbus_auth_get_unused_bytes): append the unused bytes
1086 to the passed in string, rather than prepend
1088 * dbus/dbus-transport.c (_dbus_transport_init_base): create
1089 the auth conversation DBusAuth
1091 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
1092 (_dbus_transport_new_for_domain_socket): when creating a
1093 transport, pass in whether it's a client-side or server-side
1094 transport so we know which DBusAuth to create
1096 2002-12-03 Havoc Pennington <hp@pobox.com>
1098 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
1099 _after_ finalizing the derived members
1100 (unix_connection_set): unref watch if we fail to add it
1102 * dbus/dbus-connection.c (dbus_connection_unref): delete the
1103 transport first, so that the connection owned by the
1104 transport will be valid as the transport finalizes.
1106 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
1107 if necessary, and remove watches from the connection.
1109 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
1111 2002-12-26 Anders Carlsson <andersca@codefactory.se>
1113 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1114 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1115 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1116 (_dbus_marshal_test):
1117 * dbus/dbus-marshal.h:
1118 Add string marshal functions and have the demarshal functions
1119 return the new position.
1121 2002-12-25 Havoc Pennington <hp@pobox.com>
1123 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
1124 it is a simple protocol that just maps directly to SASL.
1126 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
1127 initial implementation, not actually used yet.
1129 * dbus/dbus-string.c (_dbus_string_find): new function
1130 (_dbus_string_equal): new function
1131 (_dbus_string_base64_encode): new function
1132 (_dbus_string_base64_decode): new function
1134 2002-12-25 Anders Carlsson <andersca@codefactory.se>
1137 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
1138 (_dbus_marshal_int32), (_dbus_marshal_uint32),
1139 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1140 (_dbus_demarshal_uint32), (_dbus_marshal_test):
1141 * dbus/dbus-marshal.h:
1142 * dbus/dbus-protocol.h:
1143 * dbus/dbus-test.c: (main):
1145 Add un-optimized marshalling/demarshalling routines.
1147 2002-12-25 Harri Porten <porten@kde.org>
1149 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
1151 2002-12-24 Zack Rusin <zack@kde.org>
1153 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
1154 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
1157 2002-12-24 Havoc Pennington <hp@pobox.com>
1159 * glib/dbus-gthread.c: fix include
1161 * glib/dbus-glib.h: rename DBusMessageHandler for now.
1162 I think glib API needs to change, though, as you don't
1163 want to use DBusMessageFunction, you want to use the
1164 DBusMessageHandler object. Probably
1165 dbus_connection_open_with_g_main_loop()
1166 and dbus_connection_setup_g_main_loop() or something like that
1167 (but think of better names...) that just create a connection
1168 that has watch/timeout functions etc. already set up.
1170 * dbus/dbus-connection.c
1171 (dbus_connection_send_message_with_reply): new function just to
1172 show how the message handler helps us deal with replies.
1174 * dbus/dbus-list.c (_dbus_list_remove_last): new function
1176 * dbus/dbus-string.c (_dbus_string_test): free a string that
1179 * dbus/dbus-hash.c: use memory pools for the hash entries
1180 (rebuild_table): be more paranoid about overflow, and
1181 shrink table when we can
1182 (_dbus_hash_test): reduce number of sprintfs and write
1183 valid C89. Add tests for case where we grow and then
1184 shrink the hash table.
1186 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
1188 * dbus/dbus-connection.c (dbus_connection_register_handler)
1189 (dbus_connection_unregister_handler): new functions
1191 * dbus/dbus-message.c (dbus_message_get_name): new
1193 * dbus/dbus-list.c: fix docs typo
1195 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
1196 an object representing a handler for messages.
1198 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1201 * glib/dbus-gthread.c: (dbus_gthread_init):
1202 Don't use the gdbus prefix for public functions.
1204 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1208 Add GLib checks and fixup .pc files
1212 * glib/dbus-gmain.c: (gdbus_connection_prepare),
1213 (gdbus_connection_check), (gdbus_connection_dispatch),
1214 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
1215 (dbus_connection_gsource_new):
1216 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
1217 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
1218 * glib/test-dbus-glib.c: (message_handler), (main):
1221 2002-12-15 Harri Porten <porten@kde.org>
1223 * autogen.sh: check for libtoolize before attempting to use it
1225 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
1228 * .cvsignore: ignore more stamp files
1230 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
1232 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
1233 without make install.
1235 2002-12-15 Havoc Pennington <hp@pobox.com>
1237 * dbus/dbus-threads.c: add thread stubs that a higher library
1238 layer can fill in. e.g. the GLib wrapper might fill them in with
1239 GThread stuff. We still need to use this thread API to
1240 thread-safe-ize the library.
1242 2002-12-12 Havoc Pennington <hp@pobox.com>
1244 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
1245 below new interfaces and include fewer system headers.
1247 * dbus/dbus-sysdeps.c (_dbus_read): new function
1248 (_dbus_write): new function
1249 (_dbus_write_two): new function
1250 (_dbus_connect_unix_socket): new function
1251 (_dbus_listen_unix_socket): new function
1253 * dbus/dbus-message-internal.h: change interfaces to use
1256 2002-12-11 Havoc Pennington <hp@pobox.com>
1258 * dbus/dbus-types.h: add dbus_unichar
1260 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
1262 * dbus/dbus-connection.c (dbus_connection_send_message): return
1265 * dbus/dbus-transport.c: include dbus-watch.h
1267 * dbus/dbus-connection.c: include dbus-message-internal.h
1269 * HACKING: add file with coding guidelines stuff.
1271 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
1272 handling here, for security purposes (as in vsftpd). Not actually
1273 using this class yet.
1275 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
1276 system/libc usage here, as in vsftpd, for ease of auditing (and
1277 should also simplify portability). Haven't actually moved all the
1278 system/libc usage into here yet.
1280 2002-11-25 Havoc Pennington <hp@pobox.com>
1282 * dbus/dbus-internals.c (_dbus_verbose): fix to not
1283 always print the first verbose message.
1285 2002-11-24 Havoc Pennington <hp@pobox.com>
1287 * test/echo-client.c, test/echo-server.c: cheesy test
1290 * configure.in (AC_CHECK_FUNCS): check for writev
1292 * dbus/dbus-message.c (_dbus_message_get_network_data): new
1295 * dbus/dbus-list.c (_dbus_list_foreach): new function
1297 * dbus/dbus-internals.c (_dbus_verbose): new function
1299 * dbus/dbus-server.c, dbus/dbus-server.h: public object
1300 representing a server that listens for connections.
1302 * dbus/.cvsignore: create
1304 * dbus/dbus-errors.h, dbus/dbus-errors.c:
1305 public API for reporting errors
1307 * dbus/dbus-connection.h, dbus/dbus-connection.c:
1308 public object representing a connection that
1309 sends/receives messages. (Same object used for
1310 both client and server.)
1312 * dbus/dbus-transport.h, dbus/dbus-transport.c:
1313 Basic abstraction for different kinds of stream
1314 that we might read/write messages from.
1316 2002-11-23 Havoc Pennington <hp@pobox.com>
1318 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
1321 * dbus/dbus-test.c (main): add list test, and include
1322 dbus-test.h as intended
1324 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
1325 (_dbus_hash_table_remove_int): return value indicates
1326 whether the entry existed to remove
1328 * dbus/dbus-list.c: add linked list utility class,
1331 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
1334 2002-11-23 Havoc Pennington <hp@pobox.com>
1336 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
1337 DBUS_END_DECLS to nothing, that should fix this once and for all
1339 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
1341 * dbus/dbus-message.c, dbus/dbus-hash.c:
1342 add some missing @brief
1344 2002-11-23 Havoc Pennington <hp@pobox.com>
1346 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
1347 to avoid confusing Doxygen
1349 * dbus/dbus-hash.c: @} not }@
1351 * dbus/dbus-message.c (struct DBusMessage): split out
1354 2002-11-23 Havoc Pennington <hp@pobox.com>
1356 * configure.in: pile on more warning flags if using gcc
1358 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
1359 to document static functions
1361 * configure.in: add summary to end of configure so it
1362 looks nice and attractive
1364 * dbus/dbus-hash.c: finish implementation and write unit
1367 * configure.in: add --enable-tests to enable unit tests
1369 * dbus/dbus-test.c: test program to run unit tests
1370 for all files in dbus/*, initially runs a test for
1373 * dbus/dbus-internals.h: file to hold some internal utility stuff
1375 2002-11-22 Havoc Pennington <hp@redhat.com>
1377 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
1378 "ported" away from Tcl
1380 * dbus/dbus-types.h: header for types such as dbus_bool_t
1382 2002-11-22 Havoc Pennington <hp@redhat.com>
1384 * dbus/dbus.h: fixups for doc warnings
1386 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
1388 (QUIET): make it quiet so we can see warnings
1390 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
1392 2002-11-22 Havoc Pennington <hp@redhat.com>
1394 * Makefile.am: include "Doxyfile" target in all-local
1396 * configure.in: generate the Doxyfile
1398 * Doxyfile.in: move Doxyfile here, so we can use
1399 configure to generate a Doxyfile with the right
1402 2002-11-22 Havoc Pennington <hp@redhat.com>
1404 * dbus/dbus-message.c: move inline docs into .c file
1406 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
1407 so all docs are under doc/
1408 (MAN_EXTENSION): generate man pages. Use extension
1409 ".3dbus" which matches ".3qt" on my system,
1410 I guess this is OK, I don't know really.
1411 (FILE_PATTERNS): look for .c files not .h, makes sense
1414 2002-11-22 Havoc Pennington <hp@pobox.com>
1416 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
1417 because any app can be a server, and any app can be a client,
1418 the bus is a special kind of server.
1420 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
1422 * Doxyfile : adding. Still needs Makefile rules to be generated
1423 automatically (just run "doxygen" in the toplevel dir for now to
1426 * dbus/dbus-message.h : Adding sample docs (javadoc since
1427 resembles gtk-doc a little more)
1429 * dbus/dbus.h : Adding sample docs
1431 2002-11-21 Havoc Pennington <hp@redhat.com>
1433 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
1434 so we can allow ourselves to include files directly,
1435 instead of having to use dbus.h
1437 * dbus/dbus.h: fill in
1439 * dbus/dbus-message.h: sketch out a sample header file.
1440 Include griping if you include it directly instead of
1443 * dbus/dbus-macros.h: new file with macros for extern "C",
1444 TRUE/FALSE, NULL, etc.
1446 * doc/file-boilerplate.c: put include guards in here
1448 2002-11-21 Havoc Pennington <hp@redhat.com>
1450 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
1452 * COPYING: include the GPL as well, and license code
1453 under both AFL and GPL.
1455 2002-11-21 Havoc Pennington <hp@redhat.com>
1457 * acconfig.h: get rid of this
1459 * autogen.sh (run_configure): add --no-configure option
1461 * configure.in: remove AC_ARG_PROGRAM to make
1462 autoconf complain less. add AC_PREREQ.
1463 add AC_DEFINE third arg.
1465 2002-11-21 Anders Carlsson <andersca@codefactory.se>
1468 Fix references so we can distcheck.
1470 2002-11-21 Havoc Pennington <hp@redhat.com>
1472 * Initial module creation