Search completed in 0.94 seconds.
11 results for "NPSavedData":
NPSavedData - Archive of obsolete content
ArchivePluginsReferenceNPSavedData
syntax typedef struct _npsaveddata { int32 len; void* buf; } npsaveddata; fields the data structure has the following fields: len length in bytes of the buffer pointed to by buf; set by the plug-in.
... description the npsaveddata object contains a block of per-instance information that the browser saves after the instance is deleted.
...you can use the plug-in's npp_destroy() function to allocate an npsaveddata object using the npn_memalloc() function, fill in the fields, and return it to the browser as an output parameter.
...And 2 more matches
NPP_Destroy - Archive of obsolete content
ArchivePluginsReferenceNPP Destroy
syntax #include <npapi.h> nperror npp_destroy(npp instance, npsaveddata **save); parameters the function has the following parameters: instance pointer to the plug-in instance to delete.
...ownership of the buf field of the npsaveddata structure passes from the plug-in to the browser when npp_destroy returns.
... to ensure that the browser does not crash or leak memory when the saved data is discarded, npsaveddata's buf field should be a flat structure (a simple structure with no allocated substructures) allocated with npn_memalloc.
...And 2 more matches
Initialization and Destruction - Plugins
PluginsGuideInitialization and Destruction
nperror npp_new(npmimetype plugintype, npp instance, uint16 mode, int16 argc, char *argn[], char *argv[], npsaveddata *saved); the plugintype parameter represents the mime type of this instance of the plug-in.
... nperror npp_destroy(npp instance, npsaveddata **save); the instance parameter represents the plug-in instance to delete.
...ownership of the buf field of the npsaveddata structure passes from the plug-in to the browser when npp_destroy returns.
...And 2 more matches
NPP_New - Archive of obsolete content
ArchivePluginsReferenceNPP New
syntax #include <npapi.h> nperror npp_new(npmimetype plugintype, npp instance, uint16 mode, int16 argc, char *argn[], char *argv[], npsaveddata *saved); parameters the function has the following parameters: plugintype pointer to the mime type for new plug-in instance.
...if non-null, the browser passes ownership of the npsaveddata object back to the plug-in.
... the plug-in is responsible for freeing the memory for the npsaveddata and the buffer it contains.
... see also npp_destroy, np_shutdown, npp, npsaveddata ...
Obsolete: XPCOM-based scripting for NPAPI plugins - Archive of obsolete content
ArchiveXPCOM-based scripting for NPAPI plugins
npp_getvalue implementation and possible scenario of scriptable object life cycle #include "nsitestplugin.h" nperror npp_new(npmimetype plugintype, npp instance, uint16 mode, int16 argc, char* argn[], char* argv[], npsaveddata* saved) { if(instance == null) return nperr_invalid_instance_error; // just prime instance->pdata with null for the purpose of this example // it will be assigned to the scriptable interface later to keep its // association with the specific plugin instance instance->pdata = null; return rv; } nperror npp_getvalue(npp instance, nppvariable variable, void *value) { ...
...ction } // add reference for the caller requesting the object ns_addref(scriptablepeer); *(nsisupports **)value = scriptablepeer; } else if (variable == nppvpluginscriptableiid) { nsiid* ptr = (nsiid *)npn_memalloc(sizeof(nsiid)); *ptr = scriptableiid; *(nsiid **)value = ptr; } return rv; } nperror npp_destroy (npp instance, npsaveddata** save) { if(instance == null) return nperr_invalid_instance_error; // release the scriptable object ns_if_release(instance->pdata); } original document information author(s): arun k.
Index - Archive of obsolete content
ArchiveIndex
3695 npsaveddata npapi, plugins block of instance information saved after the plug-in instance is deleted; can be returned to the plug-in to restore the data in future instances of the plug-in.
Index of archived content - Archive of obsolete content
ArchiveIndex of archived content
npp_destroystream npp_getvalue npp_handleevent npp_new npp_newstream npp_print npp_setvalue npp_setwindow npp_streamasfile npp_urlnotify 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...
NPAPI plugin reference - Archive of obsolete content
ArchivePluginsReference
npsaveddata block of instance information saved after the plug-in instance is deleted; can be returned to the plug-in to restore the data in future instances of the plug-in.
Drawing and Event Handling - Plugins
PluginsGuideDrawing and Event Handling
nperror npp_new(npmimetype plugintype, npp instance, uint16 mode, int16 argc, char *argn[], char *argv[], npsaveddata *saved) { ...
Structures - Plugins
PluginsGuideStructures
npsaveddata block of instance information saved after the plug-in is deleted; can be returned to the plug-in.
Gecko Plugin API Reference - Plugins
PluginsGuide
npn_retainobject npn_releaseobject npn_invoke npn_invokedefault npn_evaluate npn_getproperty npn_setproperty npn_removeproperty npn_hasproperty npn_hasmethod npn_setexception npclass structures npanycallbackstruct npbyterange npembedprint npevent npfullprint npp np_port npprint npprintcallbackstruct nprect npregion npsaveddata npsetwindowcallbackstruct npstream npwindow constants error codes result codes plug-in version constants version feature constants external resources external projects and articles for plugin creation original document information copyright information: netscape communication ...