diff options
| author | Michael Albinus | 2008-03-30 12:52:18 +0000 |
|---|---|---|
| committer | Michael Albinus | 2008-03-30 12:52:18 +0000 |
| commit | 134ce16c74f1a3ba0295f179eaeef2f7c1020cd2 (patch) | |
| tree | 8d8fefbeae7b7554ee4e524ab421b5e8da742f13 /doc | |
| parent | 90b3fc84155c58879c5193d10f92575692544572 (diff) | |
| download | emacs-134ce16c74f1a3ba0295f179eaeef2f7c1020cd2.tar.gz emacs-134ce16c74f1a3ba0295f179eaeef2f7c1020cd2.zip | |
* dbus.texi (Synchronous Methods): New parameter TIMEOUT for
dbus-call-method.
(Receiving Method Calls): The timeout can be set by the calling client.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/misc/dbus.texi | 11 |
2 files changed, 15 insertions, 2 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index b2760fe4c97..5ee5d887a4c 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-03-30 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * dbus.texi (Synchronous Methods): New parameter TIMEOUT for | ||
| 4 | dbus-call-method. | ||
| 5 | (Receiving Method Calls): The timeout can be set by the calling client. | ||
| 6 | |||
| 1 | 2008-03-29 Reiner Steib <Reiner.Steib@gmx.de> | 7 | 2008-03-29 Reiner Steib <Reiner.Steib@gmx.de> |
| 2 | 8 | ||
| 3 | * gnus.texi (Top): Fix version. Add SASL. | 9 | * gnus.texi (Top): Fix version. Add SASL. |
diff --git a/doc/misc/dbus.texi b/doc/misc/dbus.texi index e303eb08599..b5e932a5256 100644 --- a/doc/misc/dbus.texi +++ b/doc/misc/dbus.texi | |||
| @@ -425,7 +425,7 @@ which carries the input parameters to the object owning the method to | |||
| 425 | be called, and a reply message returning the resulting output | 425 | be called, and a reply message returning the resulting output |
| 426 | parameters from the object. | 426 | parameters from the object. |
| 427 | 427 | ||
| 428 | @defun dbus-call-method bus service path interface method &rest args | 428 | @defun dbus-call-method bus service path interface method &optional :timeout timeout &rest args |
| 429 | This function calls @var{method} on the D-Bus @var{bus}. @var{bus} is | 429 | This function calls @var{method} on the D-Bus @var{bus}. @var{bus} is |
| 430 | either the symbol @code{:system} or the symbol @code{:session}. | 430 | either the symbol @code{:system} or the symbol @code{:session}. |
| 431 | 431 | ||
| @@ -433,6 +433,12 @@ either the symbol @code{:system} or the symbol @code{:session}. | |||
| 433 | D-Bus object path, @var{service} is registered at. @var{interface} is | 433 | D-Bus object path, @var{service} is registered at. @var{interface} is |
| 434 | an interface offered by @var{service}. It must provide @var{method}. | 434 | an interface offered by @var{service}. It must provide @var{method}. |
| 435 | 435 | ||
| 436 | If the parameter @code{:timeout} is given, the following integer | ||
| 437 | @var{timeout} specifies the maximun number of milliseconds the method | ||
| 438 | call must return. The default value is 25.000. If the method call | ||
| 439 | doesn't return in time, a D-Bus error is raised (@pxref{Errors and | ||
| 440 | Events}). | ||
| 441 | |||
| 436 | All other arguments args are passed to @var{method} as arguments. | 442 | All other arguments args are passed to @var{method} as arguments. |
| 437 | They are converted into D-Bus types as described in @ref{Type | 443 | They are converted into D-Bus types as described in @ref{Type |
| 438 | Conversion}. | 444 | Conversion}. |
| @@ -546,7 +552,8 @@ used as arguments for the reply message of @var{method}. This list | |||
| 546 | can be composed like the input parameters in @ref{Type Conversion}. | 552 | can be composed like the input parameters in @ref{Type Conversion}. |
| 547 | 553 | ||
| 548 | The default D-Bus timeout when waiting for a message reply is 25 | 554 | The default D-Bus timeout when waiting for a message reply is 25 |
| 549 | seconds. Therefore, @var{handler} shall not last longer than | 555 | seconds. This value could be even smaller, depending on the calling |
| 556 | client. Therefore, @var{handler} shall not last longer than | ||
| 550 | absolutely necessary. | 557 | absolutely necessary. |
| 551 | 558 | ||
| 552 | @code{dbus-register-method} returns a Lisp symbol, which can be used | 559 | @code{dbus-register-method} returns a Lisp symbol, which can be used |