setProperty: Allow multiple objects
Allow multiple objects when using the setProperty action.
Change-Id: Ie65b9abee6240d6a6541b9778d4bf776010f865d
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/pimgen.py b/pimgen.py
index 226c5d8..be66bb0 100755
--- a/pimgen.py
+++ b/pimgen.py
@@ -306,7 +306,10 @@
member_type = cppTypeName(value['type'])
member_cast = '{0} ({1}::*)({0})'.format(member_type, t.qualified())
- args.append(TrivialArgument(value=kw.pop('path'), type='string'))
+ paths = [{'value': x, 'type': 'string'} for x in kw.pop('paths')]
+ args.append(InitializerList(
+ values=[TrivialArgument(**x) for x in paths]))
+
args.append(TrivialArgument(value=str(iface), type='string'))
args.append(TrivialArgument(
value=member, decorators=[Cast('static', member_cast)]))