How to call a c/c++ function from java script.

Forums » Opera for Windows/Mac/Linux » Opera for *nix - Linux/FreeBSD

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

7. May 2010, 08:38:06

dhadpr

Posts: 1

How to call a c/c++ function from java script.

Hi,
I am working on opera-linux-devices-sdk-10.15-x86.
I am trying to write custom opera plugins for my application.
I have created a shared library .so which is having C/C++ functinality defined.The .so file is placed in opera_dir\Jsplugin\
How to call these function using the java script file.

Any would be appreciated.

Thanks in advance,
Dharmender

24. May 2010, 21:43:59

svdb0

Posts: 70

This is a good place to get started with plugins: https://developer.mozilla.org/en/Gecko_Plugin_API_Reference .
It's a page from Mozilla, but it describes the NPAPI which Opera also implements.
For making calls to JavaScript, see https://developer.mozilla.org/en/Gecko_Plugin_API_Reference/Scripting_plugins .

27. May 2010, 18:30:10

Opera Software

ACEa

Posts: 1

Looks like this is a SDK question so please send a mail to the support mailing list that is in the SDK's documentation.

Forums » Opera for Windows/Mac/Linux » Opera for *nix - Linux/FreeBSD