Method: Init

Purpose

Confirms that the interface has been registered, and provides a reference to
the server.

Syntax

PRUint32 Init(nsISupports *aServer)=0;

Parameters

The method has the following parameter:

aServer

On return, contains a reference to the server with which the module is registered.

Returns

NS_OK on success, non-zero error code on failure.

Description

The server calls this method after finding and registering the interface on
module load, to confirm that the operation was successful. You can use the pointer
returned in aServer to make calls out to the server.