aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMichael Albinus2015-08-30 15:51:36 +0200
committerMichael Albinus2015-08-30 15:51:36 +0200
commit47b70267213517f95283fd6b71e51ab0fef7454e (patch)
treec8443e49e24d2ddb2514af41e275ae606cc42967 /doc
parentf2749ce71a82be28a4035d2aae41180f39ce23b5 (diff)
downloademacs-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.texi16
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
1034from the default type, they need to be prefixed with a type symbol. 1034from 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
1040There is an alternative form to specify a compound D-Bus type. The 1040There is an alternative form to specify a compound D-Bus type. The
1041keyword @code{:type}, followed by a type specifier, denotes a compound 1041keyword @code{:type}, followed by a type specifier, denotes a compound
1042type as a list of type symbols. For example, a type specifier 1042type as a list of type symbols.@footnote{This alternative form is
1043@code{(:array :int32)} stands for an array of @code{DBUS_TYPE_INT32} 1043available only if the subfeature @code{:type} exists. Check it with
1044elements. 1044
1045@lisp
1046(featurep 'dbus :type)
1047@end lisp
1048}
1049For example, a type specifier @code{(:array :int32)} stands for an
1050array of @code{DBUS_TYPE_INT32} elements.
1045 1051
1046The above example is equivalent to: 1052The 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
1058The 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
1054can be empty. 1062can be empty.