Added basic variant type support
This also enables reading properties of DBus interfaces.
This commit is contained in:
parent
a138584b87
commit
98bc5bddc1
4 changed files with 73 additions and 7 deletions
|
@ -26,6 +26,14 @@ T wrapErrors(T)(T delegate(DBusError *err) del) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
struct Variant(T) {
|
||||
T data;
|
||||
}
|
||||
|
||||
Variant!T variant(T)(T data) {
|
||||
return Variant!T(data);
|
||||
}
|
||||
|
||||
enum MessageType {
|
||||
Invalid = 0,
|
||||
Call, Return, Error, Signal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue