Re: C types build

Mihai Dobrescu <[email protected]> Wed, 21 Sep 2016 12:59:47 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.jseng
Message-ID <[email protected]>
On Wednesday, September 21, 2016 at 8:12:23 PM UTC+3, Terrence Cole wrote:
> js-ctypes is a mozilla-custom, poorly-supported extension to vanilla js
> that supports loading and working directly with C/C++ dynamically linked
> libraries / shared objects. There is documentation at [1]. I believe our
> implementation was heavily influenced if not directly based on the existing
> module in python [2].
> 
> Passing --enable-ctypes to the build system will cause this module to be
> built. When built, the functions in [1] are available only from JS: I do
> not believe it adds any public symbols to SpiderMonkey's C or C++ API
> surfaces.
> 
> 1- https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes
> 2- https://docs.python.org/3/library/ctypes.html
> 
> On Wed, Sep 21, 2016 at 5:49 AM, Mihai Dobrescu <[email protected]>
> wrote:
> 
> > Hello,
> >
> > What means a C types build?
> > What will be possible to achieve?
> > Is it easier to integrate and embed SpiderMonkey for C/C++ APIs?
> >
> > Best Regards,
> > Mike
> > _______________________________________________
> > dev-tech-js-engine mailing list
> > [email protected]
> > https://lists.mozilla.org/listinfo/dev-tech-js-engine
> >

I have Illustrator API, where I need to handle char* and const char ** paramaters. Would ctypes or jni help?