summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2005-01-18 20:42:15 +0000
committerHavoc Pennington <hp@redhat.com>2005-01-18 20:42:15 +0000
commit8873c90f99303f9cc308f15f8d03e637911f5b9e (patch)
tree03e459881912388cc6c3759d91fb0cf75739a5a7 /tools
parent4fce285052c143296cd9e08a48de0175b5207853 (diff)
2005-01-18 Havoc Pennington <hp@redhat.com>
* Throughout, grand renaming to strip out the use of "service", just say "name" instead (or "bus name" when ambiguous). Did not change the internal code of the message bus itself, only the programmer-facing API and messages. * doc/dbus-specification.xml: further update the message bus section * bus/config-parser.c (all_are_equiv): fix bug using freed string in error case
Diffstat (limited to 'tools')
-rw-r--r--tools/dbus-send.113
-rw-r--r--tools/dbus-send.c2
2 files changed, 7 insertions, 8 deletions
diff --git a/tools/dbus-send.1 b/tools/dbus-send.1
index 725507c0..0b846045 100644
--- a/tools/dbus-send.1
+++ b/tools/dbus-send.1
@@ -8,7 +8,7 @@ dbus-send \- Send a message to a message bus
.SH SYNOPSIS
.PP
.B dbus-send
-[\-\-system | \-\-session] [\-\-dest=SERVICE] [\-\-print-reply]
+[\-\-system | \-\-session] [\-\-dest=NAME] [\-\-print-reply]
[\-\-type=TYPE] <destination object path> <message name> [contents ...]
.SH DESCRIPTION
@@ -27,9 +27,8 @@ specified, \fIdbus-send\fP sends to the session bus.
.PP
Nearly all uses of \fIdbus-send\fP must provide the \-\-dest argument
-which is the name of a service on the bus to send the message to. If
-\-\-dest is omitted, a default service name of
-"org.freedesktop.Broadcast" is used.
+which is the name of a connection on the bus to send the message to. If
+\-\-dest is omitted, no destination is set.
.PP
The object path and the name of the message to send must always be
@@ -43,7 +42,7 @@ these, but \fIdbus-send\fP currently does not.)
Here is an example invocation:
.nf
- dbus-send \-\-dest='org.freedesktop.ExampleService' \\
+ dbus-send \-\-dest='org.freedesktop.ExampleName \\
/org/freedesktop/sample/object/name \\
org.freedesktop.ExampleInterface.ExampleMethod \\
int32:47 string:'hello world' double:65.32
@@ -57,8 +56,8 @@ and the interface member are separate fields.
.SH OPTIONS
The following options are supported:
.TP
-.I "--dest=SERVICE"
-Specify the service to receive the message.
+.I "--dest=NAME"
+Specify the name of the connection to receive the message.
.TP
.I "--print-reply"
Block for a reply to the message sent, and print any reply received.
diff --git a/tools/dbus-send.c b/tools/dbus-send.c
index 412f5fdc..ed513fb4 100644
--- a/tools/dbus-send.c
+++ b/tools/dbus-send.c
@@ -30,7 +30,7 @@
static void
usage (char *name, int ecode)
{
- fprintf (stderr, "Usage: %s [--help] [--system | --session] [--dest=SERVICE] [--type=TYPE] [--print-reply] [--reply-timeout=MSEC] <destination object path> <message name> [contents ...]\n", name);
+ fprintf (stderr, "Usage: %s [--help] [--system | --session] [--dest=NAME] [--type=TYPE] [--print-reply] [--reply-timeout=MSEC] <destination object path> <message name> [contents ...]\n", name);
exit (ecode);
}