summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2004-03-19 Havoc Pennington <hp@redhat.com>dbus-0.21Havoc Pennington2004-03-196-4/+46
| | | | | | | | | | | | | | * NEWS: 0.21 updates * configure.in: 0.21 * doc/Makefile.am: add all XMLTO usage to DBUS_XML_DOCS_ENABLED * python/Makefile.am: change to avoid dist of dbus_bindings.c so you don't need pyrex to make dist * qt/Makefile.am (libdbus_qt_1_la_SOURCES): add integrator.h to sources; run moc
* 2004-03-18 Richard Hult <richard@imendio.com>Richard Hult2004-03-182-0/+22
| | | | | * dbus/dbus-message.c (dbus_message_get_auto_activation) (dbus_message_set_auto_activation): Add doxygen docs.
* 2004-03-16 Richard Hult <richard@imendio.com>Richard Hult2004-03-1610-32/+738
| | | | | | | | | | | | | | | | | | * bus/activation.c: (bus_activation_service_created), (bus_activation_send_pending_auto_activation_messages), (bus_activation_activate_service): * bus/activation.h: * bus/dispatch.c: (bus_dispatch), (check_nonexistent_service_auto_activation), (check_service_auto_activated), (check_segfault_service_auto_activation), (check_existent_service_auto_activation), (bus_dispatch_test): * bus/driver.c: (bus_driver_handle_activate_service): * bus/services.c: (bus_registry_acquire_service): * dbus/dbus-message.c: (dbus_message_set_auto_activation), (dbus_message_get_auto_activation): * dbus/dbus-message.h: * dbus/dbus-protocol.h: Implement auto-activation.
* 2004-03-12 Olivier Andrieu <oliv__a@users.sourceforge.net>Olivier Andrieu2004-03-123-1/+17
| | | | | | | | * dbus/dbus-marshal.c (_dbus_marshal_get_arg_end_pos): fix a bug with CUSTOM types. * dbus/dbus-message.c (message_iter_test, _dbus_message_test): add a unit test for this bug (used to fail).
* 2004-03-12 Mikael Hallendal <micke@imendio.com>Mikael Hallendal2004-03-122-8/+64
| | | | | | | | * bus/activation.c: (babysitter_watch_callback): notify all pending activations waiting for the same exec that the activation failed. (bus_activation_activate_service): shortcut the activation if we already waiting for the same executable to start up.
* 2004-03-12 Mikael Hallendal <micke@imendio.com>Mikael Hallendal2004-03-126-78/+831
| | | | | | | | | | | | | | | | * bus/activation.c: - Added service file reloading. Each service files directory is kept in an hash table in BusActivation and each BusActivationEntry knows what .service-file it was read from. So when you try to activate a service the bus will check if it's been updated, removed or if new .service-files has been installed. - Test code at the bottom for the service file reloading. * bus/test-main.c: (main): * bus/test.h: - added service reloading test. * dbus/dbus-sysdeps.c: * dbus/dbus-sysdeps.h: (_dbus_delete_directory): Added.
* 2004-03-08 Michael Meeks <michael@ximian.com>Michael Meeks2004-03-082-1/+6
| | | | | * dbus/dbus-connection.c (_dbus_connection_block_for_reply): bail immediately if disconnected, to avoid busy loop.
* 2004-03-08 Michael Meeks <michael@ximian.com>Michael Meeks2004-03-082-40/+19
| | | | | * dbus/dbus-message.c (dbus_message_iter_get_args_valist): cleanup cut/paste/inefficiency.
* 2004-03-01 David Zeuthen <david@fubar.dk>David Zeuthen2004-03-054-4/+118
| | | | | | | | | | | | * dbus/dbus-string.c (_dbus_string_append_printf_valist): Fix a bug where args were used twice. This bug resulted in a segfault on a Debian/PPC system when starting the messagebus daemon. Include dbus-sysdeps.h for DBUS_VA_COPY * dbus/dbus-sysdeps.h: Define DBUS_VA_COPY if neccessary. From GLib * configure.in: Check for va_copy; define DBUS_VA_COPY to the appropriate va_copy implementation. From GLib
* 2004-02-24 Joe Shaw <joe@ximian.com>Joe Shaw2004-02-242-1/+7
| | | | | * bus/services.c (bus_registry_acquire_service): We need to pass in the service name to dbus_set_error() to prevent a crash.
* thingiesZack Rusin2004-01-282-0/+5
|
* Slightily modified patch from Alex (blarf). I'll have to rething the accessZack Rusin2004-01-265-15/+120
| | | | to dbus internals from the wrappers.
* 2003-12-26 Anders Carlsson <andersca@gnome.org>Anders Carlsson2003-12-262-2/+6
| | | | * AUTHORS: Reveal my True identity.
* 2003-12-17 Mikael Hallendal <micke@imendio.com>Mikael Hallendal2003-12-172-0/+9
| | | | | * dbus/dbus-message.c: (dbus_message_append_args_valist): - Added case for DBUS_TYPE_BYTE, patch from Johan Hedberg.
* 2003-12-13 Mikael Hallendal <micke@imendio.com>Mikael Hallendal2003-12-132-0/+8
| | | | * doc/TODO: Added not about better error check of configuration files.
* 2003-12-02 Richard Hult <richard@imendio.com>Richard Hult2003-12-02148-147/+152
| | | | | * Update AFL version to 2.0 throughout the source files to reflect the update that was done a while ago.
* 2003-12-02 Richard Hult <richard@imendio.com>Richard Hult2003-12-022-2/+47
| | | | | | | | | | * dbus/dbus-message.c (dbus_message_iter_append_dict): Set wrote_dict_key to FALSE on the iter that the dict is appended to, just like when appending other types. Fixes a bug where a dict couldn't be put inside a dict. (dbus_message_iter_append_dict_key): Fix typo in warning message. (message_iter_test, _dbus_message_test): Add test case for dict inside dict.
* 2003-12-01 David Zeuthen <david@fubar.dk>David Zeuthen2003-12-012-2/+16
| | | | | | * python/dbus.py: Add the actual message when calling the reciever of a signal such that parameters can be inspected. Add the method remove_signal_receiver
* 2003-11-26 Mikael Hallendal <micke@imendio.com>Mikael Hallendal2003-11-2755-83/+190
| | | | | | * bus/*.[ch]: * dbus/*.[ch]: * glib/*.[ch]: Made ref functions return the pointer
* Adding DBusServer wrapper. Switching some thingies, looking pretty andZack Rusin2003-11-258-12/+215
| | | | | being cool... Anyway, we're done at a very basic level. I have to go back to something else now, but i'll try to commit an example sometime soon.
* As changelog says. Integration is pretty much there, so dbus should at leastZack Rusin2003-11-245-73/+124
| | | | use Qt for timeouts and watches comfortably now.
* Updating changelog.Zack Rusin2003-11-241-0/+9
| | | | | | What sucks is the lack of automatic moc file creation in the configuration system. Someone needs to copy over some of ours admin dir (and knowing life that's probably going to be me).
* Seperating integration with D-BUS from Connection to the internal IntegratorZack Rusin2003-11-245-89/+281
| | | | | | class. I simply hated the interfaces in the public Connection when it had to contain a bunch of friends and protected members that were never really meant to be seen.
* "Zack, you're not updating ChangeLog"... Only because I chose not to and notZack Rusin2003-11-231-0/+14
| | | | | | because i forgot. It was a political statemant rising awerness of the fact that our ozone layer is getting thiner. Glad you're with me on that one.
* Coding on dbus is like christmas. Just without christmas tree, presents, santaZack Rusin2003-11-235-10/+186
| | | | | | clause, shopping, food, cookies, carrols, eggs, bunnies, trick or treating, smoking crack... I don't quite remember where I was going with this but we're getting closer.
* 1) switching d-pointer names to just PrivateZack Rusin2003-11-233-8/+65
| | | | | | 2) starting workin on the connection binding 3) trying to find clean socks, committing the first two, the third one is hopeless
* Happy birthday to me, happy birthday to me... Well, it's not reallyZack Rusin2003-11-232-47/+53
| | | | | | | | my birthday, but it will be in like 8 months and for such a huge celebration I want to start preparing rather early. The marshelling in Message is crap (not the good kind of crap either). I'm not yet sure how we'll handle the transition from dcop but for now lets at least make it sane api wise.
* Match kde schematicsZack Rusin2003-11-231-3/+5
|
* thanksgiving break, lets start working on those bindings.Zack Rusin2003-11-232-78/+139
|
* 2003-11-19 Havoc Pennington <hp@redhat.com>dbus-0.20Havoc Pennington2003-11-193-2/+18
| | | | | | | | | * NEWS: update * configure.in: bump version to 0.20 * configure.in (have_qt): add yet another place to look for qt (someone hand trolltech a .pc file...)
* 2003-11-01 Havoc Pennington <hp@redhat.com>Havoc Pennington2003-11-013-2/+164
| | | | | * doc/dbus-specification.xml: add state machine docs on the auth protocol; just a first draft, I'm sure it's wrong.
* 2003-10-28 Havoc Pennington <hp@redhat.com>Havoc Pennington2003-10-292-28/+4
| | | | * dbus/dbus-message.c (get_next_field): delete unused function
* 2003-10-28 David Zeuthen <david@fubar.dk>David Zeuthen2003-10-292-1/+29
| | | | | * python/dbus_bindings.pyx.in: add get_dict to handle dictionaries return types. Fixup TYPE_* to reflect changes in dbus/dbus-protocol.h
* 2003-10-28 Havoc Pennington <hp@redhat.com>Havoc Pennington2003-10-285-31/+92
| | | | | | | | | | * bus/expirelist.c (do_expiration_with_current_time): detect failure of the expire_func due to OOM * bus/connection.c (bus_pending_reply_expired): return FALSE on OOM * bus/dispatch.c (check_send_exit_to_service): fix to handle the NoReply error that's now created by the bus when the service exits
* 2003-10-28 Havoc Pennington <hp@redhat.com>Havoc Pennington2003-10-283-273/+343
| | | | | | | | | | | * dbus/dbus-message.c (_dbus_message_test): enable and fix the tests for set_path, set_interface, set_member, etc. * dbus/dbus-string.c (_dbus_string_insert_bytes): allow 0 bytes * dbus/dbus-message.c (set_string_field): always just delete and re-append the field; accept NULL for deletion (re_align_fields_recurse): reimplement
* 2003-10-26 Havoc Pennington <hp@redhat.com>Havoc Pennington2003-10-264-29/+41
| | | | | | | | | | | | * dbus/dbus-connection.c: fix docs to properly describe the disconnected message (_dbus_connection_notify_disconnected): remove this function; we can't synchronously add the disconnected message, we have to do it after we've queued any remaining real messages (_dbus_connection_get_dispatch_status_unlocked): queue the disconnect message only if the transport has finished queueing all its real messages and is disconnected. (dbus_connection_disconnect): update the dispatch status here
* 2003-10-22 Havoc Pennington <hp@redhat.com>Havoc Pennington2003-10-226-6/+28
| | | | | | | * bus/bus.c (bus_context_check_security_policy): fix up assertion * bus/connection.c (bus_transaction_send_from_driver): set the destination to the connection's base service
* add missing fileHavoc Pennington2003-10-211-0/+36
|
* 2003-10-20 Havoc Pennington <hp@redhat.com>Havoc Pennington2003-10-2127-254/+874
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hmm, make check is currently not passing. * doc/dbus-specification.xml: add requirement that custom type names follow the same rules as interface names. * dbus/dbus-protocol.h: change some of the byte codes, to avoid duplication and allow 'c' to be 'custom'; dict is now 'm' for 'map' * doc/dbus-specification.xml: update type codes to match dbus-protocol.h, using the ASCII byte values. Rename type NAMED to CUSTOM. Add type OBJECT_PATH to the spec. 2003-10-17 Havoc Pennington <hp@redhat.com> * bus/driver.c (create_unique_client_name): use "." as separator in base service names instead of '-' * dbus/dbus-string.c (_dbus_string_get_byte): allow getting nul byte at the end of the string * dbus/dbus-internals.h (_DBUS_LIKELY, _DBUS_UNLIKELY): add optimization macros since string validation seems to be a slow point. * doc/dbus-specification.xml: restrict valid service/interface/member/error names. Add test suite code for the name validation. * dbus/dbus-string.c: limit service/interface/member/error names to [0-9][A-Z][a-z]_ * dbus/dbus-connection.c (dbus_connection_dispatch): add missing format arg to verbose spew * glib/dbus-gproxy.c (dbus_gproxy_call_no_reply): if not out of memory, return instead of g_error * test/test-service.c (path_message_func): support emitting a signal on request * dbus/dbus-bus.c (init_connections_unlocked): only fill in activation bus type if DBUS_BUS_ACTIVATION was set; default to assuming the activation bus was the session bus so that services started manually will still register. (init_connections_unlocked): fix so that in OOM situation we get the same semantics when retrying the function * test/test-service.c (main): change to use path registration, to test those codepaths; register with DBUS_BUS_ACTIVATION rather than DBUS_BUS_SESSION
* 2003-10-16 Havoc Pennington <hp@redhat.com>Havoc Pennington2003-10-173-27/+28
| | | | | | | | * glib/dbus-gtest-main.c: bracket with #ifdef DBUS_BUILD_TESTS * Makefile.am (GCOV_DIRS): remove "test", we don't care about test coverage of the tests (coverage-report.txt): don't move the .da and .bbg files around
* 2003-10-16 Havoc Pennington <hp@redhat.com>Havoc Pennington2003-10-162-1/+5
| | | | | * bus/bus.c (struct BusContext): remove struct field I didn't mean to put there
* 2003-10-16 Havoc Pennington <hp@redhat.com>Havoc Pennington2003-10-1620-123/+597
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bus/connection.c (bus_pending_reply_expired): either cancel or execute, not both (bus_connections_check_reply): use unlink, not remove_link, as we don't want to free the link; fixes double free mess * dbus/dbus-pending-call.c (dbus_pending_call_block): fix in case where no reply was received * dbus/dbus-connection.c (_dbus_pending_call_complete_and_unlock): fix a refcount leak * bus/signals.c (match_rule_matches): add special cases for the bus driver, so you can match on sender/destination for it. * dbus/dbus-sysdeps.c (_dbus_abort): print backtrace if DBUS_PRINT_BACKTRACE is set * dbus/dbus-internals.c: add pid to assertion failure messages * dbus/dbus-connection.c: add message type code to the debug spew * glib/dbus-gproxy.c (gproxy_get_match_rule): match rules want sender=foo not service=foo * dbus/dbus-bus.c (dbus_bus_get): if the activation bus is the session bus but DBUS_SESSION_BUS_ADDRESS isn't set, use DBUS_ACTIVATION_ADDRESS instead * bus/activation.c: set DBUS_SESSION_BUS_ADDRESS, DBUS_SYSTEM_BUS_ADDRESS if appropriate * bus/bus.c (bus_context_new): handle OOM copying bus type into context struct * dbus/dbus-message.c (dbus_message_iter_get_object_path): new function (dbus_message_iter_get_object_path_array): new function (half finished, disabled for the moment) * glib/dbus-gproxy.c (dbus_gproxy_end_call): properly handle DBUS_MESSAGE_TYPE_ERROR * tools/dbus-launch.c (babysit): support DBUS_DEBUG_OUTPUT to avoid redirecting stderr to /dev/null (babysit): close stdin if not doing the "exit_with_session" thing * dbus/dbus-sysdeps.c (_dbus_become_daemon): delete some leftover debug code; change DBUS_DEBUG_OUTPUT to only enable stderr, not stdout/stdin, so things don't get confused * bus/system.conf.in: fix to allow replies, I modified .conf instead of .conf.in again.
* 2003-10-14 David Zeuthen <david@fubar.dk>David Zeuthen2003-10-152-2/+9
| | | | | | | * python/dbus_bindings.pyx.in (MessageIter.get): fixed typo in argtype to arg_type when raising unknown arg type exception. Changed type list to reflect the changes in dbus-protocol.h so the bindings actually work.
* 2003-10-14 Havoc Pennington <hp@redhat.com>Havoc Pennington2003-10-154-32/+505
| | | | | | * test/decode-gcov.c: support gcc 3.3 also, though gcc 3.3 seems to have a bug keeping it from outputting the .da files sometimes (string_get_string): don't append garbage nul bytes to the string.
* Fix makefile.amSeth Nickell2003-10-151-0/+1
|
* 2003-10-15 Seth Nickell <seth@gnome.org>Seth Nickell2003-10-151-0/+6
| | | | | | * python/Makefile.am: Include dbus_h_wrapper.h in the dist tarball.
* 2003-10-14 Havoc Pennington <hp@redhat.com>Havoc Pennington2003-10-1413-256/+454
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * bus/bus.c (bus_context_check_security_policy): revamp this to work more sanely with new policy-based requested reply setup * bus/connection.c (bus_transaction_send_from_driver): set bus driver messages as no reply * bus/policy.c (bus_client_policy_check_can_receive): handle a requested_reply attribute on allow/deny rules * bus/system.conf: add <allow requested_reply="true"/> * bus/driver.c (bus_driver_handle_message): fix check for replies sent to the bus driver, which was backward. How did this ever work at all though? I think I'm missing something. * dbus/dbus-message.c (decode_header_data): require error and method return messages to have a reply serial field to be valid (_dbus_message_loader_queue_messages): break up this function; validate that reply serial and plain serial are nonzero; clean up the OOM/error handling. (get_uint_field): don't return -1 from this (dbus_message_create_header): fix signed/unsigned bug * bus/connection.c (bus_connections_expect_reply): save serial of the incoming message, not reply serial
* - the pending reply tracking isn't quite right. It currently simplyHavoc Pennington2003-10-141-1/+8
| | | | | | | | | blocks any reply if one wasn't pending. Instead, it needs to allow any reply if one was pending, and block otherwise. Suggest changing the check_reply() call to just get a boolean was_pending_reply value, pass that in to the policy engine, and allow <allow>/<deny> elements to match based on whether it was a pending reply.
* 2003-10-14 Havoc Pennington <hp@redhat.com>Havoc Pennington2003-10-1411-19/+527
| | | | | | | | | | | | | | * bus/connection.c: implement pending reply tracking using BusExpireList * bus/bus.c (bus_context_check_security_policy): verify that a reply is pending in order to allow a reply to be sent. Deny messages of unknown type. * bus/dbus-daemon-1.1.in: update to mention new resource limits * bus/bus.c (bus_context_get_max_replies_per_connection): new (bus_context_get_reply_timeout): new
* 2003-10-13 Seth Nickell <seth@gnome.org>Seth Nickell2003-10-132-3/+8
| | | | | | | * python/Makefile.am: Pass "make distcheck": remove a couple files from DIST_FILES that weren't included in the final version.