Mercurial > pidgin.yaz
view libpurple/purple-send @ 20643:cb7d809867ac
propagate from branch 'im.pidgin.pidgin' (head b2924d43f1e1cb2d01705932d9a06df6eedf7ac0)
to branch 'im.pidgin.sadrul.currentmedia' (head 15698906f0fff90b76df130d6cebe3f183c2cfaf)
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 25 Sep 2007 09:01:03 +0000 |
parents | 598b1b15b199 |
children | 942bf314fc8a |
line wrap: on
line source
#!/bin/bash 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 "$@" echo