mozilla

Revision 190793 of NPN_GetStringIdentifier

  • Revision slug: NPN_GetStringIdentifier
  • Revision title: NPN_GetStringIdentifier
  • Revision id: 190793
  • Created:
  • Creator: Sheppy
  • Is current revision? Yes
  • Comment sc
Tags: 

Revision Content

{{ Np-plugin-scripting() }}

Summary

Returns an opaque identifier for the string that is passed in.

Syntax

#include <npruntime.h>
 
NPIdentifier NPN_GetStringIdentifier(const NPUTF8 *name);

Parameters

The function has the following parameters:

<tt>name</tt>
The string for which an opaque identifier should be returned.

Returns

An NPIdentifier identifying the string.

Description

All calls for the same string are guaranteed to return the same exact identifier.

Revision Source

<p> {{ Np-plugin-scripting() }}
</p>
<h3 id="Summary" name="Summary">Summary</h3>
<p>Returns an opaque identifier for the string that is passed in.
</p>
<h3 id="Syntax" name="Syntax">Syntax</h3>
<pre>#include &lt;npruntime.h&gt;
 
NPIdentifier NPN_GetStringIdentifier(const NPUTF8 *name);
</pre>
<h3 id="Parameters" name="Parameters">Parameters</h3>
<p>The function has the following parameters:
</p>
<dl><dt><tt>name</tt>
</dt><dd>The string for which an opaque identifier should be returned.
</dd></dl>
<h3 id="Returns" name="Returns">Returns</h3>
<p>An <code><a href="en/NPIdentifier">NPIdentifier</a></code> identifying the string.
</p>
<h3 id="Description" name="Description">Description</h3>
<p>All calls for the same string are guaranteed to return the same exact identifier.
</p>
Revert to this revision