cd815c347a279f324e5025fcda71a16ad9b08c7d |
|
07-Jun-2010 |
Ralf Habacker <ralf.habacker@freenet.de> |
Fixed compiler warnings.
/external/dbus/tools/dbus-print-message.c
|
df89cfeb3808acc213c9620db6988611a34207c5 |
|
22-Mar-2010 |
Colin Walters <walters@verbum.org> |
Merge branch 'dbus-1.2' Conflicts: bus/dispatch.c configure.in test/name-test/test-names.c
|
3861cb42f437a9eb2b13c5c2aa4081268c45c32c |
|
22-Mar-2010 |
Colin Walters <walters@verbum.org> |
[64 bit printf] Update to use DBUS_PID_FORMAT, print (omitted) There were already defines for formatting pids and uids, so use those. In the case where we don't have a format specifier for 64 bit, print (omitted) in dbus-monitor.
/external/dbus/tools/dbus-print-message.c
|
c93d3ec2ff13f31291c56f6d5d4f7a77ecdb5ea7 |
|
22-Mar-2010 |
Colin Walters <walters@lightbox.localdomain> |
Add DBUS_INT64_MODIFIER define, turn on -Wformat https://bugs.freedesktop.org/show_bug.cgi?id=19195 We were previously using -Wno-format because we didn't have a #define for DBUS_INT64_MODIFIER, which was really lame because it easily hid problems. For now, just define it if we're on glibc; this is obviously not strictly correct but it's safe, because the formatting is only used in DBUS_VERBOSE mode, and in tools/dbus-monitor. Ideally we get the the glib code relicensed.
/external/dbus/tools/dbus-print-message.c
|
dbecdeabb20e0ce11121819c63373f0afba57c58 |
|
19-Mar-2010 |
Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de> |
Consistently include <config.h> in all C source files and never in header files.
/external/dbus/tools/dbus-print-message.c
|
a8e620a0ff60eef983a9be95e2b27dbcdcbaf654 |
|
28-Oct-2009 |
Will Thompson <will.thompson@collabora.co.uk> |
Print all-printable-ASCII byte arrays as strings In practice, ay seems to be used mostly for binary data (in which case, hex output is fine) or for Unix file paths (because they may be non-UTF-8) and similar human-readable strings. So let's print the latter similarly to strings.
/external/dbus/tools/dbus-print-message.c
|
1a33efb54b6a40d48b64c735741298afc699bbd3 |
|
09-Sep-2009 |
Will Thompson <will.thompson@collabora.co.uk> |
Print byte arrays as nicely-formatted hex.
/external/dbus/tools/dbus-print-message.c
|
7a8fcdee22d2716f7891e030cda0e1e6536d0054 |
|
09-Sep-2009 |
Will Thompson <will.thompson@collabora.co.uk> |
Make array-printing code easier to follow Previously dbus_message_iter_get_arg_type() was called twice: once in the loop condition to update 'current_type', and once to check if the loop will run again. This patch moves updating current_type to the end of the loop body.
/external/dbus/tools/dbus-print-message.c
|
80f6ebfef5b51290b26b968ae0ceff9b322efd67 |
|
28-Oct-2009 |
Will Thompson <will.thompson@collabora.co.uk> |
Print all-printable-ASCII byte arrays as strings In practice, ay seems to be used mostly for binary data (in which case, hex output is fine) or for Unix file paths (because they may be non-UTF-8) and similar human-readable strings. So let's print the latter similarly to strings.
/external/dbus/tools/dbus-print-message.c
|
4d7968c06f30926a793a305288bd0c2a16bf90dd |
|
09-Sep-2009 |
Will Thompson <will.thompson@collabora.co.uk> |
Print byte arrays as nicely-formatted hex.
/external/dbus/tools/dbus-print-message.c
|
1e14e409a48a96e0599c8f675604735ca132fc0f |
|
09-Sep-2009 |
Will Thompson <will.thompson@collabora.co.uk> |
Make array-printing code easier to follow Previously dbus_message_iter_get_arg_type() was called twice: once in the loop condition to update 'current_type', and once to check if the loop will run again. This patch moves updating current_type to the end of the loop body.
/external/dbus/tools/dbus-print-message.c
|
dc33f4f7749ed303374ebdf00e48ea8a471afd25 |
|
11-Jul-2009 |
Tobias Mueller <fdo-bugs@cryptobitch.de> |
Bug 21161 - Update the FSF address No comment. Signed-off-by: Colin Walters <walters@verbum.org> (cherry picked from commit 5baf2f856a9c6625993234855b07680da1c8916f)
/external/dbus/tools/dbus-print-message.c
|
5baf2f856a9c6625993234855b07680da1c8916f |
|
11-Jul-2009 |
Tobias Mueller <fdo-bugs@cryptobitch.de> |
Bug 21161 - Update the FSF address No comment. Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/tools/dbus-print-message.c
|
2f561c2fc55858a9909e0035d564ce19e6a9722d |
|
29-Aug-2008 |
Michael Meeks <michael.meeks@novell.com> |
Print serial in dbus-monitor * tools/dbus-print-message.c: Print serial too. Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/tools/dbus-print-message.c
|
1859c66351285de313d1ccd2540e9d71aaf768a3 |
|
29-Aug-2008 |
Michael Meeks <michael.meeks@novell.com> |
Print serial in dbus-monitor * tools/dbus-print-message.c: Print serial too. Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/tools/dbus-print-message.c
|
d012387afef0ba02185ebe27bc6bb15551912e92 |
|
14-Jul-2007 |
Havoc Pennington <hp@redhat.com> |
2007-07-13 Havoc Pennington <hp@redhat.com> * Add indent-tabs-mode: nil to all file headers.
/external/dbus/tools/dbus-print-message.c
|
af4e4dc276dacde120a00952344dedc3976009db |
|
10-Mar-2007 |
Ralf Habacker <ralf.habacker@freenet.de> |
* tools/dbus-print-message.c (print_message): added printing of the reply serial to method returns and errors, so you can actually figure out the message/reply pairs - patch by olli.salli at collabora.co.uk.
/external/dbus/tools/dbus-print-message.c
|
c07a6249e21947f3831e1d8a98cedb17364e10c5 |
|
14-Jun-2006 |
Ross Burton <ross@openedhand.com> |
2006-06-14 Ross Burton <ross@openedhand.com> * tools/dbus-print-message.c: Also print the object path when outputting signals or method calls.
/external/dbus/tools/dbus-print-message.c
|
8c09e5e06c3e80d8795b3076504c08589cd2407d |
|
16-Apr-2006 |
Daniel P. Berrange <dan@berrange.com> |
Added support for printing of all remaining data types. Fixed logic for indentation of compound data types.
/external/dbus/tools/dbus-print-message.c
|
fe21c24475602047bdfdfcc60485f618a48036f6 |
|
10-Mar-2006 |
Ross Burton <ross@openedhand.com> |
2006-03-10 Ross Burton <ross@openedhand.com> * tools/dbus-print-message.c: Add support for object paths and signatures.
/external/dbus/tools/dbus-print-message.c
|
b2d215da3876838b4b0f882890fd40199e67a4b9 |
|
26-Aug-2005 |
Colin Walters <walters@verbum.org> |
2005-08-26 Colin Walters <walters@verbum.org> * tools/dbus-print-message.c (print_message): Flush stdout after printing a message, so that redirecting to a file, then hitting Ctrl-C works.
/external/dbus/tools/dbus-print-message.c
|
2ca6e95764dc3491458dcf077ce77cbbabf00ddf |
|
06-Jul-2005 |
Colin Walters <walters@verbum.org> |
2005-07-06 Colin Walters <walters@verbum.org> * dbus/dbus-glib.h (DBusGPendingCall, DBusGPendingCallNotify) (DBUS_TYPE_G_PENDING_CALL, dbus_g_pending_call_get_g_type) (dbus_g_pending_call_ref, dbus_g_pending_call_unref): Delete. (dbus_g_pending_call_set_notify, dbus_g_pending_call_cancel): Delete in favor of dbus_g_proxy_begin_call and dbus_g_proxy_cancel_call. (DBusGProxyCall, DBusGProxyCallNotify): New. (dbus_g_proxy_begin_call): Change prototype to take callback, user data, and destroy function. This replaces dbus_g_pending_call_set_notify. (dbus_g_proxy_cancel_call): Prototype. (DBusGAsyncData): Delete, shouldn't be needed anymore. * glib/dbus-gproxy.c (struct _DBusGProxy): Add call_id_counter and pending_calls map. (struct _DBusGProxyManager): Add bus_proxy member, which is an internal proxy for calls to the bus. Remove pending_nameowner_calls, now the internal proxy keeps track. (dbus_g_proxy_manager_unref): Unref bus proxy, remove reference to pending_nameowner_calls. (got_name_owner_cb): Update prototype, and use dbus_g_proxy_end_call. (got_name_owner_cb): Remove reference to pending_nameowner_calls. (dbus_g_proxy_manager_register): Delete directly libdbus code in favor of using internal proxy. (dbus_g_proxy_manager_unregister): Update to use dbus_g_proxy_cancel_call for any pending GetNameOwner call. (dbus_g_proxy_init): Initialize pending calls map. (dbus_g_proxy_constructor): New. (dbus_g_proxy_class_init): Add get/set property functions, constructor, and add NAME, PATH, and INTERFACE properties. (cancel_pending_call): New function. (dbus_g_proxy_dispose): Iterate over any outstanding calls and cancel them. (dbus_g_proxy_set_property, dbus_g_proxy_get_property): New. (GPendingNotifyClosure): New structure. (d_pending_call_notify, d_pending_call_free): Moved here from dbus-glib.c. (DBUS_G_VALUE_ARRAY_COLLECT_ALL): Moved around to satisfy function ordering. (manager_begin_bus_call): New internal function for talking to internal bus proxy. (dbus_g_proxy_new): Construct object using GObjet properties. (dbus_g_proxy_begin_call_internal): Update to take user data, etc. Create closure of same, and insert call into map of pending calls. (dbus_g_proxy_end_call_internal): Take call id instead of pending call. Look up pending call in current set. Remove it when we've completed. (dbus_g_pending_call_end, dbus_g_proxy_end_call_internal): Delete. (dbus_g_proxy_begin_call): Change API to take callback, user data, and destroy function directly. (dbus_g_proxy_end_call): Update to take DBusGProxyCall. (dbus_g_proxy_call): Invoke with NULL callback. (dbus_g_proxy_cancel_call): New function, replaces dbus_g_pending_call_cancel. * glib/dbus-gparser.c (validate_signature): Fix call to dbus_set_g_error. * glib/dbus-gobject.c (dbus_g_object_type_dbus_metadata_quark): New quark for attaching metadata to GType. (info_hash): Delete. (lookup_object_info): Look up using quark. (dbus_g_object_type_install_info): Check that a type is classed, not that it's an object. Also just install type data using quark instead of using global hash. * glib/dbus-glib.c (dbus_g_pending_call_ref) (dbus_g_pending_call_unref, dbus_pending_call_get_g_type) (GPendingNotifyClosure): Delete. (d_pending_call_notify, d_pending_call_free): Move to dbus-gproxy.c. (dbus_g_pending_call_set_notify, dbus_g_pending_call_cancel): Delete. * glib/dbus-binding-tool-glib.c (generate_client_glue): Disable async client method generation until we can fix it... * tools/dbus-viewer.c (load_child_nodes): Use dbus_g_proxy_call. (load_from_service_thread_func): Ditto. * tools/dbus-names-model.c (struct NamesModel): Hold DBusGProxyCall. (have_names_notify): Update prototype, use dbus_g_proxy_cancel_call. (names_model_reload): Update for new dbus_g_proxy_begin_call API. * tools/dbus-monitor.c (filter_func): Update for print_message API change. * test/glib/test-dbus-glib.c: Add more tests for async invocations. Update many begin_call/end_call pairs to just use dbus_g_proxy_call. * tools/dbus-send.c (main): Add --print-reply=literal mode. This allows us to dump print-introspect.c. * tools/dbus-print-message.h (print_message): Add literal argument to print_message which is intended to allow printing arguments without metadata like "string=". * tools/dbus-print-message.c (print_iter): Add literal argument. (print_message): Allow printing string messages literally.
/external/dbus/tools/dbus-print-message.c
|
70bd20a50e5d8d5dd5ddabf945812d881090d3f5 |
|
16-Jun-2005 |
Colin Walters <walters@verbum.org> |
2005-06-16 Colin Walters <walters@verbum.org> * tools/dbus-send.c (append_array): Use strtok. (append_dict): New function. (type_from_name): New function, extracted from main. (main): Handle sending dicts. * tools/dbus-print-message.c (print_iter): Print dict entries.
/external/dbus/tools/dbus-print-message.c
|
3fa4c2f4044bc06a9ce166a4f44d7b0a54ed4843 |
|
11-May-2005 |
Colin Walters <walters@verbum.org> |
2005-05-11 Colin Walters <walters@verbum.org> * tools/dbus-send.c (append_array): New function. (append_arg): Broken out from main. (main): Add cheesy hack to send arrays and variants. (usage): Update. * tools/dbus-print-message.c (print_iter): Broken out from main.
/external/dbus/tools/dbus-print-message.c
|
98ad8a8ec6626f7f5c78915b6bdf2be688b4839f |
|
30-Jan-2005 |
Havoc Pennington <hp@redhat.com> |
2005-01-30 Havoc Pennington <hp@redhat.com> * glib/dbus-gobject.c (introspect_properties): fix the XML generated * dbus/dbus-message.c (dbus_message_unref): add an in_cache flag which effectively detects the use of freed messages * glib/dbus-gobject.c (handle_introspect): modify and return the reply message instead of the incoming message * dbus/dbus-object-tree.c (handle_default_introspect_unlocked): gee, maybe it should SEND THE XML instead of just making a string and freeing it again ;-) * tools/dbus-print-message.c (print_message): improve printing of messages * configure.in: add debug-glib.service to the output
/external/dbus/tools/dbus-print-message.c
|
9c3d566e95c9080f6040c64531b0ccae22bd5d74 |
|
15-Jan-2005 |
Havoc Pennington <hp@redhat.com> |
2005-01-15 Havoc Pennington <hp@redhat.com> * Land the new message args API and type system. This patch is huge, but the public API change is not really large. The set of D-BUS types has changed somewhat, and the arg "getters" are more geared toward language bindings; they don't make a copy, etc. There are also some known issues. See these emails for details on this huge patch: http://lists.freedesktop.org/archives/dbus/2004-December/001836.html http://lists.freedesktop.org/archives/dbus/2005-January/001922.html * dbus/dbus-marshal-*: all the new stuff * dbus/dbus-message.c: basically rewritten * dbus/dbus-memory.c (check_guards): with "guards" enabled, init freed blocks to be all non-nul bytes so using freed memory is less likely to work right * dbus/dbus-internals.c (_dbus_test_oom_handling): add DBUS_FAIL_MALLOC=N environment variable, so you can do DBUS_FAIL_MALLOC=0 to skip the out-of-memory checking, or DBUS_FAIL_MALLOC=10 to make it really, really, really slow and thorough. * qt/message.cpp: port to the new message args API (operator<<): use str.utf8() rather than str.unicode() (pretty sure this is right from the Qt docs?) * glib/dbus-gvalue.c: port to the new message args API * bus/dispatch.c, bus/driver.c: port to the new message args API * dbus/dbus-string.c (_dbus_string_init_const_len): initialize the "locked" flag to TRUE and align_offset to 0; I guess we never looked at these anyhow, but seems cleaner. * dbus/dbus-string.h (_DBUS_STRING_ALLOCATION_PADDING): move allocation padding macro to this header; use it to implement (_DBUS_STRING_STATIC): ability to declare a static string. * dbus/dbus-message.c (_dbus_message_has_type_interface_member): change to return TRUE if the interface is not set. * dbus/dbus-string.[hc]: move the D-BUS specific validation stuff to dbus-marshal-validate.[hc] * dbus/dbus-marshal-basic.c (_dbus_type_to_string): move here from dbus-internals.c * dbus/Makefile.am: cut over from dbus-marshal.[hc] to dbus-marshal-*.[hc] * dbus/dbus-object-tree.c (_dbus_decompose_path): move this function here from dbus-marshal.c
/external/dbus/tools/dbus-print-message.c
|
68a3c593b9e77b33614726363c7b6fd85d113021 |
|
19-Aug-2003 |
Havoc Pennington <hp@redhat.com> |
2003-08-18 Havoc Pennington <hp@redhat.com> * dbus/dbus-hash.c (_dbus_hash_table_insert_two_strings): fix * dbus/dbus-message.c (_dbus_message_loader_queue_messages): fix dumb bug created earlier (wrong order of args to decode_header_data()) * tools/dbus-send.c: port * tools/dbus-print-message.c (print_message): port * test/data/*messages: port all messages over * dbus/dbus-message-builder.c: support including message type * bus/driver.c: port over * bus/dispatch.c: port over to new stuff * dbus/dbus-connection.c (_dbus_connection_new_for_transport): rename disconnect signal to "Disconnected"
/external/dbus/tools/dbus-print-message.c
|
b29ea9115ea3277354b7ccbe442026279220f4ac |
|
11-Aug-2003 |
Havoc Pennington <hp@redhat.com> |
2003-08-10 Havoc Pennington <hp@pobox.com> * tools/dbus-send.c (main): add --type argument, for now supporting only method_call and signal types. * tools/dbus-print-message.c: print message type * dbus/dbus-connection.c (_dbus_connection_new_for_transport): init connection->objects * doc/dbus-specification.sgml: fix sgml * bus/*.c: port over to object-instance API changes * test/test-service.c: ditto * dbus/dbus-message.c (dbus_message_create_header): allow #NULL name, we will have to fix up the rest of the code to also handle this (dbus_message_new): generic message-creation call (set_string_field): allow appending name field
/external/dbus/tools/dbus-print-message.c
|
e94493fc116955bbf72a8896c48f2c119efacf7f |
|
20-Jun-2003 |
Anders Carlsson <andersca@codefactory.se> |
2003-06-19 Philip Blundell <philb@gnu.org> * tools/dbus-print-message.c (print_message): Handle BOOLEAN. * tools/dbus-send.c: Accept both --system and --session. * tools/dbus-monitor.c: Same here.
/external/dbus/tools/dbus-print-message.c
|
306eab3e3d998472ad111146a12b7697ea96c9b9 |
|
16-May-2003 |
Havoc Pennington <hp@redhat.com> |
2003-05-16 Havoc Pennington <hp@redhat.com> * dbus/dbus-connection.c: disable verbose lock spew * tools/dbus-send.c: add --print-reply command line option * tools/dbus-print-message.h (print_message): new util function shared by dbus-send and dbus-monitor * tools/dbus-monitor.c (handler_func): exit on disconnect * dbus/dbus-transport-unix.c (do_reading): if the transport is disconnected, don't try to use the read_watch * dbus/dbus-watch.c (dbus_watch_get_enabled): assert watch != NULL so we can find this bug more easily
/external/dbus/tools/dbus-print-message.c
|