comparison doc/misc/dbus.texi @ 111471:5cb8f9659806

* dbus.texi (Type Conversion): Introduce `:unix-fd' type mapping.
author Michael Albinus <michael.albinus@gmx.de>
date Wed, 10 Nov 2010 09:41:53 +0100
parents 8a3f86c30b0c
children 2e84d340bbaf
comparison
equal deleted inserted replaced
111470:66c9a8999fbb 111471:5cb8f9659806
888 If it is necessary to use another D-Bus type, a corresponding type 888 If it is necessary to use another D-Bus type, a corresponding type
889 symbol can be preceeded to the corresponding Lisp object. Basic D-Bus 889 symbol can be preceeded to the corresponding Lisp object. Basic D-Bus
890 types are represented by the type symbols @code{:byte}, 890 types are represented by the type symbols @code{:byte},
891 @code{:boolean}, @code{:int16}, @code{:uint16}, @code{:int32}, 891 @code{:boolean}, @code{:int16}, @code{:uint16}, @code{:int32},
892 @code{:uint32}, @code{:int64}, @code{:uint64}, @code{:double}, 892 @code{:uint32}, @code{:int64}, @code{:uint64}, @code{:double},
893 @code{:string}, @code{:object-path} and @code{:signature}. 893 @code{:string}, @code{:object-path}, @code{:signature} and
894 @code{:unix-fd}.
894 895
895 @noindent 896 @noindent
896 Example: 897 Example:
897 898
898 @lisp 899 @lisp
1007 @item DBUS_TYPE_BOOLEAN @tab @expansion{} @tab @code{t} or @code{nil} 1008 @item DBUS_TYPE_BOOLEAN @tab @expansion{} @tab @code{t} or @code{nil}
1008 @item DBUS_TYPE_BYTE @tab @expansion{} @tab natural number 1009 @item DBUS_TYPE_BYTE @tab @expansion{} @tab natural number
1009 @item DBUS_TYPE_UINT16 @tab @expansion{} @tab natural number 1010 @item DBUS_TYPE_UINT16 @tab @expansion{} @tab natural number
1010 @item DBUS_TYPE_INT16 @tab @expansion{} @tab integer 1011 @item DBUS_TYPE_INT16 @tab @expansion{} @tab integer
1011 @item DBUS_TYPE_UINT32 @tab @expansion{} @tab natural number or float 1012 @item DBUS_TYPE_UINT32 @tab @expansion{} @tab natural number or float
1013 @item DBUS_TYPE_UNIX_FD @tab @expansion{} @tab natural number or float
1012 @item DBUS_TYPE_INT32 @tab @expansion{} @tab integer or float 1014 @item DBUS_TYPE_INT32 @tab @expansion{} @tab integer or float
1013 @item DBUS_TYPE_UINT64 @tab @expansion{} @tab natural number or float 1015 @item DBUS_TYPE_UINT64 @tab @expansion{} @tab natural number or float
1014 @item DBUS_TYPE_INT64 @tab @expansion{} @tab integer or float 1016 @item DBUS_TYPE_INT64 @tab @expansion{} @tab integer or float
1015 @item DBUS_TYPE_DOUBLE @tab @expansion{} @tab float 1017 @item DBUS_TYPE_DOUBLE @tab @expansion{} @tab float
1016 @item DBUS_TYPE_STRING @tab @expansion{} @tab string 1018 @item DBUS_TYPE_STRING @tab @expansion{} @tab string
1022 @item DBUS_TYPE_DICT_ENTRY @tab @expansion{} @tab list 1024 @item DBUS_TYPE_DICT_ENTRY @tab @expansion{} @tab list
1023 @end multitable 1025 @end multitable
1024 @end example 1026 @end example
1025 1027
1026 A float object in case of @code{DBUS_TYPE_UINT32}, 1028 A float object in case of @code{DBUS_TYPE_UINT32},
1027 @code{DBUS_TYPE_INT32}, @code{DBUS_TYPE_UINT64} and 1029 @code{DBUS_TYPE_INT32}, @code{DBUS_TYPE_UINT64},
1028 @code{DBUS_TYPE_INT6432} is returned, when the C value exceeds the 1030 @code{DBUS_TYPE_INT64} and @code{DBUS_TYPE_UNIX_FD} is returned, when
1029 Emacs number size range. 1031 the C value exceeds the Emacs number size range.
1030 1032
1031 The resulting list of the last 4 D-Bus compound types contains as 1033 The resulting list of the last 4 D-Bus compound types contains as
1032 elements the elements of the D-Bus container, mapped according to the 1034 elements the elements of the D-Bus container, mapped according to the
1033 same rules. 1035 same rules.
1034 1036