API, CODE AND EXAMPLES FOR THE JS PLUGIN INTERFACE IMPLEMENTATION IN
OPERA 8 AND OPERA 9
people to ask questions:
email@example.com firstname.lastname@example.org email@example.com
but lookie here first:
to use this code, check out this module (jsplugins) under modules/ in
the opera source tree.
add the files to the compilation.
turn on the define JS_PLUGIN
more details below.
unless you're compiling for u**x, you must manually make sure
that the following files are included in the compilation:
if you're compiling for u**x, you just have to follow the
single step right below.
in Makefile.private, turn on
JS_PLUGIN_SUPPORT = YES
in core/vfunc.h, make sure that the following define is turned on:
COMPILING THE PLUGINS
for w*ndows, there are .dsp files in the jsplugins/examples directory.
include them in the opera workspace and set the win32 debug unicode
configuration. compile. the plugins will be put in the
debug_unicode/exe/jsplugins directory, which conveniently enough is
where the js plugin manager will look for them if you have a debug
unicode opera version.
for u**x, there is a Makefile in the jsplugins/examples directory.
type make to compile all examples. currently you will have to move
them yourself to Opera/jsplugins (since on u**x you probably want to
symlink them anyway).
DISTRIBUTING THE PLUGIN KIT TO CUSTOMERS
the customer first has to sign the JSPlugin License Agreement
(template in doc/Opera_JSPlugin_API_License.sxw).
(s)he should then get following files: