mozilla

Revision 110981 of NPN_GetStringIdentifiers

  • Revision slug: NPN_GetStringIdentifiers
  • Revision title: NPN_GetStringIdentifiers
  • Revision id: 110981
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment scripting template

Revision Content

{{ Np-plugin-scripting() }}

Summary

Returns an array of opaque identifiers for the names that are passed in.

Syntax

#include <npruntime.h>
 
void NPN_GetStringIdentifiers(const NPUTF8 **names, int32_t nameCount, NPIdentifier *identifiers);

Parameters

The function has the following parameters:

<tt>names</tt>
An array of strings for which opaque identifiers should be returned.
<tt>nameCount</tt>
The number of strings in the <tt>names</tt> array.
<tt>identifiers</tt>
A pointer to an array to fill with the identifiers for the strings specified by <tt>names</tt>.

Returns

On return, the <tt>identifiers</tt> array is filled out with the identifiers for each of the strings in the <tt>names</tt> array.

Description

As is the case with NPN_GetStringIdentifier(), all calls for the same strings are guaranteed to return the same exact identifiers.

Revision Source

<p> {{ Np-plugin-scripting() }}
</p>
<h3 name="Summary">Summary</h3>
<p>Returns an array of opaque identifiers for the names that are passed in.
</p>
<h3 name="Syntax">Syntax</h3>
<pre>#include &lt;npruntime.h&gt;
 
void NPN_GetStringIdentifiers(const NPUTF8 **names, int32_t nameCount, NPIdentifier *identifiers);
</pre>
<h3 name="Parameters">Parameters</h3>
<p>The function has the following parameters:
</p>
<dl><dt><tt>names</tt>
</dt><dd>An array of strings for which opaque identifiers should be returned.
</dd><dt><tt>nameCount</tt>
</dt><dd>The number of strings in the <tt>names</tt> array.
</dd><dt><tt>identifiers</tt>
</dt><dd>A pointer to an array to fill with the identifiers for the strings specified by <tt>names</tt>.
</dd></dl>
<h3 name="Returns">Returns</h3>
<p>On return, the <tt>identifiers</tt> array is filled out with the identifiers for each of the strings in the <tt>names</tt> array.
</p>
<h3 name="Description">Description</h3>
<p>As is the case with <code><a href="en/NPN_GetStringIdentifier">NPN_GetStringIdentifier()</a></code>, all calls for the same strings are guaranteed to return the same exact identifiers.
</p>
Revert to this revision