Search completed in 1.04 seconds.
14 results for "NP_Shutdown":
NP_Shutdown - Archive of obsolete content
ArchivePluginsReferenceNP Shutdown
syntax #include <npapi.h> void np_shutdown(void); windows #include <npapi.h> void winapi np_shutdown(void); description the browser calls this function once after the last instance of your plug-in is destroyed, before unloading the plug-in library itself.
... use np_shutdown to delete any data allocated in np_initialize to be shared by all instances of a plug-in.
...the browser calls np_shutdown only when the library is finally unloaded.
Initialization and Destruction - Plugins
PluginsGuideInitialization and Destruction
shutdown: when the last instance of a plug-in is deleted, the plug-in code is unloaded from memory and the browser calls the function np_shutdown.
... this chapter ends with initialize and shutdown example, which includes the np_initialize and np_shutdown methods.
... nperror np_initialize(void) { }; after the last plug-in instance is deleted, the browser calls np_shutdown, which releases the memory or resources allocated by np_initialize.
...And 9 more matches
NPN_SetValue - Archive of obsolete content
ArchivePluginsReferenceNPN SetValue
normally, when the browser navigates away from the page containing the plugin, all plugin instances get an npp_destroy call, and if there are no more instances of the plugin active, the plugin calls its np_shutdown method and the plugin dll gets unloaded from memory.
... if this is not desired, the plugin can instruct the browser not to unload the dll and not to call np_shutdown when the page is left.
...by default, the dll will be unloaded from memory preceded by an np_shutdown call.
NPP_Destroy - Archive of obsolete content
ArchivePluginsReferenceNPP Destroy
if this function is deleting the last instance of a plug-in, np_shutdown is subsequently called.
... use np_shutdown to delete any data allocated in np_initialize and intended to be shared by all instances of a plug-in.
... see also npp_new, np_shutdown, npp, npn_memalloc, npsaveddata ...
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
note: np_initialize and np_shutdown are not technically a part of the function table that the plug-in hands to the browser.
...gecko calls the function np_shutdown.
...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_Initialize - Archive of obsolete content
ArchivePluginsReferenceNP Initialize
after the last instance of a plug-in has been deleted, the browser calls np_shutdown, where you can release allocated memory or resources.
... see also np_shutdown, npp_new ...
Index - Archive of obsolete content
ArchiveIndex
3707 np_shutdown npapi, plugins provides global deinitialization for a plug-in.
Index of archived content - Archive of obsolete content
ArchiveIndex of archived content
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 digital signatures encryption and d...
NPP_New - Archive of obsolete content
ArchivePluginsReferenceNPP New
see also npp_destroy, np_shutdown, npp, npsaveddata ...
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_shutdown provides global deinitialization for a plug-in.
Plug-in Side Plug-in API - Plugins
PluginsGuidePlug-in Side Plug-in API
np_shutdown provides global deinitialization 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.