Mercurial > pidgin.yaz
view libpurple/purple-send-async @ 20365:9401a46da958
applied changes from d6da6a7a5ad01f170f0fd78424183f73200dc78c
through ca4c40c7119d3222ca33d10a8f578782de29ad28
applied changes from ca4c40c7119d3222ca33d10a8f578782de29ad28
through 4341e599d112f3be408cb2a92fa459cc7c25b29c
applied changes from 1e8c3f6ec50a7e8ea15b850e7e2974e273c1cb6c
through fe00ca8a057e772d955ff56c7b6557e221d3e514
applied changes from 35e02ab2f9968d9b567123e1ba43552597218596
through aed8cc0e2684056309c481d621fdafcd366b7d24
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 21 Oct 2007 05:07:57 +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. As opposed to purple-send, it does not print the return value. 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 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 --type=method_call /im/pidgin/purple/PurpleObject im.pidgin.purple.PurpleInterface.$METHOD_NAME "$@" echo