Mercurial > pidgin.yaz
view libpurple/purple-send @ 30725:b6c3000eec60
Use GtkUIManager for gtk media stuff, since it's internal.
applied changes from 7f3cdd61a34080056b8024a0297d01ed559bef25
through c9211cd8bf87478800560441c7eb893f1e3995e0
applied partial changes from 231d9237a777f9d01fa2ff9c26a575a0ac8db31c
through d0c6c98ad725a3a64114bd1d5c1da1220d738c93
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Mon, 26 Jul 2010 04:21:47 +0000 |
parents | cea56d000b16 |
children |
line wrap: on
line source
#!/bin/sh METHOD_NAME=$1 if test -z "$METHOD_NAME" then cat <<EOF This program calls purple API functions using DBus and prints the return value. If you are not interested in the return value, use purple-send-async. Usage: $0 method-name type1:parameter1 type2:parameter2 ... This shell script just invokes dbus-send, see man dbus-send for how to specify the parameters. Examples: $0 PurpleAccountsFindConnected string: string:prpl-jabber $0 PurpleAccountsGetAll $0 PurpleCoreQuit Use dbus-viewer to get the list of supported functions and their parameters. EOF exit 1 fi shift dbus-send --dest=im.pidgin.purple.PurpleService --print-reply --type=method_call /im/pidgin/purple/PurpleObject im.pidgin.purple.PurpleInterface.$METHOD_NAME "$@"