head	1.2;
access;
symbols
	v2_0_0beta3:1.2
	v2_0_0beta2:1.1
	v2_0_0beta1:1.1;
locks; strict;
comment	@# @;


1.2
date	2006.02.11.05.25.47;	author rlaager;	state Exp;
branches;
next	1.1;

1.1
date	2005.08.24.02.38.48;	author zielaj;	state Exp;
branches;
next	;


desc
@@


1.2
log
@SF Patch #1428582 from Casey Harkins

"The dbus stuff in gaim is using the namespace org.gaim.
 gaim.org is obviously not associated with gaim and
 chances are they would never need the dbus namespace.
 Regardless, it would probably be better if gaim used
 net.sf.gaim for the namespace. It'd be easier to
 change now than after 2.0 is released since things
 might start depending on gaim's dbus api. The dbus spec
 and tutorial both suggest/imply (though don't strictly
 require) that the namespace coorespond to a domain name
 that you own."
@
text
@#!/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 
@


1.1
log
@

Forgot to add this file
@
text
@d28 1
a28 1
dbus-send --dest=org.gaim.GaimService --type=method_call /org/gaim/GaimObject org.gaim.GaimInterface.$METHOD_NAME "$@@"
@

