String array from JS -> C++ via IDL

2015-04-30 Thread janjongboom
I have an IDL file and I want to add a new attribute that contains an array of strings. The interface is implemented in JavaScript and I'm writing C++ code. IDL: readonly attribute nsIArray osPaths; // DOMString[] Consuming in C++: nsCOMPtr bla; app->GetOsPaths(getter_AddRefs(bla));

XPIDL & Promises

2013-07-30 Thread janjongboom
Hi, >From code I can use Cu.import("resource://gre/modules/Promise.jsm"); to use >promises. But is it possible to have a promise as a return type in my .idl >file (b2g)? Something like Promise blah(); won't just work and I'm a bit lost :-) ___ dev-pla