[patch] support dicts in dbus-send

David Zeuthen david at fubar.dk
Tue Jun 14 18:47:19 PDT 2005


On Tue, 2005-06-14 at 18:19 -0400, Colin Walters wrote:
> Hi,
> 
> I hacked up quick support a while back to dbus-send to support sending
> and printing DBUS_TYPE_DICT stuff while testing the GLib bindings.
> Right now it's just sitting in my tree, any objections to putting it in?
> 

Looks good to me - I just tested it with perhaps the most complex D-BUS
method in hal

        [davidz at daxter dbus]$ dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.GetAllProperties
        method return sender=:1.1 -> dest=:1.16
         [{string "info.callouts.add"
        variant:[string "fstab-sync --clean"
        ]}{string "storage.policy.default.mount_option.exec"
        variant:boolean true
        }{string "storage.policy.default.mount_option.pamconsole"
        variant:boolean true
        }{string "storage.policy.default.mount_option.noauto"
        variant:boolean true
        }{string "storage.policy.default.managed_keyword.secondary"
        variant:string "kudzu"
        }{string "storage.policy.default.managed_keyword.primary"
        variant:string "managed"
        }{string "storage.policy.default.use_managed_keyword"
        variant:boolean true
        }{string "storage.policy.default.mount_root"
        variant:string "/media"
        }{string "info.addons"
        variant:[string "hald-addon-acpi"
        ]}{string "policy.acpi.linux.suspend.method"
        variant:string "mem"
        }{string "policy.acpi.linux.can_suspend"
        variant:boolean true
        }{string "system.product"
        variant:string "2373HU6 ThinkPad T41"
        }{string "system.vendor"
        variant:string "IBM"
        }{string "smbios.chassis.type"
        variant:string "Notebook"
        }{string "smbios.chassis.manufacturer"
        variant:string "IBM"
        }{string "smbios.system.uuid"
        variant:string "57853E81-464C-11CB-BC7D-DAE1BEFCE2EC"
        }{string "smbios.system.serial"
        variant:string "990LH4H"
        }{string "smbios.system.version"
        variant:string "ThinkPad T41"
        }{string "smbios.system.product"
        variant:string "2373HU6"
        }{string "smbios.system.manufacturer"
        variant:string "IBM"
        }{string "smbios.bios.release_date"
        variant:string "06/18/2004"
        }{string "smbios.bios.version"
        variant:string "1RETCDWW (3.06f)"
        }{string "smbios.bios.vendor"
        variant:string "IBM"
        }{string "power_management.acpi.linux.version"
        variant:string "20050309"
        }{string "power_management.type"
        variant:string "acpi"
        }{string "power_management.is_enabled"
        variant:boolean true
        }{string "system.formfactor"
        variant:string "laptop"
        }{string "system.kernel.machine"
        variant:string "i686"
        }{string "system.kernel.version"
        variant:string "2.6.11-1.1369_FC4"
        }{string "system.kernel.name"
        variant:string "Linux"
        }{string "info.udi"
        variant:string "/org/freedesktop/Hal/devices/computer"
        }{string "info.product"
        variant:string "Computer"
        }{string "linux.sysfs_path_device"
        variant:string "(none)"
        }{string "info.bus"
        variant:string "unknown"
        }]
        
    David



More information about the dbus mailing list