libpurple/purple-send-async

Sun, 15 Apr 2007 03:43:17 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Sun, 15 Apr 2007 03:43:17 +0000
branch
cpw.khc.msnp14
changeset 20478
46933dc62880
parent 20472
libgaim/gaim-send-async@6a6d2ef151e6
parent 15987
libgaim/gaim-send-async@71d668c3d56d
child 20481
65485e2ed8a3
permissions
-rwxr-xr-x

propagate from branch 'im.pidgin.pidgin' (head 88b7040408c88e4516c008f4eac579f98ef53e85)
to branch 'im.pidgin.rlaager.merging.msnp13-and-pidgin' (head 198222e01a7dc9f8795f68ec618a48c3478e04a8)

#!/bin/bash

METHOD_NAME=$1

if test -z "$METHOD_NAME" 
then
    cat <<EOF 
This program calls gaim API functions using DBus.  As opposed to gaim-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 GaimCoreQuit

Use dbus-viewer to get the list of supported functions and their parameters.
EOF
    exit 1
fi

shift
dbus-send --dest=net.sf.gaim.GaimService --type=method_call /net/sf/gaim/GaimObject net.sf.gaim.GaimInterface.$METHOD_NAME "$@"

echo 

mercurial