Allow structs with non-marshaled non-canDBus fields (#28)
This commit is contained in:
parent
279c3ab00b
commit
99cb6cb071
3 changed files with 17 additions and 5 deletions
|
@ -654,6 +654,7 @@ unittest {
|
|||
struct S2 {
|
||||
int h, i;
|
||||
@(Yes.DBusMarshal) int j, k;
|
||||
int *p;
|
||||
}
|
||||
|
||||
@dbusMarshaling(MarshalingFlag.includePrivateFields)
|
||||
|
@ -667,10 +668,12 @@ unittest {
|
|||
|
||||
Message msg = Message("org.example.wow", "/wut", "org.test.iface", "meth3");
|
||||
|
||||
__gshared int dummy;
|
||||
|
||||
enum testStruct = S3(
|
||||
variant(5), "blah",
|
||||
S1(-7, 63.5, "test"),
|
||||
S2(84, -123, 78, 432),
|
||||
S2(84, -123, 78, 432, &dummy),
|
||||
16
|
||||
);
|
||||
|
||||
|
@ -680,7 +683,7 @@ unittest {
|
|||
enum expectedResult = S3(
|
||||
variant(5), "blah",
|
||||
S1(int.init, 63.5, "test"),
|
||||
S2(int.init, int.init, 78, 432),
|
||||
S2(int.init, int.init, 78, 432, null),
|
||||
uint.init
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue