Summary
Gets the names of the properties and methods of the specified NPObject
.
Syntax
#include <npruntime.h> bool NPN_Enumerate(NPP npp, NPObject *npobj, NPIdentifier **identifiers, uint32_t *identifierCount);
Parameters
The function has the following parameters:
npp
- The NPP indicating which plugin instance is making the request.
npobj
- The object of which the properties and methods are to be retrieved.
identifiers
- A pointer to receive a pointer to the start of an array of string identifiers of the names of the properties and methods of npobj.
identifierCount
- A pointer to receive the number of identifiers in
identifiers
.
Returns
true
if the names of the properties and methods were successfully retrieved, otherwise false
.
Note: The caller must call
NPN_MemFree
()
on the pointer received through the identifiers
parameter of a successful call to NPN_Enumerate
to release the array of string identifiers when it is no longer needed. The callee allocates this array via NPN_MemAlloc
()
.