1. 26 Apr, 2005 1 commit
  2. 25 Apr, 2005 1 commit
    • John Palmieri's avatar
      * python/dbus_bindings.pyx.in (send_with_reply_handlers): New send · 8d40569d
      John Palmieri authored
      method for doing async calls
      (_pending_call_notification): New C function for handling pendning call
      (set_notify): New method for setting pending call notification
      * python/dbus.py: new version tuple "version" is set at (0, 40, 0)
      Async capabilities added to remote method calls
      (Sender): class removed
      (RemoteService): class removed
      (ObjectTree): class removed for now
      (RemoteObject): Renamed to ProxyObject
      (RemoteMethod): Renamed to ProxyMethod
      (method): Decorator added for decorating python methods as dbus methods
      (signal): Decorator added for decorating python methods as signal emitters
      (ObjectType): Metaclass added for generating introspection data and the
      method callback vtable
      (Interface): Wrapper class added to wrap objects in a dbus interface
      (Object): Uses ObjectType as its metaclass and exports Introspect
      of the org.freedesktop.DBus.Introspectable interface
      (ValidationException, UnknownMethodException): new exceptions
      * python/examples/*: Modified to fit with the new bindings
  3. 24 Apr, 2005 1 commit
    • Havoc Pennington's avatar
      2005-04-23 Havoc Pennington <hp@redhat.com> · 64f3d8f6
      Havoc Pennington authored
      	* dbus/dbus-message.c (dbus_message_append_args): fix doc comment,
      	reported by Tony Houghton
      	* test/test-service.c (main): test
      	* dbus/dbus-object-tree.c (find_handler): be sure we always init
      	the exact_match
      	(_dbus_object_tree_get_user_data_unlocked): new function used by
      	(do_register): add assertion test for get_user_data_unlocked
      	(object_tree_test_iteration): more tests
      	* dbus/dbus-connection.c (dbus_connection_get_object_path_data):
      	new function from Dan Reed to let you get the user data from
  4. 23 Apr, 2005 1 commit
  5. 19 Apr, 2005 2 commits
  6. 14 Apr, 2005 1 commit
  7. 13 Apr, 2005 3 commits
    • David Zeuthen's avatar
      2005-04-13 David Zeuthen <davidz@redhat.com> · a43b6f86
      David Zeuthen authored
              * doc/TODO: Added an "important for 1.0" item about selinux
              allow/deny messages
    • David Zeuthen's avatar
      2005-04-13 David Zeuthen <davidz@redhat.com> · 44656f53
      David Zeuthen authored
      	* bus/selinux.c: Add c-file-style to top of file
      	(log_audit_callback): Don't free the data here anymore
      	(bus_selinux_check): Don't take spid and tpid since appending
      	that to auxdata may OOM.
      	(bus_selinux_allows_acquire_service): Handle OOM and signal back
      	to the caller if we are OOM by taking an error object.
      	(bus_selinux_allows_send): -do-
      	* bus/selinux.h: Fix prototypes for bus_selinux_allows_acquire_service
      	and bus_selinux_allows_send
      	* bus/bus.c (bus_context_check_security_policy): Pass error and
      	pass on OOM thrown by bus_selinux_allows_send()
      	* bus/services.c (bus_registry_acquire_service): Pass error and
      	pass on OOM thrown by bus_selinux_allows_acquire_service()
    • Havoc Pennington's avatar
      2005-04-13 Havoc Pennington <hp@redhat.com> · 893f5b7b
      Havoc Pennington authored
      	* glib/dbus-gmain.c (message_queue_dispatch): only dispatch one
      	message at a time to avoid monopolizing the main loop, bug
      	#2953 from Benjamin Otte
  8. 10 Apr, 2005 1 commit
  9. 09 Apr, 2005 1 commit
    • Havoc Pennington's avatar
      2005-04-09 Havoc Pennington <hp@redhat.com> · 8475b3a8
      Havoc Pennington authored
      	* dbus/dbus-message-util.c (_dbus_message_test): fix signedness warning
      	* glib/dbus-glib-tool.c (main): fix warning
      	* glib/dbus-binding-tool-glib.c (generate_glue): fix warning
      	* dbus/dbus-connection.c (dbus_connection_read_write_dispatch):
      	add a new function that can be used in simple applications that
      	don't have a main loop and are willing to block
  10. 06 Apr, 2005 1 commit
    • David Zeuthen's avatar
      2005-04-05 David Zeuthen <davidz@redhat.com> · 9f138815
      David Zeuthen authored
      	Fix https://bugs.freedesktop.org/show_bug.cgi?id=2889
      	* glib/dbus-gmain.c:
      	(io_handler_destroy_source): Remove from list of IO handlers
      	of the ConnectionSetup object
      	(timeout_handler_destroy_source): -do- for timeout handlers
      	(io_handler_source_finalized): Don't remove from list since
      	we now do that in io_handler_destroy_source(). Renamed from
      	(timeout_handler_source_destroyed): -do- for timeout handlers
      	(connection_setup_free): It is now safe to iterate over all
      	IO and timeout handlers as the _destroy_source removes them
      	from the list synchronously
  11. 31 Mar, 2005 1 commit
  12. 29 Mar, 2005 3 commits
  13. 24 Mar, 2005 2 commits
  14. 22 Mar, 2005 1 commit
    • John Palmieri's avatar
      * tools/Makefile.am: Patch by Colin Walters that fixes distcheck · 6eab5141
      John Palmieri authored
      * dbus/dbus-userdb.c, dbus/dbus-userdb-util.c: Add patch we have
        had in Red Hat packages for a while but for some reason never
        got merged upstream
        (_dbus_is_a_number): New checks if a string
        can be converted to a number and does the conversion if it can
        (_dbus_user_database_lookup): Add check to see if the given username
        is a udi.  This allows udi's to be used instead of usernames in the
        config file.
        (_dbus_user_database_lookup_group): Add check to see if the given groupname
        is a gdi.  This allows gdi's to be used instead of groupnames in the
        config file.
  15. 21 Mar, 2005 3 commits
  16. 17 Mar, 2005 5 commits
    • Colin Walters's avatar
      2005-03-17 Tom Parker <palfrey@tevp.net> · 49c64e69
      Colin Walters authored
      	* dbus/dbus-userdb.c (_dbus_user_database_lookup): Don't
      	print DBUS_UID_UNSET; instead print passed username.  Also
      	be sure to actually use gid looked up in cache.
      	* dbus/dbus-userdb-util.c (_dbus_user_database_lookup_group): Ditto
      	for DBUS_GID_UNSET and groupname.
    • Colin Walters's avatar
      2005-03-17 Tom Parker <palfrey@tevp.net> · b651df55
      Colin Walters authored
      	* dbus/dbus-userdb.c (_dbus_user_database_lookup): Don't
      	print DBUS_UID_UNSET; instead print passed username.
      	* dbus/dbus-userdb-util.c (_dbus_user_database_lookup_group): Ditto
      	for DBUS_GID_UNSET and groupname.
    • Colin Walters's avatar
      *** empty log message *** · 20427aff
      Colin Walters authored
    • Colin Walters's avatar
      2005-03-17 Colin Walters <walters@verbum.org> · a6558767
      Colin Walters authored
      	* bus/print-introspect.c: Move to tools/.
      	* bus/run-with-tmp-session-bus.sh: Ditto.
      	* glib/Makefile.am (dbus-glib-bindings.h): Move
      	generation to tools/Makefile.am.
      	* test/glib/run-test.sh: Update to handle move
      	of run-with-tmp-session-bus.sh.
      	* test/glib/test-service-glib.c: Update to handle
      	move of dbus-glib-bindings.h.
      	* tools/print-introspect.c: Moved here
      	from bus/, and ported to GLib bindings.
      	* tools/run-with-tmp-session-bus.sh: Moved here
      	from bus/.
      	* tools/Makefile.am: Generate dbus-glib-bindings.h
      	and dbus-bus-introspect.xml here.
      	* tools/.cvsignore, glib/.cvsignore, bus/.cvsignore:
    • Colin Walters's avatar
      2005-03-14 Colin Walters <walters@verbum.org> · 6180ae69
      Colin Walters authored
      	* bus/driver.c (write_args_for_direction): Use
      	_dbus_string_get_const_data to retrieve string;
      	_dbus_string_get_const_data_len doesn't actually return
      	a NULL-terminated substring.
      	* test/glib/test-service-glib.c: Include dbus-glib-bindings.h.
      	(main): Change to use org_freedesktop_DBus_request_name
      	instead of using g_proxy_begin_call/end_call.
  17. 15 Mar, 2005 1 commit
  18. 13 Mar, 2005 6 commits
  19. 12 Mar, 2005 2 commits
    • Colin Walters's avatar
      2005-03-12 Colin Walters <walters@verbum.org> · 030cc1e5
      Colin Walters authored
      	* bus/driver.c (write_args_for_direction): New function,
      	parses a type signature into arguments and outputs to
      	(bus_driver_handle_introspect): Use it instead of
      	hardcoding XML for certain signatures.
      	* bus/Makefile.am (dbus-bus-introspect.xml): Add
      	dependency on dbus-daemon.
      	* glib/dbus-glib-tool.c (main): Parse ignore_unsupported
      	argument, pass it to dbus_binding_tool_output_glib_client.
      	* glib/dbus-binding-tool-glib.c
      	(generate_client_glue): Protect against multiple inclusion.
      	(dbus_binding_tool_output_glib_client): Add
      	* glib/dbus-binding-tool-glib.c (compute_client_method_name):
      	Change to just take iface prefix directly.
      	(write_formal_parameters): Clarify error message.
      	(check_supported_parameters): New function; checks to see type
      	signatures of method parameters are supported.
      	(generate_client_glue): Handle ignore_unsupported flag.
      	(dbus_binding_tool_output_glib_client): Handle ignore_unsupported
      	* glib/Makefile.am (dbus-glib-bindings.h): Pass
      	--ignore-unsupported by default until glib bindings
      	support arrays.
    • Colin Walters's avatar
      2005-03-11 Colin Walters <walters@verbum.org> · 3dea5c18
      Colin Walters authored
      	* glib/Makefile.am: Generate dbus-glib-bindings.h and
      	install it.
      	* bus/print-introspect.c: New file; prints introspection
      	data for a given name and object path.
      	* bus/run-with-tmp-session-bus.sh: New file, refactored
      	from test/glib/run-test.sh.  Creates a temporary session
      	bus and runs another program.
      	* test/glib/run-test.sh: Refactor to invoke
      	* bus/driver.c (bus_driver_handle_introspect): Fix to print new
      	introspection format.  Also change to use DBUS_TYPE_x_AS_STRING
      	macros instead of hardcoding.
      	* glib/.cvsignore, bus/.cvsignore, test/glib/.cvsignore: Update.
  20. 11 Mar, 2005 1 commit
    • Joe Shaw's avatar
      2005-03-11 Joe Shaw <joeshaw@novell.com> · 3c1d2d65
      Joe Shaw authored
      	* dbus/dbus-connection.c (dbus_connection_send_with_reply): Remove
      	this unref; it doesn't match up evenly in some codepaths.
      	(_dbus_connection_block_pending_call): Unref at every exitpoint;
      	this evenly matches with the ref near the top of this function.
  21. 09 Mar, 2005 2 commits
    • Joe Shaw's avatar
      2005-03-09 Joe Shaw <joeshaw@novell.com> · 59948748
      Joe Shaw authored
      	* dbus/dbus-object-tree.c
      	(_dbus_object_tree_unregister_and_unlock): If checks are enabled
      	and we try to unregister a path that's not registered, still go
      	through the process of unlocking and don't just return.
    • Colin Walters's avatar
      2005-03-09 Colin Walters <walters@verbum.org> · 74b1b354
      Colin Walters authored
      	* glib/dbus-gproxy.c (dbus_g_proxy_invoke): New method; calls
      	to this are generated for client-side wrappers.  Invokes a
      	D-BUS method and returns reply values.
      	* glib/dbus-binding-tool-glib.c (write_args_sig_for_direction): New
      	function; writes signature string for argument direction.
      	(write_args_for_direction): Change to pass input values directly
      	instead of via address, and fix indentation.
      	(generate_client_glue): Change to invoke dbus_g_proxy_invoke.  Also
      	make generated wrappers inlineable.
      	* dbus/dbus-message.c (dbus_message_iter_get_fixed_array): Add
      	note about using dbus_type_is_fixed.
      	* dbus/dbus-marshal-basic.c (_dbus_type_is_fixed): Moved to
      	dbus/dbus-signature.c as dbus_type_is_fixed.
      	All callers updated.
      	* dbus/dbus-signature.c (dbus_type_is_fixed): Moved here
      	from dbus/dbus-marshal-basic.c:_dbus_type_is_fixed.
      	* dbus/dbus-signature.h: Prototype.
      	* glib/dbus-binding-tool-glib.c (compute_marshaller_name): Fix
      	error printf code.
      	* test/glib/test-dbus-glib.c (main): Be sure to clear error as
      	appropriate instead of just freeing it.
      	(main): Free returned strings using g_free.
      	* test/glib/Makefile.am (test-service-glib-glue.h)
      	(test-service-glib-bindings.h): Add dependency on dbus-binding-tool.
      	* glib/dbus-gvalue.c (MAP_BASIC): Refactored from MAP_BASIC_INIT;
      	simply maps a simple D-BUS type to GType.
      	(dbus_dbus_type_to_gtype): Function which maps D-BUS type to
      	(dbus_gvalue_init): Just invoke dbus_dbus_type_to_gtype and
      	initialize the value with it.
      	(dbus_gvalue_binding_type_from_type): Unused, delete.
      	(dbus_gvalue_demarshal): Switch to hardcoding demarshalling for
      	various types instead of unmarshalling to value data directly.
      	Remove can_convert boolean.
      	(dbus_gvalue_marshal): Remove duplicate initialization; switch to
      	returning directly instead of using can_convert boolean.
      	(dbus_gvalue_store): New function; not related to D-BUS per-se.
      	Stores a GValue in a pointer to a value of its corresponding C
      	* glib/dbus-gvalue.h: Remove dbus_gvalue_binding_type_from_type,
      	add dbus_gvalue_store.