Fix demarshaling of private struct fields
Tests now pass again.
This commit is contained in:
parent
87a06cead1
commit
fc9a604e85
|
@ -291,7 +291,7 @@ void readIterTuple(Tup)(DBusMessageIter *iter, ref Tup tuple) if(isTuple!Tup &&
|
||||||
void readIterStruct(S)(DBusMessageIter *iter, ref S s) if(is(S == struct) && allCanDBus!(Fields!S)) {
|
void readIterStruct(S)(DBusMessageIter *iter, ref S s) if(is(S == struct) && allCanDBus!(Fields!S)) {
|
||||||
alias FieldNameTuple!S names;
|
alias FieldNameTuple!S names;
|
||||||
foreach(index, T; Fields!S) {
|
foreach(index, T; Fields!S) {
|
||||||
__traits(getMember, s, names[index]) = readIter!T(iter);
|
s.tupleof[index] = readIter!T(iter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue