1 2003-01-30 Havoc Pennington <hp@pobox.com>
3 * dbus/dbus-auth.c: rework to use only REJECTED, no
6 * doc/dbus-sasl-profile.txt: drop MECHANISMS and just
7 use REJECTED, suggested by Mark McLoughlin
9 2003-01-30 Havoc Pennington <hp@pobox.com>
11 * dbus/dbus-server.c (dbus_server_listen): @todo about how we need
12 a better way to report errors here. e.g. "unix address lacks
13 path" or something. also "no such file" when the path doesn't
16 * dbus/dbus-address.c (dbus_address_entries_free): add @todo about
18 (dbus_parse_address): add @todo about documenting address format,
19 and allowing , and ; to be escaped
21 2003-01-30 Anders Carlsson <andersca@codefactory.se>
26 * dbus/dbus-address.c: (dbus_address_entry_free),
27 (dbus_address_entries_free), (create_entry),
28 (dbus_address_entry_get_method), (dbus_address_entry_get_value),
29 (dbus_parse_address), (_dbus_address_test):
30 * dbus/dbus-address.h:
31 New files for dealing with address parsing.
33 * dbus/dbus-connection.c:
34 Document timeout functions.
36 * dbus/dbus-message.c:
37 Document dbus_message_new_from_message.
39 * dbus/dbus-server-debug.c:
42 * dbus/dbus-server.c: (dbus_server_listen):
43 Parse address and use correct server implementation.
45 * dbus/dbus-string.c: (_dbus_string_find_to), (_dbus_string_test):
47 New function with test.
49 * dbus/dbus-test.c: (dbus_internal_symbol_do_not_use_run_tests):
53 * dbus/dbus-transport-debug.c:
56 * dbus/dbus-transport.c: (_dbus_transport_open):
57 Parse address and use correct transport implementation.
59 2003-01-30 Havoc Pennington <hp@pobox.com>
61 * dbus/dbus-message.c: use message->byte_order instead of
62 DBUS_COMPILER_BYTE_ORDER throughout.
63 (dbus_message_create_header): pad header to align the
64 start of the body of the message to 8-byte boundary
66 * dbus/dbus-marshal.h: make all the demarshalers take const
69 * dbus/dbus-message.c (_dbus_message_loader_return_buffer):
70 validate message args here, so we don't have to do slow validation
71 later, and so we catch bad messages as they are incoming. Also add
72 better checks on header_len and body_len. Also fill in
75 * dbus/dbus-string.c (_dbus_string_validate_utf8): new (not
77 (_dbus_string_validate_nul): new function to check all-nul
79 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): rename
80 get_arg_end_pos and remove all validation
81 (_dbus_marshal_validate_arg): actually do validation here.
83 2003-01-29 Havoc Pennington <hp@pobox.com>
85 * dbus/dbus-message.c (check_message_handling): fix assertion
86 failure on set_client_serial
88 2003-01-28 Havoc Pennington <hp@pobox.com>
90 * dbus/dbus-server-debug.c: Add doc section comments
92 * dbus/dbus-transport-debug.c: add doc section comments
94 2003-01-28 Havoc Pennington <hp@redhat.com>
96 * dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
97 the reverse order from how I had it
98 (_dbus_string_base64_encode): reverse encoding order. I was
99 basically byteswapping everything during encoding.
101 2003-01-28 Anders Carlsson <andersca@codefactory.se>
103 * dbus/dbus-connection-internal.h:
104 * dbus/dbus-connection.c: (_dbus_connection_add_timeout),
105 (_dbus_connection_remove_timeout):
106 Add functions for adding and removing timeouts.
108 * dbus/dbus-message.c: (dbus_message_new_from_message):
109 Add new function that takes a message and creates an exact
110 copy of it, but with the refcount set to 1.
111 (check_message_handling):
114 * dbus/dbus-server-protected.h:
115 * dbus/dbus-server.c: (_dbus_server_init_base),
116 (_dbus_server_finalize_base), (_dbus_server_add_timeout),
117 (dbus_server_set_timeout_functions):
118 (_dbus_server_remove_timeout):
119 New functions so that a server can add and remove timeouts.
121 (dbus_server_listen):
122 Add commented out call to dbus_server_debug_new.
124 * dbus/dbus-timeout.c: (_dbus_timeout_new):
125 Actually set the handler, doh.
127 * dbus/dbus-transport.c: (_dbus_transport_open):
128 Add commented out call to dbus_transport_debug_client_new.
131 Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
133 2003-01-28 Havoc Pennington <hp@pobox.com>
135 * dbus/dbus-message.c (check_message_handling): function to check
136 on the loaded message, iterates over it etc.
138 2003-01-28 Havoc Pennington <hp@pobox.com>
140 * test/Makefile.am (dist-hook): fix make distdir
142 * dbus/Makefile.am (TESTS_ENVIRONMENT): fix make check
144 2003-01-27 Havoc Pennington <hp@pobox.com>
146 * dbus/dbus-mempool.c (time_for_size): replace printf with
149 * dbus/dbus-message-builder.c (_dbus_message_data_load): allow
150 empty lines; fix the SAVE_LENGTH stuff to be
151 START_LENGTH/END_LENGTH so it actually works; couple other
154 * test/Makefile.am (dist-hook): add dist-hook for .message files
156 * dbus/dbus-string.c (DBUS_STRING_COPY_PREAMBLE): source of a copy
157 can be constant or locked.
158 (_dbus_string_free): allow freeing a const string as
161 * dbus/dbus-sysdeps.c (_dbus_concat_dir_and_file): utility
163 * dbus/dbus-test-main.c (main): take an argument which is the
164 directory containing test data
166 * dbus/dbus-message.c (_dbus_message_test): pass a test_data_dir
167 argument to this and load all the messages in test/data/
168 checking that they can be loaded or not loaded as appropriate.
170 2003-01-27 Anders Carlsson <andersca@codefactory.se>
172 * bus/dispatch.c: (bus_dispatch_message_handler):
173 Dispatch messages sent to services.
175 * bus/driver.c: (bus_driver_send_service_deleted),
176 (bus_driver_send_service_created), (bus_driver_send_service_lost),
177 (bus_driver_send_service_acquired):
178 Add helper functions for sending service related messages.
180 (bus_driver_send_welcome_message):
181 Send HELLO_REPLY instead of WELCOME.
183 (bus_driver_handle_list_services):
184 Send LIST_SERVICES_REPLY instead of SERVICES.
186 (bus_driver_handle_own_service),
187 (bus_driver_handle_service_exists):
188 New message handlers.
190 (bus_driver_handle_message):
191 Invoke new message handlers.
193 (bus_driver_remove_connection):
194 Don't remove any services here since that's done automatically
195 by bus_service_remove_owner now.
198 New function signatures.
200 * bus/services.c: (bus_service_add_owner):
201 Send ServiceAcquired message if we're the only primary owner.
203 (bus_service_remove_owner):
204 Send ServiceAcquired/ServiceLost messages.
206 (bus_service_set_prohibit_replacement),
207 (bus_service_get_prohibit_replacement):
208 Functions for setting prohibit replacement.
210 (bus_service_has_owner):
211 New function that checks if a connection is in the owner queue of
215 Add new function signatures.
217 * dbus/dbus-list.c: (_dbus_list_test):
218 Add tests for _dbus_list_remove_last and traversing the list backwards.
221 Fix a typo in _dbus_list_get_prev_link, if we're at the first element we can't
222 go any further, so return NULL then.
224 * dbus/dbus-protocol.h:
225 Add new messages, service flags and service replies.
227 2003-01-26 Havoc Pennington <hp@pobox.com>
229 * dbus/dbus-message-builder.c: implement, completely untested.
231 * test/data/*: add data to be used in testing.
232 ".message" files are our simple loadable text format.
233 ".message-raw" will be binary dumps of messages.
235 * dbus/dbus-string.c (_dbus_string_starts_with_c_str): new
237 2003-01-26 Havoc Pennington <hp@pobox.com>
239 * dbus/dbus-sysdeps.c (_dbus_file_get_contents): new function
241 * dbus/dbus-errors.c (dbus_result_to_string): add
244 * dbus/dbus-message-builder.c: new file, will contain code to load
245 up messages from files. Not implemented yet.
247 2003-01-26 Havoc Pennington <hp@pobox.com>
249 * dbus/dbus-message.c (dbus_message_set_sender): support deleting
250 the sender by setting to NULL
252 2003-01-26 Havoc Pennington <hp@pobox.com>
254 The unit tests pass, but otherwise untested. If it breaks, the
255 tests should have been better. ;-)
257 * bus/driver.c (bus_driver_handle_hello): return if we disconnect
260 * dbus/dbus-message.c: redo everything so we maintain
261 message->header as the only copy of the various fields.
262 This avoids the possibility of out-of-memory in some cases,
263 for example dbus_message_lock() can't run out of memory anymore,
264 and avoids extra copying. Figured I may as well go ahead and do
265 this since it was busted for dbus_message_lock to not return
266 failure on OOM, and dbus_message_write_header was totally
267 unchecked for OOM. Also fixed some random other bugs.
269 * dbus/dbus-marshal.c (_dbus_marshal_get_field_end_pos): verify
270 that strings are nul-terminated. Also, end_pos can be equal
271 to string length just not greater than, I think.
272 (_dbus_marshal_set_int32): new function
273 (_dbus_marshal_set_uint32): new function
274 (_dbus_marshal_set_string): new function
276 * dbus/dbus-connection.c (_dbus_connection_new_for_transport): fix
277 a warning, init timeout_list to NULL
278 (dbus_connection_send_message): don't use uninitialized variable
281 * dbus/dbus-string.c (_dbus_string_replace_len): new function
283 2003-01-26 Anders Carlsson <andersca@codefactory.se>
285 * bus/driver.c: (bus_driver_handle_hello),
286 (bus_driver_send_welcome_message):
289 2003-01-26 Anders Carlsson <andersca@codefactory.se>
291 * dbus/dbus-auth.c: (process_auth), (_dbus_auth_unref):
292 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
293 (dbus_connection_unref):
294 * dbus/dbus-marshal.c: (_dbus_marshal_test):
295 * dbus/dbus-message.c: (dbus_message_unref),
298 (dbus_message_get_fields):
299 Remove debugging printout.
301 (_dbus_message_loader_return_buffer):
302 Don't store the header string.
304 (_dbus_message_test):
307 2003-01-26 Richard Hult <rhult@codefactory.se>
309 * glib/dbus-gmain.c (dbus_connection_dispatch): Traverse a copy of
310 the file descriptor list, since it can change under us.
312 2003-01-25 Anders Carlsson <andersca@codefactory.se>
314 * glib/dbus-gmain.c: (dbus_connection_prepare),
315 (dbus_connection_check), (dbus_connection_dispatch), (add_watch),
316 (remove_watch), (dbus_connection_hookup_with_g_main):
317 Rewrite the glib handling to use its own GSource instead of a
318 GIOChannel so we can catch messages put in the queue while waiting
321 2003-01-25 Anders Carlsson <andersca@codefactory.se>
324 * bus/connection.c: (connection_disconnect_handler),
325 (connection_watch_callback), (bus_connection_setup):
326 * bus/dispatch.c: (send_one_message),
327 (bus_dispatch_broadcast_message), (bus_dispatch_message_handler),
328 (bus_dispatch_add_connection), (bus_dispatch_remove_connection):
330 * bus/driver.c: (bus_driver_send_service_deleted),
331 (bus_driver_send_service_created), (bus_driver_handle_hello),
332 (bus_driver_send_welcome_message),
333 (bus_driver_handle_list_services), (bus_driver_remove_connection),
334 (bus_driver_handle_message):
336 Refactor code, put the message dispatching in its own file. Use
337 _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client
340 2003-01-25 Anders Carlsson <andersca@codefactory.se>
342 * dbus/dbus-internals.h:
343 Add _DBUS_HANDLE_OOM macro, it doesn't do anything currently.
345 * dbus/dbus-message.c: (dbus_message_get_sender):
346 * dbus/dbus-message.h:
347 Implement dbus_message_get_sender.
349 * dbus/dbus-protocol.h:
350 Add message and service defines.
352 2003-01-25 Anders Carlsson <andersca@codefactory.se>
354 * dbus/dbus-connection.c: (dbus_connection_send_message):
355 * dbus/dbus-message-internal.h:
356 * dbus/dbus-message.c: (_dbus_message_get_client_serial),
357 (dbus_message_write_header):
358 Remove _dbus_messag_unlock and don't set the client serial on a
359 message if one already exists.
361 2003-01-24 Havoc Pennington <hp@pobox.com>
363 * dbus/dbus-list.c (alloc_link): put a thread lock on the global
366 * bus/driver.c (bus_driver_handle_list_services): fix a leak
369 2003-01-25 Anders Carlsson <andersca@codefactory.se>
371 * dbus/dbus-list.c: (alloc_link), (free_link):
372 Use a memory pool for the links.
374 2003-01-25 Anders Carlsson <andersca@codefactory.se>
376 * bus/connection.c: (bus_connection_foreach):
378 Add new bus_connection_foreach function.
380 * bus/driver.c: (send_one_message), (bus_driver_broadcast_message):
381 Add function that broadcasts a message to all clients.
383 (bus_driver_send_service_created), (bus_driver_handle_hello),
384 (bus_driver_send_welcome_message),
385 (bus_driver_handle_list_services), (bus_driver_message_handler):
386 Implement functions that take care of listing services, and notifying
387 clients when new services are created.
389 * bus/services.c: (bus_services_list):
391 Add new function that returns an array of strings with the currently
396 Update copyright year.
398 2003-01-25 Anders Carlsson <andersca@codefactory.se>
400 * dbus/dbus-connection.c: (dbus_connection_send_message):
401 Unlock the message in case it was sent earlier.
403 (dbus_connection_send_message_with_reply_and_block):
404 Remove the reply message from the list.
406 * dbus/dbus-marshal.c: (_dbus_demarshal_string_array):
407 Set array_len and new_pos correctly.
409 (_dbus_marshal_test):
412 * dbus/dbus-message-internal.h:
413 * dbus/dbus-message.c: (_dbus_message_get_reply_serial):
414 New function that returns the reply serial.
416 (_dbus_message_unlock):
417 New function that unlocks a message and resets its header.
419 (dbus_message_append_string_array),
420 (dbus_message_get_fields_valist),
421 (dbus_message_iter_get_field_type),
422 (dbus_message_iter_get_string_array),
423 (dbus_message_get_fields),
424 (dbus_message_append_fields_valist):
425 Handle string arrays.
427 (dbus_message_set_sender):
428 Make this function public since the bus daemon needs it.
430 (decode_header_data):
431 Set the reply serial to -1 initially.
433 * dbus/dbus-message.h:
434 Add dbus_message_set_sender.
436 2003-01-24 Havoc Pennington <hp@pobox.com>
438 * doc/dbus-specification.sgml: add some stuff
440 2003-01-22 Havoc Pennington <hp@pobox.com>
442 * doc/dbus-specification.sgml: Start to document the protocol.
444 2003-01-22 Havoc Pennington <hp@pobox.com>
446 * dbus/dbus-connection.c
447 (dbus_connection_send_message_with_reply_and_block): add some @todo
449 * bus/driver.c (bus_driver_add_connection): add a FIXME about memleak
451 2003-01-21 Havoc Pennington <hp@pobox.com>
453 (patch untested because can't compile)
455 * bus/driver.c (create_unique_client_name): make this function
456 never recycle client names. Also, caller should initialize
459 * dbus/dbus-sysdeps.c (_dbus_get_current_time): new function
461 2003-01-21 Anders Carlsson <andersca@codefactory.se>
463 * dbus/dbus-marshal.c: (_dbus_marshal_double),
464 (_dbus_marshal_int32), (_dbus_marshal_uint32),
465 (_dbus_marshal_int32_array), (_dbus_marshal_uint32_array),
466 (_dbus_marshal_double_array), (_dbus_marshal_string_array),
467 (_dbus_demarshal_int32_array), (_dbus_demarshal_uint32_array),
468 (_dbus_demarshal_double_array), (_dbus_demarshal_string_array),
469 (_dbus_marshal_get_field_end_pos), (_dbus_marshal_test):
470 * dbus/dbus-marshal.h:
471 * dbus/dbus-protocol.h:
472 Add support for marshalling and demarshalling integer, double
475 2003-01-21 Anders Carlsson <andersca@codefactory.se>
480 * bus/connection.c: (connection_disconnect_handler):
481 Remove the connection from the bus driver's list.
483 (connection_watch_callback): Dispatch messages.
485 (free_connection_data): Free connection name.
487 (bus_connection_setup): Add connection to the bus driver's list.
488 (bus_connection_remove_owned_service):
489 (bus_connection_set_name), (bus_connection_get_name):
490 Add functions for setting and getting the connection's name.
493 Add function headers.
495 * bus/driver.c: (create_unique_client_name),
496 (bus_driver_handle_hello_message),
497 (bus_driver_send_welcome_message), (bus_driver_message_handler),
498 (bus_driver_add_connection), (bus_driver_remove_connection):
501 * bus/services.c: (bus_service_free):
503 New file that handles communication and registreation with the bus
506 2003-01-21 Anders Carlsson <andersca@codefactory.se>
508 * dbus/dbus-connection.c: (dbus_connection_send_message):
509 Add a new client_serial parameter.
511 (dbus_connection_send_message_with_reply):
512 Remove a @todo since we've implemented the blocking function.
514 (dbus_connection_send_message_with_reply_and_block):
515 New function that sends a message and waits for a reply and
516 then returns the reply.
518 * dbus/dbus-connection.h:
521 * dbus/dbus-errors.c: (dbus_result_to_string):
522 * dbus/dbus-errors.h:
525 * dbus/dbus-message-internal.h:
526 * dbus/dbus-message.c: (_dbus_message_get_reply_serial),
527 (_dbus_message_set_sender), (dbus_message_write_header),
528 (dbus_message_new_reply), (decode_header_data),
529 (_dbus_message_loader_return_buffer), (_dbus_message_test):
530 * dbus/dbus-message.h:
531 Add new functions that set the reply serial and sender.
532 Also marshal and demarshal them correctly and add test.
534 * dbus/dbus-protocol.h:
535 Add new DBUS_MESSAGE_TYPE_SENDER.
538 * glib/dbus-gmain.c: (watch_callback), (free_callback_data),
539 (add_watch), (remove_watch), (add_timeout), (remove_timeout),
540 (dbus_connection_hookup_with_g_main):
541 * glib/test-dbus-glib.c: (main):
542 Rewrite to use GIOChannel and remove the GSource crack.
544 * test/echo-client.c: (main):
545 * test/watch.c: (check_messages):
546 Update for changed APIs
548 2003-01-19 Anders Carlsson <andersca@codefactory.se>
550 * dbus/Makefile.am: Add dbus-timeout.[cħ]
552 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport):
553 Create a DBusTimeoutList.
554 (dbus_connection_set_timeout_functions): Add new function to
555 set timeout callbacks
557 * dbus/dbus-connection.h: Add public DBusTimeout API.
559 * dbus/dbus-message.c: (dbus_message_get_service):
560 * dbus/dbus-message.h: New function.
562 * dbus/dbus-server.c: Fix small doc typo.
564 * dbus/dbus-timeout.[ch]: New files for mainloop timeouts.
566 2003-01-19 Anders Carlsson <andersca@codefactory.se>
568 * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all
569 of the string, just as long as specified.
571 2003-01-19 Havoc Pennington <hp@pobox.com>
573 * dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
576 * dbus/dbus-server.c (dbus_server_set_max_connections)
577 (dbus_server_get_max_connections, dbus_server_get_n_connections):
578 keep track of current number of connections, and add API for
579 setting a max (but haven't implemented enforcing the max yet)
581 2003-01-18 Havoc Pennington <hp@pobox.com>
583 * dbus/dbus-transport-unix.c (unix_do_iteration): only do the
584 reading/writing if read_watch != NULL or write_watch != NULL.
586 * dbus/dbus-message.c (_dbus_message_loader_return_buffer): fix
587 the message loader code to actually load message->header and
588 message->body into the newly-created message.
590 * dbus/dbus-transport-unix.c (check_write_watch): fix a mem leak
593 * dbus/dbus-connection.c (dbus_connection_set_max_message_size)
594 (dbus_connection_get_max_message_size)
595 (dbus_connection_set_max_live_messages_size)
596 (dbus_connection_get_max_live_messages_size): implement some
597 resource limitation functions
599 * dbus/dbus-resources.c: new file implementing some of the
600 resource limits stuff
602 * dbus/dbus-message.c (dbus_message_iter_get_byte_array): add
603 missing docs, add @todo to handle OOM etc.
605 * dbus/dbus-marshal.c (_dbus_demarshal_byte_array): add missing
608 2003-01-18 Havoc Pennington <hp@pobox.com>
610 * dbus/dbus-connection.c (dbus_connection_unref): disconnect the
611 connection if it hasn't been already.
613 * dbus/dbus-connection.h: kill off the idea of an ErrorFunction,
614 replace with DisconnectFunction.
616 2003-01-18 Havoc Pennington <hp@pobox.com>
618 Building --disable-verbose-mode --disable-asserts --disable-tests
619 cuts the library from 112K to 45K or so
621 * configure.in: check for varargs macro support,
622 add --enable-verbose-mode, --enable-asserts.
624 * dbus/dbus-internals.h (_dbus_assert): support
626 (_dbus_verbose): support DBUS_ENABLE_VERBOSE_MODE
628 2003-01-18 Havoc Pennington <hp@pobox.com>
630 * dbus/dbus-test.c: include config.h so that tests actually run
632 * dbus/dbus-string.c: add assertions that stuff is 8-byte aligned,
633 so the failure mode when that assumption fails will be plenty
636 2003-01-18 Havoc Pennington <hp@pobox.com>
638 * configure.in: default --enable-tests to $USE_MAINTAINER_MODE
640 * dbus/Makefile.am: fix it up so dubs-test-main.c is included in
643 * test/Makefile.am: don't use special variable "TESTS" for echo-*
644 since we don't want to use those in make check
646 2003-01-15 Havoc Pennington <hp@redhat.com>
652 2003-01-15 Havoc Pennington <hp@redhat.com>
654 * test/Makefile.am: fix so that test source code ends up in the
655 distribution on make distcheck
657 2003-01-15 Havoc Pennington <hp@redhat.com>
663 2003-01-15 Havoc Pennington <hp@redhat.com>
665 * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests):
666 fix build when --disable-tests
668 * Makefile.am (EXTRA_DIST): put HACKING in here
670 * HACKING: document procedure for making a tarball release.
672 2003-01-14 Anders Carlsson <andersca@codefactory.se>
674 * bus/connection.c: (connection_error_handler),
675 (bus_connection_setup):
676 * bus/main.c: (main):
677 Make sure that the DBusConnectionData struct is NULLed
678 out to prevent a segfault.
680 * dbus/dbus-errors.c: (dbus_result_to_string):
681 * dbus/dbus-errors.h:
682 * dbus/dbus-message.c: (dbus_message_get_fields),
683 (dbus_message_get_fields_valist), (_dbus_message_test):
684 * dbus/dbus-message.h:
685 Make dbus_message_get_fields return a result code so we can
686 track invalid fields as well as oom.
688 2003-01-11 Havoc Pennington <hp@pobox.com>
690 * configure.in: change --enable-test/--enable-ansi action-if-given
691 to enable_foo=$enableval instead of enable_foo=yes
693 2003-01-08 Havoc Pennington <hp@pobox.com>
695 * dbus/dbus-string.c (_dbus_string_align_length): new function
697 * dbus/dbus-test-main.c: move main() for test app here
699 (dbus_internal_symbol_do_not_use_run_tests): we have to export a
700 symbol to run tests, because dbus-test isn't in the main
703 Code review nitpicks.
705 * dbus/dbus-message.c (dbus_message_write_header): add newlines
706 for people with narrow emacs ;-). Assert client_serial was filled
707 in. Assert message->name != NULL.
708 (dbus_message_append_fields): have "first_field_type" arg separate
709 from va list, needed for C++ binding that also uses varargs IIRC
710 and helps with type safety
711 (dbus_message_new): add @todo about using DBusString to store
712 service/name internally
713 (dbus_message_new): don't leak ->service and ->name on OOM later
715 (dbus_message_unref): free the service name
716 (dbus_message_get_fields): same change to varargs
717 i.e. first_field_type
718 (_dbus_message_loader_return_buffer): assert that the message data
719 is aligned (if not it's a bug in our code). Put in verbose griping
720 about why we set corrupted = TRUE.
721 (decode_header_data): add FIXME that char* is evil. Was going to
722 add FIXME about evil locale-specific string.h strncmp, but just
723 switched to wacky string-as-uint32 optimization. Move check for
724 "no room for field name" above get_const_data_len() to avoid
725 assertion failure in get_const_data_len if we have trailing 2
726 bytes or the like. Check for service and name fields being
727 provided twice. Don't leak service/name on error. Require field
728 names to be aligned to 4 bytes.
730 * dbus/dbus-marshal.c: move byte swap stuff to header
731 (_dbus_pack_int32): uscore-prefix
732 (_dbus_unpack_int32): uscore-prefix
733 (_dbus_unpack_uint32): export
734 (_dbus_demarshal_string): add @todo complaining about use of
736 (_dbus_marshal_get_field_end_pos): add @todo about bad error
737 handling allowing corrupt data to go unchecked
739 2003-01-08 Havoc Pennington <hp@redhat.com>
741 * dbus/dbus-transport-unix.c (unix_do_iteration): add read/write
742 to the select() as needed for authentication. (should be using
743 _dbus_poll() not select, but for another day)
745 * dbus/dbus.h: include dbus/dbus-protocol.h
747 2003-01-08 Anders Carlsson <andersca@codefactory.se>
749 * dbus/Makefile.am (dbusinclude_HEADERS): Install
752 2003-01-08 Anders Carlsson <andersca@codefactory.se>
754 * dbus/dbus-internals.c: (_dbus_type_to_string):
755 New function that returns a string describing a type.
757 * dbus/dbus-marshal.c: (_dbus_demarshal_byte_array):
758 * dbus/dbus-marshal.h:
759 * dbus/dbus-message.c: (dbus_message_get_fields_valist),
760 (dbus_message_iter_get_field_type), (dbus_message_iter_get_double),
761 (dbus_message_iter_get_byte_array):
762 * dbus/dbus-message.h:
763 Add new convenience functions for appending and getting message fields.
764 Also add demarshalling routines for byte arrays.
766 2003-01-07 Anders Carlsson <andersca@codefactory.se>
768 * dbus/dbus-connection-internal.h:
769 * dbus/dbus-connection.c: (_dbus_connection_new_for_transport),
770 (_dbus_connection_get_next_client_serial),
771 (dbus_connection_send_message):
772 * dbus/dbus-internals.h:
773 * dbus/dbus-marshal.c: (unpack_uint32), (dbus_unpack_int32),
774 (dbus_pack_int32), (_dbus_marshal_double), (_dbus_marshal_int32),
775 (_dbus_marshal_uint32), (_dbus_demarshal_double),
776 (_dbus_demarshal_int32), (_dbus_demarshal_uint32),
777 (_dbus_demarshal_string), (_dbus_marshal_get_field_end_pos),
778 (_dbus_verbose_bytes), (_dbus_marshal_test):
779 * dbus/dbus-marshal.h:
780 * dbus/dbus-message-internal.h:
781 * dbus/dbus-message.c: (_dbus_message_set_client_serial),
782 (dbus_message_write_header), (_dbus_message_lock),
783 (dbus_message_new), (dbus_message_ref), (dbus_message_unref),
784 (dbus_message_get_name), (dbus_message_append_int32),
785 (dbus_message_append_uint32), (dbus_message_append_double),
786 (dbus_message_append_string), (dbus_message_append_byte_array),
787 (dbus_message_get_fields_iter), (dbus_message_iter_ref),
788 (dbus_message_iter_unref), (dbus_message_iter_has_next),
789 (dbus_message_iter_next), (dbus_message_iter_get_field_type),
790 (dbus_message_iter_get_string), (dbus_message_iter_get_int32),
791 (dbus_message_iter_get_uint32), (dbus_message_iter_get_double),
792 (decode_header_data), (_dbus_message_loader_return_buffer),
793 (message_iter_test), (_dbus_message_test):
794 * dbus/dbus-message.h:
795 * dbus/dbus-protocol.h:
796 * dbus/dbus-test.c: (main):
798 * glib/test-dbus-glib.c: (message_handler), (main):
799 * test/echo-client.c: (main):
800 * test/watch.c: (check_messages):
801 Make messages sendable and receivable for real.
803 2003-01-07 Anders Carlsson <andersca@codefactory.se>
805 * dbus/dbus-marshal.c: (_dbus_marshal_double),
806 (_dbus_marshal_string), (_dbus_marshal_byte_array):
807 * dbus/dbus-message.c: (dbus_message_append_int32),
808 (dbus_message_append_uint32), (dbus_message_append_double),
809 (dbus_message_append_string), (dbus_message_append_byte_array):
810 Handle OOM restoration.
812 2003-01-07 Anders Carlsson <andersca@codefactory.se>
814 * dbus/dbus-marshal.c: (_dbus_marshal_string),
815 (_dbus_demarshal_string), (_dbus_marshal_test):
816 * dbus/dbus-marshal.h:
817 * dbus/dbus-message.c: (dbus_message_get_name),
818 Document these functions.
820 (dbus_message_append_int32), (dbus_message_append_uint32),
821 (dbus_message_append_double), (dbus_message_append_string),
822 (dbus_message_append_byte_array):
823 * dbus/dbus-message.h:
824 Add functions for adding message fields of different types.
826 * dbus/dbus-protocol.h:
827 Add the different types.
829 2003-01-05 Havoc Pennington <hp@pobox.com>
831 * bus/connection.c: implement routines for handling connections,
832 first thing is keeping a list of owned services on each connection
833 and setting up watches etc.
835 * bus/services.c: implement a mapping from service names to lists
838 * dbus/dbus-hash.c: add DBUS_HASH_POINTER
840 * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions
841 to use static mutexes for global data
843 * dbus/dbus-connection.c (dbus_connection_set_data): add new
844 collection of functions to set/get application-specific data
845 on the DBusConnection.
847 2003-01-04 Havoc Pennington <hp@pobox.com>
849 * dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function
850 (_dbus_poll): new function
852 * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro
855 * bus/loop.c: initial code for the daemon main loop
857 2003-01-04 Havoc Pennington <hp@pobox.com>
859 * test/watch.c (error_handler): make it safe if the error handler
860 is called multiple times (if we s/error handler/disconnect
861 handler/ we should just guarantee it's called only once)
863 * dbus/dbus-transport.c (_dbus_transport_disconnect): call the
864 error handler on disconnect (it's quite possible we should
865 just change the error handler to a "disconnect handler," I'm
866 not sure we have any other meaningful errors)
868 * configure.in: check for getpwnam_r
870 * dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
871 dbus/dbus-auth.c: add credentials support, add EXTERNAL auth
872 mechanism as in SASL spec, using socket credentials
874 * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): new function
875 (_dbus_send_credentials_unix_socket): new function
877 * dbus/dbus-sysdeps.c (_dbus_accept_unix_socket): rename just
879 (_dbus_write): only check errno if <0 returned
880 (_dbus_write_two): ditto
882 2003-01-02 Anders Carlsson <andersca@codefactory.se>
884 * dbus/dbus-marshal.c: (_dbus_marshal_utf8_string),
885 (_dbus_marshal_byte_array), (_dbus_demarshal_utf8_string),
886 (_dbus_marshal_test):
887 * dbus/dbus-marshal.h:
888 Add _dbus_marshal_byte_array and rename _dbus_marshal_string
889 to _dbus_marshal_utf8_string. Also fix some tests.
891 2002-12-28 Harri Porten <porten@kde.org>
893 * configure.in: added check for C++ compiler and a very cheesy
894 check for the Qt integration
896 * Makefile.am (SUBDIRS): compile qt subdir if support is enabled
898 * qt/Makefile.am: added
900 * qt/.cvsignore: added
902 * qt/dbus-qthread.cc, qt/dbus-qthread.cpp: renamed former to
903 latter, added #ifdef QT_THREAD_SUPPORT guard.
905 * dbus/Makefile.am: added missing headers for make dist
907 2002-12-28 Kristian Rietveld <kris@gtk.org>
909 * dbus/Makefile.am: fixup export-symbols-regex.
911 2002-12-27 Anders Carlsson <andersca@codefactory.se>
913 * acinclude.m4: Add this file and put the
914 PKG_CHECK_MODULE macro in it.
916 2002-12-27 Anders Carlsson <andersca@codefactory.se>
918 * dbus/dbus-marshal.c: (_dbus_marshal_string),
919 (_dbus_demarshal_double), (_dbus_demarshal_int32),
920 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
921 (_dbus_marshal_test):
922 Make the demarshalling routines align the pos argument.
923 Add string marshalling tests and fix the obvious bugs
926 2002-12-26 Havoc Pennington <hp@pobox.com>
928 * dbus/dbus-auth.c: fixes fixes fixes
930 * dbus/dbus-transport-unix.c: wire up support for
931 encoding/decoding data on the wire
933 * dbus/dbus-auth.c (_dbus_auth_encode_data)
934 (_dbus_auth_decode_data): append to target string
935 instead of nuking it.
937 2002-12-26 Havoc Pennington <hp@pobox.com>
939 * dbus/dbus-marshal.h (DBUS_COMPILER_BYTE_ORDER): #ifdef
940 WORDS_BIGENDIAN then compiler byte order is DBUS_BIG_ENDIAN,
943 * dbus/dbus-marshal.c: Add macros to do int swapping in-place and
944 avoid swap_bytes() overhead (ignoring possible assembly stuff for
945 now). Main point is because I wanted unpack_uint32 to implement
947 (_dbus_verbose_bytes): new function
949 * dbus/dbus-string.c (_dbus_string_validate_ascii): new function
951 * dbus/dbus-message.c (_dbus_message_loader_get_is_corrupted): add
952 mechanism to handle a corrupt message stream
953 (_dbus_message_loader_new): fix preallocation to only prealloc,
956 * dbus/dbus-string.c (_dbus_string_skip_blank): fix this function
957 (_dbus_string_test): enhance tests for copy/move and fix the
960 * dbus/dbus-transport-unix.c: Hold references in more places to
961 avoid reentrancy problems
963 * dbus/dbus-transport.c: ditto
965 * dbus/dbus-connection.c (dbus_connection_dispatch_message): don't
966 leak reference count in no-message case
968 * test/watch.c (do_mainloop): handle adding/removing watches
969 during iteration over the watches. Also, ref the connection/server
970 stored on a watch, so we don't try to mangle a destroyed one.
972 * dbus/dbus-transport-unix.c (do_authentication): perform
975 * dbus/dbus-auth.c (get_state): add a state
976 AUTHENTICATED_WITH_UNUSED_BYTES and return it if required
977 (_dbus_auth_get_unused_bytes): append the unused bytes
978 to the passed in string, rather than prepend
980 * dbus/dbus-transport.c (_dbus_transport_init_base): create
981 the auth conversation DBusAuth
983 * dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd)
984 (_dbus_transport_new_for_domain_socket): when creating a
985 transport, pass in whether it's a client-side or server-side
986 transport so we know which DBusAuth to create
988 2002-12-03 Havoc Pennington <hp@pobox.com>
990 * dbus/dbus-transport-unix.c (unix_finalize): finalize base
991 _after_ finalizing the derived members
992 (unix_connection_set): unref watch if we fail to add it
994 * dbus/dbus-connection.c (dbus_connection_unref): delete the
995 transport first, so that the connection owned by the
996 transport will be valid as the transport finalizes.
998 * dbus/dbus-transport-unix.c (unix_finalize): free the write_watch
999 if necessary, and remove watches from the connection.
1001 * dbus/dbus-watch.c (_dbus_watch_list_free): improve a comment
1003 2002-12-26 Anders Carlsson <andersca@codefactory.se>
1005 * dbus/dbus-marshal.c: (_dbus_marshal_string),
1006 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1007 (_dbus_demarshal_uint32), (_dbus_demarshal_string),
1008 (_dbus_marshal_test):
1009 * dbus/dbus-marshal.h:
1010 Add string marshal functions and have the demarshal functions
1011 return the new position.
1013 2002-12-25 Havoc Pennington <hp@pobox.com>
1015 * doc/dbus-sasl-profile.txt: docs on the authentication protocol,
1016 it is a simple protocol that just maps directly to SASL.
1018 * dbus/dbus-auth.h, dbus/dbus-auth.c: authentication protocol
1019 initial implementation, not actually used yet.
1021 * dbus/dbus-string.c (_dbus_string_find): new function
1022 (_dbus_string_equal): new function
1023 (_dbus_string_base64_encode): new function
1024 (_dbus_string_base64_decode): new function
1026 2002-12-25 Anders Carlsson <andersca@codefactory.se>
1029 * dbus/dbus-marshal.c: (swap_bytes), (_dbus_marshal_double),
1030 (_dbus_marshal_int32), (_dbus_marshal_uint32),
1031 (_dbus_demarshal_double), (_dbus_demarshal_int32),
1032 (_dbus_demarshal_uint32), (_dbus_marshal_test):
1033 * dbus/dbus-marshal.h:
1034 * dbus/dbus-protocol.h:
1035 * dbus/dbus-test.c: (main):
1037 Add un-optimized marshalling/demarshalling routines.
1039 2002-12-25 Harri Porten <porten@kde.org>
1041 * qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
1043 2002-12-24 Zack Rusin <zack@kde.org>
1045 * qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
1046 * qt/dbus-qt.h: skeleton with two sample implemenatation of the
1049 2002-12-24 Havoc Pennington <hp@pobox.com>
1051 * glib/dbus-gthread.c: fix include
1053 * glib/dbus-glib.h: rename DBusMessageHandler for now.
1054 I think glib API needs to change, though, as you don't
1055 want to use DBusMessageFunction, you want to use the
1056 DBusMessageHandler object. Probably
1057 dbus_connection_open_with_g_main_loop()
1058 and dbus_connection_setup_g_main_loop() or something like that
1059 (but think of better names...) that just create a connection
1060 that has watch/timeout functions etc. already set up.
1062 * dbus/dbus-connection.c
1063 (dbus_connection_send_message_with_reply): new function just to
1064 show how the message handler helps us deal with replies.
1066 * dbus/dbus-list.c (_dbus_list_remove_last): new function
1068 * dbus/dbus-string.c (_dbus_string_test): free a string that
1071 * dbus/dbus-hash.c: use memory pools for the hash entries
1072 (rebuild_table): be more paranoid about overflow, and
1073 shrink table when we can
1074 (_dbus_hash_test): reduce number of sprintfs and write
1075 valid C89. Add tests for case where we grow and then
1076 shrink the hash table.
1078 * dbus/dbus-mempool.h, dbus/dbus-mempool.c: memory pools
1080 * dbus/dbus-connection.c (dbus_connection_register_handler)
1081 (dbus_connection_unregister_handler): new functions
1083 * dbus/dbus-message.c (dbus_message_get_name): new
1085 * dbus/dbus-list.c: fix docs typo
1087 * dbus/dbus-message-handler.h, dbus/dbus-message-handler.c:
1088 an object representing a handler for messages.
1090 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1093 * glib/dbus-gthread.c: (dbus_gthread_init):
1094 Don't use the gdbus prefix for public functions.
1096 2002-12-16 Anders Carlsson <andersca@codefactory.se>
1100 Add GLib checks and fixup .pc files
1104 * glib/dbus-gmain.c: (gdbus_connection_prepare),
1105 (gdbus_connection_check), (gdbus_connection_dispatch),
1106 (gdbus_add_connection_watch), (gdbus_remove_connection_watch),
1107 (dbus_connection_gsource_new):
1108 * glib/dbus-gthread.c: (dbus_gmutex_new), (dbus_gmutex_free),
1109 (dbus_gmutex_lock), (dbus_gmutex_unlock), (dbus_gthread_init):
1110 * glib/test-dbus-glib.c: (message_handler), (main):
1113 2002-12-15 Harri Porten <porten@kde.org>
1115 * autogen.sh: check for libtoolize before attempting to use it
1117 * dbus/dbus-transport-unix.c: include <sys/time.h> for timeval
1120 * .cvsignore: ignore more stamp files
1122 * dbus/dbus-watch.c (_dbus_watch_list_new): fixed doc error
1124 * test/Makefile.am: added -I$(top_srcdir) to be able to compile
1125 without make install.
1127 2002-12-15 Havoc Pennington <hp@pobox.com>
1129 * dbus/dbus-threads.c: add thread stubs that a higher library
1130 layer can fill in. e.g. the GLib wrapper might fill them in with
1131 GThread stuff. We still need to use this thread API to
1132 thread-safe-ize the library.
1134 2002-12-12 Havoc Pennington <hp@pobox.com>
1136 * dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the
1137 below new interfaces and include fewer system headers.
1139 * dbus/dbus-sysdeps.c (_dbus_read): new function
1140 (_dbus_write): new function
1141 (_dbus_write_two): new function
1142 (_dbus_connect_unix_socket): new function
1143 (_dbus_listen_unix_socket): new function
1145 * dbus/dbus-message-internal.h: change interfaces to use
1148 2002-12-11 Havoc Pennington <hp@pobox.com>
1150 * dbus/dbus-types.h: add dbus_unichar
1152 * dbus/dbus-internals.c (_dbus_verbose): use _dbus_getenv
1154 * dbus/dbus-connection.c (dbus_connection_send_message): return
1157 * dbus/dbus-transport.c: include dbus-watch.h
1159 * dbus/dbus-connection.c: include dbus-message-internal.h
1161 * HACKING: add file with coding guidelines stuff.
1163 * dbus/dbus-string.h, dbus/dbus-string.c: Encapsulate all string
1164 handling here, for security purposes (as in vsftpd). Not actually
1165 using this class yet.
1167 * dbus/dbus-sysdeps.h, dbus/dbus-sysdeps.c: Encapsulate all
1168 system/libc usage here, as in vsftpd, for ease of auditing (and
1169 should also simplify portability). Haven't actually moved all the
1170 system/libc usage into here yet.
1172 2002-11-25 Havoc Pennington <hp@pobox.com>
1174 * dbus/dbus-internals.c (_dbus_verbose): fix to not
1175 always print the first verbose message.
1177 2002-11-24 Havoc Pennington <hp@pobox.com>
1179 * test/echo-client.c, test/echo-server.c: cheesy test
1182 * configure.in (AC_CHECK_FUNCS): check for writev
1184 * dbus/dbus-message.c (_dbus_message_get_network_data): new
1187 * dbus/dbus-list.c (_dbus_list_foreach): new function
1189 * dbus/dbus-internals.c (_dbus_verbose): new function
1191 * dbus/dbus-server.c, dbus/dbus-server.h: public object
1192 representing a server that listens for connections.
1194 * dbus/.cvsignore: create
1196 * dbus/dbus-errors.h, dbus/dbus-errors.c:
1197 public API for reporting errors
1199 * dbus/dbus-connection.h, dbus/dbus-connection.c:
1200 public object representing a connection that
1201 sends/receives messages. (Same object used for
1202 both client and server.)
1204 * dbus/dbus-transport.h, dbus/dbus-transport.c:
1205 Basic abstraction for different kinds of stream
1206 that we might read/write messages from.
1208 2002-11-23 Havoc Pennington <hp@pobox.com>
1210 * dbus/dbus-internals.h (_DBUS_INT_MAX): add _DBUS_INT_MIN
1213 * dbus/dbus-test.c (main): add list test, and include
1214 dbus-test.h as intended
1216 * dbus/dbus-hash.c (_dbus_hash_table_remove_string)
1217 (_dbus_hash_table_remove_int): return value indicates
1218 whether the entry existed to remove
1220 * dbus/dbus-list.c: add linked list utility class,
1223 * dbus/dbus-hash.c: add TODO item about shrinking the hash bucket
1226 2002-11-23 Havoc Pennington <hp@pobox.com>
1228 * Doxyfile.in (INCLUDE_FILE_PATTERNS): expand DBUS_BEGIN_DECLS/
1229 DBUS_END_DECLS to nothing, that should fix this once and for all
1231 * Doxyfile.in (JAVADOC_AUTOBRIEF): set to YES
1233 * dbus/dbus-message.c, dbus/dbus-hash.c:
1234 add some missing @brief
1236 2002-11-23 Havoc Pennington <hp@pobox.com>
1238 * dbus/dbus-message.h: put semicolons after DEBUG_BEGIN_DECLS
1239 to avoid confusing Doxygen
1241 * dbus/dbus-hash.c: @} not }@
1243 * dbus/dbus-message.c (struct DBusMessage): split out
1246 2002-11-23 Havoc Pennington <hp@pobox.com>
1248 * configure.in: pile on more warning flags if using gcc
1250 * Doxyfile.in (EXTRACT_STATIC): set to NO, so we don't have
1251 to document static functions
1253 * configure.in: add summary to end of configure so it
1254 looks nice and attractive
1256 * dbus/dbus-hash.c: finish implementation and write unit
1259 * configure.in: add --enable-tests to enable unit tests
1261 * dbus/dbus-test.c: test program to run unit tests
1262 for all files in dbus/*, initially runs a test for
1265 * dbus/dbus-internals.h: file to hold some internal utility stuff
1267 2002-11-22 Havoc Pennington <hp@redhat.com>
1269 * dbus/dbus-hash.c: copy in Tcl hash table, not yet
1270 "ported" away from Tcl
1272 * dbus/dbus-types.h: header for types such as dbus_bool_t
1274 2002-11-22 Havoc Pennington <hp@redhat.com>
1276 * dbus/dbus.h: fixups for doc warnings
1278 * Doxyfile.in (FILE_PATTERNS): we need to scan .h to pick up
1280 (QUIET): make it quiet so we can see warnings
1282 * dbus/dbus-memory.c: teach D-BUS to allocate and free memory
1284 2002-11-22 Havoc Pennington <hp@redhat.com>
1286 * Makefile.am: include "Doxyfile" target in all-local
1288 * configure.in: generate the Doxyfile
1290 * Doxyfile.in: move Doxyfile here, so we can use
1291 configure to generate a Doxyfile with the right
1294 2002-11-22 Havoc Pennington <hp@redhat.com>
1296 * dbus/dbus-message.c: move inline docs into .c file
1298 * Doxyfile (OUTPUT_DIRECTORY): move output to doc/api
1299 so all docs are under doc/
1300 (MAN_EXTENSION): generate man pages. Use extension
1301 ".3dbus" which matches ".3qt" on my system,
1302 I guess this is OK, I don't know really.
1303 (FILE_PATTERNS): look for .c files not .h, makes sense
1306 2002-11-22 Havoc Pennington <hp@pobox.com>
1308 * Makefile.am (SUBDIRS): rename subdir "server" to "bus"
1309 because any app can be a server, and any app can be a client,
1310 the bus is a special kind of server.
1312 Thu Nov 21 23:35:31 2002 Zack Rusin <zack@kde.org>
1314 * Doxyfile : adding. Still needs Makefile rules to be generated
1315 automatically (just run "doxygen" in the toplevel dir for now to
1318 * dbus/dbus-message.h : Adding sample docs (javadoc since
1319 resembles gtk-doc a little more)
1321 * dbus/dbus.h : Adding sample docs
1323 2002-11-21 Havoc Pennington <hp@redhat.com>
1325 * dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
1326 so we can allow ourselves to include files directly,
1327 instead of having to use dbus.h
1329 * dbus/dbus.h: fill in
1331 * dbus/dbus-message.h: sketch out a sample header file.
1332 Include griping if you include it directly instead of
1335 * dbus/dbus-macros.h: new file with macros for extern "C",
1336 TRUE/FALSE, NULL, etc.
1338 * doc/file-boilerplate.c: put include guards in here
1340 2002-11-21 Havoc Pennington <hp@redhat.com>
1342 * doc/file-boilerplate.c: include both AFL and GPL boilerplate.
1344 * COPYING: include the GPL as well, and license code
1345 under both AFL and GPL.
1347 2002-11-21 Havoc Pennington <hp@redhat.com>
1349 * acconfig.h: get rid of this
1351 * autogen.sh (run_configure): add --no-configure option
1353 * configure.in: remove AC_ARG_PROGRAM to make
1354 autoconf complain less. add AC_PREREQ.
1355 add AC_DEFINE third arg.
1357 2002-11-21 Anders Carlsson <andersca@codefactory.se>
1360 Fix references so we can distcheck.
1362 2002-11-21 Havoc Pennington <hp@redhat.com>
1364 * Initial module creation