Netscape DevEdge

Skip to: [content] [navigation]

TOC PREV NEXT

plug-ins!


NPP


Represents a single instance of a plug-in.

Syntax

typedef struct _NPP
 
{
 
    void* pdata; /* plug-in private data */
 
    void* ndata; /* Netscape private data */
 
} NPP_t;
 
typedef NPP_t*  NPP;
 

Fields

The data structure has the following fields:

pdata
 
Plug-in private value that a plug-in can use to store a pointer to an internal data structure associated with the instance; not modified by the browser.
ndata
 
Private browser value that can store data associated with the instance; should not be modified by the plug-in.

Description

Netscape Gecko creates an NPP structure for each plug-in instance and passes a pointer to it to NPP_New. This pointer identifies the instance on which API calls should operate and represents the opaque instance handle of a plug-in. NPP contains private instance data for both the plug-in and the browser.

The NPP_Destroy function informs the plug-in when the NPP instance is about to be deleted; after this call returns, the NPP pointer is no longer valid.

See Also

NPP_New, NPP_Destroy
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT
A+R