WvDBusMsg::is_reply() had an unnecessary hack for message #1.
[wvapps.git] / xplcidl / multitest.cc
blob64e09f63b19de86577040c26320953201f169644
1 #include "mymulti.h"
2 #include <xplc/ptr.h>
3 #include <stdio.h>
5 int main()
7 MyMulti *x1 = new MyMulti("Hello"), *x2 = new MyMulti("2 World");
8 xplc_ptr<IString> s1(mutate<IString>(*x1)), s2(mutate<IString>(*x2));
9 xplc_ptr<IInt> i1(get<IInt>(s1)), i2(get<IInt>(s2));
10 xplc_ptr<IBool> b1(get<IBool>(s1)), b2(get<IBool>(s2));
12 printf("'%s' '%s'\n", s1->getString(), s2->getString());
13 printf("%d %d\n", i1->getInt(), i2->getInt());
14 printf("%d %d\n", b1->getBool(), b2->getBool());
16 return 0;