mozilla

Revision 190784 of NPN_RetainObject

  • Revision slug: NPN_RetainObject
  • Revision title: NPN_RetainObject
  • Revision id: 190784
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment scripting template
Tags: 

Revision Content

{{ Np-plugin-scripting() }}

Summary

Increments the reference count of the given NPObject.

Syntax

#include <npruntime.h>
 
NPObject *NPN_RetainObject(NPObject *npobj);

Parameters

The function has the following parameter:

<tt>npobj</tt>
The NPObject to retain.

Returns

A pointer back to the same object.

Revision Source

<p> {{ Np-plugin-scripting() }}
</p>
<h3 id="Summary" name="Summary">Summary</h3>
<p>Increments the reference count of the given <code><a href="en/NPObject">NPObject</a></code>.
</p>
<h3 id="Syntax" name="Syntax">Syntax</h3>
<pre>#include &lt;npruntime.h&gt;
 
NPObject *NPN_RetainObject(NPObject *npobj);
</pre>
<h3 id="Parameters" name="Parameters">Parameters</h3>
<p>The function has the following parameter:
</p>
<dl><dt><tt>npobj</tt>
</dt><dd>The <code>NPObject</code> to retain.
</dd></dl>
<h3 id="Returns" name="Returns">Returns</h3>
<p>A pointer back to the same object.
</p>
Revert to this revision