Search completed in 1.34 seconds.
15 results for "NP_Initialize":
NP_Initialize - Archive of obsolete content
ArchivePluginsReferenceNP Initialize
syntax windows #include <npapi.h> nperror winapi np_initialize(npnetscapefuncs *anpnfuncs) unix #include <npapi.h> nperror np_initialize(npnetscapefuncs *anpnfuncs, nppluginfuncs *anppfuncs) returns if successful, the function returns nperr_no_error.
...np_initialize tells the plug-in that the browser has loaded it and provides global initialization.
Initialization and Destruction - Plugins
PluginsGuideInitialization and Destruction
initialization: the browser calls the plug-in api function np_initialize when the plug-in code is first loaded.
... this chapter ends with initialize and shutdown example, which includes the np_initialize and np_shutdown methods.
... initialization the browser calls np_initialize when a plug-in is loaded and before the first instance is created.
...And 8 more matches
Writing a plugin for Mac OS X - Archive of obsolete content
ArchivePluginsWriting a plugin for Mac OS X
the three symbols that must always be visible are: np_initialize() np_getentrypoints() np_shutdown() the sample plugin is written entirely in c, using a standard xcode build configuration, so by default all of its symbols are c-style and visible.
... if you want to implement your plugin in c++ or objective-c++, you need to tell the compiler to export them in c format by using extern "c" in the header, like this: #pragma gcc visibility push(default) extern "c" { nperror np_initialize(npnetscapefuncs *browserfuncs); nperror np_getentrypoints(nppluginfuncs *pluginfuncs); void np_shutdown(void); } #pragma gcc visibility pop you can check to be sure your symbols are visible and in standard c format by using the nm utility provided among the mac os x developer tools: [user@foo mymac] nm basicplugin ...
... 00000810 t _np_getentrypoints 000007fa t _np_initialize 000008a0 t _np_shutdown ...
Plug-in Basics - Plugins
PluginsGuidePlug-in Basics
gecko calls the plug-in api function np_initialize when the plug-in code is first loaded.
... note: np_initialize and np_shutdown are not technically a part of the function table that the plug-in hands to the browser.
...there are also a couple of functions (i.e., np_initialize and np_shutdown) that are direct library entry points and not related to any particular plug-in instance.
NP_Shutdown - Archive of obsolete content
ArchivePluginsReferenceNP Shutdown
use np_shutdown to delete any data allocated in np_initialize to be shared by all instances of a plug-in.
... see also np_initialize, npp_destroy ...
XEmbed Extension for Mozilla Plugins - Archive of obsolete content
ArchivePluginsXEmbed Extension for Mozilla Plugins
this would be included in your np_initialize function.
... nperror np_initialize(npnetscapefuncs* nstable, nppluginfuncs* pluginfuncs) { nperror err = nperr_no_error; prbool supportsxembed = pr_false; npntoolkittype toolkit = 0; [ code that copies all of the function tables and does ] [ other standard checks ] /* * make sure that the browser supports functionality we care * about.
Index - Archive of obsolete content
ArchiveIndex
3705 np_initialize npapi, plugins provides global initialization for a plug-in.
Index of archived content - Archive of obsolete content
ArchiveIndex of archived content
npp_write npp_writeready npprint npprintcallbackstruct nprect npregion npsaveddata npsetwindowcallbackstruct npstream npstring nputf8 npvariant npvarianttype npwindow np_getmimedescription np_getvalue np_initialize np_port np_shutdown samples and test cases shipping a plugin as a toolkit bundle supporting private browsing in plugins the first install problem writing a plugin for mac os x xembed extension for mozilla plugins sax security d...
NPN_Version - Archive of obsolete content
ArchivePluginsReferenceNPN Version
see also npn_useragent() np_initialize() ...
NPP_Destroy - Archive of obsolete content
ArchivePluginsReferenceNPP Destroy
use np_shutdown to delete any data allocated in np_initialize and intended to be shared by all instances of a plug-in.
NPP_New - Archive of obsolete content
ArchivePluginsReferenceNPP New
it is called after np_initialize and is passed the mime type, embedded or full-screen display mode, and, for embedded plug-ins, information about html embed arguments.
NPAPI plug-in side API - Archive of obsolete content
ArchivePluginsReferencePlug-in side
npp_destroy npp_destroystream npp_getvalue np_getvalue npp_handleevent np_initialize npp_new npp_newstream npp_print npp_setvalue npp_setwindow np_shutdown npp_streamasfile npp_urlnotify npp_write npp_writeready ...
NPAPI plugin reference - Archive of obsolete content
ArchivePluginsReference
np_initialize provides global initialization for a plug-in.
Plug-in Side Plug-in API - Plugins
PluginsGuidePlug-in Side Plug-in API
np_initialize provides global initialization for a plug-in.
Gecko Plugin API Reference - Plugins
PluginsGuide
npp_destroy npp_destroystream npp_getvalue np_getvalue npp_handleevent np_initialize npp_new npp_newstream npp_print npp_setvalue npp_setwindow np_shutdown npp_streamasfile npp_urlnotify npp_write npp_writeready browser side plug-in api this chapter describes methods in the plug-in api that are available from the browser.