summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/prcalloncefn.rst
blob: da37a9c86e63948389a7d3e9f6d0a0c7e2e7f844 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PRCallOnceFN
============

Defines the signature of the function a client must implement.


Syntax
------

.. code::

   #include <prinit.h>

   typedef PRStatus (PR_CALLBACK *PRCallOnceFN)(void);


Description
-----------

The function is called to perform the initialization desired. The
function is expected to return a :ref:`PRStatus` indicating the outcome of
the process.