diff options
| author | Michael Albinus | 2015-08-30 15:51:36 +0200 |
|---|---|---|
| committer | Michael Albinus | 2015-08-30 15:51:36 +0200 |
| commit | 47b70267213517f95283fd6b71e51ab0fef7454e (patch) | |
| tree | c8443e49e24d2ddb2514af41e275ae606cc42967 /doc | |
| parent | f2749ce71a82be28a4035d2aae41180f39ce23b5 (diff) | |
| download | emacs-scratch/dbusbind-type.tar.gz emacs-scratch/dbusbind-type.zip | |
* doc/misc/dbus.texi (Type Conversion): Check for subfeature.scratch/dbusbind-type
* src/dbusbind.c (syms_of_dbusbind):
* lisp/net/dbus.el (top): Provide proper subfeature.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/dbus.texi | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/doc/misc/dbus.texi b/doc/misc/dbus.texi index e0b2f2c462d..863b7b05ffe 100644 --- a/doc/misc/dbus.texi +++ b/doc/misc/dbus.texi | |||
| @@ -1034,14 +1034,20 @@ D-Bus compound type rules. If those elements have a type different | |||
| 1034 | from the default type, they need to be prefixed with a type symbol. | 1034 | from the default type, they need to be prefixed with a type symbol. |
| 1035 | 1035 | ||
| 1036 | @lisp | 1036 | @lisp |
| 1037 | (dbus-call-method @dots{} :array '(:int32 @var{NAT-NUMBER} :int32 @var{NAT-NUMBER})) | 1037 | (dbus-call-method @dots{} '(:array :int32 @var{NAT-NUMBER} :int32 @var{NAT-NUMBER})) |
| 1038 | @end lisp | 1038 | @end lisp |
| 1039 | 1039 | ||
| 1040 | There is an alternative form to specify a compound D-Bus type. The | 1040 | There is an alternative form to specify a compound D-Bus type. The |
| 1041 | keyword @code{:type}, followed by a type specifier, denotes a compound | 1041 | keyword @code{:type}, followed by a type specifier, denotes a compound |
| 1042 | type as a list of type symbols. For example, a type specifier | 1042 | type as a list of type symbols.@footnote{This alternative form is |
| 1043 | @code{(:array :int32)} stands for an array of @code{DBUS_TYPE_INT32} | 1043 | available only if the subfeature @code{:type} exists. Check it with |
| 1044 | elements. | 1044 | |
| 1045 | @lisp | ||
| 1046 | (featurep 'dbus :type) | ||
| 1047 | @end lisp | ||
| 1048 | } | ||
| 1049 | For example, a type specifier @code{(:array :int32)} stands for an | ||
| 1050 | array of @code{DBUS_TYPE_INT32} elements. | ||
| 1045 | 1051 | ||
| 1046 | The above example is equivalent to: | 1052 | The above example is equivalent to: |
| 1047 | 1053 | ||
| @@ -1049,6 +1055,8 @@ The above example is equivalent to: | |||
| 1049 | (dbus-call-method @dots{} :type '(:array :int32) '(@var{NAT-NUMBER} @var{NAT-NUMBER})) | 1055 | (dbus-call-method @dots{} :type '(:array :int32) '(@var{NAT-NUMBER} @var{NAT-NUMBER})) |
| 1050 | @end lisp | 1056 | @end lisp |
| 1051 | 1057 | ||
| 1058 | The D-Bus compound type rules are: | ||
| 1059 | |||
| 1052 | @itemize | 1060 | @itemize |
| 1053 | @item An array must contain only elements of the same D-Bus type. It | 1061 | @item An array must contain only elements of the same D-Bus type. It |
| 1054 | can be empty. | 1062 | can be empty. |