summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* With the permission of the original authors, removing the non-working and ↵Harald Fernengel2005-09-2327-1700/+2177
| | | | hopelessly unmaintained old Qt D-BUS bindings and adding the ones from KDE's SVN.
* * dbus/dbus-marshal-validate.c, doc/dbus-specification.xml,Waldo Bastian2005-09-126-53/+219
| | | | test/Makefile.am, test/test-names.c: allow hyphens in bus names.
* 2005-09-11 Mark McLoughlin <mark@skynet.ie>Mark McLoughlin2005-09-119-72/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/data/auth/fallback.auth-script: we don't retry the EXTERNAL method when we know its going to fail anymore. 2005-09-11 Mark McLoughlin <mark@skynet.ie> * dbus/dbus-connection-internal.h: rename (add|remove|toggle)_(watch|timeout) to unlocked() * dbus/dbus-connection.c: ditto. * dbus/dbus-timeout.c, dbus/dbus-transport-unix.c: Update some callers for the renaming. 2005-09-10 Mark McLoughlin <mark@skynet.ie> * dbus/dbus-auth.c: (record_mechanisms): don't retry the first auth mechanism because we know we're just going to get rejected again. * dbus/dbus-keyring.c: (_dbus_keyring_reload): Fix thinko ... and what a nasty little bugger to track down you were ... * dbus/dbus-connection.c: (_dbus_connection_add_watch), (_dbus_connection_remove_watch): add note about these needing the connection to be locked. (_dbus_connection_get_dispatch_status_unlocked): set status to DATA_REMAINS when we queue the disconnected message. * bus/dispatch.c: (bus_dispatch): fix warning. (check_existent_service_no_auto_start): Expect ChildSignaled error too. (check_existent_hello_from_self): fix another couple of warnings.
* 2005-09-08 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-09-085-4/+221
| | | | | | | | | | | | Patches from James Willcox <snorp@snorp.net> * mono/Makefile.am: Add Int16.cs and UInt16.cs * mono/DBusType/Array.cs: Handle multidimensional arrays, and support array "out" parameters. * mono/DBusType/Int16.cs, mono/DBusType/UInt16.cs: New files, for 16-bit int support.
* - update to next release versionJohn (J5) Palmieri2005-09-062-2/+2
|
* * Released 0.50dbus-0.50John (J5) Palmieri2005-09-0612-35/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Patch from Steve Grubb: - bus/activation.c (bus_activation_service_reload_test): clean up some indentation - dbus/dbus-keyring.c (_dbus_keyring_reload): fix conditional - dbus/dbus-message-factory.c (generate_special): fix a couple of buffer overflows in the test suite. This is non critical because it can not be exploited and this code is only run when doing a make check. * Patch from Yaakov Selkowitz: Build fixes for Cygwin - configure.in: Don't check and link against kdecore, only qt headers - dbus/Makefile.am: Add -no-undefined to libdbus_1_la_LDFLAGS - gcj/org/freedesktop/dbus/Makefile.am: add libdbus_gcj_1_la_LDFLAGS = -no-undefined - glib/Makefile.am: Add -no-undefined to libdbus_glib_1_la_LDFLAGS and $(DBUS_GLIB_LIBS) to dbus_binding_tool_LDADD - qt/Makefile.am: Add -no-undefined to libdbus_qt_1_la_LDFLAGS - tools/Makefile.am: Add platform extentions to binaries (i.e. .exe on windows) * configure.in: - Make it so if no suitable version of python is found we only disable building python instead of exiting the configure script - Require version 2.4 of glib for glib bindings - Up version to 0.50 * python/__init__.py: Sync version with libdbus to (0,50,0)
* 2005-09-05 Olivier Andrieu <oliv__a@users.sourceforge.net>Olivier Andrieu2005-09-052-71/+62
| | | | | | | | | * dbus/dbus-object-tree.c (find_subtree_recurse): a couple of optimizations (bug #710): - do a binary search in the tree - insert a new child at the right place directly, no need for qsort anymore - do the "double alloc" thing when allocating children
* * python/Makefile.am: Break on pyrexc errors instead of ignoring themJohn (J5) Palmieri2005-09-016-57/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * python/dbus_bindings.pyx: Memory management foo (global): remove hacky _user_data_references global list (GIL_safe_cunregister_function_handler): userdata now stuffed into tuples. Unref user_data (GIL_safe_cmessage_function_handler): userdata now stuffed into tuples (Connection::__del__): Remove and replace with __dealloc__ method (Connection::add_filter): Stuff user_data into a tuple. Use Py_INCREF to keep tuple from being deallocated instead of the global var hack (Connection::register_object_path): Stuff user_data into a tuple. Use Py_INCREF to keep tuple from being deallocated instead of the global var hack (Connection::register_fallback): Stuff user_data into a tuple. Use Py_INCREF to keep tuple from being deallocated instead of the global var hack (GIL_safe_pending_call_notification): Don't unref the message because it gets unreffed when going out of scope. Py_XDECREF the user_data (PendingCall::__del__): Remove and replace with __dealloc__ method (PendingCall::set_notify): ref the pending call because we will need it to stick around for when the notify callback gets called (Message::__del__): Remove and replace with __dealloc__ method * python/dbus_glib_bindings.pyx (init_gthreads): Changed to gthreads_init to match up with the dbus call * python/glib.py (init_threads): Changed to threads_init to match up with gobject.threads_init(). init_threads is kept for backwards compat but will most likely be deprecated in the future * test/python/test-client.py: - revamp to use Python's unittest functionality - add async call tests - setup threads in glib and dbus so we make sure locks are working
* * python/dbus_bindings.pyxJohn (J5) Palmieri2005-08-312-45/+78
| | | | | | | | | | | (_pending_call_notification, cunregister_function_handler, cmessage_function_handler): All callback functions have been rearranged to workaround a bug in Pyrex when working with the GIL which is Python's global lock when dealing with threads. They have been split into a wrapper function (which assumes the name of the old function) and a _GIL_safe_<function name> function which contains the functionality of the old function. This ensures that Pyrex does not write code the lock is released.
* * python/dbus_bindings.pyx (_pending_call_notification): Obtain theJohn (J5) Palmieri2005-08-302-10/+20
| | | | GIL global lock when calling back into Python
* * Release 0.36.2John (J5) Palmieri2005-08-294-4/+21
| | | | | | | | | | | * Add Havoc's patch that never got applied to HEAD (Bug #2436): * bus/policy.c (bus_policy_allow_user): change default "user is allowed" to be "user has same uid as the bus itself"; any allow/deny rules will override. * bus/session.conf.in: don't allow all users, since now by default the user that ran the bus can connect.
* fixed two typos in API docsHarald Fernengel2005-08-261-2/+2
|
* 2005-08-26 Colin Walters <walters@verbum.org>Colin Walters2005-08-262-0/+7
| | | | | | * tools/dbus-print-message.c (print_message): Flush stdout after printing a message, so that redirecting to a file, then hitting Ctrl-C works.
* * s/Message(_create=0)/EmptyMessage everywhere elseJohn (J5) Palmieri2005-08-265-7/+17
| | | | | | * test/python/test-{server|client}.py: add the python/.libs directory to the lookup path so dbus_bindings and dbus_glib_bindings don't get picked up from the system
* * python/dbus_bindings.pyx: Tracked down a major memleak and fixed itJohn (J5) Palmieri2005-08-263-17/+29
| | | | | | | (EmptyMessage): new class that subclasses Message. This is a workaround to a Pyrex bug that fails to call __del__ when the Message object goes out of scope. For some reason subclassing Message fixes this bug (Bus::send_with_reply_and_block): use EmptyMessage instead of Message
* 2005-08-25 Colin Walters <walters@verbum.org>Colin Walters2005-08-262-1/+7
| | | | | * glib/dbus-gproxy.c (dbus_g_proxy_call): Doc update, thanks to Ryan Lortie for the suggestion.
* links to some pending tasksHavoc Pennington2005-08-251-1/+10
|
* * forgot to add the service fileJohn (J5) Palmieri2005-08-251-0/+3
|
* * test/python: Add python regression testJohn (J5) Palmieri2005-08-257-2/+147
| | | | | | * configure.in: Add test/python/Makefile * test/Makefile.am: Add the python directory to SUBDIRS
* - Merged changed from the DBUS_0_36_1 bugfix branchJohn (J5) Palmieri2005-08-245-9/+31
|
* - Bumped versionJohn (J5) Palmieri2005-08-231-1/+1
|
* * Release 0.36dbus-0.36John (J5) Palmieri2005-08-232-0/+26
|
* *** empty log message ***Colin Walters2005-08-231-2/+1
|
* 2005-08-23 Colin Walters <walters@verbum.org>Colin Walters2005-08-232-6/+6
| | | | | * test/glib/Makefile.am (test_profile_LDADD): Don't multiply-define EXTRA_DIST.
* * python/dbus_glib_bindings.pyx: reorder imports and c definitionsJohn (J5) Palmieri2005-08-232-7/+11
| | | | | to fix some wranings. We now use dbus_bindings.DBusConnection instead of defining DBusConnection ourselves.
* * python/dbus.pth: New path file to fix up problems when installingJohn (J5) Palmieri2005-08-183-0/+11
| | | | | | c libraries to lib64 and python files to lib. * python/Makefile.am: install dbus.pth in the correct spot
* * ChangeLog: clean up my last entry a bitJohn (J5) Palmieri2005-08-188-62/+386
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/introspect.xsl: New stylesheet for converting introspection data into browser renderable xhtml. Contributed by Lennart Poettering. * doc/introspect.dtd: Fixups in the introspect format from Lennart Poettering. * doc/dbus-tutorial.xml: - Add Colin Walter to the Authors section for authoring the GLib section - Add descriptions of the new signature and type functionality in the Python complex type mapping section - Add a sidenote on the new args matching functionality in the Python bindings - Fixed up some of the examples to use the gobject.MainLoop instead of gtk.main * python/_dbus.py: (Bus::_create_args_dict): New. Converts a hash of arg matches to a more useable format (Bus::add_signal_receiver): add a **keywords parameter for catching arg match parameters (Bus::remove_signal_receiver): add a **keywords parameter for catching arg match parameters * python/matchrules.py: (MatchTree::exec_matches): Check for arg matches (SignalMatchRule::add_args_match): New method (SignalMatchRule::execute): Added args_list parameter as an optimization so we don't have to marshal the args more than once (SignalMatchRule::match_args_from_list): New method that checks to see if the rule's arg matches match an argument list. Only arguments set in the rule are checked. (SignalMatchRule::match_args_from_rule): New method that checks to see if the rule's arg matches match another rule's. All args have to match in order for this method to return true. If either rule has more args then it is not a match. (SignalMatchRule::is_match): Add args match (SignalMatchRule::repr): Add args to the final output if they exist
* Unref message and protect against NULLRoss Burton2005-08-172-1/+10
|
* * python/__init__.py: Version updated (0, 43, 0)John (J5) Palmieri2005-08-169-66/+312
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * python/dbus_bindings.pyx: - Fixed type objects to have self passed into __init__ - Added the Variant type - Add the ability to specify types or signatures for Array, Variant and Dictionary - (Connection::send_with_reply_handlers): return a PendingCall object - (_pending_call_notification): handle the case when an error is returned without an error message in the body - (MessageIter::get_boolean): return True or False instead of an integer - (MessageIter::python_value_to_dbus_sig): add direct checking of types and add checks for objects with embeded signatures or types (Array, Variant and Dictionary) - (MessageIter::append_byte): handle case when the value is a dbus.Byte - (MessageIter::append_dict): handle embeded types or signatures - (MessageIter::append_array): handle embeded types or signatures - (MessageIter::append_variant): new method * python/proxies.py: - (DeferedMethod): New. Dummy executable object used when queuing calls blocking on introspection data - (ProxyMethod::__call__): add the timeout keyword for specifying longer or shorter timeouts for method calls - (ProxyObject): Add first pass at an introspection state machine - (ProxyObject::__init__): Add introspect keyword for turing off an on introspection. - (ProxyObject::_Introspect): Internal Introspect call that bypasses the usual mechanisms for sending messages. This is to avoid a deadlock where the Intospect call would be queued waiting for the Introspect call to finish ;-) - (ProxyObject::_introspect_reply_handler): New. This method is called when introspection returns with no error - (ProxyObject::_introspect_error_handler): New. This method is called when introspection encounters an error - (ProxyObject::__getattr__): Code to handle different introspection states. Queue async calls or block blocking calls if we are introspecting. Pass through as normal if we are not or are done with introspecting. * python/service.py: Import signal and method from decorators.py * python/types.py: Add Variant type
* 2005-08-16 Colin Walters <walters@verbum.org>Colin Walters2005-08-162-1/+6
| | | | | * glib/dbus-gobject.c (dbus_set_g_error): Don't lose if the DBusError message is NULL.
* 2005-08-09 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-08-092-5/+18
| | | | | * dbus/dbus-errors.c: apply patch from Timo Teras to make a malloc'd copy of the name parameter
* 2005-08-09 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-08-092-0/+6
| | | | | * dbus/dbus-message.c (dbus_message_set_reply_serial): print warning if the reply serial is set to 0
* 2005-08-04 Colin Walters <walters@verbum.org>Colin Walters2005-08-0413-303/+384
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * glib/dbus-gvalue-utils.h (_dbus_g_type_specialized_builtins_init) (dbus_g_type_is_fixed, dbus_g_type_fixed_get_size) (dbus_gvalue_set_from_pointer, dbus_g_hash_table_value_foreach) (dbus_g_hash_table_insert_values, dbus_g_hash_table_insert_steal_values) (dbus_gtype_is_valid_hash_key, dbus_gtype_is_valid_hash_value) (dbus_g_hash_func_from_gtype, dbus_g_hash_free_from_gtype) (dbus_g_hash_equal_from_gtype, dbus_gvalue_stor, dbus_gvalue_take): * glib/dbus-gvalue.h (dbus_g_value_types_init) (dbus_gvalue_demarshal, dbus_gvalue_demarshal_variant) (dbus_gvalue_demarshal_message, dbus_gvalue_marshal): Prefix name with _ to ensure they're not exported. All callers updated. * glib/dbus-gvalue.c (typecode_to_gtype) (dbus_typecode_maps_to_basic, basic_typecode_to_gtype) (signature_iter_to_g_type_dict) (signature_iter_to_g_type_array) (dbus_gtype_from_signature_iter, dbus_gtype_from_signature) (dbus_gtypes_from_arg_signature): Move to dbus-gsignature.c. * glib/dbus-binding-tool-glib.c (dbus_binding_tool_output_glib_server): Call dbus_g_type_specialized_builtins_init instead of dbus_g_value_types_init. (dbus_binding_tool_output_glib_client): Ditto. * glib/Makefile.am (DBUS_GLIB_INTERNALS): Add dbus-gsignature.c and dbus-gsignature.h * test/glib/test-service-glib.c (my_object_rec_arrays): Delete unused variable.
* 2005-08-03 Colin Walters <walters@verbum.org>Colin Walters2005-08-032-0/+155
| | | | | * glib/dbus-gobject.c: Add tests on hardcoded object info; this should catch any incompatible changes accidentally made.
* 2005-08-03 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-08-034-8/+12
| | | | | | | | * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): fix typo, from Julien Puydt * bus/connection.c (bus_connection_disconnected): we were always doing a wait_for_memory due to a buggy loop, found by Timo Hoenig
* Small docu updateWaldo Bastian2005-08-021-1/+4
|
* some docs cleanupsHavoc Pennington2005-08-014-17/+60
|
* 2005-08-01 Colin Walters <walters@verbum.org>Colin Walters2005-08-012-2/+9
| | | | | | | Patch from Joe Markus Clarke: * glib/dbus-gidl.c (property_info_unref, arg_info_unref): Fix use-after-free.
* 2005-08-01 Colin Walters <walters@verbum.org>Colin Walters2005-08-012-1/+9
| | | | | | | | Patch from Joe Markus Clarke: * tools/dbus-send.c (main): Don't use C99 style initializers (bug #3933).
* 2005-08-01 Colin Walters <walters@verbum.org>Colin Walters2005-08-014-9/+18
| | | | | | | | | | Patch from Joe Markus Clarke: * glib/dbus-gvalue.c (dbus_g_value_types_init): * glib/dbus-gvalue-utils.c (dbus_g_type_specialized_builtins_init) * glib/dbus-gobject.c (write_interface): Don't use C99 style initializers (bug #3933).
* 2005-07-31 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-07-312-1/+6
| | | | | * tools/dbus-viewer.c (load_child_nodes): fix invocation of dbus_g_proxy_call, fix from Piotr Zielinski bug #3920
* 2005-07-30 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-07-317-8/+18
| | | | * fix a bunch of Doxygen warnings and mistakes
* add "publish introspect dtd" to TODO for 1.0Havoc Pennington2005-07-311-0/+2
|
* 2005-07-30 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-07-302-3/+5
| | | | | * dbus/dbus-sysdeps.c (_dbus_string_parse_uint): remove #ifdef DBUS_BUILD_TESTS since it's now used in production code
* 2005-07-29 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-07-303-2/+15
| | | | | * test/glib/test-profile.c (write_junk): initialize the junk buffer so valgrind doesn't have a breakdown
* remove that todo itemHavoc Pennington2005-07-291-2/+0
|
* 2005-07-29 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-07-295-6/+558
| | | | | | | | | | | | * bus/signals.c (bus_signals_test): add match_rule_equal() tests (match_rule_matches): remove unused arg (test_matching): add tests for match_rule_matches() * bus/signals.c (bus_match_rule_parse_arg_match): add ability to do arg0='foo' arg5='bar' in the match rules (match_rule_matches): don't match if the arg0='foo' doesn't match. * dbus/dbus-protocol.h (DBUS_MAXIMUM_MATCH_RULE_ARG_NUMBER): add this
* Remove unused condvarRoss Burton2005-07-292-9/+5
|
* Reduce size of message cacheRoss Burton2005-07-272-1/+6
|
* Remove matchers when all proxies are removedRoss Burton2005-07-252-0/+11
|