Re: String array from JS -> C++ via IDL

2015-04-30 Thread Jan Jongboom
On Thursday, April 30, 2015 at 4:29:21 PM UTC+2, Jan Jongboom wrote: > 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[

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));